From 4f0af2c1e8a5d919c55f1655f546c2fa67a7e7f7 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 11 Oct 1998 22:52:49 +0000 Subject: [PATCH] init8.C: New test. * g++.old-deja/g++.other/init8.C: New test. uninitialized automatic array of const is ill-formed From-SVN: r22999 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/g++.old-deja/g++.other/init8.C | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/init8.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 81ea86bbf0a..84fd30f5f22 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 1998-10-12 Alexandre Oliva + * 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 00000000000..1771fe4c3fa --- /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 + +// According to [dcl.init]/9, this should be ill-formed + +void +f() +{ + const int var [ 10 ]; // ERROR - missing initializer - XFAIL *-*-* +} -- 2.30.2