Files
hakorune/apps/tests/ny-vinvoke-llvm-ret/main.hako

14 lines
393 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ny-vinvoke-llvm-ret - LLVM向け: 可変長(tagged vector) by-id シムの結果を戻り値で検証
// 期待: ランタイム標準出力に "Result: 42" が出るny_mainの戻り値
static box Main {
main() {
local m = new MapBox()
m.set(1, 42)
// 可変長経路を通すため5引数
local v = m.get(1, 9, 8, 7, 6)
return v
}
}