Debian Codegraph @

gcc/testsuite/g++.dg/init/new20.C

raw
1 // PR c++/31743
2 typedef int A[];
3 A* p = new A; // { dg-error "invalid use of array with unspecified bounds" }
4 A* q = new (A); // { dg-error "invalid use of array with unspecified bounds" }
5
6