Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/test/support/
H A Dexperimental_any_helpers.h294 struct throws_on_move struct
299 explicit throws_on_move(int val = 0) : value(val) { ++count; } in value() argument
301 throws_on_move(throws_on_move const & other) { in throws_on_move() function
306 throws_on_move(throws_on_move &&) { in throws_on_move() function
310 ~throws_on_move() { in ~throws_on_move() argument
314 throws_on_move& operator=(throws_on_move const&) = delete;
315 throws_on_move& operator=(throws_on_move &&) = delete; argument
318 int throws_on_move::count = 0;
H A Dany_helpers.h350 struct throws_on_move struct
358 explicit throws_on_move(int val = 0) : value(val) { ++count; } in value() argument
359 explicit throws_on_move(int, int val, int) : value(val) { ++count; } in throws_on_move() argument
360 throws_on_move(throws_on_move const & other) { in throws_on_move() function
365 throws_on_move(throws_on_move &&) { in throws_on_move() argument
369 ~throws_on_move() { in ~throws_on_move() argument
373 throws_on_move& operator=(throws_on_move const&) = delete;
374 throws_on_move& operator=(throws_on_move &&) = delete; argument
377 int throws_on_move::count = 0;
378 int throws_on_move::copied = 0;
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.cons/
H A Dmove.pass.cpp33 assert(throws_on_move::count == 0); in test_move_does_not_throw()
35 throws_on_move v(42); in test_move_does_not_throw()
37 assert(throws_on_move::count == 2); in test_move_does_not_throw()
43 assertContains<throws_on_move>(a2, 42); in test_move_does_not_throw()
47 assert(throws_on_move::count == 1); in test_move_does_not_throw()
50 assert(throws_on_move::count == 0); in test_move_does_not_throw()
H A Dvalue.pass.cpp58 assert(throws_on_move::count == 0); in test_move_value_throws()
60 throws_on_move v; in test_move_value_throws()
61 assert(throws_on_move::count == 1); in test_move_value_throws()
70 assert(throws_on_move::count == 1); in test_move_value_throws()
72 assert(throws_on_move::count == 0); in test_move_value_throws()
H A Din_place_type.pass.cpp187 test_in_place_type<throws_on_move>(); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.nonmembers/
H A Dmake_any.pass.cpp130 test_make_any_type<throws_on_move>(); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.assign/
H A Dvalue.pass.cpp206 test_assign_throws<throws_on_move, /* Move = */ true>(); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.modifiers/
H A Demplace.pass.cpp275 test_emplace_type<throws_on_move>(); in main()