blob: 6233ff784d96b1c73c3051a97ad00eee6a74d408 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
;;; TOOL: run-interp
;;; ARGS*: --enable-tail-call
;;; ARGS1: --host-print
(module
(import "host" "print" (func $imported (param i32) (result i32)))
(type $i_i (func (param i32)(result i32)))
(table funcref (elem $imported))
(func (export "f") (result i32)
i32.const 42
i32.const 0
return_call_indirect (type $i_i)
)
)
(;; STDOUT ;;;
called host host.print(i32:42) => i32:0
f() => i32:0
;;; STDOUT ;;)
|