summary refs log tree commit diff stats
path: root/tests/global/tglobalforvar.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/global/tglobalforvar.nim')
-rw-r--r--tests/global/tglobalforvar.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/global/tglobalforvar.nim b/tests/global/tglobalforvar.nim
index af75df5c8..bc18f33f2 100644
--- a/tests/global/tglobalforvar.nim
+++ b/tests/global/tglobalforvar.nim
@@ -1,7 +1,9 @@
+discard """
+output: 100
+"""
 
 var funcs: seq[proc (): int {.nimcall.}] = @[]
 for i in 0..10:
   funcs.add((proc (): int = return i * i))
 
 echo(funcs[3]())
-