_mlp_probe.nx source
↩ module page · 15 lines · 561 B
1// _mlp_probe.nx -- MINIMAL REPRODUCER: is a MULTI-LINE function parameter list parsed?
2// The recovered nxasm_v2.nx declares enc_r/enc_i/enc_u with the params split across two lines and
3// nx_cc reports UNRESOLVED identifier 'rd'. If this 8-line fixture fails the same way, the defect is
4// the COMPILER, not the recovered source. license_tier: ORIGINAL expect_exit: 0
5import "nx_syscalls.nx"
6
7func mlp_add(a: i64,
8 b: i64) -> i64 {
9 return a + b
10}
11
12func main() -> i64 {
13 let x: i64 = mlp_add(2, 3)
14 if x == 5 { return 0 }
15 return 1
16}