Commit 70cf82bc by Geoffrey Keating Committed by Geoffrey Keating

940510-1.c: Update to test c89 functionality.

	* 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
parent 8dc4676d
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.
......@@ -160,7 +169,6 @@
* 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.
......
......@@ -22,6 +22,6 @@ struct PLAYBOOK playbook =
{
"BookName",
{
{ 1, "PName0" }, /* { dg-warning "excess elements in array initializer|(near initialization for `playbook.Play')" } */
{ 1, "PName0" },
}
};
/* { dg-do compile } */
/* { dg-options "-std=c89 -pedantic" } */
struct { int a[]; } x = { 0 }; /* { dg-error "(does not support)|(near initialization)" } */
struct { int a[]; } x = { 0 }; /* { dg-error "array size missing" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment