* fix #21045 getTime with vmopsDanger is broken; alternative to #21054 * typo
This commit is contained in:
parent
7a18c1ef44
commit
07be1791ba
5 changed files with 51 additions and 22 deletions
10
tests/vm/tvmopsDanger.nim
Normal file
10
tests/vm/tvmopsDanger.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
discard """
|
||||
cmd: "nim c --experimental:vmopsDanger -r $file"
|
||||
"""
|
||||
when defined(nimPreviewSlimSystem):
|
||||
import std/assertions
|
||||
import std/times
|
||||
|
||||
const foo = getTime()
|
||||
let bar = foo
|
||||
doAssert bar > low(Time)
|
||||
Loading…
Add table
Add a link
Reference in a new issue