mirror of
https://github.com/radareorg/radare2-testbins.git
synced 2026-11-07 06:36:01 -10:00
18 lines
376 B
WebAssembly Text Format
18 lines
376 B
WebAssembly Text Format
;;; TOOL: run-interp
|
|
(module
|
|
(func (param i32) (result i32)
|
|
(block $exit i32
|
|
(i32.sub
|
|
(br_if $exit (i32.const 42) (get_local 0))
|
|
(i32.const 13))))
|
|
|
|
(func (export "test1") (result i32)
|
|
(call 0 (i32.const 0)))
|
|
|
|
(func (export "test2") (result i32)
|
|
(call 0 (i32.const 1))))
|
|
(;; STDOUT ;;;
|
|
test1() => i32:29
|
|
test2() => i32:42
|
|
;;; STDOUT ;;)
|