1*11791ae7SSayhaan Siddiqui## Check that llvm-bolt rejects input that is not a valid ELF executable 2*11791ae7SSayhaan Siddiqui## bzip2.debuginfo is the result of running "objcopy --only-keep-debug". 342a66fb7SRafael Auler 4*11791ae7SSayhaan Siddiqui## This test uses the clang driver without target flags and will only succeed 5*11791ae7SSayhaan Siddiqui## on Linux systems where the host triple matches the target. 642a66fb7SRafael AulerREQUIRES: system-linux 742a66fb7SRafael Auler 8da766ceaSAmir AyupovRUN: %clang %cflags %S/Inputs/icf-jump-tables.c -g -o %t 9506a91c0SVladislav KhmelevskyRUN: llvm-objcopy --only-keep-debug %t %t.debuginfo 10ab14eb23SAmir AyupovRUN: not llvm-bolt %t.debuginfo -o %t.null 2>&1 | FileCheck %s 11506a91c0SVladislav Khmelevsky 12506a91c0SVladislav KhmelevskyCHECK: input binary is not a valid ELF executable 13