summary refs log tree commit diff stats
path: root/tests/vm/t19075.nim
blob: 89ca9cb1979ba89aeeb50fa191f3e4271dfc2ba3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
discard """
  timeout: 10
  joinable: false
"""

# bug #19075
const size = 50_000

const stuff = block:
    var a: array[size, int]
    a

const zeugs = block:
    var zeugs: array[size, int]
    for i in 0..<size:
        zeugs[i] = stuff[i]
    zeugs

doAssert zeugs[0] == 0