2 # UNSUPPORTED: lldb-repro
6 # RUN: echo "int main() { return 0; }" | %clang_host -x c - -o a.out
7 # RUN: cat %s | %lldb 2>&1 | FileCheck %s
9 target = lldb.debugger:CreateTarget("a.out")
10 print("target is valid:", tostring(target:IsValid()))
11 lldb.debugger:SetSelectedTarget(target)
13 # CHECK: target is valid: true
15 print("selected target: {}".format(lldb.debugger.GetSelectedTarget()))
16 # CHECK: selected target: a.out