summary refs log tree commit diff stats
path: root/tests/varres/tnewseq_on_result_vart.nim
blob: 18935a1d1b46e47c1eaf8eb434480eaf49d6c0b4 (plain) (blame)
1
2
3
4
5
6
7
8
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)