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 Test debugging a binary that has two templates with the same name 13 but different template parameters. 14 """ 15 self.build() 16 lldbutil.run_to_source_breakpoint(self, "// break here", lldb.SBFileSpec("main.cpp")) 17 18 # Try using both templates in the same expression. This shouldn't crash. 19 self.expect_expr("Template1.x + Template2.x", result_type="int") 20