tests/snapshots/testsuite/proposals/wasm-3.0/br_on_null.wast/5.print
raw| 1 | (module |
| 2 | (type $t (;0;) (func)) |
| 3 | (type (;1;) (func (param (ref null $t)))) |
| 4 | (type (;2;) (func (param funcref))) |
| 5 | (type (;3;) (func (param externref))) |
| 6 | (func (;0;) (type 1) (param $r (ref null $t)) |
| 7 | local.get $r |
| 8 | br_on_null 0 |
| 9 | drop |
| 10 | ) |
| 11 | (func (;1;) (type 2) (param $r funcref) |
| 12 | local.get $r |
| 13 | br_on_null 0 |
| 14 | drop |
| 15 | ) |
| 16 | (func (;2;) (type 3) (param $r externref) |
| 17 | local.get $r |
| 18 | br_on_null 0 |
| 19 | drop |
| 20 | ) |
| 21 | ) |