summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-names_merge-blocks.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/remove-unused-names_merge-blocks.wast')
-rw-r--r--test/passes/remove-unused-names_merge-blocks.wast40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/passes/remove-unused-names_merge-blocks.wast b/test/passes/remove-unused-names_merge-blocks.wast
index c249a34dd..1233ef538 100644
--- a/test/passes/remove-unused-names_merge-blocks.wast
+++ b/test/passes/remove-unused-names_merge-blocks.wast
@@ -1014,4 +1014,44 @@
(f64.const -1)
)
)
+ (func $dont-move-unreachable
+ (loop $label$0
+ (drop
+ (block $label$3 (result i32)
+ (br $label$0)
+ (i32.const 1)
+ )
+ )
+ )
+ )
+ (func $dont-move-unreachable-last
+ (loop $label$0
+ (drop
+ (block $label$3 (result i32)
+ (call $dont-move-unreachable-last)
+ (br $label$0)
+ )
+ )
+ )
+ )
+ (func $move-around-unreachable-in-middle
+ (loop $label$0
+ (drop
+ (block $label$2 (result i32)
+ (block $block2
+ (nop)
+ )
+ (block $label$3 (result i32)
+ (drop
+ (br_if $label$3
+ (br $label$0)
+ (i32.const 0)
+ )
+ )
+ (i32.const 1)
+ )
+ )
+ )
+ )
+ )
)