parent
e05aca8734
commit
0d219d2c67
2 changed files with 19 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue