blob: 3f2b0696cd1ed561880045e66e2ad62313f06875 [file] [log] [blame]
Manuel Klimek9af34ae2014-08-12 08:25:57 +00001// RUN: cd %S
Nico Weber25828952014-07-06 03:04:24 +00002// RUN: %clang_cc1 -include Inputs/test3.h -E -H -o %t.out %s 2> %t.stderr
3// RUN: FileCheck < %t.stderr %s
Daniel Dunbard4352752010-08-24 22:44:13 +00004
5// CHECK-NOT: test3.h
6// CHECK: . {{.*test.h}}
7// CHECK: .. {{.*test2.h}}
8
Nico Weber25828952014-07-06 03:04:24 +00009// RUN: %clang_cc1 -include Inputs/test3.h -E --show-includes -o %t.out %s > %t.stdout
10// RUN: FileCheck --check-prefix=MS < %t.stdout %s
Hans Wennborg0fd62072013-08-09 00:32:23 +000011// MS-NOT: test3.h
12// MS: Note: including file: {{.*test.h}}
13// MS: Note: including file: {{.*test2.h}}
14// MS-NOT: Note
15
Ivan Krasin1193f2c2015-08-13 04:04:37 +000016// RUN: echo "fun:foo" > %t.blacklist
Ivan Krasin4c3f2372015-09-02 20:02:38 +000017// RUN: %clang_cc1 -fsanitize=address -fdepfile-entry=%t.blacklist -E --show-includes -o %t.out %s > %t.stdout
Ivan Krasin1193f2c2015-08-13 04:04:37 +000018// RUN: FileCheck --check-prefix=MS-BLACKLIST < %t.stdout %s
19// MS-BLACKLIST: Note: including file: {{.*\.blacklist}}
20// MS-BLACKLIST: Note: including file: {{.*test.h}}
21// MS-BLACKLIST: Note: including file: {{.*test2.h}}
22// MS-BLACKLIST-NOT: Note
23
Daniel Dunbard4352752010-08-24 22:44:13 +000024#include "Inputs/test.h"