t7894.nim 383 B

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