Home
last modified time | relevance | path

Searched refs:MoveThrows (Results 1 – 2 of 2) 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() function
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/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() argument
175 MoveThrows(MoveThrows &&) { throw 42; } in MoveThrows() argument
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 …]