diff options
Diffstat (limited to 'test/passes/code-pushing_all-features.wast')
-rw-r--r-- | test/passes/code-pushing_all-features.wast | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/passes/code-pushing_all-features.wast b/test/passes/code-pushing_all-features.wast index f24456c6d..03debf139 100644 --- a/test/passes/code-pushing_all-features.wast +++ b/test/passes/code-pushing_all-features.wast @@ -60,4 +60,18 @@ (drop (local.get $x)) ) ) + + (func $push-past-br-on-exn + (local $x i32) + (local $y exnref) + (drop + (block $out (result i32) + (local.set $x (i32.const 1)) + (drop + (br_on_exn $out $e (local.get $y)) + ) + (local.get $x) + ) + ) + ) ) |