12 lines · python
1import lldb2from lldbsuite.test.lldbtest import TestBase3from lldbsuite.test import lldbutil4 5 6class TestCase(TestBase):7 def test(self):8 self.build()9 lldbutil.run_to_source_breakpoint(self, "return", lldb.SBFileSpec("main.c"))10 self.expect("p -g", startstr="(int) -41")11 self.expect("p -i0 -g", error=True)12