diff options
Diffstat (limited to 'test/passes/generate-stack-ir_print-stack-ir_enable-exception-handling.wast')
-rw-r--r-- | test/passes/generate-stack-ir_print-stack-ir_enable-exception-handling.wast | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/passes/generate-stack-ir_print-stack-ir_enable-exception-handling.wast b/test/passes/generate-stack-ir_print-stack-ir_enable-exception-handling.wast new file mode 100644 index 000000000..c355a2bf1 --- /dev/null +++ b/test/passes/generate-stack-ir_print-stack-ir_enable-exception-handling.wast @@ -0,0 +1,19 @@ +(module + (event $e0 (attr 0) (param i32)) + + (func $eh (local $exn exnref) + (try + (throw $e0 (i32.const 0)) + (catch + (local.set $exn (exnref.pop)) + (drop + (block $l0 (result i32) + (rethrow + (br_on_exn $l0 $e0 (local.get $exn)) + ) + ) + ) + ) + ) + ) +) |