bolt/deps/llvm-18.1.8/clang/test/CodeGen/2006-01-13-StackSave.c

14 lines
231 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
// PR691
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// CHECK: call ptr @llvm.stacksave.p0()
extern void external(int[*]);
void test(int N) {
int i;
for (i = 0; i < N; ++i) {
int VLA[i];
external(VLA);
}
}