Home
last modified time | relevance | path

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

/external/libcxx/test/support/
Dvariant_test_helpers.hpp33 struct MoveThrows { struct
35 MoveThrows() { ++alive; } in MoveThrows() argument
36 MoveThrows(MoveThrows const&) {++alive;} in MoveThrows() argument
37 MoveThrows(MoveThrows&&) { throw 42; } in MoveThrows() argument
38 MoveThrows& operator=(MoveThrows const&) { return *this; } in operator =() argument
39 MoveThrows& operator=(MoveThrows&&) { throw 42; } in operator =() argument
40 ~MoveThrows() { --alive; } in ~MoveThrows() argument
43 int MoveThrows::alive = 0;
/external/llvm-project/libcxx/test/support/
Dvariant_test_helpers.h41 struct MoveThrows { struct
43 MoveThrows() { ++alive; } in MoveThrows() argument
44 MoveThrows(MoveThrows const&) {++alive;} in MoveThrows() argument
45 MoveThrows(MoveThrows&&) { throw 42; } in MoveThrows() argument
46 MoveThrows& operator=(MoveThrows const&) { return *this; }
47 MoveThrows& operator=(MoveThrows&&) { throw 42; }
48 ~MoveThrows() { --alive; } in ~MoveThrows() argument
51 int MoveThrows::alive = 0;
/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
Dcopy.pass.cpp171 struct MoveThrows { struct
173 MoveThrows() { ++alive; } in MoveThrows() argument
174 MoveThrows(const MoveThrows &) { ++alive; } in MoveThrows() function
175 MoveThrows(MoveThrows &&) { throw 42; } in MoveThrows() function
176 MoveThrows &operator=(const MoveThrows &) { return *this; } in operator =() argument
177 MoveThrows &operator=(MoveThrows &&) { throw 42; } in operator =() argument
178 ~MoveThrows() { --alive; } in ~MoveThrows() argument
181 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 …]
/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
Dcopy.pass.cpp164 struct MoveThrows { struct
166 MoveThrows() { ++alive; } in MoveThrows() function
167 MoveThrows(const MoveThrows &) { ++alive; } in MoveThrows() function
168 MoveThrows(MoveThrows &&) { throw 42; } in MoveThrows() function
169 MoveThrows &operator=(const MoveThrows &) { return *this; } in operator =() argument
170 MoveThrows &operator=(MoveThrows &&) { throw 42; } in operator =() argument
171 ~MoveThrows() { --alive; } in ~MoveThrows() argument
174 int MoveThrows::alive = 0;
485 using V = std::variant<int, MoveThrows, std::string>; in test_copy_assignment_different_index()
487 V v2(std::in_place_type<MoveThrows>); in test_copy_assignment_different_index()
[all …]