xref: /aosp_15_r20/external/llvm/test/tools/llvm-cov/cov-comdat.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerREQUIRES: shell
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker# The binary contains two (merged) covmap sections which
4*9880d681SAndroid Build Coastguard Worker# have duplicate CovMapRecords from comdat (template instantation).
5*9880d681SAndroid Build Coastguard Worker# This test makes sure the reader reads it properly. It also
6*9880d681SAndroid Build Coastguard Worker# tests that the coverage data from different instantiations
7*9880d681SAndroid Build Coastguard Worker# of the same template function are properly merged in show
8*9880d681SAndroid Build Coastguard Worker# output.
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker// RUN: llvm-cov show %S/Inputs/binary-formats.v1.linux64l -instr-profile %S/Inputs/elf_binary_comdat.profdata -filename-equivalence %S/Inputs/instrprof-comdat.h | FileCheck --check-prefix=HEADER %S/Inputs/instrprof-comdat.h
11*9880d681SAndroid Build Coastguard Worker// RUN: llvm-cov show %S/Inputs/binary-formats.v2.linux64l -instr-profile %S/Inputs/elf_binary_comdat.profdata -filename-equivalence %S/Inputs/instrprof-comdat.h | FileCheck --check-prefix=HEADER %S/Inputs/instrprof-comdat.h
12*9880d681SAndroid Build Coastguard Worker// RUN: llvm-cov show %S/Inputs/binary-formats.v2.linux32l -instr-profile %S/Inputs/elf_binary_comdat.profdata -filename-equivalence %S/Inputs/instrprof-comdat.h | FileCheck --check-prefix=HEADER %S/Inputs/instrprof-comdat.h
13