| 1 |
(module |
| 2 |
(type $t (;0;) (struct)) |
| 3 |
(type (;1;) (func (param (ref any)) (result (ref any)))) |
| 4 |
(type (;2;) (func (param anyref) (result anyref))) |
| 5 |
(func (;0;) (type 1) (param (ref any)) (result (ref any)) |
| 6 |
block (result (ref $t)) ;; label = @1 |
| 7 |
local.get 0 |
| 8 |
br_on_cast_fail 1 (ref any) (ref $t) |
| 9 |
end |
| 10 |
) |
| 11 |
(func (;1;) (type 2) (param anyref) (result anyref) |
| 12 |
block (result (ref $t)) ;; label = @1 |
| 13 |
local.get 0 |
| 14 |
br_on_cast_fail 1 anyref (ref $t) |
| 15 |
end |
| 16 |
) |
| 17 |
(func (;2;) (type 2) (param anyref) (result anyref) |
| 18 |
block (result (ref null $t)) ;; label = @1 |
| 19 |
local.get 0 |
| 20 |
br_on_cast_fail 1 anyref (ref null $t) |
| 21 |
end |
| 22 |
) |
| 23 |
) |