summary refs log tree commit diff stats
path: root/tests/iter/tshallowcopy_closures.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/iter/tshallowcopy_closures.nim')
-rw-r--r--tests/iter/tshallowcopy_closures.nim9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/iter/tshallowcopy_closures.nim b/tests/iter/tshallowcopy_closures.nim
index 2f024ee7e..06b04a788 100644
--- a/tests/iter/tshallowcopy_closures.nim
+++ b/tests/iter/tshallowcopy_closures.nim
@@ -1,5 +1,10 @@
 discard """
+  matrix: "--mm:refc"
   ccodecheck: "!@('{' \\s* 'NI HEX3Astate;' \\s* '}')"
+  output: '''
+a1 10
+a1 9
+'''
 """
 
 # bug #1803
@@ -26,6 +31,6 @@ var
   z: TaskFn
 
 discard x()
-z = x #shallowCopy(z, x)
-z = y #shallowCopy(z, y)
+shallowCopy(z, x)
+shallowCopy(z, y)
 discard x()