Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/test/support/
H A Dvariant_test_helpers.h36 struct CopyThrows { struct
37 CopyThrows() = default;
38 CopyThrows(CopyThrows const&) { throw 42; } in CopyThrows() function
39 CopyThrows& operator=(CopyThrows const&) { throw 42; }
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.invoke/
H A Dinvoke.pass.cpp312 struct CopyThrows { struct
313 CopyThrows() {} in CopyThrows() argument
314 CopyThrows(CopyThrows const&) {} in CopyThrows() function
315 CopyThrows(CopyThrows&&) noexcept {} in CopyThrows() function
320 void operator()(CopyThrows) noexcept {} in operator ()()
334 CopyThrows arg; ((void)arg); // suppress unused warning in noexcept_test()
/llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
H A Dcopy.pass.cpp143 struct CopyThrows { struct
144 CopyThrows() = default;
145 CopyThrows(const CopyThrows &) { throw 42; } in CopyThrows() argument
146 CopyThrows &operator=(const CopyThrows &) { throw 42; } in operator =() argument
468 using V = std::variant<int, CopyThrows, std::string>; in test_copy_assignment_different_index()
470 V v2(std::in_place_type<CopyThrows>); in test_copy_assignment_different_index()
503 using V = std::variant<int, CopyThrows, std::string>; in test_copy_assignment_different_index()
504 V v1(std::in_place_type<CopyThrows>); in test_copy_assignment_different_index()