mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
32 bit fixes (#10608)
This commit is contained in:
committed by
Andreas Rumpf
parent
304b1dd34b
commit
28394153ab
@@ -1,10 +1,7 @@
|
||||
discard """
|
||||
output: '''TBar2
|
||||
TFoo
|
||||
16
|
||||
12
|
||||
16
|
||||
12'''
|
||||
'''
|
||||
"""
|
||||
|
||||
## XXX this output needs to be adapated for VCC which produces different results.
|
||||
@@ -67,29 +64,6 @@ var aa = makeWindow()
|
||||
|
||||
thisCausesError(dd, aa)
|
||||
|
||||
# bug #4763
|
||||
type
|
||||
testObject_1 = object
|
||||
size: int32
|
||||
value: int64
|
||||
|
||||
testObject_2 {.packed.} = object
|
||||
size: int32
|
||||
value: int64
|
||||
|
||||
testObject_3[T] = object
|
||||
size: int32
|
||||
value: T
|
||||
|
||||
testObject_4 {.packed.} [T] = object
|
||||
size: int32
|
||||
value: T
|
||||
|
||||
echo sizeof(testObject_1)
|
||||
echo sizeof(testObject_2)
|
||||
echo sizeof(testObject_3[int64])
|
||||
echo sizeof(testObject_4[int64])
|
||||
|
||||
# bug #5892
|
||||
type
|
||||
Foo6 = distinct array[4, float32]
|
||||
|
||||
Reference in New Issue
Block a user