r242854 - Change a test to follow the formatting of the rest of the tests in the file.
Richard Trieu
rtrieu at google.com
Tue Jul 21 16:38:31 PDT 2015
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 at -1{{redundant move in return statement}}
+ // expected-note at -2{{remove std::move call here}}
+ // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:10-[[@LINE-3]]:20}:""
+ // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:21-[[@LINE-4]]:22}:""
+}
More information about the cfe-commits
mailing list