Debian Codegraph @

gcc/testsuite/g++.dg/init/new10.C

raw
1 // PR c++/14452
2 // We got confused trying to preevaluate the new-initializer.
3
4 struct S {};
5 void foo (bool b)
6 {
7 new S(b ? S() : S());
8 }