mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-12 10:37:11 +00:00
Add example grow_memory wast file
This commit is contained in:
parent
02ab2fe603
commit
069fc3229a
@ -1,9 +1,8 @@
|
|||||||
(module
|
(module
|
||||||
(memory 1)
|
(memory 1)
|
||||||
(func $grow_mem (result i32)
|
|
||||||
(grow_memory (i32.const 1))
|
|
||||||
)
|
|
||||||
(func $main (export "main") (result i32)
|
(func $main (export "main") (result i32)
|
||||||
(call $grow_mem)
|
(drop (memory.grow (i32.const 1)))
|
||||||
|
(i32.store (i32.const 400) (i32.const 1600))
|
||||||
|
(i32.load (i32.const 1600))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user