forked from OSchip/llvm-project
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:
parent
d9f23c4f6b
commit
ed47406871
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue