repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[PR c++/84729] reject parenthesized array init
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ext
/
arrnew2.C
blob
aff6b9c7c63b4e1e19e57d000635e34ec1c70a98
1
// { dg-do compile }
2
// { dg-options "-w -fpermissive" }
3
4
int *foo = new int[1](42); // { dg-error "parenthesized" }
5
int main ()
6
{
7
return foo[0] != 42;
8
}