blob: 76089fda3abfb27f0daeba13db224fafc23266ab [file] [log] [blame]
# Check llvm-bolt processes binaries compiled from sources that use indirect goto.
REQUIRES: x86_64-linux
RUN: %clang %S/Inputs/indirect_goto.c -o %t -fpic -pie -Wl,-q
RUN: llvm-bolt %t -o %t.bolt --relocs=1 --print-cfg --print-only=main \
RUN: |& FileCheck %s
# The test fails as we don't update corresponding dynamic relocations.
RUN: not %t.bolt
CHECK: jmpq *%rax # UNKNOWN CONTROL FLOW