Home
last modified time | relevance | path

Searched refs:MoveThrows (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/libcxx/test/support/
H A Dvariant_test_helpers.h42 struct MoveThrows { struct
44 MoveThrows() { ++alive; } in MoveThrows() argument
45 MoveThrows(MoveThrows const&) {++alive;} in MoveThrows() argument
46 MoveThrows(MoveThrows&&) { throw 42; } in MoveThrows() argument
47 MoveThrows& operator=(MoveThrows const&) { return *this; }
48 MoveThrows& operator=(MoveThrows&&) { throw 42; }
49 ~MoveThrows() { --alive; } in ~MoveThrows() argument
52 int MoveThrows::alive = 0;
/llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
H A Dcopy.pass.cpp160 struct MoveThrows { struct
162 MoveThrows() { ++alive; } in MoveThrows() function
163 MoveThrows(const MoveThrows &) { ++alive; } in MoveThrows() function
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;
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 …]