blob: 2f532e6f17fc7a52eda96f237391634f15a003f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
(module
(type $anyref_=>_anyref (func (param anyref) (result anyref)))
(import "env" "test2" (global $gimport$1 anyref))
(import "env" "test1" (func $fimport$0 (param anyref) (result anyref)))
(memory $0 1 1)
(export "test1" (func $fimport$0))
(export "test2" (global $gimport$1))
(func $0 (; 1 ;) (param $0 anyref) (result anyref)
(local $1 anyref)
(local.set $1
(call $fimport$0
(local.get $0)
)
)
(return
(local.get $1)
)
)
)
|