closes #12589; add testcase (#20769)

* fixes #12589; add testcase

* fixes i386

* i386
This commit is contained in:
ringabout
2022-11-06 18:46:51 +08:00
committed by GitHub
parent 3c2c728eb6
commit 93b085a57a

View File

@@ -155,11 +155,23 @@ block nonzero: # bug #6959
C
let slice = SomeEnum.low..SomeEnum.high
block size_one_byte: #issue 15752
block size_one_byte: # bug #15752
type
Flag = enum
Disabled = 0x00
Enabled = 0xFF
static:
assert 1 == sizeof(Flag)
assert 1 == sizeof(Flag)
block: # bug #12589
when not defined(i386):
type
OGRwkbGeometryType {.size: sizeof(cuint).} = enum
wkbPoint25D = 0x80000001.cuint, wkbLineString25D = 0x80000002,
wkbPolygon25D = 0x80000003
proc typ(): OGRwkbGeometryType =
return wkbPoint25D
doAssert $typ() == "wkbPoint25D"