llvm-project/llvm/test/FrontendC/2007-03-27-VarLengthArray.c

8 lines
157 B
C
Raw Normal View History

// RUN: %llvmgcc -S %s -o - | grep {getelementptr inbounds \\\[0 x i32\\\]}
extern void f(int *);
int e(int m, int n) {
int x[n];
f(x);
return x[m];
}