[mlir][PDLL] Allow (and ignore) `-D` tablegen macros. (#124166)
[llvm-project.git] / lldb / test / API / lang / cpp / overloaded-functions / TestOverloadedFunctions.py
blobe5f75108c894f1393896eccc82d2af2cd27118ce
1 """
2 Tests that functions with the same name are resolved correctly.
3 """
5 import lldb
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"""
14 self.build()
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")