mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

@llvm.stacksave is emitted regardless of "opt -std-compile-opts". We have optimizers' tests in llvm/test/Transforms. llvm-svn: 173114
12 lines
197 B
C
12 lines
197 B
C
// PR691
|
|
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
|
|
// CHECK: call i8* @llvm.stacksave()
|
|
|
|
void test(int N) {
|
|
int i;
|
|
for (i = 0; i < N; ++i) {
|
|
int VLA[i];
|
|
external(VLA);
|
|
}
|
|
}
|