• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // RUN: FileCheck < %t.stderr %s
4 
5 // CHECK-NOT: test3.h
6 // CHECK-NOT: . {{.*noline.h}}
7 // CHECK: . {{.*test.h}}
8 // CHECK: .. {{.*test2.h}}
9 
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 | \
21 // RUN:     FileCheck --strict-whitespace --check-prefix=MS-STDOUT %s
22 // MS-STDOUT-NOT: <command line>
23 // MS-STDOUT-NOT: Note: including file: {{[^ ]*noline.h}}
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 
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
31 // RUN: FileCheck --strict-whitespace --check-prefix=MS-STDERR < %t.stderr %s
32 // MS-STDERR-NOT: <command line>
33 // MS-STDERR-NOT: Note: including file: {{[^ ]*noline.h}}
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
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 | \
43 // RUN:     FileCheck --strict-whitespace --check-prefix=MS-BLACKLIST %s
44 // MS-BLACKLIST: Note: including file: {{[^ ]*\.blacklist}}
45 // MS-BLACKLIST-NOT: Note: including file: {{[^ ]*noline.h}}
46 // MS-BLACKLIST: Note: including file: {{[^ ]*test.h}}
47 // MS-BLACKLIST: Note: including file:  {{[^ ]*test2.h}}
48 // MS-BLACKLIST-NOT: Note
49 
50 #include <noline.h>
51 #include "Inputs/test.h"
52