blob: a2dd616a6d6db8e487ac573af8620e6791b52819 (
plain)
1
2
3
4
5
6
7
8
|
wasmFullPass(`(module
(memory 1 32768)
(func $test (result i32)
(if (i32.eq (memory.grow (i32.const 16384)) (i32.const -1)) (then (return (i32.const 42))))
(i32.store (i32.const 1073807356) (i32.const 42))
(i32.load (i32.const 1073807356)))
(export "run" (func $test))
)`, 42);
|