blob: 514123aabb19dc45d7166f7da9e11ea17b9f559d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
(module
(type $externref_=>_externref (func (param externref) (result externref)))
(import "env" "test2" (global $test2 externref))
(import "env" "test1" (func $test1 (param externref) (result externref)))
(memory $0 1 1)
(export "test1" (func $test1))
(export "test2" (global $test2))
(func $externref_test (; 1 ;) (param $0 externref) (result externref)
(local $1 externref)
(local.set $1
(call $test1
(local.get $0)
)
)
(return
(local.get $1)
)
)
)
|