Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | /* RUN: %clang_cc1 %s -std=c89 -Eonly -verify -pedantic-errors |
Chris Lattner | 6272bcf | 2009-04-18 02:23:25 +0000 | [diff] [blame] | 2 | */ |
| 3 | |
| 4 | /* PR3919 */ |
| 5 | |
| 6 | #define foo`bar /* expected-error {{whitespace required after macro name}} */ |
Chris Lattner | d92fa47 | 2009-04-18 02:25:14 +0000 | [diff] [blame] | 7 | #define foo2!bar /* expected-warning {{whitespace recommended after macro name}} */ |
Chris Lattner | 6272bcf | 2009-04-18 02:23:25 +0000 | [diff] [blame] | 8 | |
| 9 | #define foo3$bar /* expected-error {{'$' in identifier}} */ |
| 10 | |