Files: d48b7065a388045f96fc7be1588e12150b8de8bb / tests / wast / funcRef_caller.wast
818 bytesRaw
1 | (module |
2 | (import "func" "internalize" (func $internalize (param i32 i32))) |
3 | (import "test" "check" (func $check (param i32 i32))) |
4 | (import "module" "self" (func $self (result i32))) |
5 | (import "module" "export" (func $exports (param i32 i32) (result i32))) |
6 | (import "memory" "externalize" (func $externalize (param i32 i32) (result i32))) |
7 | (memory (export "memory") 1) |
8 | (data (i32.const 0) "callback") |
9 | (table (export "table") 1 1 anyfunc) |
10 | (func $call (param i32) |
11 | call $self |
12 | i32.const 0 |
13 | i32.const 8 |
14 | call $externalize |
15 | call $exports |
16 | |
17 | i32.const 0 |
18 | get_local 0 |
19 | call $internalize |
20 | i32.const 0 |
21 | call_indirect (param i32) |
22 | ) |
23 | (func $callback (param i32) |
24 | get_local 0 |
25 | i32.const 5 |
26 | call $check |
27 | ) |
28 | (export "call" (func $call)) |
29 | (export "callback" (func $callback))) |
30 |
Built with git-ssb-web