| 1 |
(module |
| 2 |
(type $f (;0;) (func (result i32))) |
| 3 |
(type $arr (;1;) (array funcref)) |
| 4 |
(type (;2;) (func (result i32 i32))) |
| 5 |
(table $t (;0;) 2 2 funcref) |
| 6 |
(export "array-new-elem-contents" (func 4)) |
| 7 |
(elem $e (;0;) func $aa $bb $cc $dd) |
| 8 |
(func $aa (;0;) (type $f) (result i32) |
| 9 |
i32.const 170 |
| 10 |
) |
| 11 |
(func $bb (;1;) (type $f) (result i32) |
| 12 |
i32.const 187 |
| 13 |
) |
| 14 |
(func $cc (;2;) (type $f) (result i32) |
| 15 |
i32.const 204 |
| 16 |
) |
| 17 |
(func $dd (;3;) (type $f) (result i32) |
| 18 |
i32.const 221 |
| 19 |
) |
| 20 |
(func (;4;) (type 2) (result i32 i32) |
| 21 |
(local (ref $arr)) |
| 22 |
i32.const 1 |
| 23 |
i32.const 2 |
| 24 |
array.new_elem $arr $e |
| 25 |
local.set 0 |
| 26 |
i32.const 0 |
| 27 |
local.get 0 |
| 28 |
i32.const 0 |
| 29 |
array.get $arr |
| 30 |
table.set $t |
| 31 |
i32.const 1 |
| 32 |
local.get 0 |
| 33 |
i32.const 1 |
| 34 |
array.get $arr |
| 35 |
table.set $t |
| 36 |
i32.const 0 |
| 37 |
call_indirect (type $f) |
| 38 |
i32.const 1 |
| 39 |
call_indirect (type $f) |
| 40 |
) |
| 41 |
) |