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 def test_with_run_command(self): 14 """Test that functions with the same name are resolved correctly""" 15 self.build() 16 lldbutil.run_to_source_breakpoint(self, "// breakpoint", lldb.SBFileSpec("main.cpp")) 17 18 self.expect("expression -- Dump(myB)", 19 startstr="(int) $0 = 2") 20 21 self.expect("expression -- Static()", 22 startstr="(int) $1 = 1") 23