2 Make sure that ivars of Objective-C++ classes are visible in LLDB.
7 from lldbsuite
.test
.decorators
import *
8 from lldbsuite
.test
.lldbtest
import *
9 from lldbsuite
.test
import lldbutil
12 class ObjCXXTestCase(TestBase
):
14 """Test ivars of Objective-C++ classes"""
15 if self
.getArchitecture() == "i386":
16 self
.skipTest("requires Objective-C 2.0 runtime")
19 exe
= self
.getBuildArtifact("a.out")
20 self
.runCmd("file " + exe
, CURRENT_EXECUTABLE_SET
)
22 lldbutil
.run_break_set_by_source_regexp(
23 self
, "breakpoint 1", num_expected_locations
=1
26 self
.runCmd("run", RUN_SUCCEEDED
)
28 self
.expect("expr f->f", "Found ivar in class", substrs
=["= 3"])