mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
* 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
14 lines
213 B
Nim
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"
|