Douglas Gregor | feb84b0 | 2009-04-14 21:18:50 +0000 | [diff] [blame] | 1 | // 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 | |
| 8 | int integer; |
| 9 | long long_integer; |
Douglas Gregor | e0a3a51 | 2009-04-14 21:55:33 +0000 | [diff] [blame^] | 10 | double floating; |
Douglas Gregor | feb84b0 | 2009-04-14 21:18:50 +0000 | [diff] [blame] | 11 | |
| 12 | // DeclRefExpr |
| 13 | int_decl_ref *int_ptr1 = &integer; |
| 14 | enum_decl_ref *enum_ptr1 = &integer; |
Douglas Gregor | e0a3a51 | 2009-04-14 21:55:33 +0000 | [diff] [blame^] | 15 | |
| 16 | // IntegerLiteral |
Douglas Gregor | feb84b0 | 2009-04-14 21:18:50 +0000 | [diff] [blame] | 17 | integer_literal *int_ptr2 = &integer; |
| 18 | long_literal *long_ptr1 = &long_integer; |
| 19 | |
Douglas Gregor | e0a3a51 | 2009-04-14 21:55:33 +0000 | [diff] [blame^] | 20 | // FloatingLiteral |
| 21 | floating_literal *double_ptr = &floating; |
| 22 | |
| 23 | // CharacterLiteral |
Douglas Gregor | feb84b0 | 2009-04-14 21:18:50 +0000 | [diff] [blame] | 24 | char_literal *int_ptr3 = &integer; |