Test code quality for variable length array references.

llvm-svn: 36163
This commit is contained in:
Duncan Sands 2007-04-16 21:13:57 +00:00
parent 219044fcbc
commit 330d495889
1 changed files with 7 additions and 0 deletions

View File

@ -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];
}