зеркало из https://github.com/microsoft/clang-1.git
Move test, so it actually tests what it is supposed to (given that we don't have an AST verifier).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140620 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
d3c1661593
Коммит
8ed3adec26
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче