land/vendor/github.com/go-interpreter/wagon/exec/testdata/spec/resizing.wast

12 lines
490 B
Plaintext

(module
(memory 0)
(func (export "load_at_zero") (result i32) (i32.load (i32.const 0)))
(func (export "store_at_zero") (i32.store (i32.const 0) (i32.const 2)))
(func (export "load_at_page_size") (result i32) (i32.load (i32.const 0x10000)))
(func (export "store_at_page_size") (i32.store (i32.const 0x10000) (i32.const 3)))
(func (export "grow") (param $sz i32) (result i32) (grow_memory (get_local $sz)))
(func (export "size") (result i32) (current_memory))
)