Home
last modified time | relevance | path

Searched refs:CopyThrows (Results 1 – 3 of 3) sorted by relevance

/external/libcxx/test/support/
Dvariant_test_helpers.hpp27 struct CopyThrows { struct
28 CopyThrows() = default;
29 CopyThrows(CopyThrows const&) { throw 42; } in CopyThrows() argument
30 CopyThrows& operator=(CopyThrows const&) { throw 42; } in operator =() argument
/external/libcxx/test/std/utilities/function.objects/func.invoke/
Dinvoke.pass.cpp307 struct CopyThrows { struct
308 CopyThrows() {} in CopyThrows() argument
309 CopyThrows(CopyThrows const&) {} in CopyThrows() argument
310 CopyThrows(CopyThrows&&) noexcept {} in CopyThrows() argument
315 void operator()(CopyThrows) noexcept {} in operator ()()
329 CopyThrows arg; ((void)arg); // suppress unused warning in noexcept_test()
/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
Dcopy.pass.cpp154 struct CopyThrows { struct
155 CopyThrows() = default;
156 CopyThrows(const CopyThrows &) { throw 42; } in CopyThrows() argument
157 CopyThrows &operator=(const CopyThrows &) { throw 42; } in operator =() argument
479 using V = std::variant<int, CopyThrows, std::string>; in test_copy_assignment_different_index()
481 V v2(std::in_place_type<CopyThrows>); in test_copy_assignment_different_index()
514 using V = std::variant<int, CopyThrows, std::string>; in test_copy_assignment_different_index()
515 V v1(std::in_place_type<CopyThrows>); in test_copy_assignment_different_index()