[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / bolt / test / runtime / X86 / indirect-goto-pie.test
blob76089fda3abfb27f0daeba13db224fafc23266ab
1 # Check llvm-bolt processes binaries compiled from sources that use indirect goto.
2 REQUIRES: x86_64-linux
4 RUN: %clang %S/Inputs/indirect_goto.c -o %t -fpic -pie -Wl,-q
5 RUN: llvm-bolt %t -o %t.bolt --relocs=1 --print-cfg --print-only=main \
6 RUN:   |& FileCheck %s 
7 # The test fails as we don't update corresponding dynamic relocations.
8 RUN: not %t.bolt
10 CHECK:  jmpq    *%rax # UNKNOWN CONTROL FLOW