1 // RUN: llvm-cov report %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -filename-equivalence 2>&1 | FileCheck %s
2 // RUN: llvm-cov report %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -filename-equivalence report.cpp 2>&1 | FileCheck -check-prefix=FILT-NEXT %s
3
4 // CHECK: Filename Regions Miss Cover Functions Executed
5 // CHECK-NEXT: ---
6 // CHECK-NEXT: report.cpp 5 2 60.00% 4 75.00%
7 // CHECK-NEXT: ---
8 // CHECK-NEXT: TOTAL 5 2 60.00% 4 75.00%
9
10 // FILT: File 'report.cpp':
11 // FILT-NEXT: Name Regions Miss Cover Lines Miss Cover
12 // FILT-NEXT: ---
13 // FILT-NEXT: _Z3foob 2 1 50.00% 4 2 50.00%
14 // FILT-NEXT: _Z3barv 1 0 100.00% 2 0 100.00%
15 // FILT-NEXT: _Z4funcv 1 1 0.00% 2 2 0.00%
16 // FILT-NEXT: main 1 0 100.00% 5 0 100.00%
17 // FILT-NEXT: ---
18 // FILT-NEXT: TOTAL 5 2 60.00% 13 4 69.23%
19
foo(bool cond)20 void foo(bool cond) {
21 if (cond) {
22 }
23 }
24
bar()25 void bar() {
26 }
27
func()28 void func() {
29 }
30
main()31 int main() {
32 foo(false);
33 bar();
34 return 0;
35 }
36