Home
last modified time | relevance | path

Searched refs:__is_same (Results 1 – 11 of 11) sorted by relevance

/external/clang/test/SemaCXX/
Dmake_integer_seq.cpp13 static_assert(__is_same(MakeSeq<int, 0>, Seq<int>), "");
14 static_assert(__is_same(MakeSeq<int, 1>, Seq<int, 0>), "");
15 static_assert(__is_same(MakeSeq<int, 2>, Seq<int, 0, 1>), "");
16 static_assert(__is_same(MakeSeq<int, 3>, Seq<int, 0, 1, 2>), "");
17 static_assert(__is_same(MakeSeq<int, 4>, Seq<int, 0, 1, 2, 3>), "");
19 static_assert(__is_same(MakeSeq<unsigned int, 0U>, Seq<unsigned int>), "");
20 static_assert(__is_same(MakeSeq<unsigned int, 1U>, Seq<unsigned int, 0U>), "");
21 static_assert(__is_same(MakeSeq<unsigned int, 2U>, Seq<unsigned int, 0U, 1U>), "");
22 static_assert(__is_same(MakeSeq<unsigned int, 3U>, Seq<unsigned int, 0U, 1U, 2U>), "");
23 static_assert(__is_same(MakeSeq<unsigned int, 4U>, Seq<unsigned int, 0U, 1U, 2U, 3U>), "");
[all …]
Dtype_pack_element.cpp13 static_assert(__is_same(TypePackElement<0, X<0>>, X<0>), "");
15 static_assert(__is_same(TypePackElement<0, X<0>, X<1>>, X<0>), "");
16 static_assert(__is_same(TypePackElement<1, X<0>, X<1>>, X<1>), "");
18 static_assert(__is_same(TypePackElement<0, X<0>, X<1>, X<2>>, X<0>), "");
19 static_assert(__is_same(TypePackElement<1, X<0>, X<1>, X<2>>, X<1>), "");
20 static_assert(__is_same(TypePackElement<2, X<0>, X<1>, X<2>>, X<2>), "");
22 static_assert(__is_same(TypePackElement<0, X<0>, X<1>, X<2>, X<3>>, X<0>), "");
23 static_assert(__is_same(TypePackElement<1, X<0>, X<1>, X<2>, X<3>>, X<1>), "");
24 static_assert(__is_same(TypePackElement<2, X<0>, X<1>, X<2>, X<3>>, X<2>), "");
25 static_assert(__is_same(TypePackElement<3, X<0>, X<1>, X<2>, X<3>>, X<3>), "");
[all …]
Dlibstdcxx_is_pod_hack.cpp18 struct __is_same { // expected-warning {{keyword '__is_same' will be made available as an identifie… struct
21 __is_same<int> isi;
Dalias-template.cpp180 static_assert(__is_same(S<3>::U, X[2]), ""); // expected-error {{static_assert failed}}
Dtype-traits.cpp1713 int t01[T(__is_same(Base, Base))]; in is_same()
1714 int t02[T(__is_same(Base, BaseTypedef))]; in is_same()
1715 int t03[T(__is_same(TemplateClass<int, int>, TemplateAlias<int>))]; in is_same()
1717 int t10[F(__is_same(Base, const Base))]; in is_same()
1718 int t11[F(__is_same(Base, Base&))]; in is_same()
1719 int t12[F(__is_same(Base, Derived))]; in is_same()
/external/clang/test/Sema/
Dstatic-assert.c26 #define ASSERT_IS_TYPE(T) __is_same(T, T)
/external/clang/test/PCH/
Dcxx-traits.h55 struct __is_same {}; // expected-warning {{made available}} struct
Dcxx-traits.cpp55 bool _is_same_result = __is_same(int, int);
/external/clang/test/Analysis/
Ddtor.cpp516 const bool IsSimple = __is_trivial(T) && __is_same(T, U); in do_copy()
/external/clang/include/clang/Basic/
DTokenKinds.def478 TYPE_TRAIT_2(__is_same, IsSame, KEYCXX)
/external/clang/lib/Parse/
DParseExpr.cpp837 REVERTIBLE_TYPE_TRAIT(__is_same); in ParseCastExpression()