code wiki / (root) / wasm_test.nx

wasm_test.nx

buildroot/runtime/wasm_test.nx

1559 B49 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic wasm
docsdependenciesstructsconstsfunctions

about

wasm_test.nx -- self-test for wasm.nx. Builds a trivial IR module `func main() -> i64 { return 10 + 20 }`, runs wat_emit_module over it, verifies the output buffer is non- empty and contains some known WAT tokens.

dependencies 5 imports · 0 importers

syscalls.nx types.nx ir.nx outbuf.nx wasm.nx wasm_test.nx

imports: syscalls.nxtypes.nxir.nxoutbuf.nxwasm.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

14func contains(buf: *u8, buf_len: i64, needle: *u8) -> i64 {
31func main() -> i64 {