Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
&&>();
}