blob: 1d5010d75e34e1e579ce135f83cc344c94676829 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001/* RUN: %clang_cc1 %s -std=c89 -Eonly -verify -pedantic-errors
Chris Lattner6272bcf2009-04-18 02:23:25 +00002 */
3
4/* PR3919 */
5
6#define foo`bar /* expected-error {{whitespace required after macro name}} */
Chris Lattnerd92fa472009-04-18 02:25:14 +00007#define foo2!bar /* expected-warning {{whitespace recommended after macro name}} */
Chris Lattner6272bcf2009-04-18 02:23:25 +00008
9#define foo3$bar /* expected-error {{'$' in identifier}} */
10