1*7c3d14c8STreehugger RobotRUN: mkdir -p %t.d 2*7c3d14c8STreehugger RobotRUN: %clang_profgen -fdata-sections -ffunction-sections -fcoverage-mapping -c -o %t.d/a.shared.o -fPIC %S/../Inputs/instrprof-dynamic-a.cpp 3*7c3d14c8STreehugger RobotRUN: %clang_profgen -fdata-sections -ffunction-sections -fuse-ld=gold -Wl,--gc-sections -fcoverage-mapping -o %t.d/a.shared -fPIC -shared %S/../Inputs/instrprof-dynamic-a.cpp 4*7c3d14c8STreehugger RobotRUN: %clang_profgen -fdata-sections -ffunction-sections -fuse-ld=gold -Wl,--gc-sections -o %t-shared -fPIC -rpath %t.d %t.d/a.shared %S/../Inputs/instrprof-dynamic-b.cpp %S/../Inputs/instrprof-dynamic-main.cpp 5*7c3d14c8STreehugger Robot 6*7c3d14c8STreehugger RobotRUN: %clang_profgen -fdata-sections -ffunction-sections -fuse-ld=gold -Wl,--gc-sections -o %t-static %t.d/a.shared.o %S/../Inputs/instrprof-dynamic-b.cpp %S/../Inputs/instrprof-dynamic-main.cpp 7*7c3d14c8STreehugger Robot 8*7c3d14c8STreehugger RobotRUN: env LLVM_PROFILE_FILE=%t-static.profraw %run %t-static 9*7c3d14c8STreehugger RobotRUN: env LLVM_PROFILE_FILE=%t-shared.profraw %run %t-shared 10*7c3d14c8STreehugger Robot 11*7c3d14c8STreehugger RobotRUN: llvm-profdata merge -o %t-static.profdata %t-static.profraw 12*7c3d14c8STreehugger RobotRUN: llvm-profdata merge -o %t-shared.profdata %t-shared.profraw 13*7c3d14c8STreehugger Robot 14*7c3d14c8STreehugger RobotRUN: llvm-cov show -instr-profile %t-shared.profdata %t.d/a.shared | FileCheck --check-prefix=COV %S/../Inputs/instrprof-dynamic-a.cpp 15*7c3d14c8STreehugger RobotRUN: llvm-cov show -instr-profile %t-static.profdata %t-static | FileCheck --check-prefix=COV %S/../Inputs/instrprof-dynamic-a.cpp 16*7c3d14c8STreehugger Robot 17