Home
last modified time | relevance | path

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

/llvm-project/libcxx/test/support/
H A Dvariant_test_helpers.h31 struct MoveThrows { struct
33 MoveThrows() { ++alive; } in MoveThrows() argument
34 MoveThrows(MoveThrows const&) {++alive;} in MoveThrows() argument
35 MoveThrows(MoveThrows&&) { throw 42; } in MoveThrows() function
38 ~MoveThrows() { --alive; } in ~MoveThrows() argument
/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
H A Dcopy.pass.cpp180 struct MoveThrows { struct
182 MoveThrows() { ++alive; } in MoveThrows() argument
183 MoveThrows(const MoveThrows&) { ++alive; } in MoveThrows() function
184 MoveThrows(MoveThrows&&) { throw 42; } in MoveThrows() function
185 MoveThrows& operator=(const MoveThrows&) { return *this; } in operator =() argument
186 MoveThrows& operator=(MoveThrows&&) { throw 42; } in operator =() argument
187 ~MoveThrows() { --alive; } in ~MoveThrows() argument