blob: ae44efc9af0f8798729ca6620e6b297a5700b7ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
;;; TOOL: run-interp
(module
(func (param i32) (result i32)
local.get 0
i32.const 0
i32.eq
if (result i32)
i32.const 1
else
i32.const 2
end)
(func (export "test1") (result i32)
i32.const 0
call 0)
(func (export "test2") (result i32)
i32.const 1
call 0))
(;; STDOUT ;;;
test1() => i32:1
test2() => i32:2
;;; STDOUT ;;)
|