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;
111 struct MoveThrows { struct113 MoveThrows() { ++alive; } in MoveThrows() function114 MoveThrows(const MoveThrows &) { ++alive; } in MoveThrows() function115 MoveThrows(MoveThrows &&) { throw 42; } in MoveThrows() function116 MoveThrows &operator=(const MoveThrows &) { return *this; } in operator =() argument117 MoveThrows &operator=(MoveThrows &&) { throw 42; } in operator =() argument118 ~MoveThrows() { --alive; } in ~MoveThrows() argument121 int MoveThrows::alive = 0;350 using V = std::variant<int, MoveThrows, std::string>; in test_copy_assignment_different_index()352 V v2(std::in_place_type<MoveThrows>); in test_copy_assignment_different_index()[all …]