xref: /llvm-project/lldb/test/Shell/ScriptInterpreter/Lua/breakpoint_callback.test (revision d853bd7a4e86a50f7d7e6a5f397fcbd1e7d844b4)
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'
14