This commit is contained in:
Andreas Rumpf 2020-02-21 21:06:41 +01:00 • committed by GitHub
commit 0d219d2c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 11 deletions

View file

@ -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