2016-01-22 05:59:19 +08:00
|
|
|
RUN: mkdir -p %t.d
|
2016-02-20 04:28:51 +08:00
|
|
|
RUN: %clangxx_profgen -o %t.d/comdat -fcoverage-mapping -fuse-ld=gold %S/../Inputs/instrprof-comdat-1.cpp %S/../Inputs/instrprof-comdat-2.cpp
|
2016-09-24 01:40:40 +08:00
|
|
|
RUN: LLVM_PROFILE_FILE=%t-comdat.profraw %run %t.d/comdat
|
2016-01-22 05:59:19 +08:00
|
|
|
RUN: llvm-profdata merge -o %t.d/comdat.prof %t-comdat.profraw
|
2017-08-14 20:43:05 +08:00
|
|
|
RUN: llvm-cov show --path-equivalence=/tmp,%S --instr-profile=%t.d/comdat.prof %t.d/comdat | FileCheck --check-prefix=HEADER %S/../Inputs/instrprof-comdat.h
|
2016-01-22 05:59:19 +08:00
|
|
|
|