1import lldb
2from lldbsuite.test.decorators import *
3from lldbsuite.test.lldbtest import *
4from lldbsuite.test import lldbutil
5
6class TestCase(TestBase):
7
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(self, "// break here", lldb.SBFileSpec("main.cpp"))
16
17        self.expect_expr("a; b", result_type="Temp<float>")
18