summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/init-3.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/init-3.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/init-3.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/init-3.c b/gcc/testsuite/gcc.c-torture/compile/init-3.c
new file mode 100644
index 000000000..be3d9b496
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/init-3.c
@@ -0,0 +1,11 @@
+struct empty { };
+struct something {
+ int spacer;
+ struct empty foo;
+ int bar;
+};
+
+struct something X = {
+ foo: { },
+ bar: 1,
+};