20 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5 6 7class TestCase(TestBase):8 def test(self):9 """10 Tests a forward declared template and a normal template in the same11 executable. GCC/Clang emit very limited debug information for forward12 declared templates that might trip up LLDB.13 """14 self.build()15 lldbutil.run_to_source_breakpoint(16 self, "// break here", lldb.SBFileSpec("main.cpp")17 )18 19 self.expect_expr("a; b", result_type="Temp<float>")20