1 """Test that inline functions from modules are imported correctly"""
9 from lldbsuite.test.decorators import *
10 from lldbsuite.test.lldbtest import *
11 from lldbsuite.test import lldbutil
14 class ModulesInlineFunctionsTestCase(TestBase):
16 mydir = TestBase.compute_mydir(__file__)
19 @skipIf(macos_version=["<", "10.12"], debug_info=no_match(["gmodules"]))
22 exe = self.getBuildArtifact("a.out")
23 self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
25 # Break inside the foo function which takes a bar_ptr argument.
26 lldbutil.run_to_source_breakpoint(
27 self, '// Set breakpoint here.', lldb.SBFileSpec('main.m'))
30 "settings set target.clang-module-search-paths \"" +
34 self.expect("expr @import myModule; 3", VARIABLES_DISPLAYED_CORRECTLY,
37 self.expect("expr isInline(2)", VARIABLES_DISPLAYED_CORRECTLY,