summaryrefslogtreecommitdiff
path: root/test/passes/dce.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/dce.wast')
-rw-r--r--test/passes/dce.wast46
1 files changed, 26 insertions, 20 deletions
diff --git a/test/passes/dce.wast b/test/passes/dce.wast
index 9795bda80..af85945b4 100644
--- a/test/passes/dce.wast
+++ b/test/passes/dce.wast
@@ -84,40 +84,46 @@
)
(if
(i32.const 0)
- (block $out
- (br $out
+ (drop
+ (block $out i32
+ (br $out
+ (unreachable)
+ )
+ (drop
+ (i32.const 0)
+ )
(unreachable)
)
- (drop
- (i32.const 0)
- )
- (unreachable)
)
)
(if
(i32.const 0)
- (block $out
- (br_if $out
+ (drop
+ (block $out i32
+ (br_if $out
+ (unreachable)
+ (i32.const 0)
+ )
+ (drop
+ (i32.const 0)
+ )
(unreachable)
- (i32.const 0)
)
- (drop
- (i32.const 0)
- )
- (unreachable)
)
)
(if
(i32.const 0)
- (block $out
- (br_if $out
- (unreachable)
+ (drop
+ (block $out i32
+ (br_if $out
+ (unreachable)
+ (unreachable)
+ )
+ (drop
+ (i32.const 0)
+ )
(unreachable)
)
- (drop
- (i32.const 0)
- )
- (unreachable)
)
)
(block $out