Files: d48b7065a388045f96fc7be1588e12150b8de8bb / tests / wast / table.wast
672 bytesRaw
1 | (module |
2 | (import "elem" "externalize" (func $externalize (param i32 i32) (result i32))) |
3 | (import "memory" "externalize" (func $mem_externalize (param i32 i32) (result i32))) |
4 | (import "elem" "internalize" (func $internalize (param i32 i32 i32 i32))) |
5 | (memory (export "memory") 1) |
6 | (data (i32.const 0) "test") |
7 | (func $test |
8 | (i32.const 0) |
9 | (call $mem_externalize (i32.const 0) (i32.const 4)) |
10 | (i32.const 4) |
11 | (call $mem_externalize (i32.const 0) (i32.const 4)) |
12 | (i32.store) |
13 | (i32.store) |
14 | |
15 | |
16 | i32.const 0 |
17 | i32.const 2 |
18 | call $externalize |
19 | |
20 | i32.const 0 |
21 | i32.const 8 |
22 | i32.const 2 |
23 | call $internalize |
24 | ) |
25 | (export "test" (func $test))) |
26 |
Built with git-ssb-web