mirror of
https://github.com/radareorg/radare2-testbins.git
synced 2026-11-07 06:36:01 -10:00
24 lines
369 B
WebAssembly Text Format
24 lines
369 B
WebAssembly Text Format
;;; TOOL: run-interp
|
|
(module
|
|
(func (param i32) (result i32)
|
|
get_local 0
|
|
i32.const 0
|
|
i32.eq
|
|
if 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 ;;)
|