| Index: gcc/gcc/testsuite/g++.dg/cpp0x/unnamed_refs.C
|
| diff --git a/gcc/gcc/testsuite/g++.dg/cpp0x/unnamed_refs.C b/gcc/gcc/testsuite/g++.dg/cpp0x/unnamed_refs.C
|
| index 06311856d69b27383b2d60f7d9e7941559b9d588..57d635961ba2275e43862b2fdfd45996bc094022 100644
|
| --- a/gcc/gcc/testsuite/g++.dg/cpp0x/unnamed_refs.C
|
| +++ b/gcc/gcc/testsuite/g++.dg/cpp0x/unnamed_refs.C
|
| @@ -16,7 +16,12 @@ struct A {};
|
| one foo(const A&) {return one();}
|
| two foo(A&&) {return two();}
|
|
|
| -A&& source() {static A a; return a;}
|
| +template<typename _Tp>
|
| +inline _Tp&&
|
| +movel(_Tp& __t)
|
| +{ return static_cast<_Tp&&>(__t); }
|
| +
|
| +A&& source() {static A a; return movel(a);}
|
|
|
| int test1()
|
| {
|
|
|