Test for PR374
authorChris Lattner <sabre@nondot.org>
Sat, 19 Jun 2004 01:08:12 +0000 (01:08 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 19 Jun 2004 01:08:12 +0000 (01:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14240 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c [new file with mode: 0644]

diff --git a/test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c b/test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c
new file mode 100644 (file)
index 0000000..da52cbc
--- /dev/null
@@ -0,0 +1,8 @@
+
+struct S { };
+
+int xxxx(int a) {
+  struct S comps[a];
+  comps[0];
+}
+