| 1 |
(module |
| 2 |
(type (;0;) (func)) |
| 3 |
(type (;1;) (func (param funcref))) |
| 4 |
(global (;0;) externref ref.null extern) |
| 5 |
(func (;0;) (type 0) |
| 6 |
(local externref funcref) |
| 7 |
ref.null extern |
| 8 |
local.set 0 |
| 9 |
ref.null func |
| 10 |
local.set 1 |
| 11 |
) |
| 12 |
(func (;1;) (type 1) (param funcref) |
| 13 |
global.get 0 |
| 14 |
ref.is_null |
| 15 |
drop |
| 16 |
local.get 0 |
| 17 |
ref.is_null |
| 18 |
drop |
| 19 |
) |
| 20 |
(func $select-join (;2;) (type 0) |
| 21 |
ref.null func |
| 22 |
ref.null func |
| 23 |
i32.const 0 |
| 24 |
select (result funcref) |
| 25 |
drop |
| 26 |
ref.null extern |
| 27 |
ref.null extern |
| 28 |
i32.const 0 |
| 29 |
select (result externref) |
| 30 |
drop |
| 31 |
block ;; label = @1 |
| 32 |
unreachable |
| 33 |
select (result externref) |
| 34 |
drop |
| 35 |
end |
| 36 |
block ;; label = @1 |
| 37 |
unreachable |
| 38 |
i32.const 0 |
| 39 |
select (result externref) |
| 40 |
drop |
| 41 |
end |
| 42 |
block ;; label = @1 |
| 43 |
unreachable |
| 44 |
ref.null extern |
| 45 |
i32.const 0 |
| 46 |
select (result externref) |
| 47 |
drop |
| 48 |
end |
| 49 |
block ;; label = @1 |
| 50 |
unreachable |
| 51 |
ref.null extern |
| 52 |
ref.null extern |
| 53 |
i32.const 0 |
| 54 |
select (result externref) |
| 55 |
drop |
| 56 |
end |
| 57 |
) |
| 58 |
) |