22 lines · python
1"""Test that decl lookup into submodules in C++ works as expected."""2 3import lldb4import shutil5 6from lldbsuite.test.decorators import *7from lldbsuite.test.lldbtest import *8from lldbsuite.test import lldbutil9 10 11class DeclFromSubmoduleTestCase(TestBase):12 # Requires DWARF debug info which is not retained when linking with link.exe.13 @skipIfWindows14 # Lookup for decls in submodules fails in Linux15 @expectedFailureAll(oslist=["linux"])16 def test_expr(self):17 self.build()18 lldbutil.run_to_source_breakpoint(self, "return 0", lldb.SBFileSpec("main.cpp"))19 20 self.expect_expr("func(1, 2)", result_type="int", result_value="3")21 self.expect_expr("func(1)", result_type="int", result_value="1")22