universal-binary.c 557 B

12345678910
  1. // The coverage reader should be able to handle universal binaries
  2. // CHECK: 100| [[@LINE+1]]|int main
  3. int main(int argc, const char *argv[]) {}
  4. // RUN: llvm-profdata merge %S/Inputs/universal-binary.proftext -o %t.profdata
  5. // RUN: llvm-cov show %S/Inputs/universal-binary -instr-profile %t.profdata -filename-equivalence %s -arch x86_64 | FileCheck %s
  6. // 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
  7. // WRONG-ARCH: Failed to load coverage