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-wast28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/exception-handling.wast.from-wast b/test/exception-handling.wast.from-wast
index 1ce7a84b7..ee409652b 100644
--- a/test/exception-handling.wast.from-wast
+++ b/test/exception-handling.wast.from-wast
@@ -3,9 +3,11 @@
(type $i32_=>_none (func (param i32)))
(type $i64_=>_none (func (param i64)))
(type $i32_i64_=>_none (func (param i32 i64)))
+ (type $anyref_=>_none (func (param anyref)))
(tag $e-i32 (param i32))
(tag $e-i64 (param i64))
(tag $e-i32-i64 (param i32 i64))
+ (tag $e-anyref (param anyref))
(tag $e-empty (param))
(func $foo
(nop)
@@ -351,4 +353,30 @@
)
)
)
+ (func $pop_test
+ (try $try
+ (do
+ (nop)
+ )
+ (catch $e-i32
+ (throw $e-i32
+ (if (result i32)
+ (pop i32)
+ (i32.const 0)
+ (i32.const 3)
+ )
+ )
+ )
+ )
+ (try $try28
+ (do
+ (nop)
+ )
+ (catch $e-anyref
+ (drop
+ (pop funcref)
+ )
+ )
+ )
+ )
)