1""" 2Test that SBValue doesn't incorrectly sign-extend 3the Scalar value of a bitfield that has an unsigned 4enum type. 5 6We test this by assigning to a bit-field a value 7that is out-of-range of it's signed counterpart. 8I.e., with a bit-field of width 4, assigning 98 to it would be out-of-range if we treated it 10as a signed. If LLDB were to sign-extend the Scalar 11(which shouldn't happen for unsigned bit-fields) 12it would left-fill the result with 1s; we test 13for this not to happen. 14""" 15 16import lldbsuite.test.lldbinline as lldbinline 17from lldbsuite.test.decorators import * 18 19lldbinline.MakeInlineTest(__file__, globals(), [skipIf(dwarf_version=["<", "3"])]) 20