Douglas Gregor | b4e715b | 2009-04-13 20:46:52 +0000 | [diff] [blame] | 1 | /* Used with the types.c test */ |
| 2 | |
Douglas Gregor | 6d47396 | 2009-04-15 22:00:08 +0000 | [diff] [blame] | 3 | // TYPE_EXT_QUAL |
| 4 | typedef __attribute__((address_space(1))) int ASInt; |
| 5 | |
Douglas Gregor | b4e715b | 2009-04-13 20:46:52 +0000 | [diff] [blame] | 6 | // FIXME: TYPE_FIXED_WIDTH_INT |
| 7 | |
| 8 | // TYPE_COMPLEX |
| 9 | typedef _Complex float Cfloat; |
| 10 | |
| 11 | // TYPE_POINTER |
| 12 | typedef int * int_ptr; |
| 13 | |
| 14 | // TYPE_BLOCK_POINTER |
| 15 | typedef int (^Block)(int, float); |
| 16 | |
| 17 | // TYPE_CONSTANT_ARRAY |
| 18 | typedef int five_ints[5]; |
| 19 | |
| 20 | // TYPE_INCOMPLETE_ARRAY |
| 21 | typedef float float_array[]; |
| 22 | |
Douglas Gregor | ba48d05 | 2009-04-22 00:21:21 +0000 | [diff] [blame] | 23 | // TYPE_VARIABLE_ARRAY in stmts.[ch] |
Douglas Gregor | b4e715b | 2009-04-13 20:46:52 +0000 | [diff] [blame] | 24 | |
| 25 | // TYPE_VECTOR |
| 26 | typedef float float4 __attribute__((vector_size(16))); |
| 27 | |
| 28 | // TYPE_EXT_VECTOR |
| 29 | typedef float ext_float4 __attribute__((ext_vector_type(4))); |
| 30 | |
| 31 | // TYPE_FUNCTION_NO_PROTO |
| 32 | typedef int noproto(); |
| 33 | |
| 34 | // TYPE_FUNCTION_PROTO |
| 35 | typedef float proto(float, float, ...); |
| 36 | |
| 37 | // TYPE_TYPEDEF |
| 38 | typedef int_ptr * int_ptr_ptr; |
| 39 | |
Douglas Gregor | 0b74891 | 2009-04-14 21:18:50 +0000 | [diff] [blame] | 40 | // TYPE_TYPEOF_EXPR |
| 41 | typedef typeof(17) typeof_17; |
Douglas Gregor | b4e715b | 2009-04-13 20:46:52 +0000 | [diff] [blame] | 42 | |
| 43 | // TYPE_TYPEOF |
| 44 | typedef typeof(int_ptr *) int_ptr_ptr2; |