Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 1 | // PR691 |
NAKAMURA Takumi | 146254f | 2013-01-22 01:51:54 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s |
3 | // CHECK: call i8* @llvm.stacksave() | ||||
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 4 | |
5 | void test(int N) { | ||||
6 | int i; | ||||
7 | for (i = 0; i < N; ++i) { | ||||
8 | int VLA[i]; | ||||
9 | external(VLA); | ||||
10 | } | ||||
11 | } |