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