code wiki / (root) / nx_fnptr_kat.nx

nx_fnptr_kat.nx

buildroot/runtime/nx_fnptr_kat.nx

1043 B23 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic fnptr
docsdependenciesstructsconstsfunctions

about

KAT for stage 1 (func type + function-address). Expect: AMP_OK / BARE_OK / SAME_OK. Proves &fn and a BARE function name both yield the function's real (non-zero) code address, and they agree -- the fix for __thread_clone's NULL-entry SIGSEGV.

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_fnptr_kat.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_write sys_exit

structs

none

consts

none

functions

6func worker(x: i64) -> i64 { return x * 2 }
8func main() -> i64