Testcase for preceding FE fix
authorDale Johannesen <dalej@apple.com>
Tue, 18 Dec 2007 01:58:38 +0000 (01:58 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 18 Dec 2007 01:58:38 +0000 (01:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45144 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2007-12-VarArrayDebug.c [new file with mode: 0644]

diff --git a/test/CFrontend/2007-12-VarArrayDebug.c b/test/CFrontend/2007-12-VarArrayDebug.c
new file mode 100644 (file)
index 0000000..cd6cfdf
--- /dev/null
@@ -0,0 +1,18 @@
+// RUN: %llvmgcc -S -g -O %s -o - | llvm-as | llc
+// RUN: %llvmgcc -S -g %s -o - | llvm-as | llc
+
+extern void foo (void);
+
+static
+void baz (int i)
+{
+  foo ();
+  typedef char A[i];
+  struct { A b; } *x = 0;
+}
+
+void
+bar (i)
+{
+  baz (i);
+}