2009-12-16 04:14:24 +08:00
|
|
|
/* RUN: %clang_cc1 %s -std=c89 -Eonly -verify -pedantic-errors
|
2013-03-06 06:51:04 +08:00
|
|
|
* RUN: %clang_cc1 %s -std=c89 -E | FileCheck %s
|
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}} */
|
|
|
|
|
2013-03-06 06:51:04 +08:00
|
|
|
/* CHECK-NOT: this comment should be missing
|
|
|
|
* CHECK: {{^}}// this comment should be present{{$}}
|
|
|
|
*/
|
|
|
|
// this comment should be present
|