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