Home
last modified time | relevance | path

Searched defs: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() 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
/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