aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2003-08-30-AggregateInitializer.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2003-08-30-AggregateInitializer.c')
-rw-r--r--test/FrontendC/2003-08-30-AggregateInitializer.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/FrontendC/2003-08-30-AggregateInitializer.c b/test/FrontendC/2003-08-30-AggregateInitializer.c
new file mode 100644
index 0000000..58c77b6
--- /dev/null
+++ b/test/FrontendC/2003-08-30-AggregateInitializer.c
@@ -0,0 +1,16 @@
+// RUN: %llvmgcc -S %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 };
+
+