2014-08-12 16:25:57 +08:00
|
|
|
// RUN: cd %S
|
2014-07-06 11:04:24 +08:00
|
|
|
// RUN: %clang_cc1 -include Inputs/test3.h -E -H -o %t.out %s 2> %t.stderr
|
|
|
|
// RUN: FileCheck < %t.stderr %s
|
2010-08-25 06:44:13 +08:00
|
|
|
|
|
|
|
// CHECK-NOT: test3.h
|
|
|
|
// CHECK: . {{.*test.h}}
|
|
|
|
// CHECK: .. {{.*test2.h}}
|
|
|
|
|
2014-07-06 11:04:24 +08:00
|
|
|
// RUN: %clang_cc1 -include Inputs/test3.h -E --show-includes -o %t.out %s > %t.stdout
|
|
|
|
// RUN: FileCheck --check-prefix=MS < %t.stdout %s
|
2013-08-09 08:32:23 +08:00
|
|
|
// MS-NOT: test3.h
|
|
|
|
// MS: Note: including file: {{.*test.h}}
|
|
|
|
// MS: Note: including file: {{.*test2.h}}
|
|
|
|
// MS-NOT: Note
|
|
|
|
|
2015-08-13 12:04:37 +08:00
|
|
|
// RUN: echo "fun:foo" > %t.blacklist
|
2015-09-03 04:02:38 +08:00
|
|
|
// RUN: %clang_cc1 -fsanitize=address -fdepfile-entry=%t.blacklist -E --show-includes -o %t.out %s > %t.stdout
|
2015-08-13 12:04:37 +08:00
|
|
|
// RUN: FileCheck --check-prefix=MS-BLACKLIST < %t.stdout %s
|
|
|
|
// MS-BLACKLIST: Note: including file: {{.*\.blacklist}}
|
|
|
|
// MS-BLACKLIST: Note: including file: {{.*test.h}}
|
|
|
|
// MS-BLACKLIST: Note: including file: {{.*test2.h}}
|
|
|
|
// MS-BLACKLIST-NOT: Note
|
|
|
|
|
2010-08-25 06:44:13 +08:00
|
|
|
#include "Inputs/test.h"
|