/external/clang/test/SemaTemplate/ |
H A D | 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");
|
/external/clang/test/CXX/dcl.decl/dcl.init/ |
H A D | 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/bison/lib/ |
H A D | verify.h | 28 Define _GL_HAVE_STATIC_ASSERT to 1 if static_assert works as per C++11. 38 first G++ release that supports static_assert. */ 209 # if !defined _GL_HAVE_STATIC_ASSERT && !defined static_assert 210 # define static_assert _Static_assert /* C11 requires this #define. */ macro
|
/external/clang/test/Lexer/ |
H A D | 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
|
H A D | keywords_test.cpp | 53 CXX11_KEYWORD(static_assert); variable
|
/external/clang/test/CXX/dcl.decl/dcl.meaning/ |
H A D | 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/ |
H A D | 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/clang/test/SemaCXX/ |
H A D | 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");
|
H A D | 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( [all...] |
H A D | 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_exp [all...] |
H A D | 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( 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/ |
H A D | cxx_oper_keyword_ms_compat.cpp | 82 #define static_assert macro 167 static_assert
|
/external/clang/test/CXX/expr/expr.const/ |
H A D | 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(v [all...] |