summary refs log tree commit diff stats
path: root/tests/system/t7894.nim
blob: b7ca1eec893615362b7c1d1350e8921808970cd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
discard """
disabled: "travis"
disabled: "appveyor"
joinable: false
"""

# CI integration servers are out of memory for this test

const size = 250000000

proc main() =

  var saved = newSeq[seq[int8]]()

  for i in 0..22:
    # one of these is 0.25GB.
    #echo i
    var x = newSeq[int8](size)
    saved.add(x)

  for x in saved:
    #echo x.len
    doAssert x.len == size

main()