code wiki / _hdl_build / nx_ccdiag_selftest.nx

nx_ccdiag_selftest.nx source

↩ module page · 9 lines · 644 B

1// nx_ccdiag_selftest.nx -- VALID no-op (was briefly a deliberately-broken module to prove nx_sov_build_run now 2// auto-prints nx_cc's real stderr on an empty-.s failure; verified 2026-07-06: building a call to an undefined 3// fn now surfaces "nx_parse: call to undefined function: ..." automatically instead of an opaque "empty .s"). 4// Neutralised so it never trips a build sweep. To re-demo: add `let x = undefined_fn(0)` and rebuild. expect_exit:0 5import "nx_syscalls.nx" 6func main() -> i64 { 7 sys_write(1, "nx_sov_build_run auto-diagnostic: ACTIVE (empty-.s failures print nx_cc's real error)\n" as *u8, 84) 8 sys_exit(0); return 0 9}