/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...] |
/prebuilts/ndk/9/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...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.8/include/ |
ratio | 97 static_assert(__a1 == 0 || __b1 == 0, 99 static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 101 static_assert(__b0 * __a0 <= __INTMAX_MAX__, 103 static_assert((__a0 * __b1 + __b0 * __a1) * __c 131 static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 168 static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 170 static_assert(__n1 < __d, "Internal library error"); 205 static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 213 static_assert(__d != 0, "Internal library error"); 214 static_assert(sizeof (uintmax_t) == sizeof (unsigned long long) [all...] |
/external/clang/test/CXX/except/except.spec/ |
p14.cpp | 40 static_assert(noexcept(IC0()), "IC0() does not throw"); 41 static_assert(!noexcept(IC1()), "IC1() throws"); 63 static_assert(!noexcept(X(X::val())), ""); 64 static_assert(!noexcept(X::ref() = X::val()), ""); 136 static_assert(!noexcept(Derived{X<5>{}}), "");
|
/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'}}
|
p2-0x.cpp | 115 static_assert(p, ""); 124 static_assert(!q, ""); 202 static_assert((A*)nb == 0, ""); 203 static_assert((B*)na == 0, ""); 219 static_assert(&a[2][0] == &a[1][3], ""); member in namespace:UndefinedBehavior::Ptr 260 static_assert(65536u * 65536u == 0u, ""); // ok 261 static_assert(4294967295u + 1u == 0u, ""); // ok 262 static_assert(0u - 1u == 4294967295u, ""); // ok 263 static_assert(~0u * ~0u == 1u, ""); // ok 292 static_assert(vi, ""); // expected-error {{constant expression}} expected-note {{read of volatile-qualified type (…) [all...] |
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-initializer-aggregates.cpp | 66 static_assert(sizeof(overloaded({1, 2})) == sizeof(one), "bad overload"); 67 static_assert(sizeof(overloaded({1, "two"})) == sizeof(two), 70 static_assert(sizeof(overloaded({1})) == sizeof(one), "bad overload");
|
constexpr-turing.cpp | 48 static_assert(run(bb3, Tape(), 0) == 21, ""); 56 static_assert(run(bb4, Tape(), 0) == 107, "");
|
/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 | 84 static_assert(swappable<int>(), ""); 85 static_assert(!swappable<const int>(), ""); 90 static_assert(OK, "boom!"); // expected-error 2{{boom!}}
|
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
p11-1y.cpp | 27 static_assert(sizeof(c) == sizeof(const char*), ""); 73 static_assert(sizeof(a) == sizeof(int), ""); 74 static_assert(sizeof(b) == sizeof(int), "");
|
/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++/libcxx/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++/libcxx/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++/libcxx/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++/libcxx/test/containers/sequences/vector.bool/ |
vector_bool.pass.cpp | 32 static_assert((std::is_base_of<std::unary_function<T, std::size_t>, 43 static_assert((std::is_base_of<std::unary_function<T, std::size_t>,
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/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++/libcxx/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++/libcxx/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++/libcxx/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,
|