2 Test that we correctly handle inline namespaces.
7 from lldbsuite.test.decorators import *
8 from lldbsuite.test.lldbtest import *
9 from lldbsuite.test import lldbutil
12 class TestInlineNamespace(TestBase):
13 mydir = TestBase.compute_mydir(__file__)
18 lldbutil.run_to_source_breakpoint(self,
19 "// Set break point at this line.", lldb.SBFileSpec("main.cpp"))
21 # The 'A::B::f' function must be found via 'A::f' as 'B' is an inline
23 self.expect("expr A::f()", substrs=['$0 = 3'])
24 # But we should still find the function when we pretend the inline
25 # namespace is not inline.
26 self.expect("expr A::B::f()", substrs=['$1 = 3'])