Nim/tests/pragmas/tpragmas_reorder.nim
2023-01-01 10:25:04 +01:00

19 lines
No EOL
334 B
Nim

discard """
matrix: "--experimental:codeReordering"
"""
runnableExamples:
import strtabs
var t = newStringTable()
t["name"] = "John"
t["city"] = "Monaco"
doAssert t.len == 2
doAssert t.hasKey "name"
doAssert "name" in t
include "system/inclrtl"
{.pragma: rtlFunc, rtl.}
proc hasKey*(): bool {.rtlFunc.} =
discard