1*f4a2713aSLionel Sambuc /* RUN: %clang_cc1 %s -std=c89 -Eonly -verify -pedantic-errors 2*f4a2713aSLionel Sambuc * RUN: %clang_cc1 %s -std=c89 -E | FileCheck %s 3*f4a2713aSLionel Sambuc */ 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc /* PR3919 */ 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc #define foo`bar /* expected-error {{whitespace required after macro name}} */ 8*f4a2713aSLionel Sambuc #define foo2!bar /* expected-warning {{whitespace recommended after macro name}} */ 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc #define foo3$bar /* expected-error {{'$' in identifier}} */ 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc /* CHECK-NOT: this comment should be missing 13*f4a2713aSLionel Sambuc * CHECK: {{^}}// this comment should be present{{$}} 14*f4a2713aSLionel Sambuc */ 15*f4a2713aSLionel Sambuc // this comment should be present 16