This commit is contained in:
Andreas Rumpf 2018-04-21 23:58:24 +02:00
commit b43025b754
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,9 @@
discard """
line: 9
errormsg: "address of 'result' may not escape its stack frame"
"""
# bug #5113
proc makeSeqVar(size: Natural): var seq[int] =
newSeq(result, size)