| 1 |
(module |
| 2 |
(type $t (;0;) (func)) |
| 3 |
(type (;1;) (func (result anyref))) |
| 4 |
(type (;2;) (func (result funcref))) |
| 5 |
(type (;3;) (func (result exnref))) |
| 6 |
(type (;4;) (func (result externref))) |
| 7 |
(type (;5;) (func (result (ref null $t)))) |
| 8 |
(global (;0;) anyref ref.null any) |
| 9 |
(global (;1;) funcref ref.null func) |
| 10 |
(global (;2;) exnref ref.null exn) |
| 11 |
(global (;3;) externref ref.null extern) |
| 12 |
(global (;4;) (ref null $t) ref.null $t) |
| 13 |
(export "anyref" (func 0)) |
| 14 |
(export "funcref" (func 1)) |
| 15 |
(export "exnref" (func 2)) |
| 16 |
(export "externref" (func 3)) |
| 17 |
(export "ref" (func 4)) |
| 18 |
(func (;0;) (type 1) (result anyref) |
| 19 |
ref.null any |
| 20 |
) |
| 21 |
(func (;1;) (type 2) (result funcref) |
| 22 |
ref.null func |
| 23 |
) |
| 24 |
(func (;2;) (type 3) (result exnref) |
| 25 |
ref.null exn |
| 26 |
) |
| 27 |
(func (;3;) (type 4) (result externref) |
| 28 |
ref.null extern |
| 29 |
) |
| 30 |
(func (;4;) (type 5) (result (ref null $t)) |
| 31 |
ref.null $t |
| 32 |
) |
| 33 |
) |