summary refs log tree commit diff stats
path: root/tests/arc/tcomputedgotocopy.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arc/tcomputedgotocopy.nim')
-rw-r--r--tests/arc/tcomputedgotocopy.nim11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/arc/tcomputedgotocopy.nim b/tests/arc/tcomputedgotocopy.nim
index 78cb6c5c0..07487684a 100644
--- a/tests/arc/tcomputedgotocopy.nim
+++ b/tests/arc/tcomputedgotocopy.nim
@@ -1,13 +1,16 @@
 discard """
-  cmd: '''nim c --newruntime $file'''
-  output: '''2
-2'''
+  cmd: '''nim c --mm:arc $file'''
+  output: '''
+2
+2
+destroyed
+'''
 """
 
 type
   ObjWithDestructor = object
     a: int
-proc `=destroy`(self: var ObjWithDestructor) =
+proc `=destroy`(self: ObjWithDestructor) =
   echo "destroyed"
 
 proc `=copy`(self: var ObjWithDestructor, other: ObjWithDestructor) =