llvm-project/clang/test/CodeGen/vla.c

16 lines
184 B
C

// RUN: clang %s -emit-llvm -o %t
int b(char* x);
// Extremely basic VLA test
void a(int x) {
char arry[x];
arry[0] = 10;
b(arry);
}
int c(int n)
{
return sizeof(int[n]);
}