summaryrefslogtreecommitdiff
path: root/test/exception-handling.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/exception-handling.wast')
-rw-r--r--test/exception-handling.wast16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/exception-handling.wast b/test/exception-handling.wast
index cb3aee0d9..275350c61 100644
--- a/test/exception-handling.wast
+++ b/test/exception-handling.wast
@@ -5,6 +5,9 @@
(local.get $0)
)
+ (func $foo)
+ (func $bar)
+
(func $eh_test (local $exn exnref)
(try
(throw $e0 (i32.const 0))
@@ -36,5 +39,18 @@
(drop (exnref.pop))
)
)
+
+ ;; Multiple instructions within try and catch bodies
+ (try
+ (block
+ (call $foo)
+ (call $bar)
+ )
+ (catch
+ (drop (exnref.pop))
+ (call $foo)
+ (call $bar)
+ )
+ )
)
)