summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vla5.C
blob: 021d4846946ae8c6ae25661770a5a847f8f26b84 (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]);
}