brintos

brintos / llvm-project-archived public Read only

0
0
Text · 566 B · d152b26 Raw
19 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5 6 7class TestCase(TestBase):8    def test(self):9        self.build()10        lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.m"))11        self.expect(12            "vo pair",13            substrs=["error:", "not a pointer type", "(Pair) pair = (f = 2, e = 3)"],14        )15        self.expect(16            "expr -O -- pair",17            substrs=["error:", "not a pointer type", "(Pair)  (f = 2, e = 3)"],18        )19