[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / tools / llvm-cov / name_allowlist.test
blob95f2688c8f3040dea357dd8a02484117f887bd1b
1 RUN: llvm-profdata merge %S/Inputs/name_allowlist.proftext -o %t.profdata
3 RUN: llvm-cov show %S/Inputs/name_allowlist.covmapping -instr-profile=%t.profdata -path-equivalence=/tmp,%S/Inputs -name-allowlist=%S/Inputs/allowlist1.txt %S/Inputs/name_allowlist.cpp > %t.one_list
4 RUN: FileCheck -input-file=%t.one_list -check-prefix=ONE_ALLOWLIST %s
5 RUN: FileCheck -input-file=%t.one_list -check-prefix=ONE_ALLOWLIST_NEG %s
6 ONE_ALLOWLIST: _Z5func1v:
7 ONE_ALLOWLIST: _Z5func2v:
8 ONE_ALLOWLIST_NEG-NOT: _Z5func3v:
9 ONE_ALLOWLIST_NEG-NOT: _Z5func4v:
10 ONE_ALLOWLIST_NEG-NOT: _Z5func5v:
11 ONE_ALLOWLIST_NEG-NOT: _Z5func6v:
13 RUN: llvm-cov show %S/Inputs/name_allowlist.covmapping -instr-profile=%t.profdata -path-equivalence=/tmp,%S/Inputs -name-allowlist=%S/Inputs/allowlist1.txt -name-allowlist=%S/Inputs/allowlist2.txt %S/Inputs/name_allowlist.cpp  > %t.two_list
14 RUN: FileCheck -input-file=%t.two_list -check-prefix=TWO_ALLOWLIST %s
15 RUN: FileCheck -input-file=%t.two_list -check-prefix=TWO_ALLOWLIST_NEG %s
16 TWO_ALLOWLIST: _Z5func1v:
17 TWO_ALLOWLIST: _Z5func2v:
18 TWO_ALLOWLIST: _Z5func3v:
19 TWO_ALLOWLIST: _Z5func4v:
20 TWO_ALLOWLIST_NEG-NOT: _Z5func5v:
21 TWO_ALLOWLIST_NEG-NOT: _Z5func6v: