summary refs log tree commit diff stats
path: root/tests/pragmas
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2018-06-25 15:56:13 +0200
committerLemonBoy <thatlemon@gmail.com>2018-06-25 15:56:13 +0200
commitf559e62e45b4be227d494e75fe82f571ee410840 (patch)
tree82a0acd835fa368046d0601f876c23345822cb4f /tests/pragmas
parent95436893061176d51b1c11fdf5418b3ed17a8455 (diff)
downloadNim-f559e62e45b4be227d494e75fe82f571ee410840.tar.gz
Adjust some tests to make them pass
The non-scoped behaviour of static blocks was exploited by those tests,
replace all the variables declared whithin one with compileTime marked
ones.
Diffstat (limited to 'tests/pragmas')
-rw-r--r--tests/pragmas/treorder.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/pragmas/treorder.nim b/tests/pragmas/treorder.nim
index 6a6bbff4d..1006af527 100644
--- a/tests/pragmas/treorder.nim
+++ b/tests/pragmas/treorder.nim
@@ -71,5 +71,4 @@ macro make(arg: untyped): untyped =
 proc first(i: int): void =
   make(second)
 
-static:
-  var ss: string = ""
\ No newline at end of file
+var ss {.compileTime.}: string = ""
\ No newline at end of file