mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 12:09:58 +08:00
init8.C: New test.
* g++.old-deja/g++.other/init8.C: New test. uninitialized automatic array of const is ill-formed From-SVN: r22999
This commit is contained in:
parent
44e5b6c170
commit
4f0af2c1e8
@ -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?
|
||||
|
||||
|
11
gcc/testsuite/g++.old-deja/g++.other/init8.C
Normal file
11
gcc/testsuite/g++.old-deja/g++.other/init8.C
Normal file
@ -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 *-*-*
|
||||
}
|
Loading…
Reference in New Issue
Block a user