blob: d0dbdd8c0fcfcb042f96d9d8a3bf3a1c0a3420bd [file] [log] [blame]
// RUN: llvm-profdata merge %S/Inputs/multiple-files.proftext -o %t.profdata
// RUN: llvm-cov report %S/Inputs/multiple-files.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=MANY_COMPONENTS
// RUN: llvm-cov report %S/Inputs/multiple-files2.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=ONE_COMPONENT
// MANY_COMPONENTS: Filename
// MANY_COMPONENTS-NEXT: ---
// MANY_COMPONENTS-NEXT: {{^}}a{{[/\\]}}f2.c
// MANY_COMPONENTS-NEXT: {{^}}b{{[/\\]}}c{{[/\\]}}f4.c
// MANY_COMPONENTS-NEXT: {{^}}b{{[/\\]}}f3.c
// MANY_COMPONENTS-NEXT: {{^}}f1.c
// ONE_COMPONENT: Filename
// ONE_COMPONENT-NEXT: ---
// ONE_COMPONENT-NEXT: {{^}}cov.c
// ONE_COMPONENT-NEXT: {{^}}cov.h