summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/destructor/tnewruntime_misc.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/destructor/tnewruntime_misc.nim b/tests/destructor/tnewruntime_misc.nim
index 029a2a78d..2bdae5c8b 100644
--- a/tests/destructor/tnewruntime_misc.nim
+++ b/tests/destructor/tnewruntime_misc.nim
@@ -2,6 +2,7 @@ discard """
   cmd: '''nim cpp --newruntime $file'''
   output: '''(field: "value")
 Indeed
+axc
 0  new: 0'''
 """
 
@@ -24,6 +25,11 @@ proc main =
   echo w["key"][]
   echo getEnv("HEAPTRASHING")
 
+  # bug #11891
+  var x = "abc"
+  x[1] = 'x'
+  echo x
+
 main()
 
 # bug #11745