diff options
Diffstat (limited to 'clang/test/CodeGen/2003-08-30-AggregateInitializer.c')
-rw-r--r-- | clang/test/CodeGen/2003-08-30-AggregateInitializer.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2003-08-30-AggregateInitializer.c b/clang/test/CodeGen/2003-08-30-AggregateInitializer.c new file mode 100644 index 0000000..5beb14e --- /dev/null +++ b/clang/test/CodeGen/2003-08-30-AggregateInitializer.c @@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -emit-llvm %s -o /dev/null + +struct istruct { + unsigned char C; +}; + +struct foo { + unsigned int I:1; + struct istruct J; + unsigned char L[1]; + unsigned int K:1; +}; + +struct foo F = { 1, { 7 }, { 123 } , 1 }; + + |