173
|
1 // RUN: %clang_cc1 -I%S -include Inputs/test3.h -isystem %S/Inputs/SystemHeaderPrefix \
|
|
2 // RUN: -E -H -o /dev/null %s 2> %t.stderr
|
150
|
3 // RUN: FileCheck < %t.stderr %s
|
|
4
|
|
5 // CHECK-NOT: test3.h
|
173
|
6 // CHECK-NOT: . {{.*noline.h}}
|
150
|
7 // CHECK: . {{.*test.h}}
|
|
8 // CHECK: .. {{.*test2.h}}
|
|
9
|
173
|
10 // RUN: %clang_cc1 -I%S -include Inputs/test3.h -isystem %S/Inputs/SystemHeaderPrefix \
|
|
11 // RUN: -E -H -sys-header-deps -o /dev/null %s 2> %t.stderr
|
|
12 // RUN: FileCheck --check-prefix SYSHEADERS < %t.stderr %s
|
|
13
|
|
14 // SYSHEADERS-NOT: test3.h
|
|
15 // SYSHEADERS: . {{.*noline.h}}
|
|
16 // SYSHEADERS: . {{.*test.h}}
|
|
17 // SYSHEADERS: .. {{.*test2.h}}
|
|
18
|
|
19 // RUN: %clang_cc1 -I%S -include Inputs/test3.h -isystem %S/Inputs/SystemHeaderPrefix \
|
|
20 // RUN: --show-includes -o /dev/null %s | \
|
150
|
21 // RUN: FileCheck --strict-whitespace --check-prefix=MS-STDOUT %s
|
|
22 // MS-STDOUT-NOT: <command line>
|
173
|
23 // MS-STDOUT-NOT: Note: including file: {{[^ ]*noline.h}}
|
150
|
24 // MS-STDOUT: Note: including file: {{[^ ]*test3.h}}
|
|
25 // MS-STDOUT: Note: including file: {{[^ ]*test.h}}
|
|
26 // MS-STDOUT: Note: including file: {{[^ ]*test2.h}}
|
|
27 // MS-STDOUT-NOT: Note
|
|
28
|
173
|
29 // RUN: %clang_cc1 -I%S -include Inputs/test3.h -isystem %S/Inputs/SystemHeaderPrefix \
|
|
30 // RUN: -E --show-includes -o /dev/null %s 2> %t.stderr
|
150
|
31 // RUN: FileCheck --strict-whitespace --check-prefix=MS-STDERR < %t.stderr %s
|
|
32 // MS-STDERR-NOT: <command line>
|
173
|
33 // MS-STDERR-NOT: Note: including file: {{[^ ]*noline.h}}
|
150
|
34 // MS-STDERR: Note: including file: {{[^ ]*test3.h}}
|
|
35 // MS-STDERR: Note: including file: {{[^ ]*test.h}}
|
|
36 // MS-STDERR: Note: including file: {{[^ ]*test2.h}}
|
|
37 // MS-STDERR-NOT: Note
|
|
38
|
|
39 // RUN: echo "fun:foo" > %t.blacklist
|
173
|
40 // RUN: %clang_cc1 -I%S -isystem %S/Inputs/SystemHeaderPrefix \
|
|
41 // RUN: -fsanitize=address -fdepfile-entry=%t.blacklist \
|
|
42 // RUN: --show-includes -o /dev/null %s | \
|
150
|
43 // RUN: FileCheck --strict-whitespace --check-prefix=MS-BLACKLIST %s
|
|
44 // MS-BLACKLIST: Note: including file: {{[^ ]*\.blacklist}}
|
173
|
45 // MS-BLACKLIST-NOT: Note: including file: {{[^ ]*noline.h}}
|
150
|
46 // MS-BLACKLIST: Note: including file: {{[^ ]*test.h}}
|
|
47 // MS-BLACKLIST: Note: including file: {{[^ ]*test2.h}}
|
|
48 // MS-BLACKLIST-NOT: Note
|
|
49
|
173
|
50 #include <noline.h>
|
150
|
51 #include "Inputs/test.h"
|