Move test, so it actually tests what it is supposed to (given that we don't have an AST verifier).

llvm-svn: 140620
This commit is contained in:
Eli Friedman 2011-09-27 18:55:06 +00:00
parent d9f23c4f6b
commit ed47406871
2 changed files with 8 additions and 8 deletions

View File

@ -101,3 +101,11 @@ namespace test1 {
// CHECK-NEXT: ret void
B::B(int i) : a(move(i)) {}
}
// PR11009
struct MoveConvertible {
operator int&& () const;
};
void moveConstruct() {
(void)(int)MoveConvertible();
}

View File

@ -92,11 +92,3 @@ MoveOnly returningNonEligible() {
else // Construction from different type can't be elided
return i; // expected-error {{no viable conversion from 'int' to 'MoveOnly'}}
}
// PR11009
struct MoveConvertible {
operator int&& () const;
};
void moveConstruct() {
(void)(int)MoveConvertible();
}