Debian Codegraph @

gcc/testsuite/g++.dg/ext/vla5.C

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