tests/snapshots/cli/function-references/call_ref/ref_as_non_null.wast/6.print
raw| 1 | (module |
| 2 | (type $t (;0;) (func)) |
| 3 | (type (;1;) (func (param (ref $t)))) |
| 4 | (type (;2;) (func (param (ref func)))) |
| 5 | (type (;3;) (func (param (ref extern)))) |
| 6 | (func (;0;) (type 1) (param $r (ref $t)) |
| 7 | local.get $r |
| 8 | ref.as_non_null |
| 9 | drop |
| 10 | ) |
| 11 | (func (;1;) (type 2) (param $r (ref func)) |
| 12 | local.get $r |
| 13 | ref.as_non_null |
| 14 | drop |
| 15 | ) |
| 16 | (func (;2;) (type 3) (param $r (ref extern)) |
| 17 | local.get $r |
| 18 | ref.as_non_null |
| 19 | drop |
| 20 | ) |
| 21 | ) |