Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-func3.C
blob: 673830350a10a5f4f187c63daae26e7f03285b67 [
file
] [
log
] [
blame
]
// DR 1328
// { dg-do compile { target c++11 } }
template
<
class
T
>
struct
A
{
operator
T
&();
// #1
operator
T
&&();
// #2
};
typedef
int
Fn
();
A
<
Fn
>
a
;
Fn
&&
f
=
a
;