HomeSort by relevance Sort by last modified time
    Searched full:static_assert (Results 476 - 500 of 918) sorted by null

<<11121314151617181920>>

  /ndk/sources/cxx-stl/llvm-libc++/test/utilities/time/time.traits/time.traits.duration_values/
zero.pass.cpp 24 static_assert(std::chrono::duration_values<int>::zero() == 0, "");
25 static_assert(std::chrono::duration_values<Rep>::zero() == 0, "");
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/
ratio 98 static_assert(__a1 == 0 || __b1 == 0,
100 static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1),
102 static_assert(__b0 * __a0 <= __INTMAX_MAX__,
104 static_assert((__a0 * __b1 + __b0 * __a1) * __c <=
130 static_assert(__add_overflow_check<_Pn, _Qn>::value != 0,
153 static_assert(_Den != 0, "denominator cannot be zero");
154 static_assert(_Num >= -__INTMAX_MAX__ && _Den >= -__INTMAX_MAX__,
218 static_assert(_R2::num != 0, "division by 0");
  /prebuilts/ndk/5/sources/cxx-stl/gnu-libstdc++/include/
ratio 98 static_assert(__a1 == 0 || __b1 == 0,
100 static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1),
102 static_assert(__b0 * __a0 <= __INTMAX_MAX__,
104 static_assert((__a0 * __b1 + __b0 * __a1) * __c <=
130 static_assert(__add_overflow_check<_Pn, _Qn>::value != 0,
153 static_assert(_Den != 0, "denominator cannot be zero");
154 static_assert(_Num >= -__INTMAX_MAX__ && _Den >= -__INTMAX_MAX__,
218 static_assert(_R2::num != 0, "division by 0");
  /prebuilts/ndk/6/sources/cxx-stl/gnu-libstdc++/include/
ratio 98 static_assert(__a1 == 0 || __b1 == 0,
100 static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1),
102 static_assert(__b0 * __a0 <= __INTMAX_MAX__,
104 static_assert((__a0 * __b1 + __b0 * __a1) * __c <=
130 static_assert(__add_overflow_check<_Pn, _Qn>::value != 0,
153 static_assert(_Den != 0, "denominator cannot be zero");
154 static_assert(_Num >= -__INTMAX_MAX__ && _Den >= -__INTMAX_MAX__,
218 static_assert(_R2::num != 0, "division by 0");
  /prebuilts/ndk/7/sources/cxx-stl/gnu-libstdc++/include/
ratio 98 static_assert(__a1 == 0 || __b1 == 0,
100 static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1),
102 static_assert(__b0 * __a0 <= __INTMAX_MAX__,
104 static_assert((__a0 * __b1 + __b0 * __a1) * __c <=
130 static_assert(__add_overflow_check<_Pn, _Qn>::value != 0,
153 static_assert(_Den != 0, "denominator cannot be zero");
154 static_assert(_Num >= -__INTMAX_MAX__ && _Den >= -__INTMAX_MAX__,
218 static_assert(_R2::num != 0, "division by 0");
  /prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.4.3/include/
ratio 98 static_assert(__a1 == 0 || __b1 == 0,
100 static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1),
102 static_assert(__b0 * __a0 <= __INTMAX_MAX__,
104 static_assert((__a0 * __b1 + __b0 * __a1) * __c <=
130 static_assert(__add_overflow_check<_Pn, _Qn>::value != 0,
153 static_assert(_Den != 0, "denominator cannot be zero");
154 static_assert(_Num >= -__INTMAX_MAX__ && _Den >= -__INTMAX_MAX__,
218 static_assert(_R2::num != 0, "division by 0");
  /prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/
ratio 100 static_assert(__a1 == 0 || __b1 == 0,
102 static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1),
104 static_assert(__b0 * __a0 <= __INTMAX_MAX__,
106 static_assert((__a0 * __b1 + __b0 * __a1) * __c
134 static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value,
171 static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)),
173 static_assert(__n1 < __d, "Internal library error");
208 static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0,
216 static_assert(__d != 0, "Internal library error");
217 static_assert(sizeof (uintmax_t) == sizeof (unsigned long long)
    [all...]
  /external/clang/test/CXX/expr/expr.const/
p3-0x.cpp 26 static_assert(!vowels[5], "unexpected number of vowels");
78 static_assert(Val<bool, E1>::value == 1, ""); // ok
79 static_assert(Val<bool, '\0'>::value == 0, ""); // ok
80 static_assert(Val<bool, U'\1'>::value == 1, ""); // ok
81 static_assert(Val<bool, E5>::value == 1, ""); // expected-error {{5, which cannot be narrowed to type 'bool'}}
p5-0x.cpp 41 static_assert(test_ok == 8, "");
42 static_assert(test_explicit == 4, "");
43 static_assert(test_ambiguous == 2, "");
  /external/clang/test/SemaCXX/
constexpr-printing.cpp 39 static_assert(test_printing(12, 39.762, 3 + 4i, 12.9 + 3.6i, &u2.arr[4], u2.another.arr[2], (vector_int){5, 1, 2, 3}, u1) == 0, ""); // \
53 static_assert(passLargeArray(v) == 0, ""); // expected-error {{constant expression}} expected-note {{in call to 'passLargeArray({{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...}})'}}
63 static_assert(badness(myUnion), ""); // expected-error {{constant expression}} \
74 static_assert(MemPtr(&MemPtrTest::n, &MemPtrTest::f, mpt.*&MemPtrTest::n), ""); // expected-error {{constant expression}} \
96 static_assert(mulBy3((LabelDiffTy)&&a-(LabelDiffTy)&&b) == 3, ""); // expected-error {{constant expression}} expected-note {{call to 'mulBy3(&&a - &&b)'}}
cxx0x-defaulted-functions.cpp 31 static_assert(__is_trivial(foo), "foo should be trivial");
33 static_assert(!__has_trivial_destructor(bar), "bar's destructor isn't trivial");
34 static_assert(!__has_trivial_constructor(bar),
36 static_assert(!__has_trivial_copy(bar), "bar has no trivial copy");
37 static_assert(!__has_trivial_assign(bar), "bar has no trivial assign");
cxx0x-initializer-aggregates.cpp 67 static_assert(sizeof(overloaded({1, 2})) == sizeof(one), "bad overload");
68 static_assert(sizeof(overloaded({1, "two"})) == sizeof(two),
71 static_assert(sizeof(overloaded({1})) == sizeof(one), "bad overload");
constexpr-turing.cpp 48 static_assert(run(bb3, Tape(), 0) == 14, "");
56 static_assert(run(bb4, Tape(), 0) == 108, "");
  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
p3.cpp 64 static_assert(S<char>::p == f1, "");
65 static_assert(S<short>::p == f2, "");
71 static_assert(U<K>::p == &K::n, "");
  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/
p5-cxx0x.cpp 82 static_assert(swappable<int>(), "");
83 static_assert(!swappable<const int>(), "");
88 static_assert(OK, "boom!"); // expected-error 2{{boom!}}
  /external/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/
sema.cpp 4 #define P(e) static_assert(noexcept(e), "expected nothrow")
5 #define N(e) static_assert(!noexcept(e), "expected throw")
6 #define B(b, e) static_assert(b == noexcept(e), "expectation failed")
  /ndk/sources/cxx-stl/llvm-libc++/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
shared_ptr_Y.pass.cpp 56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::shared_ptr<B> >::value), "");
57 static_assert((!std::is_convertible<std::shared_ptr<B>, std::shared_ptr<A> >::value), "");
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::shared_ptr<C> >::value), "");
shared_ptr_Y_rv.pass.cpp 56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::shared_ptr<B> >::value), "");
57 static_assert((!std::is_convertible<std::shared_ptr<B>, std::shared_ptr<A> >::value), "");
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::shared_ptr<C> >::value), "");
  /ndk/sources/cxx-stl/llvm-libc++/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/
shared_ptr_Y.pass.cpp 56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::weak_ptr<B> >::value), "");
57 static_assert((!std::is_convertible<std::weak_ptr<B>, std::shared_ptr<A> >::value), "");
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::weak_ptr<C> >::value), "");
weak_ptr_Y.pass.cpp 56 static_assert(( std::is_convertible<std::weak_ptr<A>, std::weak_ptr<B> >::value), "");
57 static_assert((!std::is_convertible<std::weak_ptr<B>, std::weak_ptr<A> >::value), "");
58 static_assert((!std::is_convertible<std::weak_ptr<A>, std::weak_ptr<C> >::value), "");
  /ndk/sources/cxx-stl/llvm-libc++/test/utilities/time/time.duration/time.duration.nonmember/
op_mod_duration.pass.cpp 47 static_assert(r.count() == 3, "");
53 static_assert(r.count() == 20, "");
59 static_assert(r.count() == 24, "");
  /ndk/sources/cxx-stl/llvm-libc++/test/diagnostics/std.exceptions/domain.error/
domain_error.pass.cpp 20 static_assert((std::is_base_of<std::logic_error, std::domain_error>::value),
22 static_assert(std::is_polymorphic<std::domain_error>::value,
  /ndk/sources/cxx-stl/llvm-libc++/test/diagnostics/std.exceptions/invalid.argument/
invalid_argument.pass.cpp 20 static_assert((std::is_base_of<std::logic_error, std::invalid_argument>::value),
22 static_assert(std::is_polymorphic<std::invalid_argument>::value,
  /ndk/sources/cxx-stl/llvm-libc++/test/diagnostics/std.exceptions/length.error/
length_error.pass.cpp 20 static_assert((std::is_base_of<std::logic_error, std::length_error>::value),
22 static_assert(std::is_polymorphic<std::length_error>::value,
  /ndk/sources/cxx-stl/llvm-libc++/test/diagnostics/std.exceptions/logic.error/
logic_error.pass.cpp 20 static_assert((std::is_base_of<std::exception, std::logic_error>::value),
22 static_assert(std::is_polymorphic<std::logic_error>::value,

Completed in 302 milliseconds

<<11121314151617181920>>