tvarres3.nim 141 B

12345678910111213141516
  1. discard """
  2. output: "45"
  3. """
  4. var
  5. g = 5
  6. proc p(): var int =
  7. var bla = addr(g) #: array[0..7, int]
  8. result = bla[]
  9. p() = 45
  10. echo g