diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-08-10 15:41:24 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-08-10 15:41:24 +0200 |
commit | 212ae2f1257628bd5d1760593ce0a1bad768831a (patch) | |
tree | b66050091e82c2d891bb18f97ebc812eb34cf416 /tests/destructor/tnewruntime_misc.nim | |
parent | 0e4a8bfb289d707909069e72ca24efd2a074a5f1 (diff) | |
download | Nim-212ae2f1257628bd5d1760593ce0a1bad768831a.tar.gz |
fixes #11891
Diffstat (limited to 'tests/destructor/tnewruntime_misc.nim')
-rw-r--r-- | tests/destructor/tnewruntime_misc.nim | 6 |
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 |