HomeSort by relevance Sort by last modified time
    Searched full:static_assert (Results 451 - 475 of 1136) sorted by null

<<11121314151617181920>>

  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/utility/declval/
declval.pass.cpp 26 static_assert((std::is_same<decltype(std::declval<A>()), A&&>::value), "");
28 static_assert((std::is_same<decltype(std::declval<A>()), A>::value), "");
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/utility/pairs/pairs.pair/
types.pass.cpp 24 static_assert((std::is_same<P::first_type, float>::value), "");
25 static_assert((std::is_same<P::second_type, short*>::value), "");
  /external/clang/test/SemaCXX/
cxx0x-initializer-constructor.cpp 45 A() { static_assert(N == 0, ""); }
46 A(int, double) { static_assert(N == 1, ""); }
51 F() { static_assert(N == 0, ""); }
52 F(int, double) { static_assert(N == 1, ""); }
53 F(std::initializer_list<int>) { static_assert(N == 3, ""); }
58 D(std::initializer_list<int>) { static_assert(N == 0, ""); } // expected-note 1 {{candidate}}
59 D(std::initializer_list<double>) { static_assert(N == 1, ""); } // expected-note 1 {{candidate}}
64 E(int, int) { static_assert(N == 0, ""); }
65 E(X1, int) { static_assert(N == 1, ""); }
137 static_assert(sizeof(ov1({})) == sizeof(two), "bad overload")
    [all...]
discrim-union.cpp 106 static_assert(icd1.get<int>() == 4, "");
107 static_assert(icd2.get<char>() == 'x', "");
108 static_assert(icd3.get<double>() == 6.5, "");
117 static_assert(icd4.get<const icd*>()->get<char>() == 'x', "");
118 static_assert(icd5.get<non_triv>().n == 5, "");
cxx0x-initializer-references.cpp 31 static_assert(sizeof(arrayRef) == 3 * sizeof(int), "bad array size");
61 static_assert(sizeof(f({1})) == sizeof(one), "bad overload resolution");
66 static_assert(sizeof(g({1})) == sizeof(two), "bad overload resolution");
71 static_assert(sizeof(h({1, 2})) == sizeof(two), "bad overload resolution");
  /external/clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/
