[X86] Use NSW/NUW flags on ISD::TRUNCATE nodes to improve X86 PACKSS/PACKUS lowering...
[llvm-project.git] / lldb / test / API / lang / objc / objc++ / TestObjCXX.py
blob5457678c556c3f7aa9ff84ca0a3919ad2bef782f
1 """
2 Make sure that ivars of Objective-C++ classes are visible in LLDB.
3 """
6 import lldb
7 from lldbsuite.test.decorators import *
8 from lldbsuite.test.lldbtest import *
9 from lldbsuite.test import lldbutil
12 class ObjCXXTestCase(TestBase):
13 def test_break(self):
14 """Test ivars of Objective-C++ classes"""
15 if self.getArchitecture() == "i386":
16 self.skipTest("requires Objective-C 2.0 runtime")
18 self.build()
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"])