mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* clean up some test categories * mention exact slice issue * magics into system * move trangechecks into overflow * move tmemory to system * try fix CI * try fix CI * final CI fix
20 lines
310 B
Nim
20 lines
310 B
Nim
discard """
|
|
targets: "c js"
|
|
"""
|
|
|
|
|
|
block divUint64:
|
|
proc divTest() =
|
|
let x1 = 12'u16
|
|
let y = x1 div 5'u16
|
|
let x2 = 1345567'u32
|
|
let z = x2 div 5'u32
|
|
let a = 1345567'u64 div uint64(x1)
|
|
doAssert y == 2
|
|
doAssert z == 269113
|
|
doAssert a == 112130
|
|
|
|
static: divTest()
|
|
divTest()
|
|
|