forked from OSchip/llvm-project
Test code quality for variable length array references.
llvm-svn: 36163
This commit is contained in:
parent
219044fcbc
commit
330d495889
|
@ -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];
|
||||
}
|
Loading…
Reference in New Issue