int i = 17;
enum Enum { Enumerator = 18 };
typedef typeof(i) int_decl_ref;
typedef typeof(Enumerator) enum_decl_ref;
typedef typeof(17) integer_literal;
typedef typeof(17l) long_literal;
typedef typeof((42.5)) floating_literal;
typedef typeof(17.0i) imaginary_literal;
const char *hello = "Hello" "PCH" "World";
typedef typeof('a') char_literal;
typedef typeof(-Enumerator) negate_enum;
struct X {
int member;
};
struct Y {
struct X array[5];
};
struct Z {
struct Y y;
};
typedef typeof(__builtin_offsetof(struct Z, y.array[1 + 2].member))
offsetof_type;
typedef typeof(sizeof(int)) typeof_sizeof;
typedef typeof(sizeof(Enumerator)) typeof_sizeof2;
extern double values[];
typedef typeof(values[2]) array_subscript;
double dplus(double x, double y);
double d0, d1;
typedef typeof((&dplus)(d0, d1)) call_returning_double;
struct S {
double x;
};
typedef typeof(((struct S*)0)->x) member_ref_double;
typedef typeof(i + Enumerator) add_result;
typedef typeof(i += Enumerator) addeq_result;
typedef typeof(i? : d0) conditional_operator;
typedef typeof((void *)0) void_ptr;
typedef typeof((struct S){.x = 3.5}) compound_literal;
typedef typeof(i + sizeof(int[i + Enumerator])) add_result_with_typeinfo;
typedef __attribute__(( ext_vector_type(2) )) double double2;
extern double2 vec2, vec2b;
typedef typeof(vec2.x) ext_vector_element;
double double_array[3] = { 1.0, 2.0 };
struct {
int x;
float y;
} designated_inits[3] = { [0].y = 17,
[2].x = 12.3, 3.5 };
typedef typeof(__builtin_types_compatible_p(float, double)) types_compatible;
typedef typeof(__builtin_choose_expr(17 > 19, d0, 1)) choose_expr;
typedef typeof(__builtin_shufflevector(vec2, vec2b, 2, 1)) shuffle_expr;
typedef typeof(_Generic(i, char*: 0, int: 0., default: hello))
generic_selection_expr;