aboutsummaryrefslogtreecommitdiff
path: root/clang/test
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-04-08 18:57:38 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-04-08 18:57:38 +0000
commitc4859f5d784f9f9bc3f8681584e9eeba2d044eb3 (patch)
tree1d611b5c780ebc8e8220cc745f54a88a02cd9f63 /clang/test
parent079a25668ce055de679f6acaf9882bd146fff1b7 (diff)
downloadllvm-c4859f5d784f9f9bc3f8681584e9eeba2d044eb3.zip
llvm-c4859f5d784f9f9bc3f8681584e9eeba2d044eb3.tar.gz
llvm-c4859f5d784f9f9bc3f8681584e9eeba2d044eb3.tar.bz2
Merging r197428:
------------------------------------------------------------------------ r197428 | rtrieu | 2013-12-16 16:41:30 -0500 (Mon, 16 Dec 2013) | 2 lines Fix PR18260 - Make std::move handling in -Wconsumed only trigger on std::move ------------------------------------------------------------------------ llvm-svn: 205783
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaCXX/warn-consumed-analysis.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/warn-consumed-analysis.cpp b/clang/test/SemaCXX/warn-consumed-analysis.cpp
index 64fdc00d..5297981 100644
--- a/clang/test/SemaCXX/warn-consumed-analysis.cpp
+++ b/clang/test/SemaCXX/warn-consumed-analysis.cpp
@@ -793,3 +793,22 @@ void testTemporariesAndOperators2() {
} // end namespace InitializerAssertionFailTest
+
+namespace std {
+ void move();
+ template<class T>
+ void move(T&&);
+}
+
+namespace PR18260 {
+ class X {
+ public:
+ void move();
+ } x;
+
+ void test() {
+ x.move();
+ std::move();
+ std::move(x);
+ }
+} // end namespace PR18260