summary refs log blame commit diff stats
path: root/tests/varres/tnewseq_on_result_vart.nim
blob: 4a700468f59b65b9d93316e12b2d3cbef39c0558 (plain) (tree)
1
2
3
4
5
6
7
8
9

           
                                                                
         




                                              
discard """
  errormsg: "address of 'result' may not escape its stack frame"
  line: 9
"""
# bug #5113

proc makeSeqVar(size: Natural): var seq[int] =
  newSeq(result, size)