Searched refs:throws_on_move (Results 1 – 4 of 4) sorted by relevance
291 struct throws_on_move struct296 explicit throws_on_move(int val = 0) : value(val) { ++count; } in value() argument298 throws_on_move(throws_on_move const & other) { in throws_on_move() argument303 throws_on_move(throws_on_move &&) { in throws_on_move() argument307 ~throws_on_move() { in ~throws_on_move() argument311 throws_on_move& operator=(throws_on_move const&) = delete;312 throws_on_move& operator=(throws_on_move &&) = delete; argument315 int throws_on_move::count = 0;
34 assert(throws_on_move::count == 0); in test_move_does_not_throw()36 throws_on_move v(42); in test_move_does_not_throw()38 assert(throws_on_move::count == 2); in test_move_does_not_throw()44 assertContains<throws_on_move>(a2, 42); in test_move_does_not_throw()48 assert(throws_on_move::count == 1); in test_move_does_not_throw()51 assert(throws_on_move::count == 0); in test_move_does_not_throw()
59 assert(throws_on_move::count == 0); in test_move_value_throws()61 throws_on_move v; in test_move_value_throws()62 assert(throws_on_move::count == 1); in test_move_value_throws()71 assert(throws_on_move::count == 1); in test_move_value_throws()73 assert(throws_on_move::count == 0); in test_move_value_throws()
176 test_assign_throws<throws_on_move, /* Move = */ true>(); in main()