]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Thu, 9 Jan 2003 09:33:04 +0000 (09:33 +0000)
committerNo Author <no-author@gcc.gnu.org>
Thu, 9 Jan 2003 09:33:04 +0000 (09:33 +0000)
'gcc-3_2-branch'.

From-SVN: r61095

gcc/testsuite/gcc.c-torture/execute/20030109-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/20030109-1.c b/gcc/testsuite/gcc.c-torture/execute/20030109-1.c
new file mode 100644 (file)
index 0000000..1bea931
--- /dev/null
@@ -0,0 +1,20 @@
+/* PR c/8032 */
+/* Verify that an empty initializer inside a partial
+   parent initializer doesn't confuse GCC.  */
+
+struct X
+{
+  int a;
+  int b;
+  int z[];
+};
+
+struct X x = { .b = 40, .z = {} };
+
+int main ()
+{
+  if (x.b != 40)
+    abort ();
+
+  return 0;
+}