| 1 |
(module |
| 2 |
(rec |
| 3 |
(type $f1 (;0;) (sub (func))) |
| 4 |
(type (;1;) (struct (field (ref $f1)))) |
| 5 |
) |
| 6 |
(rec |
| 7 |
(type $f2 (;2;) (sub (func))) |
| 8 |
(type (;3;) (struct (field (ref $f2)))) |
| 9 |
) |
| 10 |
(rec |
| 11 |
(type $g1 (;4;) (sub $f1 (func))) |
| 12 |
(type (;5;) (struct)) |
| 13 |
) |
| 14 |
(rec |
| 15 |
(type $g2 (;6;) (sub $f2 (func))) |
| 16 |
(type (;7;) (struct)) |
| 17 |
) |
| 18 |
(type (;8;) (func (result i32))) |
| 19 |
(export "run" (func 1)) |
| 20 |
(elem (;0;) declare func $g) |
| 21 |
(func $g (;0;) (type $g2)) |
| 22 |
(func (;1;) (type 8) (result i32) |
| 23 |
ref.func $g |
| 24 |
ref.test (ref $g1) |
| 25 |
) |
| 26 |
) |