| 1 |
// { dg-do compile } |
| 2 |
// Contributed by David Daney <daney at gcc dot gnu dot org> |
| 3 |
// PR c++/14181: Cryptic error message for ill-formed new expressions |
| 4 |
|
| 5 |
void f1(void) |
| 6 |
{ |
| 7 |
(void)new (char*)[10]; // { dg-error "parenthesized|parentheses" } |
| 8 |
(void)new char*[10]; |
| 9 |
} |