☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-func3.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/rv-func3.C
code
plain
raw
1
// DR 1328
2
// { dg-do compile { target c++11 } }
3
4
template <class T> struct A {
5
operator T&(); // #1
6
operator T&&(); // #2
7
};
8
typedef int Fn();
9
A<Fn> a;
10
Fn&& f = a;