diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-19 01:08:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-19 01:08:12 +0000 |
commit | 553a7abc787de5ea415e37b99c77b58d42af704b (patch) | |
tree | a83642550a511df98190c4f5a096ea87acd18420 /test | |
parent | b3707baf891f20ca4af49f7421cc231371783457 (diff) | |
download | llvm-553a7abc787de5ea415e37b99c77b58d42af704b.tar.gz llvm-553a7abc787de5ea415e37b99c77b58d42af704b.tar.bz2 llvm-553a7abc787de5ea415e37b99c77b58d42af704b.tar.xz |
Test for PR374
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c b/test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c new file mode 100644 index 0000000000..da52cbcd75 --- /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]; +} + |