summary refs log tree commit diff stats
path: root/tests/modules
diff options
context:
space:
mode:
authorBigEpsilon <BigEpsilon@users.noreply.github.com>2017-10-28 11:33:35 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-10-28 11:33:35 +0200
commite2af486434c7ff401c412d890b490b4ac11ab321 (patch)
tree0861cd9a9f8f2da4cf7d99564e5d11f8772a06dd /tests/modules
parente13513546981167e4d1ee38993b2589e14531fb9 (diff)
downloadNim-e2af486434c7ff401c412d890b490b4ac11ab321.tar.gz
Add sections (type, var, let, const, using) support for reorder pragma (#6326)
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/treorder.nim12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/modules/treorder.nim b/tests/modules/treorder.nim
index 25280c429..8715e4548 100644
--- a/tests/modules/treorder.nim
+++ b/tests/modules/treorder.nim
@@ -9,7 +9,6 @@ defined
 {.reorder: on.}
 {.experimental.}
 
-{.push callconv: stdcall.}
 proc bar(x: T)
 
 proc foo() =
@@ -22,15 +21,16 @@ proc bar(x: T) =
   echo "works ", x
   foo(x)
 
+when defined(testdef):
+  proc whendep() = echo "defined"
+else:
+  proc whendep() = echo "undefined"
+
 foo()
 
 type
   T = int
 
-when defined(testdef):
-  proc whendep() = echo "defined"
-else:
-  proc whendep() = echo "undefined"
 
 when not declared(goo):
   proc goo(my, omy) = echo my
@@ -42,5 +42,3 @@ using
   my, omy: int
 
 goo(3, 4)
-
-{.pop.}