summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/passes/remove-unused-brs.txt16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/passes/remove-unused-brs.txt b/test/passes/remove-unused-brs.txt
index 599459c57..c4c2710d3 100644
--- a/test/passes/remove-unused-brs.txt
+++ b/test/passes/remove-unused-brs.txt
@@ -1062,13 +1062,25 @@
)
(func $unreachable-if-that-could-be-a-br_if (type $7) (result i64)
(loop $label$3
- (unreachable)
+ (if
+ (unreachable)
+ (f64.const 1)
+ (br $label$3)
+ )
(i64.const 1)
)
)
(func $nop-br-might-update-type (type $1)
(block $label$39
- (unreachable)
+ (if
+ (unreachable)
+ (if (result i32)
+ (i32.const 1)
+ (br $label$39)
+ (i32.const 0)
+ )
+ (i32.const 0)
+ )
)
)
)