Lines Matching refs:STATIC_ASSERT
4 #define STATIC_ASSERT(cond) _Static_assert(cond, #cond) macro
9 STATIC_ASSERT(__alignof__(name) == pref); \
10 STATIC_ASSERT(__alignof__(type) == pref); \
11 STATIC_ASSERT(_Alignof(type) == abi)
24 STATIC_ASSERT(__alignof__(g_packedstruct.a) == 1);
40 STATIC_ASSERT(sizeof(aligned_before_struct) == 3);
41 STATIC_ASSERT(sizeof(aligned_before_struct[1]) == 4);
42 STATIC_ASSERT(sizeof(aligned_before_struct[2]) == 6);
43 STATIC_ASSERT(sizeof(aligned_before_struct[2][1]) == 8);
44 STATIC_ASSERT(sizeof(aligned_before_struct[1][2]) == 6);
50 STATIC_ASSERT(sizeof(aligned_after_struct) == 4);
51 STATIC_ASSERT(sizeof(aligned_after_struct[1]) == 4);
52 STATIC_ASSERT(sizeof(aligned_after_struct[2]) == 8);
53 STATIC_ASSERT(sizeof(aligned_after_struct[2][1]) == 8);
54 STATIC_ASSERT(sizeof(aligned_after_struct[1][2]) == 8);