brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · d0cb39d Raw
14 lines · plain
1# The binary contains two (merged) covmap sections which2# have duplicate CovMapRecords from comdat (template instantiation).3# This test makes sure the reader reads it properly. It also4# tests that the coverage data from different instantiations5# of the same template function are properly merged in show6# output.7 8// RUN: llvm-cov show %S/Inputs/binary-formats.v1.linux64l -instr-profile %S/Inputs/elf_binary_comdat.profdata -path-equivalence=/tmp,%S/Inputs %S/Inputs/instrprof-comdat.h -dump 2> %t.err | FileCheck --check-prefix=HEADER %S/Inputs/instrprof-comdat.h9// RUN: FileCheck --check-prefix=ERROR -input-file %t.err %s10// ERROR: hash-mismatch: No profile record found for 'main' with hash = 0xa11 12// RUN: llvm-cov show %S/Inputs/binary-formats.v2.linux64l -instr-profile %S/Inputs/elf_binary_comdat.profdata -path-equivalence=/root/llvm/test/tools,%S/.. %S/Inputs/instrprof-comdat.h | FileCheck --check-prefix=HEADER %S/Inputs/instrprof-comdat.h13// RUN: llvm-cov show %S/Inputs/binary-formats.v2.linux32l -instr-profile %S/Inputs/elf_binary_comdat.profdata -path-equivalence=/root/llvm/R/../test/tools,%S/.. %S/Inputs/instrprof-comdat.h | FileCheck --check-prefix=HEADER %S/Inputs/instrprof-comdat.h14