1import lldb 2from lldbsuite.test.decorators import * 3from lldbsuite.test.lldbtest import * 4from lldbsuite.test import lldbutil 5 6 7class TestCase(TestBase): 8 def test(self): 9 """ 10 Tests a forward declared template and a normal template in the same 11 executable. GCC/Clang emit very limited debug information for forward 12 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