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

Unified Diff: gcc/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.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/rv-reinterpret.C ('k') | gcc/gcc/testsuite/g++.dg/cpp0x/rv1n.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/rv-trivial-bug.C
diff --git a/gcc/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C b/gcc/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C
index de52d0f48f64169cdc5066982548f3302d692bd1..beb8acb5a501a766d580c9b740156875bc666b0d 100644
--- a/gcc/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C
+++ b/gcc/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C
@@ -19,7 +19,8 @@ int test2()
base2 b2(b);
assert(move_construct == 0);
base2 b3(static_cast<base2&&>(b));
- assert(move_construct == 1);
+ base2 b4 = static_cast<base2&&>(b);
+ assert(move_construct == 2);
b = b2;
assert(move_assign == 0);
b = static_cast<base2&&>(b2);
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/cpp0x/rv-reinterpret.C ('k') | gcc/gcc/testsuite/g++.dg/cpp0x/rv1n.C » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698