Commit 2b8a9b3d by Seongbae Park Committed by Seongbae Park

c90-vla-1.c: Reflect the change of the error message.

2007-03-12  Seongbae Park <seongbae.park@gmail.com>

	* gcc.dg/c90-vla-1.c: Reflect the change of the error message.
	* gcc.dg/c99-vla-1.c: Likewise.
	* g++.dg/ext/vla1.C: Likewise

From-SVN: r122871
parent 7d07e4ea
2007-03-12 Seongbae Park <seongbae.park@gmail.com>
* gcc.dg/c90-vla-1.c: Reflect the change of the error message.
* gcc.dg/c99-vla-1.c: Likewise.
* g++.dg/ext/vla1.C: Likewise
2007-03-12 Seongbae Park <seongbae.park@gmail.com>
* gcc.dg/wvla-1.c: New test
* gcc.dg/wvla-2.c: New test
* gcc.dg/wvla-3.c: New test
......@@ -9,7 +9,7 @@ class A { A (int); };
A::A (int i)
{
int ar[1][i]; // { dg-error "variable-size array" }
int ar[1][i]; // { dg-error "variable length array" }
ar[0][0] = 0;
}
......
......@@ -5,7 +5,7 @@
void
tdef (int n)
{
typedef int A[n]; /* { dg-error "forbids variable-size array" } */
typedef int A[n]; /* { dg-error "forbids variable length array" } */
A a;
A *p;
p = &a;
......
......@@ -5,7 +5,7 @@
void
tdef (int n)
{
typedef int A[n]; /* { dg-bogus "forbids variable-size array" } */
typedef int A[n]; /* { dg-bogus "forbids variable length array" } */
A a;
A *p;
p = &a;
......
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