transformed {.reorder: on.} into {.experimental: codeReordering.}, added tests

This commit is contained in:
awr 2018-09-04 15:31:38 -05:00
commit e6a4213fae
5 changed files with 24 additions and 12 deletions

View file

@ -6,7 +6,8 @@ output:'''0
"""
import macros
{.reorder: on .}
# {.reorder: on .}
{.experimental: "codeReordering".}
echo foo(-1)
echo callWithFoo(0)
@ -71,4 +72,4 @@ macro make(arg: untyped): untyped =
proc first(i: int): void =
make(second)
var ss {.compileTime.}: string = ""
var ss {.compileTime.}: string = ""