brintos

brintos / llvm-project-archived public Read only

0
0
Text · 915 B · 7df3f99 Raw
51 lines · c
1/* Used with the types.c test */2 3// TYPE_EXT_QUAL4typedef __attribute__((address_space(1))) int ASInt;5 6// TYPE_COMPLEX7typedef _Complex float Cfloat;8 9// TYPE_ATOMIC10typedef _Atomic(int) AtomicInt;11 12// TYPE_POINTER13typedef int * int_ptr;14 15// TYPE_BLOCK_POINTER16typedef int (^Block)(int, float);17 18// TYPE_CONSTANT_ARRAY19typedef int five_ints[5];20 21// TYPE_INCOMPLETE_ARRAY22typedef float float_array[];23 24// TYPE_VARIABLE_ARRAY in stmts.[ch]25 26// TYPE_VECTOR27typedef float float4 __attribute__((vector_size(16)));28 29// TYPE_EXT_VECTOR30typedef float ext_float4 __attribute__((ext_vector_type(4)));31 32// TYPE_FUNCTION_NO_PROTO33typedef int noproto();34 35// TYPE_FUNCTION_PROTO36typedef float proto(float, float, ...);37 38// TYPE_TYPEDEF39typedef int_ptr * int_ptr_ptr;40 41// TYPE_TYPEOF_EXPR42typedef typeof(17) typeof_17;43 44// TYPE_TYPEOF45typedef typeof(int_ptr *) int_ptr_ptr2;46 47struct S2;48struct S2 {};49enum E;50enum E { myenum };51