Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
lvalue2.C
blob: e9074aa6c92a68b749cfd3815d0083453c9e0274 [
file
] [
log
] [
blame
]
// PR c++/50835
struct
A
{};
struct
B
{
explicit
B
(
A
&);
operator
A
&()
const
;
};
void
should_be_lvalue
(
A
&);
template
<typename>
void
f
()
{
A v
;
should_be_lvalue
(
true
?
B
(
v
)
:
v
);
}