impl(pyvm/llvmlite): - add tools/parity.sh; tools/pyvm_runner.py; src/llvm_py/pyvm/* - emit string const as handle type in MIR JSON; add dst_type hints - unify '+' to concat_hh with from_i64/from_i8_string bridges; console print via to_i8p_h - add runtime bridges: nyash.box.from_i64, nyash.string.to_i8p_h tests: - add apps/tests/min_str_cat_loop (minimal repro for string cat loop)
18 lines
297 B
Plaintext
18 lines
297 B
Plaintext
// Minimal repro: string concatenation in a loop should yield "xxx"
|
|
|
|
static box Main {
|
|
main(args) {
|
|
local console = new ConsoleBox()
|
|
local out = ""
|
|
local i = 0
|
|
local n = 3
|
|
loop(i < n) {
|
|
out = out + "x"
|
|
i = i + 1
|
|
}
|
|
console.println(out)
|
|
return 0
|
|
}
|
|
}
|
|
|