Author: rtrieu
Date: Tue Jul 21 18:38:30 2015
New Revision: 242854

URL: http://llvm.org/viewvc/llvm-project?rev=242854&view=rev
Log:
Change a test to follow the formatting of the rest of the tests in the file.
No functional change.

Modified:
    cfe/trunk/test/SemaCXX/warn-redundant-move.cpp

Modified: cfe/trunk/test/SemaCXX/warn-redundant-move.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/warn-redundant-move.cpp?rev=242854&r1=242853&r2=242854&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/warn-redundant-move.cpp (original)
+++ cfe/trunk/test/SemaCXX/warn-redundant-move.cpp Tue Jul 21 18:38:30 2015
@@ -91,9 +91,14 @@ C test4(A& a1, B& b1) {
   return std::move(b2);
 }
 
-//PR23819
-struct X {};
-X g();
-void h(X&&);
-X f(X x) { return std::move(x); } //expected-warning{{redundant move in return 
statement}} \
-                                  //expected-note{{remove std::move call here}}
+// PR23819, case 2
+struct D {};
+D test5(D d) {
+  return d;
+
+  return std::move(d);
+  // expected-warning@-1{{redundant move in return statement}}
+  // expected-note@-2{{remove std::move call here}}
+  // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:10-[[@LINE-3]]:20}:""
+  // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:21-[[@LINE-4]]:22}:""
+}


_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to