brintos

brintos / llvm-project-archived public Read only

0
0
Text · 612 B · b03c49b Raw
17 lines · c
1// RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic %s 2>&1 | FileCheck %s2 3// RUN: cp %s %t.i4// RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic %t.i 2>&1 | FileCheck %s --check-prefix=NO-WARNING --allow-empty5// RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic -x cpp-output %s 2>&1 | FileCheck %s --check-prefix=NO-WARNING --allow-empty6 7# 0 "zero"8// CHECK: line-directive-suppressed.c:[[@LINE-1]]:5: warning: {{.*}} [-Wgnu-line-marker]9 10# 1 "one" 111// CHECK: zero:2:5: warning: {{.*}} [-Wgnu-line-marker]12 13# 2 "two" 1 3 414// CHECK: one:3:5: warning: {{.*}} [-Wgnu-line-marker]15 16// NO-WARNING-NOT: warning:17