Lines Matching refs:MoveThrows
160 struct MoveThrows { struct
162 MoveThrows() { ++alive; } in MoveThrows() argument
163 MoveThrows(const MoveThrows &) { ++alive; } in MoveThrows() argument
164 MoveThrows(MoveThrows &&) { throw 42; } in MoveThrows() function
165 MoveThrows &operator=(const MoveThrows &) { return *this; } in operator =() argument
166 MoveThrows &operator=(MoveThrows &&) { throw 42; } in operator =() argument
167 ~MoveThrows() { --alive; } in ~MoveThrows() argument
170 int MoveThrows::alive = 0;
481 using V = std::variant<int, MoveThrows, std::string>; in test_copy_assignment_different_index()
483 V v2(std::in_place_type<MoveThrows>); in test_copy_assignment_different_index()
484 assert(MoveThrows::alive == 1); in test_copy_assignment_different_index()
489 assert(MoveThrows::alive == 2); in test_copy_assignment_different_index()
514 using V = std::variant<int, MoveThrows, std::string>; in test_copy_assignment_different_index()
515 V v1(std::in_place_type<MoveThrows>); in test_copy_assignment_different_index()