commit | 6cb99b7ed140cd2be2137ed73c24c2ab44ca5aae | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sun Dec 21 03:33:21 2008 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sun Dec 21 03:33:21 2008 +0000 |
tree | 8534b716aa047385dcd3e2e1be544e60e2ee8055 | |
parent | ffbd8d6327c1c24c3f862605d87ba67a3d89626f [diff] |
Make sure to emit the size expression for sizeof(type) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61301 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/vla.c b/test/CodeGen/vla.c index a584020..0881520 100644 --- a/test/CodeGen/vla.c +++ b/test/CodeGen/vla.c
@@ -8,3 +8,8 @@ arry[0] = 10; b(arry); } + +void b(int n) +{ + sizeof(int[n]); +}