1 # Check that successors of a basic block with jump table are generated
2 # in the same order as they appear in the input code.
4 RUN: %clang %cflags %S/Inputs/jump-table-pic.s -o %t.exe -Wl,-q
5 RUN: llvm-bolt %t.exe --strict --print-cfg --print-only=main -o %t.null \
8 CHECK: BB Layout : {{.*, .*, .*,}} [[BB4to6:.*, .*, .*]]
10 # Check that successors appear in the order matching the input layout.
11 CHECK: jmpq *%rax # JUMPTABLE
12 CHECK-NEXT: Successors: [[BB4to6]]