summaryrefslogtreecommitdiff
path: root/test/CFrontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-13 22:05:36 +0000
committerChris Lattner <sabre@nondot.org>2006-01-13 22:05:36 +0000
commit1787ee31ed8a892254260863899f38349102b692 (patch)
treec42442bba139133681271619de2b6381e3061d2c /test/CFrontend
parente5445dc6a2a9a9aa14d65a370c849292d7b48331 (diff)
downloadllvm-1787ee31ed8a892254260863899f38349102b692.tar.gz
llvm-1787ee31ed8a892254260863899f38349102b692.tar.bz2
llvm-1787ee31ed8a892254260863899f38349102b692.tar.xz
testcase for PR691
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/2006-01-13-StackSave.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CFrontend/2006-01-13-StackSave.c b/test/CFrontend/2006-01-13-StackSave.c
new file mode 100644
index 0000000000..a14123c4fa
--- /dev/null
+++ b/test/CFrontend/2006-01-13-StackSave.c
@@ -0,0 +1,12 @@
+// RUN: %llvmgcc %s -S -o - | gccas | llvm-dis | grep llvm.stacksave
+// XFAIL: *
+
+// PR691
+
+void test(int N) {
+ int i;
+ for (i = 0; i < N; ++i) {
+ int VLA[i];
+ external(VLA);
+ }
+}