/external/libcxxabi/test/ |
D | dynamic_cast3.pass.cpp | 22 struct A1 struct 25 virtual ~A1() {} in ~A1() argument 27 A1* getA1() {return this;} in getA1() argument 48 A1 a1; in test() 51 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1()); in test() 52 assert(dynamic_cast<A1*>(a2.getA2()) == 0); in test() 53 assert(dynamic_cast<A1*>(a3.getA3()) == 0); in test() 75 struct A1 struct 78 virtual ~A1() {} in ~A1() argument 80 A1* getA1() {return this;} in getA1() argument [all …]
|
D | dynamic_cast5.pass.cpp | 16 struct A1 struct 19 virtual ~A1() {} in ~A1() argument 21 A1* getA1() {return this;} in getA1() argument 33 : public virtual A1, 39 A1* getA1() {return A1::getA1();} in getA1() 51 t1::A1* getA1() {return A3::getA1();} in getA1() 64 t1::A1* getA1() {return A4::getA1();} in getA1() 73 A1 a1; in test() 79 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1()); in test() 80 assert(dynamic_cast<A1*>(a2.getA2()) == 0); in test() [all …]
|
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.cnstr/ |
D | allocs.pass.cpp | 29 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 30 A1<int> a3(3); in main() 32 assert(a.outer_allocator() == A1<int>(3)); in main() 34 assert(A1<int>::copy_called == true); in main() 35 assert(A1<int>::move_called == false); in main() 37 A1<int>::copy_called = false; in main() 39 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 40 A a(A1<int>(3)); in main() 41 assert(a.outer_allocator() == A1<int>(3)); in main() 43 assert(A1<int>::copy_called == false); in main() [all …]
|
D | converting_move.pass.cpp | 29 typedef std::scoped_allocator_adaptor<A1<double>> B; in main() 30 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 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() 40 typedef std::scoped_allocator_adaptor<A1<double>, A2<int>> B; in main() 41 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 42 B a1(A1<int>(4), A2<int>(5)); in main() [all …]
|
D | converting_copy.pass.cpp | 29 typedef std::scoped_allocator_adaptor<A1<double>> B; in main() 30 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 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() 39 typedef std::scoped_allocator_adaptor<A1<double>, A2<int>> B; in main() 40 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 41 B a1(A1<int>(4), A2<int>(5)); in main() 42 A1<int>::copy_called = false; in main() [all …]
|
D | copy.pass.cpp | 27 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 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() 37 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; 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() [all …]
|
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() 45 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 47 assert(a.outer_allocator() == A1<int>()); in main() [all …]
|
/external/google-breakpad/src/testing/include/gmock/internal/ |
D | gmock-generated-internal-utils.h | 76 template <typename A1> 77 struct MatcherTuple< ::std::tr1::tuple<A1> > { 78 typedef ::std::tr1::tuple<Matcher<A1> > type; 81 template <typename A1, typename A2> 82 struct MatcherTuple< ::std::tr1::tuple<A1, A2> > { 83 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2> > type; 86 template <typename A1, typename A2, typename A3> 87 struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3> > { 88 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3> > type; 91 template <typename A1, typename A2, typename A3, typename A4> [all …]
|
/external/libcxx/test/std/utilities/allocator.adaptor/ |
D | types.pass.cpp | 36 A1<int>, in main() 37 std::scoped_allocator_adaptor<A1<int>> in main() 41 std::scoped_allocator_adaptor<A1<int>>::outer_allocator_type, 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() [all …]
|
/external/google-breakpad/src/testing/include/gmock/ |
D | gmock-generated-nice-strict.h | 79 template <typename A1> 80 explicit NiceMock(const A1& a1) : MockClass(a1) { in NiceMock() 84 template <typename A1, typename A2> 85 NiceMock(const A1& a1, const A2& a2) : MockClass(a1, a2) { in NiceMock() 90 template <typename A1, typename A2, typename A3> 91 NiceMock(const A1& a1, const A2& a2, const A3& a3) : MockClass(a1, a2, a3) { in NiceMock() 96 template <typename A1, typename A2, typename A3, typename A4> 97 NiceMock(const A1& a1, const A2& a2, const A3& a3, in NiceMock() 103 template <typename A1, typename A2, typename A3, typename A4, typename A5> 104 NiceMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, in NiceMock() [all …]
|
D | gmock-generated-function-mockers.h | 80 template <typename R, typename A1> 81 class FunctionMocker<R(A1)> : public 82 internal::FunctionMockerBase<R(A1)> { 84 typedef R F(A1); 87 MockSpec<F>& With(const Matcher<A1>& m1) { in With() 92 R Invoke(A1 a1) { in Invoke() 101 template <typename R, typename A1, typename A2> 102 class FunctionMocker<R(A1, A2)> : public 103 internal::FunctionMockerBase<R(A1, A2)> { 105 typedef R F(A1, A2); [all …]
|
/external/clang/test/SemaTemplate/ |
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()
|
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/ |
D | outer_allocator.pass.cpp | 28 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 29 A a(A1<int>(5)); in main() 30 assert(a.outer_allocator() == A1<int>(5)); in main() 33 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 34 A a(A1<int>(5), A2<int>(6)); in main() 35 assert(a.outer_allocator() == A1<int>(5)); in main() 38 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 39 A a(A1<int>(5), A2<int>(6), A3<int>(8)); in main() 40 assert(a.outer_allocator() == A1<int>(5)); in main()
|
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()
|
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()
|
D | construct.pass.cpp | 29 typedef A1<B> allocator_type; 78 typedef std::scoped_allocator_adaptor<A1<E>> allocator_type; 121 typedef std::scoped_allocator_adaptor<A1<std::string>> A; in main() 132 typedef std::scoped_allocator_adaptor<A1<B>> A; in main() 133 A a(A1<B>(5)); in main() 143 typedef std::scoped_allocator_adaptor<A1<int>, A2<C>> A; in main() 144 A a(A1<int>(5), A2<C>(7)); in main() 154 typedef std::scoped_allocator_adaptor<A1<int>, A2<D>> A; in main() 155 A a(A1<int>(5), A2<D>(3)); in main() 166 typedef std::scoped_allocator_adaptor<K, A1<E>> A; in main() [all …]
|
D | max_size.pass.cpp | 27 typedef std::scoped_allocator_adaptor<A1<int>> A; in main() 28 const A a(A1<int>(100)); in main() 32 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 33 const A a(A1<int>(20), A2<int>()); in main() 37 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 38 const A a(A1<int>(200), A2<int>(), A3<int>()); in main()
|
/external/clang/test/Misc/ |
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 …]
|
/external/libcxx/test/support/ |
D | allocators.h | 19 class A1 23 explicit A1(int id = 0) : id_(id) {} in id_() 34 A1(const A1& a) : id_(a.id()) {copy_called = true;} in A1() function 35 A1(A1&& a) : id_(a.id()) {move_called = true;} in A1() function 38 A1(const A1<U>& a) : id_(a.id()) {copy_called = true;} in A1() function 40 A1(A1<U>&& a) : id_(a.id()) {move_called = true;} in A1() function 56 template <class T> bool A1<T>::copy_called = false; 57 template <class T> bool A1<T>::move_called = false; 58 template <class T> bool A1<T>::allocate_called = false; 59 template <class T> std::pair<T*, std::size_t> A1<T>::deallocate_called; [all …]
|
/external/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.members/ |
D | construct.pass.cpp | 57 struct A1 struct 60 A1(char c) in A1() argument 67 int A1::count = 0; 93 A1::count = 0; in main() 95 std::aligned_storage<sizeof(A1)>::type a1; in main() 96 assert(A1::count == 0); in main() 97 std::allocator_traits<A<int> >::construct(a, (A1*)&a1, 'c'); in main() 98 assert(A1::count == 1); in main() 121 A1::count = 0; in main() 124 std::aligned_storage<sizeof(A1)>::type a1; in main() [all …]
|
/external/libcxx/test/std/utilities/allocator.adaptor/scoped.adaptor.operators/ |
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()
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | alloc_UTypes.pass.cpp | 40 std::allocator_arg_t, A1<int>, MoveOnly in test_default_constructible_extension_sfinae() 45 std::allocator_arg_t, A1<int>, MoveOnly, NoDefault in test_default_constructible_extension_sfinae() 53 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() 58 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly, NoDefault in test_default_constructible_extension_sfinae() 68 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() 73 std::allocator_arg_t, A1<int>, MoveOnly, Tuple, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() 82 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() 87 std::allocator_arg_t, A1<int>, MoveOnly, Tuple, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() 95 std::tuple<MoveOnly> t(std::allocator_arg, A1<int>(), MoveOnly(0)); in main() 99 std::tuple<MoveOnly, MoveOnly> t(std::allocator_arg, A1<int>(), in main() [all …]
|
/external/llvm/include/llvm/IR/ |
D | TypeBuilder.h | 253 template<typename R, typename A1, bool cross> class TypeBuilder<R(A1), cross> { 257 TypeBuilder<A1, cross>::get(Context), in get() 263 template<typename R, typename A1, typename A2, bool cross> 264 class TypeBuilder<R(A1, A2), cross> { 268 TypeBuilder<A1, cross>::get(Context), in get() 275 template<typename R, typename A1, typename A2, typename A3, bool cross> 276 class TypeBuilder<R(A1, A2, A3), cross> { 280 TypeBuilder<A1, cross>::get(Context), in get() 289 template<typename R, typename A1, typename A2, typename A3, typename A4, 291 class TypeBuilder<R(A1, A2, A3, A4), cross> { [all …]
|
/external/clang/INPUTS/ |
D | macro_pounder_obj.c | 7 #define A1 A0 A0 A0 A0 A0 A0 macro 8 #define A2 A1 A1 A1 A1 A1 A1
|
/external/llvm/unittests/Support/ |
D | ArrayRecyclerTest.cpp | 56 Object *A1 = DUT.allocate(Cap, Allocator); in TEST() local 57 A1[0].Num = 21; in TEST() 58 A1[7].Num = 17; in TEST() 68 EXPECT_EQ(21, A1[0].Num); in TEST() 69 EXPECT_EQ(17, A1[7].Num); in TEST() 78 EXPECT_EQ(21, A1[0].Num); in TEST() 79 EXPECT_EQ(17, A1[7].Num); in TEST() 88 DUT.deallocate(Cap, A1); in TEST() 96 EXPECT_EQ(A1, A1x); in TEST() 102 EXPECT_NE(A1, A4); in TEST()
|