brintos

brintos / llvm-project-archived public Read only

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