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> 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-1.c: New test
* gcc.dg/wvla-2.c: New test * gcc.dg/wvla-2.c: New test
* gcc.dg/wvla-3.c: New test * gcc.dg/wvla-3.c: New test
...@@ -9,7 +9,7 @@ class A { A (int); }; ...@@ -9,7 +9,7 @@ class A { A (int); };
A::A (int i) 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; ar[0][0] = 0;
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
void void
tdef (int n) 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 a;
A *p; A *p;
p = &a; p = &a;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
void void
tdef (int n) 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 a;
A *p; A *p;
p = &a; 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