t7894.nim 342 B

123456789101112131415161718192021222324
  1. discard """
  2. disabled: true
  3. """
  4. # CI integration servers are out of memory for this test
  5. const size = 250000000
  6. proc main() =
  7. var saved = newSeq[seq[int8]]()
  8. for i in 0..22:
  9. # one of these is 0.25GB.
  10. #echo i
  11. var x = newSeq[int8](size)
  12. saved.add(x)
  13. for x in saved:
  14. #echo x.len
  15. doAssert x.len == size
  16. main()