diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-07-29 10:20:39 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-08-11 20:14:44 +0200 |
commit | dfe067a74a0b62b74bf9680f1982805132ac9ffa (patch) | |
tree | ebcb0a14be4ded137678c2fc481e2d11cc58e4e2 /tests | |
parent | 4150606422ca559616d25e0ae4b7a005d73171d3 (diff) | |
download | Nim-dfe067a74a0b62b74bf9680f1982805132ac9ffa.tar.gz |
reorder pass: consider the 'using' statement; disabled debug output
Diffstat (limited to 'tests')
-rw-r--r-- | tests/modules/treorder.nim | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/modules/treorder.nim b/tests/modules/treorder.nim index abe74c5df..25280c429 100644 --- a/tests/modules/treorder.nim +++ b/tests/modules/treorder.nim @@ -3,10 +3,11 @@ discard """ output: '''works 34 34 defined -first impl''' +3''' """ {.reorder: on.} +{.experimental.} {.push callconv: stdcall.} proc bar(x: T) @@ -32,11 +33,14 @@ else: proc whendep() = echo "undefined" when not declared(goo): - proc goo() = echo "first impl" + proc goo(my, omy) = echo my when not declared(goo): - proc goo() = echo "second impl" + proc goo(my, omy) = echo omy -goo() +using + my, omy: int + +goo(3, 4) {.pop.} |