host_import_add.wat (353B)
1 (module 2 ;; Host-provided import. Expected to be bound by the test harness to a 3 ;; C function with the kit-instance ABI: 4 ;; int32_t host_add(KitWasmInstance*, int32_t, int32_t) 5 (import "env" "host_add" (func $host_add (param i32 i32) (result i32))) 6 (func (export "test_main") (result i32) 7 i32.const 2 8 i32.const 3 9 call $host_add))