diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-09-15 00:36:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-15 00:36:57 +0200 |
commit | 5fa4fa185bc9c00ada9c3892921abc919481d349 (patch) | |
tree | 36ad7afc4df07bf018a6470ecdeeae8e8aae08d3 /tests | |
parent | 0c04b80651ff591beadb873c8814168e66e6b722 (diff) | |
parent | e3d7056902550f85cee68ee0cddfe4d944b4e815 (diff) | |
download | Nim-5fa4fa185bc9c00ada9c3892921abc919481d349.tar.gz |
Merge pull request #8875 from awr1/experimentalize-reorder
Experimentalize reorder (Changes {.reorder: on.} to {.experimental: "codeReordering".})
Diffstat (limited to 'tests')
-rw-r--r-- | tests/misc/tnoforward.nim | 3 | ||||
-rw-r--r-- | tests/modules/treorder.nim | 3 | ||||
-rw-r--r-- | tests/pragmas/treorder.nim | 5 |
3 files changed, 6 insertions, 5 deletions
diff --git a/tests/misc/tnoforward.nim b/tests/misc/tnoforward.nim index 342e757b8..3e96e3489 100644 --- a/tests/misc/tnoforward.nim +++ b/tests/misc/tnoforward.nim @@ -2,7 +2,8 @@ discard """ disabled: true """ -{. noforward: on .} +# {. noforward: on .} +{.experimental: "codeReordering".} proc foo(x: int) = bar x diff --git a/tests/modules/treorder.nim b/tests/modules/treorder.nim index 8715e4548..c81715cd8 100644 --- a/tests/modules/treorder.nim +++ b/tests/modules/treorder.nim @@ -6,8 +6,7 @@ defined 3''' """ -{.reorder: on.} -{.experimental.} +{.experimental: "codeReordering".} proc bar(x: T) 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 = "" |