mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
* fixes #12589; add testcase * fixes i386 * i386
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user