Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | /* RUN: %clang_cc1 %s -std=c89 -Eonly -verify -pedantic-errors |
Jordan Rose | 693fdfa | 2013-03-05 22:51:04 +0000 | [diff] [blame] | 2 | * RUN: %clang_cc1 %s -std=c89 -E | FileCheck %s |
Chris Lattner | 6272bcf | 2009-04-18 02:23:25 +0000 | [diff] [blame] | 3 | */ |
| 4 | |
| 5 | /* PR3919 */ |
| 6 | |
| 7 | #define foo`bar /* expected-error {{whitespace required after macro name}} */ |
Chris Lattner | d92fa47 | 2009-04-18 02:25:14 +0000 | [diff] [blame] | 8 | #define foo2!bar /* expected-warning {{whitespace recommended after macro name}} */ |
Chris Lattner | 6272bcf | 2009-04-18 02:23:25 +0000 | [diff] [blame] | 9 | |
| 10 | #define foo3$bar /* expected-error {{'$' in identifier}} */ |
| 11 | |
Jordan Rose | 693fdfa | 2013-03-05 22:51:04 +0000 | [diff] [blame] | 12 | /* CHECK-NOT: this comment should be missing |
| 13 | * CHECK: {{^}}// this comment should be present{{$}} |
| 14 | */ |
| 15 | // this comment should be present |