diff --git a/test/core/exceptions/try_table.wast b/test/core/exceptions/try_table.wast index 5072a87184..cb1ab311db 100644 --- a/test/core/exceptions/try_table.wast +++ b/test/core/exceptions/try_table.wast @@ -265,6 +265,18 @@ ) (return (i32.const 3)) ) + + (func (export "catch-all-before-catch") (result i32) + (block + (block + (try_table (catch_all 0) (catch $e0 1) + (throw $e0) + ) + ) + (return (i32.const 2)) + ) + (return (i32.const 3)) + ) ) (assert_return (invoke "simple-throw-catch" (i32.const 0)) (i32.const 23)) @@ -325,6 +337,7 @@ (assert_return (invoke "try-with-param")) (assert_return (invoke "duplicated-catches") (i32.const 2)) +(assert_return (invoke "catch-all-before-catch") (i32.const 2)) (module (func $imported-throw (import "test" "throw"))