new testcase
authorChris Lattner <sabre@nondot.org>
Tue, 15 May 2007 20:29:56 +0000 (20:29 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 May 2007 20:29:56 +0000 (20:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37087 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/nested-functions.c [new file with mode: 0644]

diff --git a/test/CFrontend/nested-functions.c b/test/CFrontend/nested-functions.c
new file mode 100644 (file)
index 0000000..3ac984c
--- /dev/null
@@ -0,0 +1,10 @@
+// RUN: %llvmgcc -S %s -o -  -fnested-functions
+void Bork() {
+  void Fork(const int *src, int size) {
+    int i = 1;
+    int x;
+
+    while (i < size)
+      x = src[i];
+  }
+}