12 lines
341 B
Python
12 lines
341 B
Python
|
import lldb
|
||
|
from lldbsuite.test.lldbtest import TestBase
|
||
|
from lldbsuite.test import lldbutil
|
||
|
|
||
|
|
||
|
class TestCase(TestBase):
|
||
|
def test(self):
|
||
|
self.build()
|
||
|
lldbutil.run_to_source_breakpoint(self, "return", lldb.SBFileSpec("main.c"))
|
||
|
self.expect("p -g", startstr="(int) -41")
|
||
|
self.expect("p -i0 -g", error=True)
|