t19075.nim 276 B

12345678910111213141516171819
  1. discard """
  2. timeout: 10
  3. joinable: false
  4. """
  5. # bug #19075
  6. const size = 50_000
  7. const stuff = block:
  8. var a: array[size, int]
  9. a
  10. const zeugs = block:
  11. var zeugs: array[size, int]
  12. for i in 0..<size:
  13. zeugs[i] = stuff[i]
  14. zeugs
  15. doAssert zeugs[0] == 0