summary refs log tree commit diff stats
path: root/tests/vm/t20746.nim
blob: bfad269ef3d6f69ed22f5dfe9a82ead2605d05c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
discard """
  timeout: 10
  joinable: false
  output: "fine"
"""

func addString(): string =
  let x = newString(1000000)
  for i in 0..<1000000:
    discard x[i]

const translationTable = addString()
echo "fine"