aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/struct.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-02-06 05:33:51 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-02-06 05:33:51 +0000
commit75afb585496b8c521672a6a91b8dd1838d36185a (patch)
tree9446776e9b80937ae4ae67ad628825bcb79fe44d /test/CodeGen/struct.c
parentfae6e2994a51d8ec1e61b6eb68765247c83b1ccf (diff)
Fix the codegen of structs with flexible array members.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/struct.c')
-rw-r--r--test/CodeGen/struct.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CodeGen/struct.c b/test/CodeGen/struct.c
index fc79f0a2f4..1b476f823d 100644
--- a/test/CodeGen/struct.c
+++ b/test/CodeGen/struct.c
@@ -138,6 +138,10 @@ void f12()
}
/* struct initialization */
-struct a13 {int b; int c};
+struct a13 {int b; int c;};
struct a13 c13 = {5};
struct a14 { short a; int b; } x = {1, 1};
+
+/* flexible array members */
+struct a15 {char a; int b[];} c15;
+int a16(void) {c15.a = 1;}