summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/passes/merge-blocks.txt13
-rw-r--r--test/passes/merge-blocks.wast13
2 files changed, 26 insertions, 0 deletions
diff --git a/test/passes/merge-blocks.txt b/test/passes/merge-blocks.txt
index dd496df2f..545438b1d 100644
--- a/test/passes/merge-blocks.txt
+++ b/test/passes/merge-blocks.txt
@@ -87,4 +87,17 @@
)
)
)
+ (func $drop-block-squared-iloop (type $0)
+ (drop
+ (block $label$0 (result i32)
+ (block $label$1
+ (drop
+ (loop $label$2
+ (br $label$2)
+ )
+ )
+ )
+ )
+ )
+ )
)
diff --git a/test/passes/merge-blocks.wast b/test/passes/merge-blocks.wast
index 4b2f248e2..e998060c4 100644
--- a/test/passes/merge-blocks.wast
+++ b/test/passes/merge-blocks.wast
@@ -69,5 +69,18 @@
)
)
)
+ (func $drop-block-squared-iloop
+ (drop
+ (block $label$0 (result i32) ;; this block's type should not change, so the drop remains none and valid
+ (drop
+ (block $label$1
+ (loop $label$2
+ (br $label$2)
+ )
+ )
+ )
+ )
+ )
+ )
)