[mlir][acc] Introduce MappableType interface (#122146)
[llvm-project.git] / lldb / test / API / lang / objc / objc-new-syntax / ObjCNewSyntaxTest.py
blobb563941e2a6227f30e01d808f605dc91d7ce7fbd
1 """Test that the Objective-C syntax for dictionary/array literals and indexing works"""
3 import lldb
4 from lldbsuite.test.decorators import *
5 from lldbsuite.test.lldbtest import *
6 from lldbsuite.test import lldbutil
9 class ObjCNewSyntaxTest(TestBase):
10 def target(self):
11 return self._target
13 def runToBreakpoint(self):
14 self.build()
15 self._target, process, thread, bkpt = lldbutil.run_to_source_breakpoint(
16 self, "// Set breakpoint 0 here.", lldb.SBFileSpec("main.m", False)
19 # The stop reason of the thread should be breakpoint.
20 self.expect(
21 "thread list",
22 STOPPED_DUE_TO_BREAKPOINT,
23 substrs=["stopped", "stop reason = breakpoint"],
26 # The breakpoint should have a hit count of 1.
27 lldbutil.check_breakpoint(self, bpno=1, expected_hit_count=1)