commit | c756a8ebee5c896a01f2c564bf4ba800c0beda21 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Mon Feb 09 21:48:07 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Mon Feb 09 21:48:07 2009 +0000 |
tree | db6a17e19ccd009e1aef567b482ed8504c6f1c94 | |
parent | 8aa6181260b73675e01de56858b493ac7d468899 [diff] |
Move previously unsupported VLA test to vla.c git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64173 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/vla.c b/test/CodeGen/vla.c index 907de91..2197ee1 100644 --- a/test/CodeGen/vla.c +++ b/test/CodeGen/vla.c
@@ -13,3 +13,8 @@ { return sizeof(int[n]); } + +int f0(int x) { + int vla[x]; + return vla[x-1]; +}