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