| 1 |
(module |
| 2 |
(type $dummy (;0;) (func)) |
| 3 |
(type (;1;) (func (result funcref))) |
| 4 |
(table $t1 (;0;) 10 funcref) |
| 5 |
(table $t2 (;1;) 10 funcref ref.func $dummy) |
| 6 |
(table $t3 (;2;) 10 (ref $dummy) ref.func $dummy) |
| 7 |
(table $t4 (;3;) 10 (ref func) ref.func $dummy) |
| 8 |
(export "get1" (func 1)) |
| 9 |
(export "get2" (func 2)) |
| 10 |
(export "get3" (func 3)) |
| 11 |
(func $dummy (;0;) (type $dummy)) |
| 12 |
(func (;1;) (type 1) (result funcref) |
| 13 |
i32.const 1 |
| 14 |
table.get $t1 |
| 15 |
) |
| 16 |
(func (;2;) (type 1) (result funcref) |
| 17 |
i32.const 4 |
| 18 |
table.get $t2 |
| 19 |
) |
| 20 |
(func (;3;) (type 1) (result funcref) |
| 21 |
i32.const 7 |
| 22 |
table.get $t3 |
| 23 |
) |
| 24 |
) |