/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 | 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 | 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 | 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/gmock/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/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/gmock/include/gmock/ |
D | gmock-generated-nice-strict.h | 91 template <typename A1> 92 explicit NiceMock(const A1& a1) : MockClass(a1) { in NiceMock() 96 template <typename A1, typename A2> 97 NiceMock(const A1& a1, const A2& a2) : MockClass(a1, a2) { in NiceMock() 102 template <typename A1, typename A2, typename A3> 103 NiceMock(const A1& a1, const A2& a2, const A3& a3) : MockClass(a1, a2, a3) { in NiceMock() 108 template <typename A1, typename A2, typename A3, typename A4> 109 NiceMock(const A1& a1, const A2& a2, const A3& a3, in NiceMock() 115 template <typename A1, typename A2, typename A3, typename A4, typename A5> 116 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/libbrillo/brillo/glib/ |
D | dbus.h | 179 template<typename A1> 180 class MonitorConnection<void(A1)> { 184 void (*monitor)(void*, A1), in MonitorConnection() argument 188 static void Run(::DBusGProxy*, A1 x, MonitorConnection* self) { in Run() 197 void (*monitor_)(void*, A1); 201 template<typename A1, typename A2> 202 class MonitorConnection<void(A1, A2)> { 206 void (*monitor)(void*, A1, A2), in MonitorConnection() argument 210 static void Run(::DBusGProxy*, A1 x, A2 y, MonitorConnection* self) { in Run() 219 void (*monitor_)(void*, A1, A2); [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 …]
|
/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()
|
/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/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/support/ |
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 40 A1(const A1<U>& a) TEST_NOEXCEPT : id_(a.id()) {copy_called = true;} in A1() function 42 A1(A1<U>&& a) TEST_NOEXCEPT : id_(a.id()) {move_called = true;} in A1() function 58 template <class T> bool A1<T>::copy_called = false; 59 template <class T> bool A1<T>::move_called = false; 60 template <class T> bool A1<T>::allocate_called = false; 61 template <class T> std::pair<T*, std::size_t> A1<T>::deallocate_called; [all …]
|
/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/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/llvm/include/llvm/IR/ |
D | TypeBuilder.h | 261 template<typename R, typename A1, bool cross> class TypeBuilder<R(A1), cross> { 265 TypeBuilder<A1, cross>::get(Context), in get() 271 template<typename R, typename A1, typename A2, bool cross> 272 class TypeBuilder<R(A1, A2), cross> { 276 TypeBuilder<A1, cross>::get(Context), in get() 283 template<typename R, typename A1, typename A2, typename A3, bool cross> 284 class TypeBuilder<R(A1, A2, A3), cross> { 288 TypeBuilder<A1, cross>::get(Context), in get() 297 template<typename R, typename A1, typename A2, typename A3, typename A4, 299 class TypeBuilder<R(A1, A2, A3, A4), cross> { [all …]
|
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.types/ |
D | is_always_equal.pass.cpp | 29 std::allocator_traits<A1<int>>::is_always_equal, std::false_type>::value in main() 39 std::scoped_allocator_adaptor<A1<int>>::is_always_equal, in main() 40 std::allocator_traits<A1<int>>::is_always_equal in main() 52 std::scoped_allocator_adaptor<A1<int>, A2<int>>::is_always_equal::value == in main() 53 ( std::allocator_traits<A1<int>>::is_always_equal::value && in main() 59 std::scoped_allocator_adaptor<A1<int>, min_allocator<int>>::is_always_equal::value == in main() 60 ( std::allocator_traits<A1<int>>::is_always_equal::value && in main() 67 std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>>::is_always_equal::value == in main() 68 ( std::allocator_traits<A1<int>>::is_always_equal::value && in main()
|