xref: /llvm-project/llvm/test/tools/llvm-cov/multiple-objects-not-all-instrumented.test (revision f025968bccde3c10b1245a9619b01c13b7e2caf9)
1RUN: llvm-cov export --format=lcov --instr-profile=%S/Inputs/multiple_objects_not_all_instrumented/instrumented.profdata \
2RUN:   -object %S/Inputs/multiple_objects_not_all_instrumented/not_instrumented \
3RUN:   -object %S/Inputs/multiple_objects_not_all_instrumented/instrumented | FileCheck -check-prefix=FN %s
4
5FN:1,_Z2f1v
6
7Instructions for regenerating the test:
8
9clang -std=c++11 not_instrumented.cc -o not_instrumented
10clang -std=c++11 -mllvm -enable-name-compression=false -fprofile-instr-generate -fcoverage-mapping instrumented.cc -o instrumented
11LLVM_PROFILE_FILE="instrumented.raw" ./instrumented
12llvm-profdata merge instrumented.raw -o instrumented.profdata
13