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