111791ae7SSayhaan Siddiqui## Check that we do not reject position-independent executables (PIEs). 2506a91c0SVladislav Khmelevsky 311791ae7SSayhaan Siddiqui## This test uses the clang driver without target flags and will only succeed 411791ae7SSayhaan Siddiqui## on Linux systems where the host triple matches the target. 542a66fb7SRafael AulerREQUIRES: system-linux 642a66fb7SRafael Auler 7*003b48e0SRaul TambreRUN: %clangxx %cxxflags -fPIC -pie %p/Inputs/jump_table_icp.cpp -o %t 8ab14eb23SAmir AyupovRUN: llvm-bolt %t -o %t.null 2>&1 | FileCheck %s 9506a91c0SVladislav Khmelevsky 10506a91c0SVladislav KhmelevskyCHECK: BOLT-INFO: shared object or position-independent executable detected 11