summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-17 08:02:18 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-17 08:02:18 +0000
commit89011aed2df43a3ea68ba208d8cacdb9d52a61c1 (patch)
tree0e4e7c592b1f4f2f355bf94198a094c3011efe44 /gcc/testsuite/g++.dg/init
parentdc17fc09fde393a52f5a0bcd4302548676589857 (diff)
downloadgcc-89011aed2df43a3ea68ba208d8cacdb9d52a61c1.tar.gz
2012-12-17 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 194546 using svnmerge.py git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@194551 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/init')
-rw-r--r--gcc/testsuite/g++.dg/init/array21.C2
-rw-r--r--gcc/testsuite/g++.dg/init/array32.C7
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/init/array21.C b/gcc/testsuite/g++.dg/init/array21.C
index f41ce86b1d9..5438af1d477 100644
--- a/gcc/testsuite/g++.dg/init/array21.C
+++ b/gcc/testsuite/g++.dg/init/array21.C
@@ -2,6 +2,6 @@
void foo()
{
- const int x[] = 0; // { dg-error "size" }
+ const int x[] = 0; // { dg-error "initializer" }
++x;
}
diff --git a/gcc/testsuite/g++.dg/init/array32.C b/gcc/testsuite/g++.dg/init/array32.C
new file mode 100644
index 00000000000..06b27a94a8a
--- /dev/null
+++ b/gcc/testsuite/g++.dg/init/array32.C
@@ -0,0 +1,7 @@
+// PR c++/42315
+
+extern int x[];
+
+int i = x[0];
+
+int x[] = 0; // { dg-error "" }