summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-brs_shrink-level=1.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/remove-unused-brs_shrink-level=1.wast')
-rw-r--r--test/passes/remove-unused-brs_shrink-level=1.wast12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/passes/remove-unused-brs_shrink-level=1.wast b/test/passes/remove-unused-brs_shrink-level=1.wast
index c0ec7d4cd..000658b91 100644
--- a/test/passes/remove-unused-brs_shrink-level=1.wast
+++ b/test/passes/remove-unused-brs_shrink-level=1.wast
@@ -5,32 +5,32 @@
(type $2 (func (result i32)))
(func $b14 (type $2)
(drop
- (if i32 ;; with shrinking, this can become a select
+ (if (result i32) ;; with shrinking, this can become a select
(i32.const 1)
- (block $block1 i32
+ (block $block1 (result i32)
(i32.const 12)
)
- (block $block3 i32
+ (block $block3 (result i32)
(i32.const 27)
)
)
)
(drop
- (if i32
+ (if (result i32)
(i32.const 1)
(i32.load (i32.const 10)) ;; load may have side effects, unless ignored
(i32.const 27)
)
)
(drop
- (if i32
+ (if (result i32)
(i32.const 1)
(i32.rem_s (i32.const 11) (i32.const 12)) ;; rem may have side effects, unless ignored
(i32.const 27)
)
)
(drop
- (if i32
+ (if (result i32)
(i32.const 1)
(i32.trunc_u/f64 (f64.const 12.34)) ;; float to int may have side effects, unless ignored
(i32.const 27)