summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/passes/remove-unused-names_merge-blocks.txt13
-rw-r--r--test/passes/remove-unused-names_merge-blocks.wast15
2 files changed, 28 insertions, 0 deletions
diff --git a/test/passes/remove-unused-names_merge-blocks.txt b/test/passes/remove-unused-names_merge-blocks.txt
index 585f079ed..a0ed7ea32 100644
--- a/test/passes/remove-unused-names_merge-blocks.txt
+++ b/test/passes/remove-unused-names_merge-blocks.txt
@@ -16,6 +16,19 @@
(func $b0-yes (param $i1 i32)
(i32.const 10)
)
+ (func $b0-no (param $i1 i32)
+ (block $topmost
+ (block $block0
+ (br $block0)
+ )
+ (br $topmost)
+ )
+ )
+ (func $b0-br-but-ok (param $i1 i32)
+ (block $topmost
+ (br $topmost)
+ )
+ )
(func $b1-yes (param $i1 i32)
(i32.const 10)
)
diff --git a/test/passes/remove-unused-names_merge-blocks.wast b/test/passes/remove-unused-names_merge-blocks.wast
index a4a9873e9..85bb11da6 100644
--- a/test/passes/remove-unused-names_merge-blocks.wast
+++ b/test/passes/remove-unused-names_merge-blocks.wast
@@ -17,6 +17,21 @@
)
)
)
+ (func $b0-no (param $i1 i32)
+ (block $topmost
+ (block $block0
+ (br $block0)
+ )
+ (br $topmost)
+ )
+ )
+ (func $b0-br-but-ok (param $i1 i32)
+ (block $topmost
+ (block $block0
+ (br $topmost)
+ )
+ )
+ )
(func $b1-yes (param $i1 i32)
(block $topmost
(block