mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-30 03:03:57 +00:00
* [backport] fix #11320 * fix test for 32 bit test
This commit is contained in:
committed by
Andreas Rumpf
parent
0a1cb631a2
commit
20d0ef8afb
@@ -536,3 +536,16 @@ proc main() =
|
||||
typeProcessing(mylocal)
|
||||
|
||||
main()
|
||||
|
||||
# issue #11320 use UncheckedArray
|
||||
|
||||
type
|
||||
Payload = object
|
||||
something: int8
|
||||
vals: UncheckedArray[int32]
|
||||
|
||||
proc payloadCheck() =
|
||||
doAssert offsetOf(Payload, vals) == 4
|
||||
doAssert sizeOf(Payload) == 4
|
||||
|
||||
payloadCheck()
|
||||
|
||||
Reference in New Issue
Block a user