tests/snapshots/cli/legacy-exceptions/try_catch.wast/33.print
raw| 1 | (module |
| 2 | (type (;0;) (func)) |
| 3 | (type (;1;) (func (result i32))) |
| 4 | (import "test" "throw" (func $imported-throw (;0;) (type 0))) |
| 5 | (tag $e0 (;0;) (type 0)) |
| 6 | (export "imported-mismatch" (func 1)) |
| 7 | (func (;1;) (type 1) (result i32) |
| 8 | try (result i32) ;; label = @1 |
| 9 | try (result i32) ;; label = @2 |
| 10 | i32.const 1 |
| 11 | call $imported-throw |
| 12 | catch $e0 |
| 13 | i32.const 2 |
| 14 | end |
| 15 | catch_all |
| 16 | i32.const 3 |
| 17 | end |
| 18 | ) |
| 19 | ) |