p2.cpp 56 static_assert(S5().m == 4, "");
90 static_assert(noexcept(E3(), E3(E3()), E3(e3), e3 = E3(), e3 = e3), "");
110 static_assert(!noexcept(E5()), "");
111 static_assert(!noexcept(E5(static_cast<E5&&>(e5))), "");
112 static_assert(!noexcept(E5(e5)), "");
113 static_assert(!noexcept(e5 = E5()), "");
114 static_assert(!noexcept(e5 = e5), "");
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/cmplx.over/
conj.pass.cpp 28 static_assert((std::is_same<decltype(std::conj(x)), std::complex<double> >::value), "");
36 static_assert((std::is_same<decltype(std::conj(x)), std::complex<T> >::value), "");
45 static_assert((std::is_same<decltype(std::conj(x)), std::complex<T> >::value), "");
proj.pass.cpp 28 static_assert((std::is_same<decltype(std::proj(x)), std::complex<double> >::value), "");
36 static_assert((std::is_same<decltype(std::proj(x)), std::complex<T> >::value), "");
45 static_assert((std::is_same<decltype(std::proj(x)), std::complex<T> >::value), "");
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.adapt/rand.adapt.ibits/
result_type.pass.cpp 32 static_assert(Min < Max, "rand1 invalid parameters");
66 static_assert((std::is_same<
74 static_assert((std::is_same<
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.adapt/rand.adapt.shuf/
result_type.pass.cpp 32 static_assert(Min < Max, "rand1 invalid parameters");
66 static_assert((std::is_same<
74 static_assert((std::is_same<
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.traits/time.traits.duration_values/
max.pass.cpp 29 static_assert(std::chrono::duration_values<int>::max() ==
31 static_assert(std::chrono::duration_values<double>::max() ==
33 static_assert(std::chrono::duration_values<Rep>::max() ==
min.pass.cpp 29 static_assert(std::chrono::duration_values<int>::min() ==
31 static_assert(std::chrono::duration_values<double>::min() ==
33 static_assert(std::chrono::duration_values<Rep>::min() ==
  /external/chromium_org/v8/src/
elements-kind.cc 94 STATIC_ASSERT(FAST_SMI_ELEMENTS == FIRST_FAST_ELEMENTS_KIND);
103 STATIC_ASSERT(FAST_SMI_ELEMENTS + kFastElementsKindPackedToHoley ==
105 STATIC_ASSERT(FAST_DOUBLE_ELEMENTS + kFastElementsKindPackedToHoley ==
107 STATIC_ASSERT(FAST_ELEMENTS + kFastElementsKindPackedToHoley ==
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.eng/rand.eng.lcong/
values.pass.cpp 37 static_assert((LCE::multiplier == a), "");
38 static_assert((LCE::increment == c), "");
39 static_assert((LCE::modulus == m), "");
42 static_assert((LCE::default_seed == 1), "");
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.nonmember/
op_+.pass.cpp 52 static_assert(r.count() == 8, "");
58 static_assert(r.count() == 3000005, "");
64 static_assert(r.count() == 75, "");
70 static_assert(r.count() == 75, "");
op_-.pass.cpp 53 static_assert(r.count() == -2, "");
59 static_assert(r.count() == 2999995, "");
65 static_assert(r.count() == -15, "");
71 static_assert(r.count() == -15, "");
op_divide_duration.pass.cpp 48 static_assert(ns1 / ns2 == 3, "");
53 static_assert(us1 / ns2 == 3000, "");
58 static_assert(s1 / s2 == 6, "");
63 static_assert(s1 / s2 == 20./3, "");
  /external/clang/test/CXX/special/class.ctor/
p5-0x.cpp 146 static_assert(__has_trivial_constructor(Trivial), "Trivial is nontrivial");
150 static_assert(!__has_trivial_constructor(NonTrivialDefCtor1), "NonTrivialDefCtor1 is trivial");
154 static_assert(!__has_trivial_constructor(Class), "");
179 static_assert(!__has_trivial_constructor(NonTrivialDefCtor7), "");
183 static_assert(!__has_trivial_constructor(NonTrivialDefCtor8), "");
188 static_assert(__has_trivial_constructor(Trivial2), "Trivial2 is trivial");
191 static_assert(__has_trivial_constructor(Trivial3), "Trivial3 is trivial");
194 static_assert(__has_trivial_constructor(Trivial4<int>), "Trivial4 is trivial");
197 static_assert(__has_trivial_constructor(Trivial5<int>), "Trivial5 is trivial");
207 static_assert(__has_trivial_constructor(A), "")
    [all...]
  /external/clang/test/Preprocessor/
cxx_oper_keyword_ms_compat.cpp 72 #define static_assert macro
157 static_assert
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/array/array.size/
size.pass.cpp 36 static_assert(c.size() == 3, "");
42 static_assert(c.size() == 0, "");
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.c.headers/
locale_h.pass.cpp 46 static_assert((std::is_same<__typeof__(setlocale(0, "")), char*>::value), "");
47 static_assert((std::is_same<__typeof__(localeconv()), lconv*>::value), "");
signal_h.pass.cpp 55 static_assert((std::is_same<decltype(signal(0, (func)0)), func>::value), "");
56 static_assert((std::is_same<decltype(raise(0)), int>::value), "");
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.dynamic/alloc.errors/bad.alloc/
bad_alloc.pass.cpp 18 static_assert((std::is_base_of<std::exception, std::bad_alloc>::value),
20 static_assert(std::is_polymorphic<std::bad_alloc>::value,
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.dynamic/alloc.errors/new.badlength/
bad_array_new_length.pass.cpp 18 static_assert((std::is_base_of<std::bad_alloc, std::bad_array_new_length>::value),
20 static_assert(std::is_polymorphic<std::bad_array_new_length>::value,
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.exception/bad.exception/
bad_exception.pass.cpp 18 static_assert((std::is_base_of<std::exception, std::bad_exception>::value),
20 static_assert(std::is_polymorphic<std::bad_exception>::value,

Completed in 369 milliseconds

<<11121314151617181920>>