summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/new10.C
blob: e19629bc00bdb463ce8ea394c620817d89a01d76 (plain)
1
2
3
4
5
6
7
8
// PR c++/14452
// We got confused trying to preevaluate the new-initializer.

struct S {}; 
void foo (bool b) 
{ 
  new S(b ? S() : S()); 
}