Files
Nim/tests/vm/t20746.nim
ringabout 600b3a91ab fixes regression #20746; remove string copies for ORC booted compiler (#20776)
* fixes #20746; remove string copies for ORC booted compiler

* add a test case

* use `cursor` thanks to @beef331

* for old compilers

* change file extension

* change test cases
2022-11-07 14:36:43 +01:00

14 lines
213 B
Nim

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"