tzeroarray.nim 236 B

12345678910111213141516171819
  1. discard """
  2. output: done
  3. """
  4. for i in 0 .. 1:
  5. var a: array[0..4, int]
  6. if a[0] != 0: quit "bug"
  7. a[0] = 6
  8. proc main =
  9. for i in 0 .. 1:
  10. var a: array[0..4, int]
  11. if a[0] != 0: quit "bug"
  12. a[0] = 6
  13. main()
  14. echo "done"