From 553a7abc787de5ea415e37b99c77b58d42af704b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 19 Jun 2004 01:08:12 +0000 Subject: [PATCH] Test for PR374 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14240 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../2004-06-18-VariableLengthArrayOfStructures.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c diff --git a/test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c b/test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c new file mode 100644 index 00000000000..da52cbcd75b --- /dev/null +++ b/test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c @@ -0,0 +1,8 @@ + +struct S { }; + +int xxxx(int a) { + struct S comps[a]; + comps[0]; +} +