diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-02-06 05:33:51 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-02-06 05:33:51 +0000 |
commit | 220ee4101126c94a730d42c00a1a86050aade688 (patch) | |
tree | 46ebc2e7e9ec764345cfa41ff82cb34d6b39c3f6 /clang/test/CodeGen/struct.c | |
parent | 3340b9258217a1c0fb0f7166b2a3eb124bb9e292 (diff) | |
download | bcm5719-llvm-220ee4101126c94a730d42c00a1a86050aade688.tar.gz bcm5719-llvm-220ee4101126c94a730d42c00a1a86050aade688.zip |
Fix the codegen of structs with flexible array members.
llvm-svn: 46806
Diffstat (limited to 'clang/test/CodeGen/struct.c')
-rw-r--r-- | clang/test/CodeGen/struct.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/CodeGen/struct.c b/clang/test/CodeGen/struct.c index fc79f0a2f48..1b476f823d5 100644 --- a/clang/test/CodeGen/struct.c +++ b/clang/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;} |