xref: /llvm-project/lldb/test/Shell/ScriptInterpreter/Lua/breakpoint_callback.test (revision b3901ef09c74443c7d9deeb1c140ce6b0ea3f13c)
1# REQUIRES: lua
2# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t
3# RUN: %lldb -s %s --script-language lua %t 2>&1 | FileCheck %s
4b main
5breakpoint command add -s lua
6local a = 123
7print(a)
8quit
9run
10# CHECK: 123
11breakpoint command add -s lua
12789_nil
13# CHECK: {{unexpected symbol near '789'|malformed number near '789_'}}
14