[PR c++/84729] reject parenthesized array init
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / arrnew2.C
blobaff6b9c7c63b4e1e19e57d000635e34ec1c70a98
1 // { dg-do compile }
2 // { dg-options "-w -fpermissive" }
4 int *foo = new int[1](42); // { dg-error "parenthesized" }
5 int main ()
7   return foo[0] != 42;