blob: b76a0e6300823b8061b80dac862cea782f3bb1ff [file] [log] [blame]
Douglas Gregor0b748912009-04-14 21:18:50 +00001// Test this without pch.
2// RUN: clang-cc -fblocks -include %S/exprs.h -fsyntax-only -verify %s
3
4// Test with pch.
5// RUN: clang-cc -emit-pch -fblocks -o %t %S/exprs.h &&
6// RUN: clang-cc -fblocks -include-pch %t -fsyntax-only -verify %s
7
8int integer;
9long long_integer;
Douglas Gregor17fc2232009-04-14 21:55:33 +000010double floating;
Douglas Gregor0b748912009-04-14 21:18:50 +000011
12// DeclRefExpr
13int_decl_ref *int_ptr1 = &integer;
14enum_decl_ref *enum_ptr1 = &integer;
Douglas Gregor17fc2232009-04-14 21:55:33 +000015
16// IntegerLiteral
Douglas Gregor0b748912009-04-14 21:18:50 +000017integer_literal *int_ptr2 = &integer;
18long_literal *long_ptr1 = &long_integer;
19
Douglas Gregordb600c32009-04-15 00:25:59 +000020// FloatingLiteral + ParenExpr
Douglas Gregor17fc2232009-04-14 21:55:33 +000021floating_literal *double_ptr = &floating;
22
23// CharacterLiteral
Douglas Gregor0b748912009-04-14 21:18:50 +000024char_literal *int_ptr3 = &integer;
Douglas Gregordb600c32009-04-15 00:25:59 +000025
26// BinaryOperator
27add_result *int_ptr4 = &integer;
28
29// CStyleCastExpr
30void_ptr vp1 = &integer;