diff options
Diffstat (limited to 'test/CFrontend/2007-03-27-VarLengthArray.c')
-rw-r--r-- | test/CFrontend/2007-03-27-VarLengthArray.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CFrontend/2007-03-27-VarLengthArray.c b/test/CFrontend/2007-03-27-VarLengthArray.c new file mode 100644 index 0000000..5bebe9b --- /dev/null +++ b/test/CFrontend/2007-03-27-VarLengthArray.c @@ -0,0 +1,7 @@ +// RUN: %llvmgcc -S %s -o - | grep {getelementptr i32} +extern void f(int *); +int e(int m, int n) { + int x[n]; + f(x); + return x[m]; +} |