summaryrefslogtreecommitdiff
path: root/test/break-within-catch.wasm.fromBinary
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2020-09-15 23:46:32 +0900
committerGitHub <noreply@github.com>2020-09-15 23:46:32 +0900
commitbced89d2986bde990bf9bf52306e55772b02707e (patch)
tree5fe2cf3bbaed1f19e1ddd87aa0e4d2d63b0c3f65 /test/break-within-catch.wasm.fromBinary
parentbcc6f2994e8f71b633b1d0257547aeed691f6ceb (diff)
downloadbinaryen-bced89d2986bde990bf9bf52306e55772b02707e.tar.gz
binaryen-bced89d2986bde990bf9bf52306e55772b02707e.tar.bz2
binaryen-bced89d2986bde990bf9bf52306e55772b02707e.zip
Fix inner block problem with 'catch' (#3129)
Fixes #3114.
Diffstat (limited to 'test/break-within-catch.wasm.fromBinary')
-rw-r--r--test/break-within-catch.wasm.fromBinary19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/break-within-catch.wasm.fromBinary b/test/break-within-catch.wasm.fromBinary
new file mode 100644
index 000000000..82ab6e717
--- /dev/null
+++ b/test/break-within-catch.wasm.fromBinary
@@ -0,0 +1,19 @@
+(module
+ (type $none_=>_none (func))
+ (func $0
+ (block $label$2
+ (try
+ (do
+ (nop)
+ )
+ (catch
+ (drop
+ (pop exnref)
+ )
+ (br $label$2)
+ )
+ )
+ )
+ )
+)
+