diff --git a/examples/grow_memory.wat b/examples/grow_memory.wat index 64e9e6999..61d90bb4f 100644 --- a/examples/grow_memory.wat +++ b/examples/grow_memory.wat @@ -1,9 +1,8 @@ (module (memory 1) - (func $grow_mem (result i32) - (grow_memory (i32.const 1)) - ) (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)) ) )