Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1607)

Unified Diff: gcc/gcc/testsuite/g++.dg/cpp0x/unnamed_refs.C

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/cpp0x/rv8p.C ('k') | gcc/gcc/testsuite/g++.dg/cpp0x/variadic-ex1.C » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
{
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/cpp0x/rv8p.C ('k') | gcc/gcc/testsuite/g++.dg/cpp0x/variadic-ex1.C » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698