diff options
Diffstat (limited to 'test/exception-handling.wast')
-rw-r--r-- | test/exception-handling.wast | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/exception-handling.wast b/test/exception-handling.wast index 275350c61..0929daeec 100644 --- a/test/exception-handling.wast +++ b/test/exception-handling.wast @@ -53,4 +53,20 @@ ) ) ) + + ;; Test subtype relationship for br_on_exn and rethrow + (func $subtype_test + (try + (catch + (drop (exnref.pop)) + (drop + (block $l0 (result i32) + (rethrow + (br_on_exn $l0 $e0 (ref.null)) + ) + ) + ) + ) + ) + ) ) |