blob: 49966a3c46fe5ff2ffb27221deb2ba9db939777f [file] [log] [blame]
Douglas Gregor0b748912009-04-14 21:18:50 +00001// Header for PCH test exprs.c
2
3// DeclRefExpr
4int i = 17;
5enum Enum { Enumerator = 18 };
6typedef typeof(i) int_decl_ref;
7typedef typeof(Enumerator) enum_decl_ref;
8
Douglas Gregor17fc2232009-04-14 21:55:33 +00009// IntegerLiteral
Douglas Gregor0b748912009-04-14 21:18:50 +000010typedef typeof(17) integer_literal;
11typedef typeof(17l) long_literal;
12
Douglas Gregordb600c32009-04-15 00:25:59 +000013// FloatingLiteral and ParenExpr
Douglas Gregorc04db4f2009-04-14 23:59:37 +000014typedef typeof((42.5)) floating_literal;
Douglas Gregor17fc2232009-04-14 21:55:33 +000015
16// CharacterLiteral
Douglas Gregor0b748912009-04-14 21:18:50 +000017typedef typeof('a') char_literal;
Douglas Gregor17fc2232009-04-14 21:55:33 +000018
Douglas Gregor0b0b77f2009-04-15 15:58:59 +000019// UnaryOperator
20typedef typeof(-Enumerator) negate_enum;
21
22// SizeOfAlignOfExpr
23typedef typeof(sizeof(int)) typeof_sizeof;
24typedef typeof(sizeof(Enumerator)) typeof_sizeof2;
25
Douglas Gregordb600c32009-04-15 00:25:59 +000026// BinaryOperator
27typedef typeof(i + Enumerator) add_result;
28
29// CStyleCastExpr
30typedef typeof((void *)0) void_ptr;
31