940510-1.c: Update to test c89 functionality.
authorGeoffrey Keating <geoffk@redhat.com>
Tue, 28 Nov 2000 22:25:51 +0000 (22:25 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 28 Nov 2000 22:25:51 +0000 (22:25 +0000)
* gcc.dg/noncompile/940510-1.c: Update to test c89 functionality.
Move from here ...
* gcc.dg/940510-1.c: ... to here.

* gcc.dg/20000926-1.c: GNU C now allows initializations of
zero-size arrays in toplevel structures.

From-SVN: r37830

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20000926-1.c
gcc/testsuite/gcc.dg/940510-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/noncompile/940510-1.c [deleted file]

index f8544732f717980a55d4a396f18718f5b2801776..6079e4a3bf67e0d9c97316bd57f600e09db566a9 100644 (file)
@@ -1,3 +1,12 @@
+2000-11-28  Geoffrey Keating  <geoffk@redhat.com>
+
+       * gcc.dg/noncompile/940510-1.c: Update to test c89 functionality.
+       Move from here ...
+       * gcc.dg/940510-1.c: ... to here.
+
+       * gcc.dg/20000926-1.c: GNU C now allows initializations of
+       zero-size arrays in toplevel structures.
+
 2000-11-28  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.c-torture/execute/loop-8.c: New test.
 
        * gcc.dg/20001117-1.c: New test.
 
->>>>>>> 1.855
 2000-11-18  Richard Henderson  <rth@redhat.com>
 
        * gcc.c-torture/execute/nestfunc-3.c (main): Mask result to 32 bits.
index 630cbcb55b645d3cda6d94af4fa626214207bd36..afaed989c21f09cc4b2e7486bacdcfda4e1c6969 100644 (file)
@@ -22,6 +22,6 @@ struct PLAYBOOK playbook  =
 {
   "BookName",
   {
-    { 1, "PName0" }, /* { dg-warning "excess elements in array initializer|(near initialization for `playbook.Play')" } */
+    { 1, "PName0" },
   }
 };
diff --git a/gcc/testsuite/gcc.dg/940510-1.c b/gcc/testsuite/gcc.dg/940510-1.c
new file mode 100644 (file)
index 0000000..5f241f5
--- /dev/null
@@ -0,0 +1,3 @@
+/* { dg-do compile } */
+/* { dg-options "-std=c89 -pedantic" } */
+struct { int a[]; } x = { 0 }; /* { dg-error "(does not support)|(near initialization)" } */
diff --git a/gcc/testsuite/gcc.dg/noncompile/940510-1.c b/gcc/testsuite/gcc.dg/noncompile/940510-1.c
deleted file mode 100644 (file)
index 485c3d2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-struct { int a[]; } x = { 0 }; /* { dg-error "array size missing" } */