hanchenye-llvm-project/llvm/test/CFrontend/2006-01-13-StackSave.c

12 lines
215 B
C
Raw Normal View History

2006-01-14 06:05:36 +08:00
// PR691
// RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | \
// RUN: llvm-dis | grep llvm.stacksave
2006-01-14 06:05:36 +08:00
void test(int N) {
int i;
for (i = 0; i < N; ++i) {
int VLA[i];
external(VLA);
}
}