xref: /llvm-project/llvm/test/tools/llvm-profdata/merge-incompatible.test (revision 011b4d4706eea722d63438892afefdb8152b7b62)
1RUN: export LSAN_OPTIONS=detect_leaks=0
2RUN: not llvm-profdata merge %p/Inputs/fe-basic.proftext %p/Inputs/ir-basic.proftext -o /dev/null 2>&1 | FileCheck %s
3CHECK: ir-basic.proftext: Merge IR generated profile with Clang generated profile.
4
5// We get a slightly different error message when using multiple threads because
6// we do not know which files have incompatible kinds.
7RUN: not llvm-profdata merge %p/Inputs/fe-basic.proftext %p/Inputs/ir-basic.proftext --num-threads=2 -o /dev/null 2>&1 | FileCheck %s --check-prefix=THREADS
8THREADS: unsupported instrumentation profile format version
9