summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/destructor/tmove_objconstr.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/destructor/tmove_objconstr.nim b/tests/destructor/tmove_objconstr.nim
index 3e8a64435..20dc062f9 100644
--- a/tests/destructor/tmove_objconstr.nim
+++ b/tests/destructor/tmove_objconstr.nim
@@ -25,8 +25,11 @@ proc initData(s: string): Data =
   result = Data(data: s, rc: 1)
   echo s, " created"
 
+proc pointlessWrapper(s: string): Data =
+  result = initData(s)
+
 proc main =
-  var x = initData"test"
+  var x = pointlessWrapper"test"
 
 when isMainModule:
   main()