code wiki / (root) / nx_fgt_t5.nx

nx_fgt_t5.nx source

↩ module page · 14 lines · 386 B

1// forge gate fixture candidate: DELIBERATELY BROKEN (statement-boundary trap) -- must fail the 2// build so the driver banks the verbatim compiler error and advances to the next candidate. 3import "nx_syscalls.nx" 4 5func rw_add(a: i64, b: i64) -> i64 { 6 return a + b 7 + 5 8} 9 10func main(argc: i64, argv: *i64) -> i64 { 11 let s: i64 = rw_add(1, 2) 12 sys_exit(0) 13 return 0 14}