testcase for PR691
authorChris Lattner <sabre@nondot.org>
Fri, 13 Jan 2006 22:05:36 +0000 (22:05 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Jan 2006 22:05:36 +0000 (22:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25298 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2006-01-13-StackSave.c [new file with mode: 0644]

diff --git a/test/CFrontend/2006-01-13-StackSave.c b/test/CFrontend/2006-01-13-StackSave.c
new file mode 100644 (file)
index 0000000..a14123c
--- /dev/null
@@ -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);
+  }
+}