# Verify that we support x86 old pic style internal calls accordingly in
# relocation mode
#
REQUIRES: x86_64-linux
RUN: %clang -O3 %S/Inputs/internalcall-main.c %S/Inputs/internalcall.S -Wl,-q \
RUN: -o %t.exe
RUN: llvm-bolt %t.exe -o %t --relocs --lite=0
RUN: %t | FileCheck %s
CHECK: Case 1: Result is: DEADBEEF
CHECK: Case 2: Result is: DEADBEEF
CHECK: Case 3: Result is: DEADBEEF