Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
condexpr1.C
blob: 1ca7dbfa64600458c13f5ec5be5f928a0b2662b1 [
file
] [
log
] [
blame
]
// PR c++/10247
// Origin: Lars Gullik Bjønes <larsbj@lyx.org>
// { dg-do compile }
struct
A
{};
A
const
foo
();
void
bar
()
{
A a
=
foo
();
A b
=
true
?
a
:
foo
();
}