Lines Matching refs:CopyCannotThrow
149 struct CopyCannotThrow { struct
151 CopyCannotThrow() { ++alive; } in CopyCannotThrow() argument
152 CopyCannotThrow(const CopyCannotThrow &) noexcept { ++alive; } in CopyCannotThrow() function
153 CopyCannotThrow(CopyCannotThrow &&) noexcept { assert(false); } in CopyCannotThrow() argument
154 CopyCannotThrow &operator=(const CopyCannotThrow &) noexcept = default;
155 CopyCannotThrow &operator=(CopyCannotThrow &&) noexcept { assert(false); return *this; } in operator =() argument
158 int CopyCannotThrow::alive = 0;
493 using V = std::variant<int, CopyCannotThrow, std::string>; in test_copy_assignment_different_index()
495 V v2(std::in_place_type<CopyCannotThrow>); in test_copy_assignment_different_index()
496 assert(CopyCannotThrow::alive == 1); in test_copy_assignment_different_index()
500 assert(CopyCannotThrow::alive == 2); in test_copy_assignment_different_index()