repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
new10.C
blob
e19629bc00bdb463ce8ea394c620817d89a01d76
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
}