[TableGen] Fix validateOperandClass for non Phyical Reg (#118146)
[llvm-project.git] / lldb / test / API / functionalities / unused-inlined-parameters / TestUnusedInlinedParameters.py
bloba94d95d398c684e9f93807be5775df07407212b7
1 """
2 Test that unused inlined parameters are displayed.
3 """
5 import lldb
6 from lldbsuite.test.lldbtest import *
7 from lldbsuite.test import lldbutil
10 class 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")
17 # For the unused parameters, only check the types.
18 self.assertIn(
19 "(void *) unused1",
20 lldbutil.get_description(self.frame().FindVariable("unused1")),
22 self.assertEqual(42, self.frame().FindVariable("used").GetValueAsUnsigned())