1 // PR c++/37417 2 // Testcase by Martin Michlmayr <tbm@cyrius.com> 3 // { dg-do compile } 4 // { dg-options "-O" } 5 6 void test(int a)7 test (int a) 8 { 9 new (char[a]); // { dg-warning "parentheses" } 10 } 11