tests/snapshots/cli/stack-switching/cont.wast/56.print
raw| 1 | (module |
| 2 | (rec |
| 3 | (type $ft (;0;) (func (param (ref null $ct)))) |
| 4 | (type $ct (;1;) (cont $ft)) |
| 5 | ) |
| 6 | (type (;2;) (func)) |
| 7 | (tag $t (;0;) (type 2)) |
| 8 | (func (;0;) (type 2) |
| 9 | ref.null $ft |
| 10 | cont.new $ct |
| 11 | unreachable |
| 12 | ) |
| 13 | (func (;1;) (type 2) |
| 14 | ref.null $ct |
| 15 | cont.bind $ct $ct |
| 16 | unreachable |
| 17 | ) |
| 18 | (func (;2;) (type 2) |
| 19 | ref.null $ct |
| 20 | ref.null $ct |
| 21 | resume $ct |
| 22 | unreachable |
| 23 | ) |
| 24 | (func (;3;) (type 2) |
| 25 | ref.null $ct |
| 26 | resume_throw $ct $t |
| 27 | unreachable |
| 28 | ) |
| 29 | (func (;4;) (type 2) |
| 30 | ref.null $ct |
| 31 | switch $ct $t |
| 32 | unreachable |
| 33 | ) |
| 34 | ) |