summary refs log tree commit diff stats
path: root/tests/js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js')
-rw-r--r--tests/js/tcopying.nim10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/js/tcopying.nim b/tests/js/tcopying.nim
index 1f668be52..306d25090 100644
--- a/tests/js/tcopying.nim
+++ b/tests/js/tcopying.nim
@@ -6,6 +6,7 @@ discard """
 true false
 100 300 100
 1
+1
 '''
 """
 
@@ -69,4 +70,11 @@ block:
 
     var nums = [1, 2]
     foo(nums)
-    echo nums[0]
\ No newline at end of file
+    echo nums[0]
+
+proc bug9674 =
+  var b = @[1,2,3]
+  var a = move(b)
+  echo a[0]
+
+bug9674()