/external/clang/test/Headers/ |
D | limits.cpp | 8 _Static_assert(SCHAR_MAX == -(SCHAR_MIN+1), ""); 9 _Static_assert(SHRT_MAX == -(SHRT_MIN+1), ""); 10 _Static_assert(INT_MAX == -(INT_MIN+1), ""); 11 _Static_assert(LONG_MAX == -(LONG_MIN+1L), ""); 13 _Static_assert(SCHAR_MAX == UCHAR_MAX/2, ""); 14 _Static_assert(SHRT_MAX == USHRT_MAX/2, ""); 15 _Static_assert(INT_MAX == UINT_MAX/2, ""); 16 _Static_assert(LONG_MAX == ULONG_MAX/2, ""); 18 _Static_assert(SCHAR_MIN == -SCHAR_MAX-1, ""); 19 _Static_assert(SHRT_MIN == -SHRT_MAX-1, ""); [all …]
|
D | tgmath.c | 16 _Static_assert(sizeof(creal(f)) == sizeof(f), ""); 17 _Static_assert(sizeof(creal(d)) == sizeof(d), ""); 18 _Static_assert(sizeof(creal(l)) == sizeof(l), ""); 20 _Static_assert(sizeof(creal(fc)) == sizeof(f), ""); 21 _Static_assert(sizeof(creal(dc)) == sizeof(d), ""); 22 _Static_assert(sizeof(creal(lc)) == sizeof(l), ""); 26 _Static_assert(sizeof(fabs(f)) == sizeof(f), ""); 27 _Static_assert(sizeof(fabs(d)) == sizeof(d), ""); 28 _Static_assert(sizeof(fabs(l)) == sizeof(l), ""); 30 _Static_assert(sizeof(fabs(fc)) == sizeof(f), ""); [all …]
|
D | c11.c | 19 _Static_assert(__alignas_is_defined, ""); 20 _Static_assert(__alignof_is_defined, ""); 22 _Static_assert(__alignof(c) == 4, ""); 27 _Static_assert(sizeof(max_align_t) >= sizeof(long long), ""); 28 _Static_assert(alignof(max_align_t) >= alignof(long long), ""); 29 _Static_assert(sizeof(max_align_t) >= sizeof(long double), ""); 30 _Static_assert(alignof(max_align_t) >= alignof(long double), ""); 33 _Static_assert(sizeof(max_align_t) == sizeof(double), "");
|
/external/clang/test/Sema/ |
D | atomic-ops.c | 9 _Static_assert(__GCC_ATOMIC_BOOL_LOCK_FREE == 2, ""); 10 _Static_assert(__GCC_ATOMIC_CHAR_LOCK_FREE == 2, ""); 11 _Static_assert(__GCC_ATOMIC_CHAR16_T_LOCK_FREE == 2, ""); 12 _Static_assert(__GCC_ATOMIC_CHAR32_T_LOCK_FREE == 2, ""); 13 _Static_assert(__GCC_ATOMIC_WCHAR_T_LOCK_FREE == 2, ""); 14 _Static_assert(__GCC_ATOMIC_SHORT_LOCK_FREE == 2, ""); 15 _Static_assert(__GCC_ATOMIC_INT_LOCK_FREE == 2, ""); 16 _Static_assert(__GCC_ATOMIC_LONG_LOCK_FREE == 2, ""); 18 _Static_assert(__GCC_ATOMIC_LLONG_LOCK_FREE == 1, ""); 20 _Static_assert(__GCC_ATOMIC_LLONG_LOCK_FREE == 2, ""); [all …]
|
D | static-assert.c | 4 _Static_assert("foo", "string is nonzero"); 9 _Static_assert(1, "1 is nonzero"); 10 _Static_assert(0, "0 is nonzero"); // expected-error {{static_assert failed "0 is nonzero"}} 13 _Static_assert(1, "1 is nonzero"); in foo() 14 _Static_assert(0, "0 is nonzero"); // expected-error {{static_assert failed "0 is nonzero"}} in foo() 17 _Static_assert(1, invalid); // expected-error {{expected string literal for diagnostic message in s… 21 _Static_assert(1, "1 is nonzero"); 22 _Static_assert(0, "0 is nonzero"); // expected-error {{static_assert failed "0 is nonzero"}} 34 _Static_assert(ASSERT_IS_TYPE(T1), "T1 is not a type"); \ 35 _Static_assert(ASSERT_IS_TYPE(T2), "T2 is not a type"); \ [all …]
|
D | alignas.c | 25 _Static_assert(alignof(align_big) == alignof(int), "k's alignment is wrong"); 26 _Static_assert(alignof(align_small) == 1, "j's alignment is wrong"); 27 _Static_assert(alignof(align_multiple) == 8, "l's alignment is wrong"); 28 _Static_assert(alignof(struct align_member) == 8, "quuux's alignment is wrong"); 29 _Static_assert(sizeof(struct align_member) == 8, "quuux's size is wrong");
|
D | auto-type.c | 9 _Static_assert(__builtin_types_compatible_p(__typeof(a), int), "");
|
D | gnu-flags.c | 41 _Static_assert(_Alignof(align) > 0, "align's alignment is wrong");
|
/external/clang/test/Frontend/ |
D | mips-long-double.c | 9 _Static_assert(sizeof(long double) == 8, "sizeof long double is wrong"); 10 _Static_assert(_Alignof(long double) == 8, "alignof long double is wrong"); 12 _Static_assert(sizeof(long double) == 16, "sizeof long double is wrong"); 13 _Static_assert(_Alignof(long double) == 16, "alignof long double is wrong"); 16 _Static_assert(sizeof(long double) == 8, "sizeof long double is wrong"); 17 _Static_assert(_Alignof(long double) == 8, "alignof long double is wrong");
|
/external/clang/test/Modules/ |
D | include_next.c | 8 _Static_assert(ax == 1, ""); 9 _Static_assert(ay == 2, ""); 10 _Static_assert(bx == 3, ""); 11 _Static_assert(by == 4, "");
|
D | hidden-definition.cpp | 14 _Static_assert(!__is_convertible(Y*, X*), "");
|
/external/bison/lib/ |
D | verify.h | 181 _Static_assert (R, DIAGNOSTIC); \ 197 # define _GL_VERIFY _Static_assert 206 # if !defined _GL_HAVE__STATIC_ASSERT && !defined _Static_assert 207 # define _Static_assert(R, DIAGNOSTIC) _GL_VERIFY (R, DIAGNOSTIC) macro 210 # define static_assert _Static_assert /* C11 requires this #define. */
|
/external/clang/test/CodeGen/ |
D | xcore-abi.c | 3 _Static_assert(sizeof(long long) == 8, "sizeof long long is wrong"); 4 _Static_assert(_Alignof(long long) == 4, "alignof long long is wrong"); 6 _Static_assert(sizeof(double) == 8, "sizeof double is wrong"); 7 _Static_assert(_Alignof(double) == 4, "alignof double is wrong");
|
/external/clang/test/CXX/drs/ |
D | dr6xx.cpp | 24 _Static_assert(0x80000000 < -1, "0x80000000 should be unsigned"); // expected-error {{C11}} 168 _Static_assert(sizeof(x) == sizeof(int) * 10, ""); // expected-error {{C11}} 170 _Static_assert(sizeof(x) == sizeof(int) * 10, ""); // expected-error {{C11}} 173 _Static_assert(sizeof(S::x) == sizeof(int) * 10, ""); // expected-error {{C11}} 260 _Static_assert(!MB_EQ_WC, "__STDC_MB_MIGHT_NEQ_WC__ but all basic source characters have same repre… 263 _Static_assert(MB_EQ_WC, "!__STDC_MB_MIGHT_NEQ_WC__ but some character differs"); // expected-error…
|
/external/clang/test/Lexer/ |
D | coroutines.cpp | 5 #define CORO_KEYWORD(NAME) _Static_assert(!__is_identifier(NAME), #NAME) 7 #define CORO_KEYWORD(NAME) _Static_assert(__is_identifier(NAME), #NAME)
|
D | keywords_test.cpp | 18 #define IS_KEYWORD(NAME) _Static_assert(!__is_identifier(NAME), #NAME) 19 #define NOT_KEYWORD(NAME) _Static_assert(__is_identifier(NAME), #NAME)
|
/external/clang/test/Parser/ |
D | MicrosoftExtensions.c | 103 _Static_assert(__alignof(struct align_before_key1) == 16, ""); 104 _Static_assert(__alignof(struct align_before_key2) == 16, ""); 105 _Static_assert(__alignof(struct align_before_key3) == 16, "");
|
/external/clang/test/SemaCXX/ |
D | MicrosoftExtensions.cpp | 401 _Static_assert(__alignof(S) == 4, ""); in AfterClassBody() 402 _Static_assert(__alignof(s1) == 8, ""); in AfterClassBody() 403 _Static_assert(__alignof(s2) == 4, ""); in AfterClassBody()
|
/external/boringssl/src/include/openssl/ |
D | type_check.h | 80 #define OPENSSL_COMPILE_ASSERT(cond, msg) _Static_assert(cond, #msg)
|
/external/clang/test/Preprocessor/ |
D | macro_arg_directive.c | 8 _Static_assert(n == 5, "");
|
/external/clang/include/clang/Basic/ |
D | TokenKinds.def | 293 KEYWORD(_Static_assert , KEYALL)
|
D | DiagnosticParseKinds.td | 343 "_Static_assert is a C11-specific feature">, InGroup<C11>;
|
/external/clang/docs/ |
D | LanguageExtensions.rst | 925 C11 ``_Static_assert()`` 929 to determine if support for compile-time assertions using ``_Static_assert`` is
|