Files: aef03b94be635e5d746e19e5f5e3af0a7fa3ec0f / tests / wast / table.wast
723 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.store |
9 | (i32.const 0) |
10 | (call $mem_externalize (i32.const 0) (i32.const 4))) |
11 | (i32.store |
12 | (i32.const 4) |
13 | (call $mem_externalize (i32.const 0) (i32.const 4))) |
14 | |
15 | (call $internalize |
16 | (i32.const 8) |
17 | (i32.const 2) |
18 | (call $externalize |
19 | (i32.const 0) |
20 | (i32.const 2)) |
21 | (i32.const 0)) |
22 | ) |
23 | (export "test" (func $test))) |
24 |
Built with git-ssb-web