Home
last modified time | relevance | path

Searched refs:is_same (Results 1 – 25 of 37) sorted by relevance

12

/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
Dp18.cpp4 struct is_same { struct
9 struct is_same<T, T> { struct
20 static_assert(is_same<decltype(((r))), float const&>::value, in f3() argument
22 static_assert(is_same<decltype(x), float>::value, "should be float"); in f3()
23 static_assert(is_same<decltype((x)), const float&>::value, in f3()
25 static_assert(is_same<decltype(r), float&>::value, "should be float&"); in f3()
26 static_assert(is_same<decltype(ir), int&>::value, "should be int&"); in f3()
27 static_assert(is_same<decltype((ir)), int&>::value, "should be int&"); in f3()
28 static_assert(is_same<decltype(irc), const int&>::value, in f3()
30 static_assert(is_same<decltype((irc)), const int&>::value, in f3()
[all …]
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/
Dp4-cxx0x.cpp4 struct is_same { struct
9 struct is_same<T, T> { argument
18 static_assert(is_same<decltype(foo()), const int&&>::value, ""); argument
19 static_assert(is_same<decltype(i), int>::value, "");
20 static_assert(is_same<decltype(a->x), double>::value, "");
21 static_assert(is_same<decltype((a->x)), const double&>::value, "");
22 static_assert(is_same<decltype(static_cast<int&&>(i)), int&&>::value, "");
Dp5-cxx0x.cpp62 template<typename T, typename U> struct is_same { static const bool value = false; }; struct
63 template<typename T> struct is_same<T, T> { static const bool value = true; }; struct
72 static const bool value = !is_same<type, nat>::value;
/external/clang/test/SemaCXX/
Ddecltype-this.cpp3 template<typename T, typename U> struct is_same { struct
7 template<typename T> struct is_same<T, T> { argument
12 void f() { static_assert(is_same<decltype(this), S*>::value, ""); } in f() argument
13 void g() const { static_assert(is_same<decltype(this), const S*>::value, ""); } in g()
14 void h() volatile { static_assert(is_same<decltype(this), volatile S*>::value, ""); } in h()
15 void i() const volatile { static_assert(is_same<decltype(this), const volatile S*>::value, ""); } in i()
Denum.cpp42 template <class A, class B> struct is_same { static const int value = -1; }; struct
43 template <class A> struct is_same<A,A> { static const int value = 1; }; struct
46 int test0[is_same<__typeof(+v0), int>::value];
49 int test1[is_same<__typeof(+v1), int>::value];
52 int test2[is_same<__typeof(+v2), unsigned int>::value];
55 int test3[is_same<__typeof(+v3), long>::value];
58 int test4[is_same<__typeof(+v4), unsigned long>::value];
Dnullptr.cpp79 template<typename T, typename U> struct is_same { struct
83 template<typename T> struct is_same<T, T> { struct
91 static_assert(is_same<decltype(g(nullptr)), void*>::value, "");
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
Dfixed-expansion.cpp7 struct is_same { struct
12 struct is_same<T, T> { argument
29 static_assert(is_same<X1<int, int>::type, argument
33 static_assert(is_same<X1<int, int, float>::type,
37 static_assert(is_same<X1<int, int, float, double>::type,
55 static_assert(is_same<X1<int>::type,
59 static_assert(is_same<X1<int, float>::type,
63 static_assert(is_same<X1<int, float, double>::type,
Dmetafunctions.cpp6 struct is_same { struct
11 struct is_same<T, T> { argument
65 int check0[is_same<EverythingToInt<tuple<double, float>>::type,
75 int check0[is_same<double_values<1, 2, -3>::type,
83 int check1[is_same<square<1, 2, -3>::type,
93 int check2[is_same<square_tuple<int_tuple<1, 2, -3> >::type,
166 int check0[is_same<build_indices<5>::type,
191 int check0[is_same<apply_each<int,
200 int check1[is_same<apply_each_indirect<int, add_reference, add_pointer,
230 int check2[is_same<apply_each_nested<int, add_reference_meta,
[all …]
Dexample-tuple.cpp28 struct is_same { struct
33 struct is_same<T, T> { argument
166 int check_tuple_element_0[is_same<tuple_element<0, tuple<int&, float, double>>::type,
169 int check_tuple_element_1[is_same<tuple_element<1, tuple<int&, float, double>>::type,
172 int check_tuple_element_2[is_same<tuple_element<2, tuple<int&, float, double>>::type,
/external/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/
Dp3-nodeduct.cpp20 struct is_same { struct
25 struct is_same<T, T> { struct
29 int typeof0[is_same<__typeof__(f<int>), void (int)>::value? 1 : -1]; argument
30 int typeof1[is_same<__typeof__(&f<int>), void (*)(int)>::value? 1 : -1];
35 int typeof2[is_same<__typeof__(g<float>), void (int)>::value? 1 : -1]; // \
/external/clang/test/SemaTemplate/
Dtemp_class_spec.cpp67 struct is_same { struct
72 struct is_same<T, T> { argument
79 int is_same0[is_same<int, int>::value? 1 : -1]; argument
80 int is_same1[is_same<int, INT>::value? 1 : -1];
81 int is_same2[is_same<const int, int>::value? -1 : 1];
82 int is_same3[is_same<int_ptr, int>::value? -1 : 1];
94 int remove_ref0[is_same<remove_reference<int>::type, int>::value? 1 : -1];
95 int remove_ref1[is_same<remove_reference<int&>::type, int>::value? 1 : -1];
107 int remove_const0[is_same<remove_const<const int>::type, int>::value? 1 : -1];
108 int remove_const1[is_same<remove_const<const int[3]>::type, int[3]>::value? 1 : -1];
[all …]
Daddress-spaces.cpp4 struct is_same { struct
9 struct is_same<T, T> { argument
30 int check_remove0[is_same<remove_pointer<int_1_ptr>::type, int_1>::value? 1 : -1]; argument
31 int check_remove1[is_same<remove_pointer<int_2_ptr>::type, int_2>::value? 1 : -1];
32 int check_remove2[is_same<remove_pointer<int_2_ptr>::type, int>::value? -1 : 1];
33 int check_remove3[is_same<remove_pointer<int_2_ptr>::type, int_1>::value? -1 : 1];
Dexample-typelist.cpp14 struct is_same { struct
19 struct is_same<T, T> { argument
70 int reverse0[is_same<reverse<unsigned_inttypes>::type,
94 int find0[is_same<find<unsigned_inttypes, unsigned int>::type,
97 int find1[is_same<find<unsigned_inttypes, int>::type, nil>::value? 1 : -1];
Ddeduction.cpp20 struct is_same { struct
25 struct is_same<T, T> { struct
79 int array0[is_same<Replace<_1, int, float>::type, int>::value? 1 : -1];
80 int array1[is_same<Replace<const _1, int, float>::type, const int>::value? 1 : -1];
81 int array2[is_same<Replace<vector<_1>, int, float>::type, vector<int> >::value? 1 : -1];
82 int array3[is_same<Replace<vector<const _1>, int, float>::type, vector<const int> >::value? 1 : -1];
83 int array4[is_same<Replace<vector<int, _2>, double, float>::type, vector<int, float> >::value? 1 : …
Ddefault-arguments.cpp83 struct is_same { static const bool value = false; }; argument
86 struct is_same<T, T> { static const bool value = true; }; argument
88 int array1[is_same<__typeof__(vi),
91 int array2[is_same<__typeof(x2_deep_nontype),
97 int array3[is_same<X3<>, X3<X2> >::value? 1 : -1];
108 int array4[is_same<X4<add_pointer>,
Dtypename-specifier-4.cpp3 struct is_same { struct
8 struct is_same<T, T> { struct
27 int a0[is_same<metafun_apply2<make_pair, int, float>::type, argument
29 int a1[is_same<
44 int a2[is_same<swap_and_apply2<make_pair>::apply<int, float>::type,
55 int a3[is_same<swap_and_apply2b<make_pair>::apply<int, float>::type,
Dissue150.cpp6 struct is_same { struct
11 struct is_same<T, T> { struct
51 int check0[is_same<X<int, Y>::type, Y<int, int*, int* const> >::value? 1 : -1];
70 int check0[is_same<X<int, int, Y>::type, Y<int, int*, int* const> >::value? 1 : -1];
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/
Dp9-0x.cpp7 struct is_same { struct
12 struct is_same<T, T> { struct
50 int check1[is_same<split_arrays<int[1], float[2], double[3]>::element_types,
52 int check2[is_same<split_arrays<int[1], float[2], double[3]>::bounds_types,
/external/clang/test/SemaObjCXX/
Darc-templates.mm7 struct is_same { struct
12 struct is_same<T, T> { argument
35 int check_infer_strong[is_same<id, __strong id>::value? 1 : -1];
77 int check_make_strong1[is_same<make_strong_pointer<id>::type, __strong id *>::value ? 1 : -1];
78 int check_make_strong2[is_same<make_strong_pointer<A*>::type, A* __strong *>::value ? 1 : -1];
81 int check_make_strong3[is_same<make_strong_pointer<__strong id>::type, __strong id *>::value ? 1 : …
82 int check_make_strong4[is_same<make_strong_pointer<__strong A*>::type, A* __strong *>::value ? 1 : …
85 int check_make_strong5[is_same<make_strong_pointer<int>::type, int *>::value ? 1 : -1];
86 int check_make_strong6[is_same<make_strong_pointer<__weak id>::type, __strong id *>::value ? 1 : -1…
93 int check_make_weak0[is_same<make_weak<id>::type, __weak id>::value? 1 : -1];
[all …]
Ddeduction.mm39 template <typename A, typename B> struct is_same {};
40 template <typename A> struct is_same<A,A> {
45is_same<T, typename RemovePointer<T>::type*>::foo(); // expected-error 2 {{no member named 'foo'}}
/external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/
Dp6-0x.cpp4 struct is_same { struct
9 struct is_same<T, T> { argument
15 int JOIN(array,__LINE__)[is_same<T1, T2>::value? 1 : -1] argument
/external/dbus/test/name-test/
Dtest-threads-init.c75 dbus_bool_t is_same) in check_mutex_lock() argument
80 if (is_same) in check_mutex_lock()
93 dbus_bool_t is_same) in check_condvar_lock() argument
98 if (is_same) in check_condvar_lock()
/external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/
Dp14.cpp6 template<typename T, typename U> struct is_same { struct
10 template<typename T> struct is_same<T, T> { argument
/external/llvm/include/llvm/Support/
Dtype_traits.h86 template<typename T, typename U> struct is_same : public false_type {};
87 template<typename T> struct is_same<T, T> : public true_type {};
156 !is_same<UnderlyingT, float>::value &&
157 !is_same<UnderlyingT, double>::value &&
/external/stlport/test/unit/
Dreference_wrapper_test.cpp32 CPPUNIT_CHECK( (::boost::is_same<rr_type::type, int>::value) ); in ref()
63 CPPUNIT_CHECK( (::boost::is_same<crr_type::type, const int>::value) ); in cref()

12