27 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5 6 7class ExprBug35310(TestBase):8 def setUp(self):9 # Call super's setUp().10 TestBase.setUp(self)11 12 self.main_source = "main.cpp"13 self.main_source_spec = lldb.SBFileSpec(self.main_source)14 15 def test_issue35310(self):16 """Test invoking functions with non-standard linkage names.17 18 The GNU abi_tag extension used by libstdc++ is a common source19 of these, but they could originate from other reasons as well.20 """21 self.build()22 23 lldbutil.run_to_source_breakpoint(self, "// Break here", self.main_source_spec)24 25 self.expect_expr("a.test_abi_tag()", result_value="1")26 self.expect_expr("a.test_asm_name()", result_value="2")27