diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-02-21 21:06:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-21 21:06:41 +0100 |
commit | 0d219d2c67cdf123fbc38aade3974edef5ee9f8b (patch) | |
tree | c846e32ccfca6f52580e08f7e4a0b075484252b4 /tests/destructor/tnewruntime_misc.nim | |
parent | e05aca8734702f0ad4beb0625780d354d7168bc7 (diff) | |
download | Nim-0d219d2c67cdf123fbc38aade3974edef5ee9f8b.tar.gz |
fixes #13457 (#13458)
Diffstat (limited to 'tests/destructor/tnewruntime_misc.nim')
-rw-r--r-- | tests/destructor/tnewruntime_misc.nim | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/destructor/tnewruntime_misc.nim b/tests/destructor/tnewruntime_misc.nim index 263ea1bd4..f6e2a6157 100644 --- a/tests/destructor/tnewruntime_misc.nim +++ b/tests/destructor/tnewruntime_misc.nim @@ -7,7 +7,8 @@ axc ... destroying GenericObj[T] GenericObj[system.int] test -(allocCount: 17, deallocCount: 15)''' +(allocCount: 17, deallocCount: 15) +3''' """ import system / ansi_c @@ -132,3 +133,9 @@ proc xx(xml: string): MyObject = discard xx("test") echo getAllocStats() - s1 + +# bug #13457 +var s = "abcde" +s.setLen(3) + +echo s.cstring.len |