OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / rv-func3.C
1 // DR 1328
2 // { dg-options -std=c++0x }
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;