2009-04-15 05:18:50 +08:00
|
|
|
// Header for PCH test exprs.c
|
|
|
|
|
|
|
|
// DeclRefExpr
|
|
|
|
int i = 17;
|
|
|
|
enum Enum { Enumerator = 18 };
|
|
|
|
typedef typeof(i) int_decl_ref;
|
|
|
|
typedef typeof(Enumerator) enum_decl_ref;
|
|
|
|
|
2009-04-15 05:55:33 +08:00
|
|
|
// IntegerLiteral
|
2009-04-15 05:18:50 +08:00
|
|
|
typedef typeof(17) integer_literal;
|
|
|
|
typedef typeof(17l) long_literal;
|
|
|
|
|
2009-04-15 08:25:59 +08:00
|
|
|
// FloatingLiteral and ParenExpr
|
2009-04-15 07:59:37 +08:00
|
|
|
typedef typeof((42.5)) floating_literal;
|
2009-04-15 05:55:33 +08:00
|
|
|
|
|
|
|
// CharacterLiteral
|
2009-04-15 05:18:50 +08:00
|
|
|
typedef typeof('a') char_literal;
|
2009-04-15 05:55:33 +08:00
|
|
|
|
2009-04-15 23:58:59 +08:00
|
|
|
// UnaryOperator
|
|
|
|
typedef typeof(-Enumerator) negate_enum;
|
|
|
|
|
|
|
|
// SizeOfAlignOfExpr
|
|
|
|
typedef typeof(sizeof(int)) typeof_sizeof;
|
|
|
|
typedef typeof(sizeof(Enumerator)) typeof_sizeof2;
|
|
|
|
|
2009-04-15 08:25:59 +08:00
|
|
|
// BinaryOperator
|
|
|
|
typedef typeof(i + Enumerator) add_result;
|
|
|
|
|
|
|
|
// CStyleCastExpr
|
|
|
|
typedef typeof((void *)0) void_ptr;
|
|
|
|
|