brintos

brintos / llvm-project-archived public Read only

0
0
Text · 542 B · 4527b68 Raw
23 lines · plain
1# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t2# RUN: %lldb -s %s --script-language lua %t 2>&1 | FileCheck %s3b main4script5function abc(a, b, c, ...)6print(c)7if c then print(c:GetValueForKey("foo"):GetStringValue(32)) end8end9quit10breakpoint command add -s lua -F abc11r12# CHECK: nil13breakpoint command add -s lua -F abc -k foo -v 123pizza!14r15# CHECK: foo: 123pizza!16# CHECK: 123pizza!17breakpoint command add -s lua -o "abc(frame, bp_loc, ...)"18r19# CHECK: nil20breakpoint command add -s lua -F typo21r22# CHECK: a nil value23