New test.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Feb 2000 08:28:28 +0000 (08:28 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Feb 2000 08:28:28 +0000 (08:28 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32075 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/init-3.c [new file with mode: 0644]

index 8e4236f..77a1ba6 100644 (file)
@@ -1,3 +1,7 @@
+2000-02-19  Richard Henderson  <rth@cygnus.com>
+
+       * gcc.c-torture/compile/init-3.c: New.
+
 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
 
        * lib/g++.exp (g++_init): Add -fmessage-length=0 to
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 (file)
index 0000000..d091168
--- /dev/null
@@ -0,0 +1,11 @@
+struct empty { };
+struct something {
+       int spacer;
+       struct empty foo;
+       int bar;
+};
+
+struct something X = {
+       foo: (struct empty) { },
+       bar: 1,
+};