xref: /llvm-project/lldb/test/API/commands/frame/var/direct-ivar/cpp/TestFrameVarDirectIvarCpp.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1import lldb
2from lldbsuite.test.lldbtest import *
3from lldbsuite.test.decorators import *
4from lldbsuite.test import lldbutil
5
6
7class TestCase(TestBase):
8    def test_cpp_this(self):
9        self.build()
10        lldbutil.run_to_source_breakpoint(
11            self, "// check this", lldb.SBFileSpec("main.cpp")
12        )
13        self.expect("frame variable m_field", startstr="(int) m_field = 30")
14