Home
last modified time | relevance | path

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

/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
Dcopy.pass.cpp160 struct CopyCannotThrow { struct
162 CopyCannotThrow() { ++alive; } in CopyCannotThrow() function
163 CopyCannotThrow(const CopyCannotThrow &) noexcept { ++alive; } in CopyCannotThrow() function
164 CopyCannotThrow(CopyCannotThrow &&) noexcept { assert(false); } in CopyCannotThrow() function
165 CopyCannotThrow &operator=(const CopyCannotThrow &) noexcept = default;
166 CopyCannotThrow &operator=(CopyCannotThrow &&) noexcept { assert(false); return *this; } in operator =() argument
169 int CopyCannotThrow::alive = 0;
504 using V = std::variant<int, CopyCannotThrow, std::string>; in test_copy_assignment_different_index()
506 V v2(std::in_place_type<CopyCannotThrow>); in test_copy_assignment_different_index()
507 assert(CopyCannotThrow::alive == 1); in test_copy_assignment_different_index()
[all …]