blob: f714d481d129ba32d70c919d24243768dea0c31e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
(module
(type $none_=>_i32 (func (result i32)))
(type $none_=>_funcref (func (result funcref)))
(elem declare func $0)
(func $0 (result i32)
(i32.const 0)
)
(func $test (result funcref)
(ref.func $0)
)
)
(module
(type $none_=>_none (func))
(global $bar i32 (i32.const 0))
(memory $foo 16 16)
(export "memory" (memory $foo))
(export "global" (global $bar))
(func $bar
(nop)
)
)
(module
(type $func (func (result i32)))
(global $global$0 (ref $func) (ref.func $foo))
(export "export" (func $2))
(func $foo (result i32)
(unreachable)
)
(func $2 (result i32)
(call_ref
(global.get $global$0)
)
)
)
|