OSDN Git Service

* g++.old-deja/g++.other/init8.C: New test. uninitialized
authoroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Oct 1998 22:52:49 +0000 (22:52 +0000)
committeroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Oct 1998 22:52:49 +0000 (22:52 +0000)
  automatic array of const is ill-formed

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22999 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/init8.C [new file with mode: 0644]

index 81ea86b..84fd30f 100644 (file)
@@ -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 (file)
index 0000000..1771fe4
--- /dev/null
@@ -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 *-*-*
+}