summary refs log tree commit diff stats
path: root/tests/pragmas/treorder.nim
diff options
context:
space:
mode:
authorawr <41453959+awr1@users.noreply.github.com>2018-09-04 15:31:38 -0500
committerawr <41453959+awr1@users.noreply.github.com>2018-09-04 15:31:38 -0500
commite6a4213faeb28530e33663d27ff446a5b74b4a5e (patch)
tree058159c0bbbcb5e5962a41edf3026718d6a7c035 /tests/pragmas/treorder.nim
parent1d93991929e7691fdd7218a0d9638d420a0f2492 (diff)
downloadNim-e6a4213faeb28530e33663d27ff446a5b74b4a5e.tar.gz
transformed {.reorder: on.} into {.experimental: codeReordering.}, added tests
Diffstat (limited to 'tests/pragmas/treorder.nim')
-rw-r--r--tests/pragmas/treorder.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/pragmas/treorder.nim b/tests/pragmas/treorder.nim
index 1006af527..659a6f644 100644
--- a/tests/pragmas/treorder.nim
+++ b/tests/pragmas/treorder.nim
@@ -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 = ""
\ No newline at end of file
+var ss {.compileTime.}: string = ""