| /llvm-project-15.0.7/libcxxabi/test/ |
| H A D | dynamic_cast3.pass.cpp | 29 struct A1 struct 55 A1 a1; in test() 82 struct A1 struct 1964 A1* getA1() {return A1::getA1();} in getA1() 2026 A1* getA1() {return A1::getA1();} in getA1() 2086 A1* getA1() {return A1::getA1();} in getA1() 2148 A1* getA1() {return A1::getA1();} in getA1() 2209 A1* getA1() {return A1::getA1();} in getA1() 2269 A1* getA1() {return A1::getA1();} in getA1() 2328 A1* getA1() {return A1::getA1();} in getA1() [all …]
|
| H A D | dynamic_cast5.pass.cpp | 23 struct A1 struct 46 A1* getA1() {return A1::getA1();} in getA1() 190 A1* getA1() {return A1::getA1();} in getA1() 334 A1* getA1() {return A1::getA1();} in getA1() 346 A1* getA1() {return A1::getA1();} in getA1() 477 A1* getA1() {return A1::getA1();} in getA1() 489 A1* getA1() {return A1::getA1();} in getA1() 620 A1* getA1() {return A1::getA1();} in getA1() 632 A1* getA1() {return A1::getA1();} in getA1() 763 A1* getA1() {return A1::getA1();} in getA1() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.cnstr/ |
| H A D | allocs.pass.cpp | 30 A1<int> a3(3); in main() 37 A1<int>::copy_called = false; in main() 40 A a(A1<int>(3)); in main() 46 A1<int>::move_called = false; in main() 49 A1<int> a4(4); in main() 58 A1<int>::copy_called = false; in main() 59 A1<int>::move_called = false; in main() 72 A1<int>::copy_called = false; in main() 73 A1<int>::move_called = false; in main() 76 A1<int>::move_called = false; in main() [all …]
|
| H A D | converting_move.pass.cpp | 31 B a1(A1<int>(3)); in main() 32 A1<int>::copy_called = false; in main() 33 A1<int>::move_called = false; in main() 35 assert(A1<int>::copy_called == false); in main() 36 assert(A1<int>::move_called == true); in main() 42 B a1(A1<int>(4), A2<int>(5)); in main() 43 A1<int>::copy_called = false; in main() 44 A1<int>::move_called = false; in main() 49 assert(A1<int>::move_called == true); in main() 58 A1<int>::copy_called = false; in main() [all …]
|
| H A D | converting_copy.pass.cpp | 31 B a1(A1<int>(3)); in main() 32 A1<int>::copy_called = false; in main() 33 A1<int>::move_called = false; in main() 35 assert(A1<int>::copy_called == true); in main() 41 B a1(A1<int>(4), A2<int>(5)); in main() 42 A1<int>::copy_called = false; in main() 43 A1<int>::move_called = false; in main() 47 assert(A1<int>::copy_called == true); in main() 55 A1<int>::copy_called = false; in main() 56 A1<int>::move_called = false; in main() [all …]
|
| H A D | copy.pass.cpp | 28 A a1(A1<int>(3)); in main() 29 A1<int>::copy_called = false; in main() 30 A1<int>::move_called = false; in main() 32 assert(A1<int>::copy_called == true); in main() 33 assert(A1<int>::move_called == false); in main() 38 A a1(A1<int>(4), A2<int>(5)); in main() 39 A1<int>::copy_called = false; in main() 40 A1<int>::move_called = false; in main() 44 assert(A1<int>::copy_called == true); in main() 53 A1<int>::copy_called = false; in main() [all …]
|
| H A D | default.pass.cpp | 27 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 29 assert(a.outer_allocator() == A1<int>()); in main() 31 assert(A1<int>::copy_called == false); in main() 32 assert(A1<int>::move_called == false); in main() 35 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 37 assert(a.outer_allocator() == A1<int>()); in main() 39 assert(A1<int>::copy_called == false); in main() 40 assert(A1<int>::move_called == false); in main() 47 assert(a.outer_allocator() == A1<int>()); in main() 49 assert(A1<int>::copy_called == false); in main() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/ |
| H A D | simplify-bool-expr-demorgan.cpp | 21 X = !(A1 && A2); in foo() 22 X = !(A1 || A2); in foo() 28 X = !(!A1 || A2); in foo() 29 X = !(A1 || !A2); in foo() 30 X = !(!A1 || !A2); in foo() 38 X = !(!A1 && A2); in foo() 39 X = !(A1 && !A2); in foo() 40 X = !(!A1 && !A2); in foo() 58 X = !(A1 && A2 == A3); in foo() 59 X = !(!A1 && A2 > A3); in foo() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/allocator.adaptor/scoped.adaptor.operators/ |
| H A D | copy_assign.pass.cpp | 29 A a1(A1<int>(3)); in main() 31 A1<int>::copy_called = false; in main() 32 A1<int>::move_called = false; in main() 34 assert(A1<int>::copy_called == true); in main() 35 assert(A1<int>::move_called == false); in main() 40 A a1(A1<int>(4), A2<int>(5)); in main() 42 A1<int>::copy_called = false; in main() 43 A1<int>::move_called = false; in main() 47 assert(A1<int>::copy_called == true); in main() 57 A1<int>::copy_called = false; in main() [all …]
|
| H A D | move_assign.pass.cpp | 29 A a1(A1<int>(3)); in main() 31 A1<int>::copy_called = false; in main() 32 A1<int>::move_called = false; in main() 34 assert(A1<int>::copy_called == false); in main() 35 assert(A1<int>::move_called == true); in main() 40 A a1(A1<int>(4), A2<int>(5)); in main() 42 A1<int>::copy_called = false; in main() 43 A1<int>::move_called = false; in main() 48 assert(A1<int>::move_called == true); in main() 57 A1<int>::copy_called = false; in main() [all …]
|
| H A D | eq.pass.cpp | 35 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 36 A a1(A1<int>(3)); in main() 42 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 43 A a1(A1<int>(4), A2<int>(5)); in main() 49 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 50 A a1(A1<int>(4), A2<int>(5), A3<int>(6)); in main() 56 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 57 A a1(A1<int>(4), A2<int>(5), A3<int>(6)); in main() 58 A a2(A1<int>(4), A2<int>(5), A3<int>(5)); in main()
|
| /llvm-project-15.0.7/clang/test/CXX/class/class.init/class.copy.elision/ |
| H A D | p3.cpp | 7 struct A1 { struct 8 A1(); 9 A1(const A1 &); 13 A1 a; in test1() 56 A1(A1 &&); 57 A1(const A1 &) = delete; 59 A1 test1(A1 &&a) { in test1() 98 A1(const A1 &); 99 A1(A1 &&) = delete; 158 A1 a; in test1() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/allocator.adaptor/ |
| H A D | types.pass.cpp | 36 A1<int>, in main() 37 std::scoped_allocator_adaptor<A1<int>> in main() 42 A1<int>>::value), ""); in main() 45 std::scoped_allocator_adaptor<A1<int>>::size_type, in main() 49 std::scoped_allocator_adaptor<A1<int>>::difference_type, in main() 53 std::scoped_allocator_adaptor<A1<int>>::pointer, in main() 57 std::scoped_allocator_adaptor<A1<int>>::const_pointer, in main() 61 std::scoped_allocator_adaptor<A1<int>>::void_pointer, in main() 65 std::scoped_allocator_adaptor<A1<int>>::const_void_pointer, in main() 70 std::scoped_allocator_adaptor<A2<int>, A1<int>> in main() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
| H A D | deduct_ptr.pass.cpp | 23 struct A1 { }; struct 28 R f1(A1) { return {}; } in f1() argument 29 R f2(A1, A2) { return {}; } in f2() argument 30 R f3(A1, A2, A3) { return {}; } in f3() argument 31 R f4(A1 = {}) { return {}; } in f4() argument 52 ASSERT_SAME_TYPE(decltype(a), std::function<R(A1)>); in main() 55 ASSERT_SAME_TYPE(decltype(b), std::function<R(A1)>); in main() 59 ASSERT_SAME_TYPE(decltype(c), std::function<R(A1)>); in main() 62 ASSERT_SAME_TYPE(decltype(d), std::function<R(A1)>); in main() 98 ASSERT_SAME_TYPE(decltype(a), std::function<R(A1)>); in main() [all …]
|
| H A D | deduct_F.pass.cpp | 24 struct A1 { }; struct 30 struct f1_##N { R operator()(A1) __VA_ARGS__ { return {}; } }; \ 31 struct f2_##N { R operator()(A1, A2) __VA_ARGS__ { return {}; } }; \ 32 struct f3_##N { R operator()(A1, A2, A3) __VA_ARGS__ { return {}; } } \ 60 ASSERT_SAME_TYPE(decltype(g1), std::function<R(A1)>); \ in main() 63 ASSERT_SAME_TYPE(decltype(g2), std::function<R(A1, A2)>); \ in main() 66 ASSERT_SAME_TYPE(decltype(g3), std::function<R(A1, A2, A3)>); \ in main() 73 ASSERT_SAME_TYPE(decltype(g5), std::function<R(A1)>); \ in main() 76 ASSERT_SAME_TYPE(decltype(g6), std::function<R(A1, A2)>); \ in main() 79 ASSERT_SAME_TYPE(decltype(g7), std::function<R(A1, A2, A3)>); \ in main() [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/AggressiveInstCombine/ |
| H A D | trunc_multi_uses.ll | 26 %A1 = zext i32 %X to i64 27 %B1 = add i64 %A1, 15 32 call i32 @use64(i64 %A1) 45 %A1 = zext i32 %X to i64 46 %B1 = or i64 %A1, 15 65 %B1 = xor i64 %A1, 15 84 %B1 = and i64 %A1, 15 106 %B1 = sub i64 %A1, %A2 224 ; 2. %T1`->%C1->(%B1->(%A1, 15), %B1->(%A1, 15)) 236 %B1 = add i64 %A1, 15 [all …]
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | instantiate-function-params.cpp | 34 template<typename R, typename A1> struct X0<R(A1 param)> { }; 36 template<typename T, typename A1, typename A2> 37 void instF0(X0<T(A1)> x0a, X0<T(A2)> x0b) { in instF0() 38 X0<T(A1)> x0c; in instF0() 44 template<typename R, typename A1, R (*ptr)(A1)> struct FuncPtr { }; 45 template<typename A1, int (*ptr)(A1)> struct FuncPtr<int, A1, ptr> { }; 47 template<typename R, typename A1> R unary_func(A1); 49 template<typename R, typename A1, typename A2> 51 FuncPtr<R, A1, &unary_func<R, A1> > fp1; in use_func_ptr()
|
| /llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/ |
| H A D | ExecutorAddressTest.cpp | 33 ExecutorAddr A1(1), A2(2); in TEST() local 35 EXPECT_LE(A1, A1); in TEST() 36 EXPECT_LT(A1, A2); in TEST() 37 EXPECT_GT(A2, A1); in TEST() 62 ExecutorAddr A0(0), A1(1), A2(2), A3(3); in TEST() local 63 ExecutorAddrRange R0(A0, A1), R1(A1, A2), R2(A2, A3), R3(A0, A2), R4(A1, A3); in TEST() 71 EXPECT_EQ(R1, ExecutorAddrRange(A1, A2)); in TEST() 72 EXPECT_EQ(R1, ExecutorAddrRange(A1, ExecutorAddrDiff(1))); in TEST() 75 EXPECT_TRUE(R1.contains(A1)); in TEST()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/ |
| H A D | outer_allocator.pass.cpp | 29 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 30 A a(A1<int>(5)); in main() 31 assert(a.outer_allocator() == A1<int>(5)); in main() 34 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 35 A a(A1<int>(5), A2<int>(6)); in main() 36 assert(a.outer_allocator() == A1<int>(5)); in main() 39 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 40 A a(A1<int>(5), A2<int>(6), A3<int>(8)); in main() 41 assert(a.outer_allocator() == A1<int>(5)); in main()
|
| H A D | allocate_size.pass.cpp | 27 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 29 A1<int>::allocate_called = false; in main() 31 assert(A1<int>::allocate_called == true); in main() 34 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 36 A1<int>::allocate_called = false; in main() 38 assert(A1<int>::allocate_called == true); in main() 41 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 43 A1<int>::allocate_called = false; in main() 45 assert(A1<int>::allocate_called == true); in main()
|
| H A D | allocate_size_hint.pass.cpp | 27 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 29 A1<int>::allocate_called = false; in main() 31 assert(A1<int>::allocate_called == true); in main() 34 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 36 A1<int>::allocate_called = false; in main() 38 assert(A1<int>::allocate_called == true); in main() 41 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 43 A1<int>::allocate_called = false; in main() 45 assert(A1<int>::allocate_called == true); in main()
|
| /llvm-project-15.0.7/clang/test/Misc/ |
| H A D | diagnostic-crash.cpp | 11 template <class A1> class Callback1 { 13 template <class A1, class A2> class Callback2 { 17 template <bool del, class R, class T, class P1, class P2, class A1> 18 class AAAAAAAResultCallback_2_1 : public ResultCallback1<R, A1> { 20 template <bool del, class T, class P1, class P2, class A1> 21 class AAAAAAAResultCallback_2_1< del, void, T, P1, P2, A1> : 22 public Callback1<A1> { 24 typedef Callback1<A1> base; 26 template <class T1, class T2, class R, class P1, class P2, class A1> 27 inline typename AAAAAAAResultCallback_2_1<true, R, T1, P1, P2, A1>::base* [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/orc/unittests/ |
| H A D | executor_address_test.cpp | 38 ExecutorAddr A1(1), A2(2); in TEST() local 40 EXPECT_LE(A1, A1); in TEST() 41 EXPECT_LT(A1, A2); in TEST() 42 EXPECT_GT(A2, A1); in TEST() 56 ExecutorAddr A0(0), A1(1), A2(2), A3(3); in TEST() local 57 ExecutorAddrRange R0(A0, A1), R1(A1, A2), R2(A2, A3), R3(A0, A2), R4(A1, A3); in TEST() 65 EXPECT_EQ(R1, ExecutorAddrRange(A1, A2)); in TEST() 66 EXPECT_EQ(R1, ExecutorAddrRange(A1, ExecutorAddrDiff(1))); in TEST() 69 EXPECT_TRUE(R1.contains(A1)); in TEST()
|
| /llvm-project-15.0.7/llvm/test/TableGen/ |
| H A D | listpaste.td | 10 // CHECK: class A1<list<int> A1:l = ?> { 11 // CHECK: list<int> A1List = A1:l; 13 class A1<list<int> l> { 22 // CHECK: def A1 { 25 def A1 : A<1>; 30 def A1_0 : A1<[1,2] # [3,4]>; 35 def A1_1 : A1<[] # [1,2]>; 37 // CHECK: def A1_2 { // A1 40 def A1_2 : A1<[1,2] # []>;
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | allocators.h | 21 class A1 25 explicit A1(int id = 0) TEST_NOEXCEPT : id_(id) {} in id_() 36 A1(const A1& a) TEST_NOEXCEPT : id_(a.id()) {copy_called = true;} in A1() function 37 A1(A1&& a) TEST_NOEXCEPT : id_(a.id()) {move_called = true;} in A1() function 38 A1& operator=(const A1& a) TEST_NOEXCEPT { id_ = a.id(); copy_called = true; return *this;} 39 A1& operator=(A1&& a) TEST_NOEXCEPT { id_ = a.id(); move_called = true; return *this;} 42 A1(const A1<U>& a) TEST_NOEXCEPT : id_(a.id()) {copy_called = true;} in A1() function 44 A1(A1<U>&& a) TEST_NOEXCEPT : id_(a.id()) {move_called = true;} in A1() function 60 template <class T> bool A1<T>::copy_called = false; 67 bool operator==(const A1<T>& x, const A1<U>& y) [all …]
|