aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1998-10-11 22:52:49 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-10-11 22:52:49 +0000
commit4f0af2c1e8a5d919c55f1655f546c2fa67a7e7f7 (patch)
treee978bf32af9e68cabddd697e5cf27d5ad1cd280e /gcc
parent44e5b6c1706f81752ebbf6fb233d11605b68c805 (diff)
downloadgcc-4f0af2c1e8a5d919c55f1655f546c2fa67a7e7f7.zip
gcc-4f0af2c1e8a5d919c55f1655f546c2fa67a7e7f7.tar.gz
gcc-4f0af2c1e8a5d919c55f1655f546c2fa67a7e7f7.tar.bz2
init8.C: New test.
* g++.old-deja/g++.other/init8.C: New test. uninitialized automatic array of const is ill-formed From-SVN: r22999
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog3
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/init8.C11
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 81ea86b..84fd30f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,8 @@
1998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * g++.old-deja/g++.other/init8.C: New test. uninitialized
+ automatic array of const is ill-formed
+
* g++.old-deja/g++.pt/ttp53.C: New test. incorrect substitution
of template parameter?
diff --git a/gcc/testsuite/g++.old-deja/g++.other/init8.C b/gcc/testsuite/g++.old-deja/g++.other/init8.C
new file mode 100644
index 0000000..1771fe4
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/init8.C
@@ -0,0 +1,11 @@
+// Build don't link:
+
+// submitted by David C Binderman <dcb@pncl.co.uk>
+
+// According to [dcl.init]/9, this should be ill-formed
+
+void
+f()
+{
+ const int var [ 10 ]; // ERROR - missing initializer - XFAIL *-*-*
+}