xref: /llvm-project/bolt/test/X86/jump-table-reference.test (revision 11791ae7b0b05b8bd8d806331ff51da618912cf8)
1## Verifies that BOLT detects fixed destination of indirect jump
2
3RUN: %clang %cflags -no-pie %S/Inputs/jump_table_reference.s -Wl,-q -o %t
4RUN: llvm-bolt %t --relocs -o %t.null 2>&1 | FileCheck %s
5
6CHECK: BOLT-INFO: fixed indirect branch detected in main
7