blob: 045c02b941bc8c6a837ddc197257e4d73242127b [file] [log] [blame]
Nico Weber149d95222016-03-23 18:00:22 +00001// RUN: %clang_cc1 -I%S -include Inputs/test3.h -E -H -o /dev/null %s 2> %t.stderr
Nico Weber25828952014-07-06 03:04:24 +00002// RUN: FileCheck < %t.stderr %s
Daniel Dunbard4352752010-08-24 22:44:13 +00003
4// CHECK-NOT: test3.h
5// CHECK: . {{.*test.h}}
6// CHECK: .. {{.*test2.h}}
7
Nico Weber149d95222016-03-23 18:00:22 +00008// RUN: %clang_cc1 -I%S -include Inputs/test3.h -E --show-includes -o /dev/null %s | \
9// RUN: FileCheck --strict-whitespace --check-prefix=MS %s
10// MS-NOT: <command line>
11// MS: Note: including file: {{[^ ]*test3.h}}
12// MS: Note: including file: {{[^ ]*test.h}}
13// MS: Note: including file: {{[^ ]*test2.h}}
Hans Wennborg0fd62072013-08-09 00:32:23 +000014// MS-NOT: Note
15
Ivan Krasin1193f2c2015-08-13 04:04:37 +000016// RUN: echo "fun:foo" > %t.blacklist
Nico Weber149d95222016-03-23 18:00:22 +000017// RUN: %clang_cc1 -I%S -fsanitize=address -fdepfile-entry=%t.blacklist -E --show-includes -o /dev/null %s | \
18// RUN: FileCheck --strict-whitespace --check-prefix=MS-BLACKLIST %s
19// MS-BLACKLIST: Note: including file: {{[^ ]*\.blacklist}}
20// MS-BLACKLIST: Note: including file: {{[^ ]*test.h}}
21// MS-BLACKLIST: Note: including file: {{[^ ]*test2.h}}
Ivan Krasin1193f2c2015-08-13 04:04:37 +000022// MS-BLACKLIST-NOT: Note
23
Daniel Dunbard4352752010-08-24 22:44:13 +000024#include "Inputs/test.h"