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 CPPStaticMethodsTestCase(TestBase):
13 mydir = TestBase.compute_mydir(__file__)
17 self.line = line_number('main.cpp', '// breakpoint')
21 bugnumber="llvm.org/pr24489: Name lookup not working correctly on Windows")
22 def test_with_run_command(self):
23 """Test that functions with the same name are resolved correctly"""
25 self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
27 lldbutil.run_break_set_by_file_and_line(
28 self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
30 self.runCmd("process launch", RUN_SUCCEEDED)
32 # The stop reason of the thread should be breakpoint.
33 self.expect("thread list",
34 STOPPED_DUE_TO_BREAKPOINT,
35 substrs=['stopped', 'stop reason = breakpoint'])
37 self.expect("expression -- Dump(myB)",
38 startstr="(int) $0 = 2")
40 self.expect("expression -- Static()",
41 startstr="(int) $1 = 1")