summaryrefslogtreecommitdiffstats
path: root/llvm/test/CFrontend/2003-08-30-AggregateInitializer.c
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CFrontend/2003-08-30-AggregateInitializer.c')
-rw-r--r--llvm/test/CFrontend/2003-08-30-AggregateInitializer.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/2003-08-30-AggregateInitializer.c b/llvm/test/CFrontend/2003-08-30-AggregateInitializer.c
new file mode 100644
index 00000000000..f5d5ca9d5e5
--- /dev/null
+++ b/llvm/test/CFrontend/2003-08-30-AggregateInitializer.c
@@ -0,0 +1,18 @@
+// RUN: %llvmgcc -S %s -o /dev/null
+
+// XFAIL: llvmgcc3
+
+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 };
+
+
OpenPOWER on IntegriCloud