From 212ae2f1257628bd5d1760593ce0a1bad768831a Mon Sep 17 00:00:00 2001 From: Andreas Rumpf <rumpf_a@web.de> Date: Sat, 10 Aug 2019 15:41:24 +0200 Subject: fixes #11891 --- tests/destructor/tnewruntime_misc.nim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/destructor/tnewruntime_misc.nim') 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 -- cgit 1.4.1-2-gfad0