2009-12-16 04:14:24 +08:00
|
|
|
/* RUN: %clang_cc1 %s -std=c89 -Eonly -verify -pedantic-errors
|
2009-04-18 10:23:25 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* PR3919 */
|
|
|
|
|
|
|
|
#define foo`bar /* expected-error {{whitespace required after macro name}} */
|
2009-04-18 10:25:14 +08:00
|
|
|
#define foo2!bar /* expected-warning {{whitespace recommended after macro name}} */
|
2009-04-18 10:23:25 +08:00
|
|
|
|
|
|
|
#define foo3$bar /* expected-error {{'$' in identifier}} */
|
|
|
|
|