Searched defs:static_assert (Results 1 - 14 of 14) sorted by path

/external/bison/lib/
H A Dverify.h28 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/chromium_org/tools/gyp/test/mac/clang-cxx-language-standard/
H A Dc++98.cc19 static_assert, enumerator in enum:cxx11_keywords
/external/clang/test/CXX/dcl.decl/dcl.init/
H A Dp5.cpp43 #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/CXX/dcl.decl/dcl.meaning/
H A Dp1-0x.cpp54 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/clang/test/CXX/expr/expr.const/
H A Dp2-0x.cpp115 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...]
/external/clang/test/Lexer/
H A Dcxx0x_keyword_as_cxx98.cpp21 #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 Dkeywords_test.cpp27 CXX11_KEYWORD(static_assert); variable
/external/clang/test/Preprocessor/
H A Dcxx_oper_keyword_ms_compat.cpp80 #define static_assert macro
165 static_assert
/external/clang/test/SemaCXX/
H A Dabstract.cpp7 #define static_assert(__b, __m) \ macro
15 static_assert(__is_abstract(C), "C has a pure virtual function");
20 static_assert(__is_abstract(D), "D inherits from an abstract class");
26 static_assert(!__is_abstract(E), "E inherits from an abstract class but implements f");
H A Dconstant-expression-cxx11.cpp6 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(
261 static_assert(&x == &y, "false"); // expected-error {{false}} member in namespace:PointerComparison
271 static_assert(&s.x == &s.y, "false"); // expected-error {{false}} member in namespace:PointerComparison
272 static_assert(&s.x != &s.y, ""); member in namespace:PointerComparison
273 static_assert(&s.x <= &s.y, ""); member in namespace:PointerComparison
274 static_assert(&s.x >= &s.y, "false"); // expected-error {{false}} 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
285 static_assert(&x == 0, "false"); // expected-error {{false}} member in namespace:PointerComparison
292 static_assert(&x == &x, ""); member in namespace:PointerComparison
294 static_assert(&x <= &x, ""); member in namespace:PointerComparison
296 static_assert(&x < &x, "false"); // expected-error {{false}} member in namespace:PointerComparison
351 static_assert(&b1.a1 != &b1.a2, ""); member in namespace:MaterializeTemporary
352 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
356 static_assert(&b1.a1 != &b2.a1, ""); // expected-error {{constant expression}} expected-note {{outside the expression that created the temporary}} member in namespace:MaterializeTemporary
413 static_assert(*p == 's', ""); member in namespace:StringLiteral
424 static_assert(*max == 'z', ""); member in namespace:StringLiteral
[all...]
H A Dcxx1y-variable-templates_in_class.cpp8 #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 Dexpression-traits.cpp20 # 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...]
/external/clang/test/SemaTemplate/
H A Dinstantiate-array.cpp8 #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/libcxxabi/src/Unwind/
H A Dconfig.h20 // Define static_assert() unless already defined by compiler.
24 #if !(__has_feature(cxx_static_assert)) && !defined(static_assert)
25 #define static_assert(__b, __m) \ macro

Completed in 406 milliseconds