Home
last modified time | relevance | path

Searched refs:test_convertible (Results 1 – 25 of 35) sorted by relevance

12

/external/llvm-project/libcxx/test/support/test.support/
Dtest_convertible_header.pass.cpp20 static_assert(test_convertible<ImplicitDefault>(), "Must be convertible");
25 static_assert(!test_convertible<ExplicitDefault>(), "Must not be convertible");
30 static_assert(test_convertible<ImplicitInt, int>(), "Must be convertible");
35 static_assert(!test_convertible<ExplicitInt, int>(), "Must not be convertible");
40 static_assert(test_convertible<ImplicitCopy, ImplicitCopy>(), "Must be convertible");
45 static_assert(!test_convertible<ExplicitCopy, ExplicitCopy>(), "Must not be convertible");
50 static_assert(test_convertible<ImplicitMove, ImplicitMove>(), "Must be convertible");
55 static_assert(!test_convertible<ExplicitMove, ExplicitMove>(), "Must not be convertible");
60 static_assert(test_convertible<ImplicitArgs, int, int, int>(), "Must be convertible");
65 static_assert(!test_convertible<ExplicitArgs, int, int, int>(), "Must not be convertible");
/external/libcxx/test/support/test.support/
Dtest_convertible_header.pass.cpp19 static_assert(test_convertible<ImplicitDefault>(), "Must be convertible");
24 static_assert(!test_convertible<ExplicitDefault>(), "Must not be convertible");
29 static_assert(test_convertible<ImplicitInt, int>(), "Must be convertible");
34 static_assert(!test_convertible<ExplicitInt, int>(), "Must not be convertible");
39 static_assert(test_convertible<ImplicitCopy, ImplicitCopy>(), "Must be convertible");
44 static_assert(!test_convertible<ExplicitCopy, ExplicitCopy>(), "Must not be convertible");
49 static_assert(test_convertible<ImplicitMove, ImplicitMove>(), "Must be convertible");
54 static_assert(!test_convertible<ExplicitMove, ExplicitMove>(), "Must not be convertible");
59 static_assert(test_convertible<ImplicitArgs, int, int, int>(), "Must be convertible");
64 static_assert(!test_convertible<ExplicitArgs, int, int, int>(), "Must not be convertible");
/external/llvm-project/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/
DU.pass.cpp53 static_assert(test_convertible<O, From>(), ""); in implicit_conversion()
54 static_assert(!test_convertible<O, void*>(), ""); in implicit_conversion()
55 static_assert(!test_convertible<O, From, int>(), ""); in implicit_conversion()
94 static_assert(!test_convertible<O, std::in_place_t>(), ""); in test_implicit()
95 static_assert(!test_convertible<O, std::in_place_t&>(), ""); in test_implicit()
96 static_assert(!test_convertible<O, const std::in_place_t&>(), ""); in test_implicit()
97 static_assert(!test_convertible<O, std::in_place_t&&>(), ""); in test_implicit()
98 static_assert(!test_convertible<O, const std::in_place_t&&>(), ""); in test_implicit()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/
DU.pass.cpp56 static_assert(test_convertible<O, From>(), ""); in implicit_conversion()
57 static_assert(!test_convertible<O, void*>(), ""); in implicit_conversion()
58 static_assert(!test_convertible<O, From, int>(), ""); in implicit_conversion()
97 static_assert(!test_convertible<O, std::in_place_t>(), ""); in test_implicit()
98 static_assert(!test_convertible<O, std::in_place_t&>(), ""); in test_implicit()
99 static_assert(!test_convertible<O, const std::in_place_t&>(), ""); in test_implicit()
100 static_assert(!test_convertible<O, std::in_place_t&&>(), ""); in test_implicit()
101 static_assert(!test_convertible<O, const std::in_place_t&&>(), ""); in test_implicit()
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/
Denable_reduced_arity_initialization_extension.pass.cpp47 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
53 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
71 static_assert(test_convertible< in test_default_constructible_extension_sfinae()
76 static_assert(test_convertible< in test_default_constructible_extension_sfinae()
99 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
102 static_assert(test_convertible<Tup, E, E>(), ""); in main()
108 static_assert(test_convertible<Tup, E>(), ""); in main()
Ddisable_reduced_arity_initialization_extension.pass.cpp48 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
54 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
88 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
92 static_assert(!test_convertible<Tup, E, E>(), ""); in main()
99 static_assert(!test_convertible<Tup, E>(), ""); in main()
/external/llvm-project/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/
Denable_reduced_arity_initialization_extension.pass.cpp46 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
52 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
70 static_assert(test_convertible< in test_default_constructible_extension_sfinae()
75 static_assert(test_convertible< in test_default_constructible_extension_sfinae()
98 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
101 static_assert(test_convertible<Tup, E, E>(), ""); in main()
107 static_assert(test_convertible<Tup, E>(), ""); in main()
Ddisable_reduced_arity_initialization_extension.pass.cpp47 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
53 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
87 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
91 static_assert(!test_convertible<Tup, E, E>(), ""); in main()
98 static_assert(!test_convertible<Tup, E>(), ""); in main()
/external/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
Din_place_type_init_list_args.pass.cpp56 static_assert(!test_convertible<V, std::in_place_type_t<InitList>, IL>(), in test_ctor_sfinae()
65 !test_convertible<V, std::in_place_type_t<InitList>, IL, int>(), ""); in test_ctor_sfinae()
72 static_assert(!test_convertible<V, std::in_place_type_t<InitListArg>, IL>(), in test_ctor_sfinae()
81 !test_convertible<V, std::in_place_type_t<InitListArg>, IL, int>(), ""); in test_ctor_sfinae()
87 static_assert(!test_convertible<V, std::in_place_type_t<int>, IL>(), ""); in test_ctor_sfinae()
95 !test_convertible<V, std::in_place_type_t<InitListArg>, IL, int>(), ""); in test_ctor_sfinae()
Din_place_type_args.pass.cpp40 static_assert(!test_convertible<V, std::in_place_type_t<int>, int>(), ""); in test_ctor_sfinae()
46 static_assert(!test_convertible<V, std::in_place_type_t<long>, int>(), ""); in test_ctor_sfinae()
53 static_assert(!test_convertible<V, std::in_place_type_t<int *>, int *>(), in test_ctor_sfinae()
60 static_assert(!test_convertible<V, std::in_place_type_t<int>, int>(), ""); in test_ctor_sfinae()
66 static_assert(!test_convertible<V, std::in_place_type_t<int>, int *>(), ""); in test_ctor_sfinae()
73 static_assert(!test_convertible<V, std::in_place_type_t<long long>, int>(), in test_ctor_sfinae()
Din_place_index_init_list_args.pass.cpp55 static_assert(!test_convertible<V, std::in_place_index_t<0>, IL>(), ""); in test_ctor_sfinae()
62 static_assert(!test_convertible<V, std::in_place_index_t<0>, IL, int>(), in test_ctor_sfinae()
69 static_assert(!test_convertible<V, std::in_place_index_t<1>, IL>(), ""); in test_ctor_sfinae()
75 static_assert(!test_convertible<V, std::in_place_index_t<1>, IL, int>(), in test_ctor_sfinae()
82 static_assert(!test_convertible<V, std::in_place_index_t<2>, IL>(), ""); in test_ctor_sfinae()
88 static_assert(!test_convertible<V, std::in_place_index_t<3>, IL>(), ""); in test_ctor_sfinae()
Din_place_index_args.pass.cpp41 static_assert(!test_convertible<V, std::in_place_index_t<0>, int>(), ""); in test_ctor_sfinae()
47 static_assert(!test_convertible<V, std::in_place_index_t<1>, int>(), ""); in test_ctor_sfinae()
53 static_assert(!test_convertible<V, std::in_place_index_t<2>, int *>(), ""); in test_ctor_sfinae()
59 static_assert(!test_convertible<V, std::in_place_index_t<0>, int *>(), ""); in test_ctor_sfinae()
65 static_assert(!test_convertible<V, std::in_place_index_t<3>, int>(), ""); in test_ctor_sfinae()
/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
Din_place_type_args.pass.cpp37 static_assert(!test_convertible<V, std::in_place_type_t<int>, int>(), ""); in test_ctor_sfinae()
43 static_assert(!test_convertible<V, std::in_place_type_t<long>, int>(), ""); in test_ctor_sfinae()
50 static_assert(!test_convertible<V, std::in_place_type_t<int *>, int *>(), in test_ctor_sfinae()
57 static_assert(!test_convertible<V, std::in_place_type_t<int>, int>(), ""); in test_ctor_sfinae()
63 static_assert(!test_convertible<V, std::in_place_type_t<int>, int *>(), ""); in test_ctor_sfinae()
70 static_assert(!test_convertible<V, std::in_place_type_t<long long>, int>(), in test_ctor_sfinae()
Din_place_type_init_list_args.pass.cpp53 static_assert(!test_convertible<V, std::in_place_type_t<InitList>, IL>(), in test_ctor_sfinae()
62 !test_convertible<V, std::in_place_type_t<InitList>, IL, int>(), ""); in test_ctor_sfinae()
69 static_assert(!test_convertible<V, std::in_place_type_t<InitListArg>, IL>(), in test_ctor_sfinae()
78 !test_convertible<V, std::in_place_type_t<InitListArg>, IL, int>(), ""); in test_ctor_sfinae()
84 static_assert(!test_convertible<V, std::in_place_type_t<int>, IL>(), ""); in test_ctor_sfinae()
92 !test_convertible<V, std::in_place_type_t<InitListArg>, IL, int>(), ""); in test_ctor_sfinae()
Din_place_index_init_list_args.pass.cpp52 static_assert(!test_convertible<V, std::in_place_index_t<0>, IL>(), ""); in test_ctor_sfinae()
59 static_assert(!test_convertible<V, std::in_place_index_t<0>, IL, int>(), in test_ctor_sfinae()
66 static_assert(!test_convertible<V, std::in_place_index_t<1>, IL>(), ""); in test_ctor_sfinae()
72 static_assert(!test_convertible<V, std::in_place_index_t<1>, IL, int>(), in test_ctor_sfinae()
79 static_assert(!test_convertible<V, std::in_place_index_t<2>, IL>(), ""); in test_ctor_sfinae()
85 static_assert(!test_convertible<V, std::in_place_index_t<3>, IL>(), ""); in test_ctor_sfinae()
Din_place_index_args.pass.cpp38 static_assert(!test_convertible<V, std::in_place_index_t<0>, int>(), ""); in test_ctor_sfinae()
44 static_assert(!test_convertible<V, std::in_place_index_t<1>, int>(), ""); in test_ctor_sfinae()
50 static_assert(!test_convertible<V, std::in_place_index_t<2>, int *>(), ""); in test_ctor_sfinae()
56 static_assert(!test_convertible<V, std::in_place_index_t<0>, int *>(), ""); in test_ctor_sfinae()
62 static_assert(!test_convertible<V, std::in_place_index_t<3>, int>(), ""); in test_ctor_sfinae()
/external/llvm-project/libcxx/test/std/input.output/filesystems/class.file_status/
Dfile_status.cons.pass.cpp33 static_assert(test_convertible<file_status>(), in main()
44 static_assert(!test_convertible<file_status, file_type>(), in main()
55 static_assert(!test_convertible<file_status, file_type, perms>(), in main()
/external/libcxx/test/std/input.output/filesystems/class.file_status/
Dfile_status.cons.pass.cpp32 static_assert(test_convertible<file_status>(), in main()
43 static_assert(!test_convertible<file_status, file_type>(), in main()
54 static_assert(!test_convertible<file_status, file_type, perms>(), in main()
/external/libcxx/test/support/
Dtest_convertible.hpp23 #error test_convertible.hpp requires C++11 or newer
39 constexpr bool test_convertible() in test_convertible() function
/external/llvm-project/libcxx/test/support/
Dtest_convertible.h22 #error test_convertible.h requires C++11 or newer
38 constexpr bool test_convertible() in test_convertible() function
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
DUTypes.pass.cpp132 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
135 static_assert(!test_convertible<Tup, E, E>(), ""); in main()
141 static_assert(!test_convertible<Tup, E>(), ""); in main()
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
DUTypes.pass.cpp131 static_assert(test_convertible<Tup, E, E, E>(), ""); in main()
134 static_assert(!test_convertible<Tup, E, E>(), ""); in main()
140 static_assert(!test_convertible<Tup, E>(), ""); in main()
/external/llvm-project/libcxx/test/std/utilities/any/any.class/any.cons/
Din_place_type.pass.cpp180 static_assert(!test_convertible<std::any, IT, int>(), ""); in test_constructor_explicit()
182 static_assert(!test_convertible<std::any, IT, int, int, int>(), ""); in test_constructor_explicit()
184 static_assert(!test_convertible<std::any, IT, std::initializer_list<int>&, int>(), ""); in test_constructor_explicit()
/external/libcxx/test/std/utilities/any/any.class/any.cons/
Din_place_type.pass.cpp183 static_assert(!test_convertible<std::any, IT, int>(), ""); in test_constructor_explicit()
185 static_assert(!test_convertible<std::any, IT, int, int, int>(), ""); in test_constructor_explicit()
187 static_assert(!test_convertible<std::any, IT, std::initializer_list<int>&, int>(), ""); in test_constructor_explicit()
/external/libcxx/test/std/utilities/utility/pairs/pairs.pair/
Dconst_first_const_second.pass.cpp45 static_assert(test_convertible<P1, T1Arg, T2>() == CanConvert, ""); in test_sfinae()
47 static_assert(test_convertible<P2, T2, T1Arg>() == CanConvert, ""); in test_sfinae()

12