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

Unified Diff: gcc/gcc/testsuite/g++.dg/cpp0x/rv7n.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/rv5n.C ('k') | gcc/gcc/testsuite/g++.dg/cpp0x/rv8p.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/rv7n.C
diff --git a/gcc/gcc/testsuite/g++.dg/cpp0x/rv7n.C b/gcc/gcc/testsuite/g++.dg/cpp0x/rv7n.C
index 9d81bd5d7222ff3f254ed6a6968e2a5c18fa35e6..102730bc7f02a082006c6898338ef4f89289d48b 100644
--- a/gcc/gcc/testsuite/g++.dg/cpp0x/rv7n.C
+++ b/gcc/gcc/testsuite/g++.dg/cpp0x/rv7n.C
@@ -48,6 +48,24 @@ int test7_1234567()
return 0;
}
+one sink_7_1235678( A&);
+two sink_7_1235678(const A&);
+three sink_7_1235678(volatile A&);
+five sink_7_1235678( A&&);
+six sink_7_1235678(const A&&);
+seven sink_7_1235678(volatile A&&);
+eight sink_7_1235678(const volatile A&&); // { dg-message "" }
+
+int test7_1235678()
+{
+ A a;
+ const A ca = a;
+ volatile A va;
+ const volatile A cva = a;
+ sink_7_1235678(cva); // { dg-error "lvalue" }
+ return 0;
+}
+
two sink_7_2345678(const A&); // { dg-message "candidates" }
three sink_7_2345678(volatile A&); // { dg-message "note" }
four sink_7_2345678(const volatile A&); // { dg-message "note" }
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/cpp0x/rv5n.C ('k') | gcc/gcc/testsuite/g++.dg/cpp0x/rv8p.C » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698