1""" 2Tests that functions with the same name are resolved correctly. 3""" 4 5import lldb 6from lldbsuite.test.decorators import * 7from lldbsuite.test.lldbtest import * 8from lldbsuite.test import lldbutil 9 10 11class OverloadedFunctionsTestCase(TestBase): 12 13 mydir = TestBase.compute_mydir(__file__) 14 15 def test_with_run_command(self): 16 """Test that functions with the same name are resolved correctly""" 17 self.build() 18 lldbutil.run_to_source_breakpoint(self, "// breakpoint", lldb.SBFileSpec("main.cpp")) 19 20 self.expect("expression -- Dump(myB)", 21 startstr="(int) $0 = 2") 22 23 self.expect("expression -- Static()", 24 startstr="(int) $1 = 1") 25