Files: a560c11794c6a4a7ea60a385f2aba1532a51d0af / tests / wast / table.wast
674 bytesRaw
1 | (module |
2 | (import "table" "externalize" (func $externalize (param i32 i32) (result i32))) |
3 | (import "memory" "externalize" (func $mem_externalize (param i32 i32) (result i32))) |
4 | (import "table" "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