Nico Weber | 149d9522 | 2016-03-23 18:00:22 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -I%S -include Inputs/test3.h -E -H -o /dev/null %s 2> %t.stderr |
Nico Weber | 2582895 | 2014-07-06 03:04:24 +0000 | [diff] [blame] | 2 | // RUN: FileCheck < %t.stderr %s |
Daniel Dunbar | d435275 | 2010-08-24 22:44:13 +0000 | [diff] [blame] | 3 | |
| 4 | // CHECK-NOT: test3.h |
| 5 | // CHECK: . {{.*test.h}} |
| 6 | // CHECK: .. {{.*test2.h}} |
| 7 | |
Nico Weber | 149d9522 | 2016-03-23 18:00:22 +0000 | [diff] [blame] | 8 | // 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 Wennborg | 0fd6207 | 2013-08-09 00:32:23 +0000 | [diff] [blame] | 14 | // MS-NOT: Note |
| 15 | |
Ivan Krasin | 1193f2c | 2015-08-13 04:04:37 +0000 | [diff] [blame] | 16 | // RUN: echo "fun:foo" > %t.blacklist |
Nico Weber | 149d9522 | 2016-03-23 18:00:22 +0000 | [diff] [blame] | 17 | // 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 Krasin | 1193f2c | 2015-08-13 04:04:37 +0000 | [diff] [blame] | 22 | // MS-BLACKLIST-NOT: Note |
| 23 | |
Daniel Dunbar | d435275 | 2010-08-24 22:44:13 +0000 | [diff] [blame] | 24 | #include "Inputs/test.h" |