diff options
author | Seongbae Park <seongbae.park@gmail.com> | 2007-03-12 22:37:51 +0000 |
---|---|---|
committer | Seongbae Park <spark@gcc.gnu.org> | 2007-03-12 22:37:51 +0000 |
commit | 2b8a9b3de0bd1c00a604b411b072862e9e02ac70 (patch) | |
tree | 5a1fbbd94003683aaf419bd43bad5cb9a64969b5 | |
parent | 7d07e4ea35689b814f1740706137739fa76ddae2 (diff) | |
download | gcc-2b8a9b3de0bd1c00a604b411b072862e9e02ac70.zip gcc-2b8a9b3de0bd1c00a604b411b072862e9e02ac70.tar.gz gcc-2b8a9b3de0bd1c00a604b411b072862e9e02ac70.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/vla1.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/c90-vla-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/c99-vla-1.c | 2 |
4 files changed, 9 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3925c55..3eb5ad1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,11 @@ 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 diff --git a/gcc/testsuite/g++.dg/ext/vla1.C b/gcc/testsuite/g++.dg/ext/vla1.C index f2238c2..fad67ce 100644 --- a/gcc/testsuite/g++.dg/ext/vla1.C +++ b/gcc/testsuite/g++.dg/ext/vla1.C @@ -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; } diff --git a/gcc/testsuite/gcc.dg/c90-vla-1.c b/gcc/testsuite/gcc.dg/c90-vla-1.c index c8c93c7..2d9b5f1 100644 --- a/gcc/testsuite/gcc.dg/c90-vla-1.c +++ b/gcc/testsuite/gcc.dg/c90-vla-1.c @@ -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; diff --git a/gcc/testsuite/gcc.dg/c99-vla-1.c b/gcc/testsuite/gcc.dg/c99-vla-1.c index 0378ce3..4a3a0f8 100644 --- a/gcc/testsuite/gcc.dg/c99-vla-1.c +++ b/gcc/testsuite/gcc.dg/c99-vla-1.c @@ -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; |