]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
New test.
authorRichard Henderson <rth@cygnus.com>
Sun, 20 Feb 2000 08:28:28 +0000 (00:28 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 20 Feb 2000 08:28:28 +0000 (00:28 -0800)
From-SVN: r32075

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

index 8e4236f03151ef8e92a4b6ad483b6ea6bac3c748..77a1ba61501652cfb8645f78bf0ec99116ca5b22 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,
+};