Home
last modified time | relevance | path

Searched refs:TestType (Results 1 – 25 of 46) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAnyTest.cpp130 struct TestType { in TEST() struct
131 TestType() = default; in TEST()
132 TestType(const TestType &Other) in TEST() argument
134 TestType(TestType &&Other) : Copies(Other.Copies), Moves(Other.Moves + 1) {} in TEST() argument
140 TestType T1 = llvm::any_cast<TestType>(Any{TestType()}); in TEST()
145 Any A{TestType()}; in TEST()
146 TestType T2 = llvm::any_cast<TestType>(A); in TEST()
151 TestType T3 = llvm::any_cast<TestType>(std::move(A)); in TEST()
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/function.objects/func.require/
H A Dbullet_4_5_6.pass.cpp63 typedef TestMemberObject<ObjectType> TestType; typedef
68 typedef DerivedFromType<TestType> Derived; in doTest()
69 TestType obj; in doTest()
70 TestType* obj_ptr = &obj; in doTest()
73 DerefToType<TestType> dref; in doTest()
74 DerefPropType<TestType> dref2; in doTest()
75 std::reference_wrapper<TestType> rref(obj); in doTest()
81 MemPtr M = &TestType::object; in doTest()
96 CMemPtr M = &TestType::object; in doTest()
111 VMemPtr M = &TestType::object; in doTest()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
H A Dmake_from_tuple.pass.cpp163 struct TestType { in test_noexcept() struct
164 TestType(int, NothrowMoveable) noexcept {} in test_noexcept() argument
165 TestType(int, int, int) noexcept(false) {} in test_noexcept() function
166 TestType(long, long, long) noexcept {} in test_noexcept() function
172 ASSERT_NOT_NOEXCEPT(std::make_from_tuple<TestType>(ctup)); in test_noexcept()
173 LIBCPP_ASSERT_NOEXCEPT(std::make_from_tuple<TestType>(std::move(tup))); in test_noexcept()
179 ASSERT_NOT_NOEXCEPT(std::make_from_tuple<TestType>(ctup)); in test_noexcept()
185 ASSERT_NOT_NOEXCEPT(std::make_from_tuple<TestType>(tup)); in test_noexcept()
190 LIBCPP_ASSERT_NOEXCEPT(std::make_from_tuple<TestType>(tup)); in test_noexcept()
195 ASSERT_NOT_NOEXCEPT(std::make_from_tuple<TestType>(tup)); in test_noexcept()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/
H A Dcopy.pass.cpp81 using T = TestTypes::TestType; in test_reference_extension()
129 using T = TestTypes::TestType; in main()
137 TestTypes::TestType::reset(); in main()
139 using T = TestTypes::TestType; in main()
150 TestTypes::TestType::reset(); in main()
153 test<TestType>(); in main()
154 test<TestType>(42); in main()
158 test<TestType>(); in main()
159 test<TestType>(42); in main()
H A Dmove.pass.cpp87 using T = TestTypes::TestType; in test_reference_extension()
162 using T = TestTypes::TestType; in main()
171 TestTypes::TestType::reset(); in main()
173 using T = TestTypes::TestType; in main()
187 TestTypes::TestType::reset(); in main()
190 test<TestType>(); in main()
191 test<TestType>(42); in main()
195 test<TestType>(); in main()
196 test<TestType>(42); in main()
H A Drvalue_T.pass.cpp69 typedef TestTypes::TestType T; in main()
78 typedef ExplicitTestTypes::TestType T; in main()
88 typedef TestTypes::TestType T; in main()
99 typedef ConstexprTestTypes::TestType T; in main()
111 typedef ConstexprTestTypes::TestType T; in main()
123 typedef ExplicitConstexprTestTypes::TestType T; in main()
H A DU.pass.cpp82 using T = TrivialTestTypes::TestType; in test_implicit()
86 using T = TestTypes::TestType; in test_implicit()
113 using T = ExplicitTrivialTestTypes::TestType; in test_explicit()
117 using T = ExplicitConstexprTestTypes::TestType; in test_explicit()
122 using T = ExplicitTestTypes::TestType; in test_explicit()
H A Dconst_T.pass.cpp63 typedef TestTypes::TestType T; in main()
73 typedef ExplicitTestTypes::TestType T; in main()
84 typedef ConstexprTestTypes::TestType T; in main()
97 typedef ExplicitConstexprTestTypes::TestType T; in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.nonmembers/any.cast/
H A Dany_cast_request_invalid_value_category.fail.cpp23 struct TestType {}; struct
30 std::any_cast<TestType &>(a); // expected-note {{requested here}} in test_const_lvalue_cast_request_non_const_lvalue()
42 std::any_cast<TestType &&>(a); // expected-note {{requested here}} in test_lvalue_any_cast_request_rvalue()
54 std::any_cast<TestType &>(std::move(a)); // expected-note {{requested here}} in test_rvalue_any_cast_request_lvalue()
H A Dconst_correctness.verify.cpp30 struct TestType {}; struct
38 std::any_cast<TestType &>(static_cast<std::any const&>(a)); // expected-note {{requested here}} in main()
41 std::any_cast<TestType &&>(static_cast<std::any const&>(a)); // expected-note {{requested here}} in main()
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/meta/stress_tests/
H A Dstress_test_variant_overloads_impl.sh.cpp46 struct TestType {}; struct
108 #define TEST_TYPE() TestType< __COUNTER__ >,
109 using T1 = TEST_NS::Overloads<REPEAT_1000(TEST_TYPE) TestType<1>, TestType<1>, int>;
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcoroutines-exp-namespace.cpp1101 struct TestType { struct
1105 static_assert(TC.MatchesArgs<TestType &>, ""); in test_qual()
1106 static_assert(!TC.MatchesArgs<TestType>, ""); in test_qual()
1107 static_assert(!TC.MatchesArgs<TestType *>, ""); in test_qual()
1130 static_assert(TC.MatchesArgs<TestType &>, ""); in test_ref_qual()
1134 static_assert(TC.MatchesArgs<TestType const &>, ""); in test_ref_qual()
1138 static_assert(TC.MatchesArgs<TestType &&>, ""); in test_ref_qual()
1147 static_assert(TC.MatchesArgs<TestType &, int>, ""); in test_args()
1163 static_assert(!TC.MatchesArgs<TestType>, ""); in test_static()
1164 static_assert(!TC.MatchesArgs<TestType &>, ""); in test_static()
[all …]
H A Dcoroutines.cpp1122 struct TestType { struct
1126 static_assert(TC.MatchesArgs<TestType &>, ""); in test_qual()
1127 static_assert(!TC.MatchesArgs<TestType>, ""); in test_qual()
1128 static_assert(!TC.MatchesArgs<TestType *>, ""); in test_qual()
1151 static_assert(TC.MatchesArgs<TestType &>, ""); in test_ref_qual()
1155 static_assert(TC.MatchesArgs<TestType const &>, ""); in test_ref_qual()
1159 static_assert(TC.MatchesArgs<TestType &&>, ""); in test_ref_qual()
1168 static_assert(TC.MatchesArgs<TestType &, int>, ""); in test_args()
1184 static_assert(!TC.MatchesArgs<TestType>, ""); in test_static()
1185 static_assert(!TC.MatchesArgs<TestType &>, ""); in test_static()
[all …]
/llvm-project-15.0.7/mlir/test/python/dialects/
H A Dpython_test.py273 a = test.TestType.get()
278 b = test.TestType(a)
282 test.TestType(i8)
291 test.TestType(42)
300 test.TestType(42, 56)
/llvm-project-15.0.7/libcxx/test/support/
H A Duses_alloc_types.h74 template <class ...ArgTypes, class TestType>
75 bool checkConstruct(TestType& value, UsesAllocatorType form, in checkConstruct()
76 typename TestType::CtorAlloc const& alloc) in checkConstruct()
89 template <class ...ArgTypes, class TestType>
90 bool checkConstruct(TestType& value, UsesAllocatorType form) { in checkConstruct()
94 template <class TestType>
95 bool checkConstructionEquiv(TestType& T, TestType& U) in checkConstructionEquiv()
H A Darchetypes.h274 using TestType = AllCtors; variable
297 using TestType = AllCtors; variable
318 using TestType = AllCtors; variable
341 using TestType = AllCtors; variable
363 using TestType = AllCtors; variable
385 using TestType = AllCtors; variable
/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
H A Dcopy.pass.cpp64 using O = optional<TrivialTestTypes::TestType>; in main()
73 using O = optional<TestTypes::TestType>; in main()
78 using T = TestTypes::TestType; in main()
H A Demplace.pass.cpp226 test_on_test_type<TestTypes::TestType>(); in main()
227 test_on_test_type<ExplicitTestTypes::TestType>(); in main()
239 using T = ConstexprTestTypes::TestType; in main()
246 using T = ExplicitConstexprTestTypes::TestType; in main()
253 using T = TrivialTestTypes::TestType; in main()
260 using T = ExplicitTrivialTestTypes::TestType; in main()
H A Dassign_value.pass.cpp61 using I = TestTypes::TestType; in test_sfinae()
62 using E = ExplicitTestTypes::TestType; in test_sfinae()
86 using T = TestTypes::TestType; in test_with_test_type()
265 test_with_type_multi<ConstexprTestTypes::TestType>(); in main()
266 test_with_type_multi<TrivialTestTypes::TestType>(); in main()
/llvm-project-15.0.7/mlir/test/python/
H A Dpython_test_ops.td25 class TestType<string name, string typeMnemonic>
42 def TestType : TestType<"TestType", "test_type">;
/llvm-project-15.0.7/mlir/test/mlir-tblgen/
H A Dtypedefs.td44 class TestType<string name> : TypeDef<Test_Dialect, name> { }
46 def A_SimpleTypeA : TestType<"SimpleA"> {
55 def B_CompoundTypeA : TestType<"CompoundA"> {
83 def C_IndexType : TestType<"Index"> {
99 def D_SingleParameterType : TestType<"SingleParameter"> {
108 def E_IntegerType : TestType<"Integer"> {
H A Dattr-or-type-format.td232 def TypeA : TestType<"TestC"> {
295 def TypeB : TestType<"TestD"> {
392 def TypeC : TestType<"TestE"> {
411 def TypeD : TestType<"TestF"> {
429 def TypeE : TestType<"TestG"> {
450 def TypeF : TestType<"TestH"> {
467 def TypeG : TestType<"TestI"> {
497 def TypeH : TestType<"TestJ"> {
509 def TypeI : TestType<"TestK"> {
533 def TypeJ : TestType<"TestL"> {
[all …]
/llvm-project-15.0.7/mlir/unittests/IR/
H A DInterfaceAttachmentTest.cpp95 test::TestType> {
106 test::TestType::attachInterface<TestTypeModel>(*ctx); in TEST()
113 test::TestType testType = test::TestType::get(&context); in TEST()
125 test::TestType::attachInterface<TestTypeModel>(*ctx); in TEST()
132 test::TestType testType = test::TestType::get(&context); in TEST()
/llvm-project-15.0.7/libcxx/benchmarks/
H A Dalgorithms.partition_point.bench.cpp92 template <class Alg, class TestType>
98 TestType::Name + '/' + std::to_string(Quantity); in name()
102 auto Data = TestType::generateInput(Quantity); in run()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/
H A Dcomparisons.pass.cpp54 typedef std::pair<path, path> TestType; in test_comparisons_simple() typedef
55 TestType TestCases[] = in test_comparisons_simple()

12