Searched refs:MoveThrows (Results 1 – 2 of 2) sorted by relevance
42 struct MoveThrows { struct44 MoveThrows() { ++alive; } in MoveThrows() argument45 MoveThrows(MoveThrows const&) {++alive;} in MoveThrows() argument46 MoveThrows(MoveThrows&&) { throw 42; } in MoveThrows() argument47 MoveThrows& operator=(MoveThrows const&) { return *this; }48 MoveThrows& operator=(MoveThrows&&) { throw 42; }49 ~MoveThrows() { --alive; } in ~MoveThrows() argument52 int MoveThrows::alive = 0;
160 struct MoveThrows { struct162 MoveThrows() { ++alive; } in MoveThrows() function163 MoveThrows(const MoveThrows &) { ++alive; } in MoveThrows() argument164 MoveThrows(MoveThrows &&) { throw 42; } in MoveThrows() function165 MoveThrows &operator=(const MoveThrows &) { return *this; } in operator =() argument166 MoveThrows &operator=(MoveThrows &&) { throw 42; } in operator =() argument167 ~MoveThrows() { --alive; } in ~MoveThrows() argument170 int MoveThrows::alive = 0;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()[all …]