Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Frontend/print-header-includes.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 0572611fdcc8 |
children | 1f2b6ac9f198 |
comparison
equal
deleted
inserted
replaced
173:0572611fdcc8 | 207:2e18cbf3894f |
---|---|
4 | 4 |
5 // CHECK-NOT: test3.h | 5 // CHECK-NOT: test3.h |
6 // CHECK-NOT: . {{.*noline.h}} | 6 // CHECK-NOT: . {{.*noline.h}} |
7 // CHECK: . {{.*test.h}} | 7 // CHECK: . {{.*test.h}} |
8 // CHECK: .. {{.*test2.h}} | 8 // CHECK: .. {{.*test2.h}} |
9 // CHECK-NOT: .. {{.*test2.h}} | |
10 | |
11 // RUN: %clang_cc1 -I%S -isystem %S/Inputs/SystemHeaderPrefix \ | |
12 // RUN: -E -H -fshow-skipped-includes -o /dev/null %s 2> %t.stderr | |
13 // RUN: FileCheck --check-prefix=SKIPPED < %t.stderr %s | |
14 | |
15 // SKIPPED-NOT: . {{.*noline.h}} | |
16 // SKIPPED: . {{.*test.h}} | |
17 // SKIPPED: .. {{.*test2.h}} | |
18 // SKIPPED: .. {{.*test2.h}} | |
9 | 19 |
10 // RUN: %clang_cc1 -I%S -include Inputs/test3.h -isystem %S/Inputs/SystemHeaderPrefix \ | 20 // 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 | 21 // RUN: -E -H -sys-header-deps -o /dev/null %s 2> %t.stderr |
12 // RUN: FileCheck --check-prefix SYSHEADERS < %t.stderr %s | 22 // RUN: FileCheck --check-prefix SYSHEADERS < %t.stderr %s |
13 | 23 |
34 // MS-STDERR: Note: including file: {{[^ ]*test3.h}} | 44 // MS-STDERR: Note: including file: {{[^ ]*test3.h}} |
35 // MS-STDERR: Note: including file: {{[^ ]*test.h}} | 45 // MS-STDERR: Note: including file: {{[^ ]*test.h}} |
36 // MS-STDERR: Note: including file: {{[^ ]*test2.h}} | 46 // MS-STDERR: Note: including file: {{[^ ]*test2.h}} |
37 // MS-STDERR-NOT: Note | 47 // MS-STDERR-NOT: Note |
38 | 48 |
39 // RUN: echo "fun:foo" > %t.blacklist | 49 // RUN: echo "fun:foo" > %t.ignorelist |
40 // RUN: %clang_cc1 -I%S -isystem %S/Inputs/SystemHeaderPrefix \ | 50 // RUN: %clang_cc1 -I%S -isystem %S/Inputs/SystemHeaderPrefix \ |
41 // RUN: -fsanitize=address -fdepfile-entry=%t.blacklist \ | 51 // RUN: -fsanitize=address -fdepfile-entry=%t.ignorelist \ |
42 // RUN: --show-includes -o /dev/null %s | \ | 52 // RUN: --show-includes -o /dev/null %s | \ |
43 // RUN: FileCheck --strict-whitespace --check-prefix=MS-BLACKLIST %s | 53 // RUN: FileCheck --strict-whitespace --check-prefix=MS-IGNORELIST %s |
44 // MS-BLACKLIST: Note: including file: {{[^ ]*\.blacklist}} | 54 // MS-IGNORELIST: Note: including file: {{[^ ]*\.ignorelist}} |
45 // MS-BLACKLIST-NOT: Note: including file: {{[^ ]*noline.h}} | 55 // MS-IGNORELIST-NOT: Note: including file: {{[^ ]*noline.h}} |
46 // MS-BLACKLIST: Note: including file: {{[^ ]*test.h}} | 56 // MS-IGNORELIST: Note: including file: {{[^ ]*test.h}} |
47 // MS-BLACKLIST: Note: including file: {{[^ ]*test2.h}} | 57 // MS-IGNORELIST: Note: including file: {{[^ ]*test2.h}} |
48 // MS-BLACKLIST-NOT: Note | 58 // MS-IGNORELIST-NOT: Note |
49 | 59 |
50 #include <noline.h> | 60 #include <noline.h> |
51 #include "Inputs/test.h" | 61 #include "Inputs/test.h" |