[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / bolt / test / X86 / indirect-goto.test
blobbbc11e7d3317154add8bd436f4ceee969e6c2bee
1 # Check llvm-bolt processes binaries compiled from sources that use indirect goto.
2 RUN: %clang %cflags -no-pie %S/Inputs/indirect_goto.c -Wl,-q -o %t
3 RUN: llvm-bolt %t -o %t.null --relocs=1 --print-cfg --print-only=main \
4 RUN:   --strict \
5 RUN:   2>&1 | FileCheck %s
7 # Check that all possible destinations are included as successors.
8 CHECK:  jmpq    *%rax # UNKNOWN CONTROL FLOW
9 CHECK:  Successors: .Ltmp0, .Ltmp1, .Ltmp2