summaryrefslogtreecommitdiff
path: root/test/passes/merge-blocks.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/merge-blocks.wast')
-rw-r--r--test/passes/merge-blocks.wast16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/passes/merge-blocks.wast b/test/passes/merge-blocks.wast
index cab2d1804..647645548 100644
--- a/test/passes/merge-blocks.wast
+++ b/test/passes/merge-blocks.wast
@@ -1,4 +1,5 @@
(module
+ (global $global$0 (mut i32) (i32.const 10))
(func $drop-block
(block
(drop
@@ -232,5 +233,18 @@
)
)
)
+ (func $br-value-blocktypechange (result f32)
+ (set_global $global$0
+ (i32.const 0)
+ )
+ (block $label$1 (result f32)
+ (set_global $global$0
+ (i32.const 0)
+ )
+ (br_if $label$1
+ (unreachable)
+ (i32.const 0)
+ )
+ )
+ )
)
-