Skip to content

Commit 00eafa6

Browse files
author
Sven SAULEAU
authored
Update mem-access.wat
1 parent acc45fd commit 00eafa6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/cases/wasm/memory/mem-access.wat

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
(module (type $t0 (func (result i32))) (type $t1 (func (param i32))) (import "./memory.wat" "memory" (memory $./memory.wasm.memory 1)) (func $get (export "get") (type $t0) (result i32) (i32.load (i32.const 0))) (func $set (export "set") (type $t1) (param $p i32) (i32.store (i32.const 0) (get_local $p))))
1+
(module
2+
(type $t0 (func (result i32)))
3+
(type $t1 (func (param i32)))
4+
(import "./memory.wat" "memory" (memory $./memory.wasm.memory 1))
5+
(func $get (export "get") (type $t0) (result i32)
6+
(i32.load
7+
(i32.const 0)))
8+
(func $set (export "set") (type $t1) (param $p i32)
9+
(i32.store
10+
(i32.const 0)
11+
(get_local $p))))

0 commit comments

Comments
 (0)