wasmer/src/spec/tests/call.wast

18 lines
277 B
Plaintext
Raw Normal View History

2018-10-13 13:31:56 +00:00
(module
(table 0 anyfunc)
(memory 0)
(func $for_2 (; 0 ;) (param $0 i32) (result i32)
(i32.shl
(get_local $0)
(i32.const 1)
)
)
(func (export "main") (; 1 ;) (result i32)
(call $for_2
(i32.const 2)
)
)
)
;; (assert_return (invoke "main") (i32.const 2))