brintos

brintos / llvm-project-archived public Read only

0
0
Text · 660 B · a94d95d Raw
23 lines · python
1"""2Test that unused inlined parameters are displayed.3"""4 5import lldb6from lldbsuite.test.lldbtest import *7from lldbsuite.test import lldbutil8 9 10class TestUnusedInlinedParameters(TestBase):11    def test_unused_inlined_parameters(self):12        self.build()13        lldbutil.run_to_source_breakpoint(14            self, "// break here", lldb.SBFileSpec("main.c")15        )16 17        # For the unused parameters, only check the types.18        self.assertIn(19            "(void *) unused1",20            lldbutil.get_description(self.frame().FindVariable("unused1")),21        )22        self.assertEqual(42, self.frame().FindVariable("used").GetValueAsUnsigned())23