blob: df9f5c8607f707b4fedb9b4bc2d4fe09ea450609 [file] [log] [blame]
Douglas Gregorb4e715b2009-04-13 20:46:52 +00001/* Used with the types.c test */
2
Douglas Gregor6d473962009-04-15 22:00:08 +00003// TYPE_EXT_QUAL
4typedef __attribute__((address_space(1))) int ASInt;
5
Douglas Gregorb4e715b2009-04-13 20:46:52 +00006// FIXME: TYPE_FIXED_WIDTH_INT
7
8// TYPE_COMPLEX
9typedef _Complex float Cfloat;
10
11// TYPE_POINTER
12typedef int * int_ptr;
13
14// TYPE_BLOCK_POINTER
15typedef int (^Block)(int, float);
16
17// TYPE_CONSTANT_ARRAY
18typedef int five_ints[5];
19
20// TYPE_INCOMPLETE_ARRAY
21typedef float float_array[];
22
Douglas Gregorba48d052009-04-22 00:21:21 +000023// TYPE_VARIABLE_ARRAY in stmts.[ch]
Douglas Gregorb4e715b2009-04-13 20:46:52 +000024
25// TYPE_VECTOR
26typedef float float4 __attribute__((vector_size(16)));
27
28// TYPE_EXT_VECTOR
29typedef float ext_float4 __attribute__((ext_vector_type(4)));
30
31// TYPE_FUNCTION_NO_PROTO
32typedef int noproto();
33
34// TYPE_FUNCTION_PROTO
35typedef float proto(float, float, ...);
36
37// TYPE_TYPEDEF
38typedef int_ptr * int_ptr_ptr;
39
Douglas Gregor0b748912009-04-14 21:18:50 +000040// TYPE_TYPEOF_EXPR
41typedef typeof(17) typeof_17;
Douglas Gregorb4e715b2009-04-13 20:46:52 +000042
43// TYPE_TYPEOF
44typedef typeof(int_ptr *) int_ptr_ptr2;