summary refs log tree commit diff stats
path: root/tests/ccgbugs/tgeneric_closure.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/tgeneric_closure.nim')
-rw-r--r--tests/ccgbugs/tgeneric_closure.nim10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/ccgbugs/tgeneric_closure.nim b/tests/ccgbugs/tgeneric_closure.nim
index f9d5e7910..9f3c5b446 100644
--- a/tests/ccgbugs/tgeneric_closure.nim
+++ b/tests/ccgbugs/tgeneric_closure.nim
@@ -1,4 +1,10 @@
-
+discard """
+output: '''
+2
+2
+2
+'''
+"""
 
 # bug 2659
 
@@ -9,7 +15,7 @@ type
 proc mult(x:int, y:var int) =
   y = 2 * x
 
-when isMainModule:
+when true:
 
   var input = 1
   var output = 0