2 Tests that functions with the same name are resolved correctly.
6 from lldbsuite
.test
.decorators
import *
7 from lldbsuite
.test
.lldbtest
import *
8 from lldbsuite
.test
import lldbutil
11 class OverloadedFunctionsTestCase(TestBase
):
12 def test_with_run_command(self
):
13 """Test that functions with the same name are resolved correctly"""
15 lldbutil
.run_to_source_breakpoint(
16 self
, "// breakpoint", lldb
.SBFileSpec("main.cpp")
19 self
.expect("expression -- Dump(myB)", startstr
="(int) $0 = 2")
21 self
.expect("expression -- Static()", startstr
="(int) $1 = 1")