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