Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-cond2.C
blob: e231b11e1a6dc67a283b0d1d9df566e45fcb51ca [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<
class
T
,
class
U
>
struct
ST
;
template
<
class
T
>
struct
ST
<
T
,
T
>
{};
int
&&
f
();
const
int
&&
g
();
void
h
(
bool
b
)
{
ST
<
decltype
(
b
?
f
()
:
g
()),
const
int
&&>();
}