Index: test/tools/llvm-cov/Inputs/path_equivalence.proftext =================================================================== --- /dev/null +++ test/tools/llvm-cov/Inputs/path_equivalence.proftext @@ -0,0 +1,8 @@ +main +# Func Hash: +0 +# Num Counters: +1 +# Counter Values: +1 + Index: test/tools/llvm-cov/path_equivalence.c =================================================================== --- /dev/null +++ test/tools/llvm-cov/path_equivalence.c @@ -0,0 +1,7 @@ +// RUN: llvm-profdata merge %S/Inputs/path_equivalence.proftext -o %t.profdata +// RUN: llvm-cov show %S/Inputs/path_equivalence.covmapping -instr-profile=%t.profdata -path-equivalence=/tmp,%S | FileCheck %s + +int main() {} // CHECK: [[@LINE]]| 1|int main() {} + +// RUN: llvm-cov show %S/Inputs/path_equivalence.covmapping -instr-profile=%t.profdata -path-equivalence=/tmp,%S --filename-equivalence %s | FileCheck --check-prefix IGNORED_REMAP %s +// IGNORED_REMAP: warning: path-equivalence was ignored as source files were given