1RUN: llvm-profdata merge %S/Inputs/name_allowlist.proftext -o %t.profdata
2
3RUN: 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
4RUN: FileCheck -input-file=%t.one_list -check-prefix=ONE_ALLOWLIST %s
5RUN: FileCheck -input-file=%t.one_list -check-prefix=ONE_ALLOWLIST_NEG %s
6ONE_ALLOWLIST: _Z5func1v:
7ONE_ALLOWLIST: _Z5func2v:
8ONE_ALLOWLIST_NEG-NOT: _Z5func3v:
9ONE_ALLOWLIST_NEG-NOT: _Z5func4v:
10ONE_ALLOWLIST_NEG-NOT: _Z5func5v:
11ONE_ALLOWLIST_NEG-NOT: _Z5func6v:
12
13RUN: 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
14RUN: FileCheck -input-file=%t.two_list -check-prefix=TWO_ALLOWLIST %s
15RUN: FileCheck -input-file=%t.two_list -check-prefix=TWO_ALLOWLIST_NEG %s
16TWO_ALLOWLIST: _Z5func1v:
17TWO_ALLOWLIST: _Z5func2v:
18TWO_ALLOWLIST: _Z5func3v:
19TWO_ALLOWLIST: _Z5func4v:
20TWO_ALLOWLIST_NEG-NOT: _Z5func5v:
21TWO_ALLOWLIST_NEG-NOT: _Z5func6v:
22