fixes #11098
This commit is contained in:
parent
f288e1b11a
commit
e083a1533b
3 changed files with 30 additions and 10 deletions
|
|
@ -7,7 +7,9 @@ ha
|
|||
@[1, 2, 3]
|
||||
@["red", "yellow", "orange", "rtrt1", "pink"]
|
||||
a: @[4, 2, 3]
|
||||
35 35'''
|
||||
0
|
||||
30
|
||||
41 41'''
|
||||
"""
|
||||
|
||||
import allocators
|
||||
|
|
@ -178,6 +180,16 @@ proc mutConstSeq() =
|
|||
|
||||
mutConstSeq()
|
||||
|
||||
proc mainSeqOfCap =
|
||||
# bug #11098
|
||||
var s = newSeqOfCap[int](10)
|
||||
echo s.len
|
||||
|
||||
var s2 = newSeqUninitialized[int](30)
|
||||
echo s2.len
|
||||
|
||||
mainSeqOfCap()
|
||||
|
||||
#echo s
|
||||
let (a, d) = allocCounters()
|
||||
discard cprintf("%ld %ld\n", a, d)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue