1# REQUIRES: target-x86_64
2# XFAIL: system-windows
3
4# JITLink is the Orc-specific JIT linker implementation.
5#
6# RUN: %clang -g -S -emit-llvm -fPIC --target=x86_64-unknown-unknown-elf \
7# RUN:        -o %t.ll %p/Inputs/jitbp.cpp
8# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' \
9# RUN:          -o 'run --jit-linker=jitlink %t.ll' lli | FileCheck %s
10
11# CHECK: Breakpoint 1: no locations (pending).
12# CHECK: (lldb) run {{.*}}
13# CHECK: Process {{.*}} stopped
14# CHECK: JIT(0x{{.*}})`jitbp() at jitbp.cpp:1:15
15# CHECK: -> 1    int jitbp() { return 0; }
16# CHECK:                       ^
17# CHECK:    2    int main() { return jitbp(); }
18# CHECK: Process {{.*}} launched: {{.*}}
19