Searched refs:MoveThrows (Results 1 – 2 of 2) sorted by relevance
33 struct MoveThrows { struct35 MoveThrows() { ++alive; } in MoveThrows() argument36 MoveThrows(MoveThrows const&) {++alive;} in MoveThrows() argument37 MoveThrows(MoveThrows&&) { throw 42; } in MoveThrows() function38 MoveThrows& operator=(MoveThrows const&) { return *this; } in operator =() argument39 MoveThrows& operator=(MoveThrows&&) { throw 42; } in operator =() argument40 ~MoveThrows() { --alive; } in ~MoveThrows() argument43 int MoveThrows::alive = 0;
171 struct MoveThrows { struct173 MoveThrows() { ++alive; } in MoveThrows() argument174 MoveThrows(const MoveThrows &) { ++alive; } in MoveThrows() argument175 MoveThrows(MoveThrows &&) { throw 42; } in MoveThrows() argument176 MoveThrows &operator=(const MoveThrows &) { return *this; } in operator =() argument177 MoveThrows &operator=(MoveThrows &&) { throw 42; } in operator =() argument178 ~MoveThrows() { --alive; } in ~MoveThrows() argument181 int MoveThrows::alive = 0;492 using V = std::variant<int, MoveThrows, std::string>; in test_copy_assignment_different_index()494 V v2(std::in_place_type<MoveThrows>); in test_copy_assignment_different_index()[all …]