testcase for PR1170
authorChris Lattner <sabre@nondot.org>
Sat, 17 Feb 2007 05:44:57 +0000 (05:44 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 17 Feb 2007 05:44:57 +0000 (05:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34366 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2007-02-16-VariableSizeStructArg.c [new file with mode: 0644]

diff --git a/test/CFrontend/2007-02-16-VariableSizeStructArg.c b/test/CFrontend/2007-02-16-VariableSizeStructArg.c
new file mode 100644 (file)
index 0000000..fd07cd8
--- /dev/null
@@ -0,0 +1,7 @@
+// RUN: %llvmgcc -S %s -o - 
+// PR1170
+int f(int a, struct {int b[a];} c) {  return c.b[0]; }
+
+int g(struct {int b[1];} c) {
+  return c.b[0];
+}