Home
last modified time | relevance | path

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

/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
Dconst_Types.fail.cpp22 struct ExplicitCopy { struct
23 ExplicitCopy(int) {} in ExplicitCopy() argument
24 explicit ExplicitCopy(ExplicitCopy const&) {} in ExplicitCopy() argument
27 std::tuple<ExplicitCopy> const_explicit_copy() { in const_explicit_copy()
28 const ExplicitCopy e(42); in const_explicit_copy()
34 std::tuple<ExplicitCopy> non_const_explicit_copy() { in non_const_explicit_copy()
35 ExplicitCopy e(42); in non_const_explicit_copy()
40 std::tuple<ExplicitCopy> const_explicit_copy_no_brace() { in const_explicit_copy_no_brace()
41 const ExplicitCopy e(42); in const_explicit_copy_no_brace()
Dalloc_const_Types.fail.cpp23 struct ExplicitCopy { struct
24 explicit ExplicitCopy(ExplicitCopy const&) {} in ExplicitCopy() function
25 explicit ExplicitCopy(int) {} in ExplicitCopy() argument
28 std::tuple<ExplicitCopy> const_explicit_copy_test() { in const_explicit_copy_test()
29 const ExplicitCopy e(42); in const_explicit_copy_test()
34 std::tuple<ExplicitCopy> non_const_explicity_copy_test() { in non_const_explicity_copy_test()
35 ExplicitCopy e(42); in non_const_explicity_copy_test()
Dalloc_convert_copy.fail.cpp22 struct ExplicitCopy { struct
23 explicit ExplicitCopy(int) {} in ExplicitCopy() argument
24 explicit ExplicitCopy(ExplicitCopy const&) {} in ExplicitCopy() function
28 std::tuple<ExplicitCopy> const_explicit_copy_test() { in const_explicit_copy_test()
34 std::tuple<ExplicitCopy> non_const_explicit_copy_test() { in non_const_explicit_copy_test()
Dalloc_convert_move.fail.cpp22 struct ExplicitCopy { struct
23 explicit ExplicitCopy(int) {} in ExplicitCopy() function
24 explicit ExplicitCopy(ExplicitCopy const&) {} in ExplicitCopy() argument
27 std::tuple<ExplicitCopy> explicit_move_test() { in explicit_move_test()
/external/clang/test/CodeGenCXX/
Deh-aggregated-inits.cpp16 struct ExplicitCopy { struct
19 ExplicitCopy() { id = 15; } in ExplicitCopy() argument
20 ExplicitCopy(const ExplicitCopy &x) { id = 25; } in ExplicitCopy() argument
21 ~ExplicitCopy() { id = 35; } in ~ExplicitCopy() argument
26 ExplicitCopy o2; // non-trivial initialization.
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
Dp11-1y.cpp28 struct ExplicitCopy { struct
29 ExplicitCopy(); // expected-note 2{{not viable}}
30 explicit ExplicitCopy(const ExplicitCopy&);
32 auto init_kind_1 = [ec(ExplicitCopy())] {}; in __anon9e86fe3e0502()
33 auto init_kind_2 = [ec = ExplicitCopy()] {}; // expected-error {{no matching constructor}} in __anon9e86fe3e0602()
40 template void init_kind_template<ExplicitCopy>(); // expected-note {{instantiation of}}
/external/libcxx/test/support/test.support/
Dtest_convertible_header.pass.cpp41 struct ExplicitCopy { struct
42 explicit ExplicitCopy(ExplicitCopy const&) {} in ExplicitCopy() argument
44 static_assert(!test_convertible<ExplicitCopy, ExplicitCopy>(), "Must not be convertible");