/external/clang/test/Headers/ |
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...] |
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...] |
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/ |
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"); 14 _Static_assert(0, "0 is nonzero"); // expected-error {{static_assert failed "0 is nonzero"}} 17 _Static_assert(1, invalid); // expected-error {{expected string literal for diagnostic message in static_assert}} 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...] |
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");
|
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...] |
auto-type.c | 9 _Static_assert(__builtin_types_compatible_p(__typeof(a), int), "");
|
/external/clang/test/Frontend/ |
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/ |
include_next.c | 8 _Static_assert(ax == 1, ""); 9 _Static_assert(ay == 2, ""); 10 _Static_assert(bx == 3, ""); 11 _Static_assert(by == 4, "");
|
hidden-definition.cpp | 14 _Static_assert(!__is_convertible(Y*, X*), "");
|
/external/clang/test/Lexer/ |
coroutines.cpp | 5 #define CORO_KEYWORD(NAME) _Static_assert(!__is_identifier(NAME), #NAME) 7 #define CORO_KEYWORD(NAME) _Static_assert(__is_identifier(NAME), #NAME)
|
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/Preprocessor/ |
macro_arg_directive.c | 8 _Static_assert(n == 5, "");
|
/external/bison/lib/ |
verify.h | 24 /* Define _GL_HAVE__STATIC_ASSERT to 1 if _Static_assert works as per C11. 47 If _Static_assert works, verify (R) uses it directly. Similarly, 48 _GL_VERIFY_TRUE works by packaging a _Static_assert inside a struct 52 compilers that do not support _Static_assert: 133 which do not support _Static_assert, also do not warn about the 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) 210 # define static_assert _Static_assert /* C11 requires this #define. * [all...] |
/external/clang/test/Parser/ |
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, "");
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
assert.h | 61 #define static_assert _Static_assert
|
crtdbg.h | 96 #ifndef _STATIC_ASSERT 98 #define _STATIC_ASSERT(expr) typedef char __static_assert_t[(expr)] 100 #define _STATIC_ASSERT(expr) extern void __static_assert_t(int [(expr)?1:-1])
|
malloc.h | 23 #ifndef _STATIC_ASSERT 25 #define _STATIC_ASSERT(expr) typedef char __static_assert_t[(expr)] 27 #define _STATIC_ASSERT(expr) extern void __static_assert_t(int [(expr)?1:-1])
|
/system/extras/boot_control_copy/ |
bootinfo.h | 62 _Static_assert(sizeof(BrilloBootInfo) == 32, "BrilloBootInfo has wrong size");
|
/external/clang/test/CXX/drs/ |
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 representation"); // expected-error {{C11}} 263 _Static_assert(MB_EQ_WC, "!__STDC_MB_MIGHT_NEQ_WC__ but some character differs"); // expected-error {{C11}}
|
/external/clang/test/CodeGen/ |
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/SemaCXX/ |
MicrosoftExtensions.cpp | 401 _Static_assert(__alignof(S) == 4, ""); 402 _Static_assert(__alignof(s1) == 8, ""); 403 _Static_assert(__alignof(s2) == 4, "");
|
/bionic/libm/include/ |
complex.h | 42 _Static_assert(__generic(_Complex_I, float _Complex, 1, 0),
|
/development/ndk/platforms/android-21/include/ |
complex.h | 42 _Static_assert(__generic(_Complex_I, float _Complex, 1, 0),
|
/external/boringssl/src/include/openssl/ |
type_check.h | 80 #define OPENSSL_COMPILE_ASSERT(cond, msg) _Static_assert(cond, #msg)
|