summary refs log tree commit diff stats
path: root/tests/overflow/trangechecks.nim
Commit message (Expand)AuthorAgeFilesLines
* some test cleanups & category reorganization (#22010)metagn2023-06-061-0/+48
='#n5'>5 6 7 8 9 10 11 12 13 14 15 16 17
















                                                             
discard """
  file: "tvarres1.nim"
  line: 12
  errormsg: "address of 'bla' may not escape its stack frame"
"""

var
  g = 5

proc p(): var int = 
  var bla: int
  result = bla
  
p() = 45

echo g