t7894.nim 399 B

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