1 // The coverage reader should be able to handle universal binaries 2 3 // CHECK: [[@LINE+1]]| 100|int main 4 int main(int argc, const char *argv[]) {} 5 6 // RUN: llvm-profdata merge %S/Inputs/universal-binary.proftext -o %t.profdata 7 // RUN: llvm-cov show %S/Inputs/universal-binary -instr-profile %t.profdata -filename-equivalence %s -arch x86_64 | FileCheck %s 8 // RUN: llvm-cov export %S/Inputs/universal-binary -instr-profile %t.profdata -arch x86_64 2>&1 | FileCheck %S/Inputs/universal-binary.json 9 10 11 // RUN: not llvm-cov show %S/Inputs/universal-binary -instr-profile %t.profdata -filename-equivalence %s -arch i386 2>&1 | FileCheck --check-prefix=WRONG-ARCH %s 12 // WRONG-ARCH: Failed to load coverage 13 14 // RUN: not llvm-cov report -instr-profile %t.profdata 2>&1 | FileCheck --check-prefix=MISSING-BINARY %s 15 // MISSING-BINARY: No filenames specified! 16