/bionic/libc/include/ |
assert.h | 58 # undef static_assert macro 59 # define static_assert _Static_assert macro
|
/external/clang/test/SemaTemplate/ |
instantiate-array.cpp | 8 #define static_assert(__b, __m) \ macro 16 static_assert(sizeof(IntArray<10>) == sizeof(int) * 10, "Array size mismatch"); 17 static_assert(sizeof(IntArray<1>) == sizeof(int) * 1, "Array size mismatch"); 23 static_assert(sizeof(TenElementArray<int>) == sizeof(int) * 10, "Array size mismatch"); 29 static_assert(sizeof(Array<int, 10>) == sizeof(int) * 10, "Array size mismatch");
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
assert.h | 60 #undef static_assert macro 61 #define static_assert _Static_assert macro
|
/external/clang/test/CXX/dcl.decl/dcl.init/ |
p5.cpp | 43 #define static_assert(B, S) typedef int assert_failed[(B) ? 1 : -1]; macro 44 static_assert(__has_trivial_constructor(S), ""); 45 static_assert(__has_trivial_constructor(T), ""); 46 static_assert(__has_trivial_constructor(U), ""); 47 static_assert(!__has_trivial_constructor(V), ""); 48 static_assert(!__has_trivial_constructor(W), "");
|
/external/clang/test/Lexer/ |
cxx0x_keyword_as_cxx98.cpp | 21 #define static_assert(b, s) int CONCAT(check, __LINE__)[(b) ? 1 : 0]; macro 22 static_assert(1 > 0, "hello"); // ok 35 int static_assert; // expected-warning {{'static_assert' is a keyword in C++11}} variable
|
keywords_test.cpp | 53 CXX11_KEYWORD(static_assert); variable
|
/external/clang/test/CXX/dcl.decl/dcl.meaning/ |
p1-0x.cpp | 54 static_assert(&f != &M::f, ""); // expected-error {{reference to overloaded function could not be resolved}} 55 static_assert(&m != &M::m, ""); // expected-error {{ambiguous}} 85 static_assert(&N::g == &N::M::g, ""); member in namespace:inline_namespaces 86 static_assert(&N::n == &N::M::n, ""); member in namespace:inline_namespaces
|
/external/libunwind_llvm/src/ |
config.h | 22 // Define static_assert() unless already defined by compiler. 26 #if !(__has_feature(cxx_static_assert)) && !defined(static_assert) 27 #define static_assert(__b, __m) \ macro
|
/external/tensorflow/tensorflow/core/lib/strings/ |
numbers.cc | 159 static_assert(DBL_DIG < 20, "DBL_DIG is too big"); function 333 static_assert(FLT_DIG < 10, "FLT_DIG is too big");
|
/external/clang/test/SemaCXX/ |
abstract.cpp | 7 #define static_assert(__b, __m) \ macro 13 static_assert(!__is_abstract(IncompleteUnion), "unions are never abstract"); 19 static_assert(__is_abstract(C), "C has a pure virtual function"); 24 static_assert(__is_abstract(D), "D inherits from an abstract class"); 30 static_assert(!__is_abstract(E), "E inherits from an abstract class but implements f");
|
cxx1y-variable-templates_in_class.cpp | 8 #define static_assert(expr, msg) typedef int static_assert[(expr) ? 1 : -1]; macro 121 static_assert(c0_test == 0, ""); 210 static_assert(D3<float>::Data<int> == 100, ""); 248 static_assert(S<int>::V1<int> == 123, ""); 255 static_assert(S<int>::V2<int*> == 456, ""); // FIXME expected-error {{}} 256 static_assert(S<int>::V2<int&> == 789, ""); // expected-error {{}} 259 static_assert(S<int>::V2<int&> == 789, ""); // FIXME expected-error {{}} 263 static_assert(S<char>::V1<int> == 123, ""); 264 static_assert(S<char>::V2<int*> == 456, "") [all...] |
expression-traits.cpp | 20 # define static_assert(b_, m_) \ macro 39 static_assert(__is_lvalue_expr(expr), "should be an lvalue"); \ 40 static_assert(__is_lvalue_expr((expr)), \ 43 static_assert(!__is_rvalue_expr(expr), "should be an lvalue"); \ 44 static_assert(!__is_rvalue_expr((expr)), \ 49 static_assert(__is_rvalue_expr(expr), "should be an rvalue"); \ 50 static_assert(__is_rvalue_expr((expr)), \ 53 static_assert(!__is_lvalue_expr(expr), "should be an rvalue"); \ 54 static_assert(!__is_lvalue_expr((expr)), \ 586 static_assert(__is_lvalue_expr(x,x), "expected an lvalue") [all...] |
constant-expression-cxx11.cpp | 6 static_assert(++x, "test"); // expected-error {{not an integral constant expression}} 7 static_assert(false, "test"); // expected-error {{test}} 41 static_assert((void*)p != (void*)q, ""); 42 static_assert((A*)p == (A*)q, ""); 43 static_assert((Aa*)p != (Aa*)q, ""); 47 static_assert((void*)&pp != (void*)&qq, ""); 48 static_assert(&(A&)pp == &(A&)qq, ""); member in namespace:DerivedToVBaseCast 49 static_assert(&(Aa&)pp != &(Aa&)qq, ""); 54 static_assert(v == w, ""); 55 static_assert(v == x, "") 263 static_assert(&x == &y, "false"); \/\/ expected-error {{false}} member in namespace:PointerComparison 273 static_assert(&s.x == &s.y, "false"); \/\/ expected-error {{false}} member in namespace:PointerComparison 274 static_assert(&s.x != &s.y, ""); member in namespace:PointerComparison 275 static_assert(&s.x <= &s.y, ""); member in namespace:PointerComparison 276 static_assert(&s.x >= &s.y, "false"); \/\/ expected-error {{false}} member in namespace:PointerComparison 277 static_assert(&s.x < &s.y, ""); member in namespace:PointerComparison 278 static_assert(&s.x > &s.y, "false"); \/\/ expected-error {{false}} member in namespace:PointerComparison 287 static_assert(&x == 0, "false"); \/\/ expected-error {{false}} member in namespace:PointerComparison 294 static_assert(&x == &x, ""); member in namespace:PointerComparison 296 static_assert(&x <= &x, ""); member in namespace:PointerComparison 298 static_assert(&x < &x, "false"); \/\/ expected-error {{false}} member in namespace:PointerComparison 353 static_assert(&b1.a1 != &b1.a2, ""); member in namespace:MaterializeTemporary 354 static_assert(&b1.a1.r != &b1.a2.r, ""); \/\/ expected-error {{constant expression}} expected-note {{outside the expression that created the temporary}} member in namespace:MaterializeTemporary 358 static_assert(&b1.a1 != &b2.a1, ""); \/\/ expected-error {{constant expression}} expected-note {{outside the expression that created the temporary}} member in namespace:MaterializeTemporary 415 static_assert(*p == 's', ""); member in namespace:StringLiteral 426 static_assert(*max == 'z', ""); member in namespace:StringLiteral [all...] |
/external/clang/test/Preprocessor/ |
cxx_oper_keyword_ms_compat.cpp | 82 #define static_assert macro 167 static_assert
|
/external/clang/test/CXX/expr/expr.const/ |
p2-0x.cpp | 115 static_assert(p, ""); 124 static_assert(!q, ""); 202 static_assert((A*)nb == 0, ""); 203 static_assert((B*)na == 0, ""); 221 static_assert(&a[2][0] == &a[1][3], ""); member in namespace:UndefinedBehavior::Ptr 262 static_assert(65536u * 65536u == 0u, ""); // ok 263 static_assert(4294967295u + 1u == 0u, ""); // ok 264 static_assert(0u - 1u == 4294967295u, ""); // ok 265 static_assert(~0u * ~0u == 1u, ""); // ok 292 static_assert(vi, ""); // expected-error {{constant expression}} expected-note {{read of volatile-qualified type (…) [all...] |
/external/harfbuzz_ng/src/ |
hb-private.hh | 82 #ifndef static_assert 83 #define static_assert(e, msg) \ macro 85 #endif // static_assert 256 static_assert ((sizeof (int8_t) == 1), ""); 257 static_assert ((sizeof (uint8_t) == 1), ""); 258 static_assert ((sizeof (int16_t) == 2), ""); 259 static_assert ((sizeof (uint16_t) == 2), ""); 260 static_assert ((sizeof (int32_t) == 4), ""); 261 static_assert ((sizeof (uint32_t) == 4), ""); 262 static_assert ((sizeof (int64_t) == 8), "") [all...] |
/hardware/libhardware_legacy/include/hardware_legacy/ |
gscan.h | 6 // Define static_assert() unless already defined by compiler. 10 #if !(__has_feature(cxx_static_assert)) && !defined(static_assert) 11 #define static_assert(__b, __m) \ macro 105 static_assert(MAX_BUCKETS <= 8 * sizeof(unsigned),
|