aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ext/vla5.C
blob: ca583091769f6da191d567f3e5fcf3e781781998 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/37417
// Testcase by Martin Michlmayr <tbm@cyrius.com>
// { dg-do compile }
// { dg-options "-O" }

void
test (int a)
{
  new (char[a]); // { dg-warning "parentheses" }
}