* 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
This commit is contained in:
parent
66b0c843c3
commit
600b3a91ab
2 changed files with 16 additions and 1 deletions
13
tests/vm/t20746.nim
Normal file
13
tests/vm/t20746.nim
Normal file
|
|
@ -0,0 +1,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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue