Commit 4ca52e9a authored by Hans Wennborg's avatar Hans Wennborg
Browse files

Merging r242854:

------------------------------------------------------------------------
r242854 | rtrieu | 2015-07-21 16:38:30 -0700 (Tue, 21 Jul 2015) | 3 lines

Change a test to follow the formatting of the rest of the tests in the file.
No functional change.

------------------------------------------------------------------------

llvm-svn: 243606
parent 584a5639
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -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}:""
}