mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-25 06:45:54 +00:00

The llvm-cov ‘report' command displays a summary of the coverage of a binary file. The summary report currently only includes covered regions and covered functions. This patch adds the coverage of lines in the summary report. Differential Revision: https://reviews.llvm.org/D22569 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276409 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
604 B
C
13 lines
604 B
C
// Checks that function instantiations don't go to a wrong file.
|
|
|
|
// INSTANTIATION-NOT: {{_Z5func[1,2]v}}
|
|
// NAN-NOT: {{[ \t]+}}nan%
|
|
|
|
// RUN: llvm-profdata merge %S/Inputs/prevent_false_instantiations.proftext -o %t.profdata
|
|
// RUN: llvm-cov show -format text %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %t.profdata -filename-equivalence %s | FileCheck %s -check-prefix=INSTANTIATION
|
|
// RUN: llvm-cov report %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=NAN
|
|
|
|
#define DO_SOMETHING() \
|
|
do { \
|
|
} while (0)
|