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