summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/new3.C
blob: d8faed2949310d9db0392bb62194cd7ab3a20d41 (plain)
1
2
3
4
// PR c++/28593
// { dg-do compile }

void *p = new (::X;  // { dg-error "declared|type-specifier" }