Debian Codegraph @

clang/test/Preprocessor/line-directive-suppressed.c

raw
1 // RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic %s 2>&1 | FileCheck %s
2
3 // RUN: cp %s %t.i
4 // RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic %t.i 2>&1 | FileCheck %s --check-prefix=NO-WARNING --allow-empty
5 // RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic -x cpp-output %s 2>&1 | FileCheck %s --check-prefix=NO-WARNING --allow-empty
6
7 # 0 "zero"
8 // CHECK: line-directive-suppressed.c:[[@LINE-1]]:5: warning: {{.*}} [-Wgnu-line-marker]
9
10 # 1 "one" 1
11 // CHECK: zero:2:5: warning: {{.*}} [-Wgnu-line-marker]
12
13 # 2 "two" 1 3 4
14 // CHECK: one:3:5: warning: {{.*}} [-Wgnu-line-marker]
15
16 // NO-WARNING-NOT: warning: