summaryrefslogtreecommitdiff
path: root/test/exception-handling.wast.from-wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/exception-handling.wast.from-wast')
-rw-r--r--test/exception-handling.wast.from-wast42
1 files changed, 41 insertions, 1 deletions
diff --git a/test/exception-handling.wast.from-wast b/test/exception-handling.wast.from-wast
index cc4d5a1a0..7c431a89f 100644
--- a/test/exception-handling.wast.from-wast
+++ b/test/exception-handling.wast.from-wast
@@ -1,7 +1,47 @@
(module
(type $FUNCSIG$ee (func (param exnref) (result exnref)))
- (memory $0 1 1)
+ (type $FUNCSIG$v (func))
+ (type $FUNCSIG$vi (func (param i32)))
+ (event $e0 (attr 0) (param i32))
(func $exnref_test (; 0 ;) (type $FUNCSIG$ee) (param $0 exnref) (result exnref)
(local.get $0)
)
+ (func $eh_test (; 1 ;) (type $FUNCSIG$v)
+ (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)
+ )
+ )
+ )
+ )
+ )
+ )
+ (block $l1
+ (try
+ (br $l1)
+ (catch
+ (br $l1)
+ )
+ )
+ )
+ (try
+ (nop)
+ (catch
+ (drop
+ (exnref.pop)
+ )
+ )
+ )
+ )
)