summary refs log tree commit diff stats
path: root/tests/destructor
diff options
context:
space:
mode:
Diffstat (limited to 'tests/destructor')
-rw-r--r--tests/destructor/tv2_cast.nim10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/destructor/tv2_cast.nim b/tests/destructor/tv2_cast.nim
index 1430b7521..82c03fb17 100644
--- a/tests/destructor/tv2_cast.nim
+++ b/tests/destructor/tv2_cast.nim
@@ -1,7 +1,9 @@
 discard """
   cmd: '''nim c --newruntime $file'''
   output: '''@[1]
-@[116, 101, 115, 116]'''
+@[116, 101, 115, 116]
+test
+@[1953719668, 875770417]'''
 """
 
 # bug #11018
@@ -9,3 +11,9 @@ discard cast[seq[uint8]](@[1])
 discard cast[seq[uint8]]("test")
 echo cast[seq[uint8]](@[1])
 echo cast[seq[uint8]]("test")
+
+discard cast[string](@[116'u8, 101, 115, 116])
+echo cast[string](@[116'u8, 101, 115, 116])
+var a = cast[seq[uint32]]("test1234")
+a.setLen(2)
+echo a