1 ## Check that llvm-bolt rejects input that is not a valid ELF executable
2 ## bzip2.debuginfo is the result of running "objcopy --only-keep-debug".
4 ## This test uses the clang driver without target flags and will only succeed
5 ## on Linux systems where the host triple matches the target.
8 RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -g -o %t
9 RUN: llvm-objcopy --only-keep-debug %t %t.debuginfo
10 RUN: not llvm-bolt %t.debuginfo -o %t.null 2>&1 | FileCheck %s
12 CHECK: input binary is not a valid ELF executable