Files: aef03b94be635e5d746e19e5f5e3af0a7fa3ec0f / tests / wast / memory.wast
599 bytesRaw
1 | (module |
2 | (import "memory" "externalize" (func $externalize (param i32 i32) (result i32))) |
3 | (import "memory" "internalize" (func $internalize (param i32 i32 i32 i32))) |
4 | (import "memory" "length" (func $length (param i32) (result i32))) |
5 | (memory (export "memory") 1) |
6 | (data (i32.const 0) "test") |
7 | (func $test |
8 | (local $dataRef i32) |
9 | (call $internalize |
10 | (i32.const 5) |
11 | (call $length |
12 | (tee_local $dataRef |
13 | (call $externalize |
14 | (i32.const 0) |
15 | (i32.const 4)))) |
16 | (get_local $dataRef) |
17 | (i32.const 0)) |
18 | ) |
19 | (export "test" (func $test))) |
20 |
Built with git-ssb-web