In the latest episode of "Deserializing bugs caused by accessors" the series reached...
[clang.git] / test / PCH / types.h
blobab42331fe4133357a765ae02417ba7e8d21be5c9
1 /* Used with the types.c test */
3 // TYPE_EXT_QUAL
4 typedef __attribute__((address_space(1))) int ASInt;
6 // FIXME: TYPE_FIXED_WIDTH_INT
8 // TYPE_COMPLEX
9 typedef _Complex float Cfloat;
11 // TYPE_POINTER
12 typedef int * int_ptr;
14 // TYPE_BLOCK_POINTER
15 typedef int (^Block)(int, float);
17 // TYPE_CONSTANT_ARRAY
18 typedef int five_ints[5];
20 // TYPE_INCOMPLETE_ARRAY
21 typedef float float_array[];
23 // TYPE_VARIABLE_ARRAY in stmts.[ch]
25 // TYPE_VECTOR
26 typedef float float4 __attribute__((vector_size(16)));
28 // TYPE_EXT_VECTOR
29 typedef float ext_float4 __attribute__((ext_vector_type(4)));
31 // TYPE_FUNCTION_NO_PROTO
32 typedef int noproto();
34 // TYPE_FUNCTION_PROTO
35 typedef float proto(float, float, ...);
37 // TYPE_TYPEDEF
38 typedef int_ptr * int_ptr_ptr;
40 // TYPE_TYPEOF_EXPR
41 typedef typeof(17) typeof_17;
43 // TYPE_TYPEOF
44 typedef typeof(int_ptr *) int_ptr_ptr2;
46 struct S2;
47 struct S2 {};
48 enum E;
49 enum E { myenum };