[Clang] Prevent `mlink-builtin-bitcode` from internalizing the RPC client (#118661)
[llvm-project.git] / lldb / test / API / commands / expression / dollar-in-variable / TestDollarInVariable.py
blob1b18cd137751b0d1a24bfb6e9fa5791d8b15befd
1 import lldb
2 from lldbsuite.test.decorators import *
3 from lldbsuite.test.lldbtest import *
4 from lldbsuite.test import lldbutil
7 class TestCase(TestBase):
8 def test(self):
9 self.build()
10 lldbutil.run_to_source_breakpoint(
11 self, "// break here", lldb.SBFileSpec("main.c")
14 self.expect_expr("$__lldb_expr_result", result_type="int", result_value="11")
15 self.expect_expr("$foo", result_type="int", result_value="12")
16 self.expect_expr("$R0", result_type="int", result_value="13")
17 self.expect(
18 "expr int $foo = 123", error=True, substrs=["declaration conflicts"]
20 self.expect_expr("$0", result_type="int", result_value="11")