typedef __SVInt8_t svint8_t;
typedef __SVInt16_t svint16_t;
svint8_t global_int8; extern svint8_t extern_int8; static svint8_t static_int8; __thread svint8_t thread_int8; svint8_t *global_int8_ptr;
extern svint8_t *extern_int8_ptr;
static svint8_t *static_int8_ptr;
typedef svint8_t int8_typedef;
typedef svint8_t *int8_ptr_typedef;
int sizeof_int8 = sizeof(svint8_t); int sizeof_int8_var = sizeof(*extern_int8_ptr); int sizeof_int8_var_ptr = sizeof(extern_int8_ptr);
int alignof_int8 = _Alignof(svint8_t); int alignof_int8_var = _Alignof(*extern_int8_ptr); int alignof_int8_var_ptr = _Alignof(extern_int8_ptr);
void pass_int8(svint8_t);
svint8_t return_int8(void);
typedef svint8_t vec_int8_a __attribute__((vector_size(64))); typedef svint8_t vec_int8_b __attribute__((ext_vector_type(4)));
void dump(const volatile void *);
void __attribute__((overloadable)) overf(svint8_t);
void __attribute__((overloadable)) overf(svint16_t);
void __attribute__((overloadable)) overf8(svint8_t); void __attribute__((overloadable)) overf8(int);
void __attribute__((overloadable)) overf16(svint16_t); void __attribute__((overloadable)) overf16(int);
void noproto();
void varargs(int, ...);
void unused(void) {
svint8_t unused_int8; }
struct incomplete_struct *incomplete_ptr;
typedef svint8_t sizeless_array[1];
void func(int sel) {
static svint8_t static_int8;
svint8_t local_int8;
int8_typedef typedef_int8;
svint16_t local_int16;
svint8_t __attribute__((aligned)) aligned_int8_1; svint8_t __attribute__((aligned(4))) aligned_int8_2; svint8_t _Alignas(int) aligned_int8_3;
int _Alignas(svint8_t) aligned_int;
_Static_assert(__atomic_is_lock_free(1, &local_int8) == __atomic_is_lock_free(1, incomplete_ptr), "");
_Static_assert(__atomic_is_lock_free(2, &local_int8) == __atomic_is_lock_free(2, incomplete_ptr), ""); _Static_assert(__atomic_always_lock_free(1, &local_int8) == __atomic_always_lock_free(1, incomplete_ptr), "");
local_int8;
(void)local_int8;
local_int8, 0;
0, local_int8;
svint8_t init_int8 = local_int8;
svint8_t bad_init_int8 = for;
int empty_brace_init_int = {}; svint8_t empty_brace_init_int8 = {}; svint8_t brace_init_int8 = {local_int8};
svint8_t bad_brace_init_int8_1 = {local_int8, 0}; svint8_t bad_brace_init_int8_2 = {0}; svint8_t bad_brace_init_int8_3 = {local_int16}; svint8_t bad_brace_init_int8_4 = {[0] = local_int8}; svint8_t bad_brace_init_int8_5 = {{local_int8}}; svint8_t bad_brace_init_int8_6 = {{local_int8, 0}};
const svint8_t const_int8 = local_int8; const svint8_t uninit_const_int8;
volatile svint8_t volatile_int8;
const volatile svint8_t const_volatile_int8 = local_int8; const volatile svint8_t uninit_const_volatile_int8;
_Atomic svint8_t atomic_int8; __restrict svint8_t restrict_int8;
svint8_t array_int8[1]; svint8_t array_int8_init[] = {};
_Bool test_int8 = init_int8;
int int_int8 = init_int8;
init_int8 = local_int8;
init_int8 = local_int16; init_int8 = sel;
sel = local_int8;
local_int8 = (svint8_t)local_int8;
local_int8 = (const svint8_t)local_int8;
local_int8 = (svint8_t)local_int16; local_int8 = (svint8_t)0; sel = (int)local_int8;
init_int8 = local_int8;
init_int8 = const_int8;
init_int8 = volatile_int8;
init_int8 = const_volatile_int8;
const_int8 = local_int8;
volatile_int8 = local_int8;
volatile_int8 = const_int8;
volatile_int8 = volatile_int8;
volatile_int8 = const_volatile_int8;
const_volatile_int8 = local_int8;
init_int8 = sel ? init_int8 : local_int8;
init_int8 = sel ? init_int8 : typedef_int8;
init_int8 = sel ? init_int8 : const_int8;
init_int8 = sel ? volatile_int8 : const_int8;
init_int8 = sel ? volatile_int8 : const_volatile_int8;
pass_int8(local_int8);
pass_int8(local_int16);
local_int8 = return_int8();
local_int16 = return_int8();
dump(&local_int8);
dump(&const_int8);
dump(&volatile_int8);
dump(&const_volatile_int8);
dump(&local_int8 + 1);
*&local_int8 = local_int8;
*&const_int8 = local_int8; *&volatile_int8 = local_int8;
*&const_volatile_int8 = local_int8;
global_int8_ptr[0] = local_int8; global_int8_ptr[1] = local_int8; global_int8_ptr = &global_int8_ptr[2];
overf(local_int8);
overf(local_int16);
overf8(local_int8);
overf8(local_int16);
overf16(local_int8); overf16(local_int16);
noproto(local_int8);
varargs(1, local_int8, local_int16);
global_int8_ptr++; global_int8_ptr--; ++global_int8_ptr; --global_int8_ptr; global_int8_ptr + 1; global_int8_ptr - 1; global_int8_ptr += 1; global_int8_ptr -= 1; global_int8_ptr - global_int8_ptr;
++init_int8; init_int8++; --init_int8; init_int8--; !init_int8; *init_int8; __real init_int8; __imag init_int8;
local_int8 &&init_int8; local_int8 || init_int8;
if (local_int8) { }
while (local_int8) { }
do { } while (local_int8);
switch (local_int8) { default:;
}
}
int vararg_receiver(int count, svint8_t first, ...) {
__builtin_va_list va;
__builtin_va_start(va, first);
__builtin_va_arg(va, svint8_t);
__builtin_va_end(va);
return count;
}
struct sized_struct {
int f1;
svint8_t f2; svint8_t f3 : 2; svint8_t : 3; };
union sized_union {
int f1;
svint8_t f2; svint8_t f3 : 2; svint8_t : 3; };
#if __STDC_VERSION__ >= 201112L
void test_generic(void) {
svint8_t local_int8;
svint16_t local_int16;
int a1[_Generic(local_int8, svint8_t : 1, svint16_t : 2, default : 3) == 1 ? 1 : -1];
int a2[_Generic(local_int16, svint8_t : 1, svint16_t : 2, default : 3) == 2 ? 1 : -1];
int a3[_Generic(0, svint8_t : 1, svint16_t : 2, default : 3) == 3 ? 1 : -1];
(void)_Generic(0, svint8_t : 1, svint8_t : 2, default : 3); }
void test_compound_literal(void) {
svint8_t local_int8;
(void)(svint8_t){local_int8};
}
#endif