summaryrefslogtreecommitdiff
path: root/test/passes/precompute-propagate.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/precompute-propagate.wast')
-rw-r--r--test/passes/precompute-propagate.wast16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/passes/precompute-propagate.wast b/test/passes/precompute-propagate.wast
index 4b7764b19..17da74085 100644
--- a/test/passes/precompute-propagate.wast
+++ b/test/passes/precompute-propagate.wast
@@ -154,5 +154,21 @@
)
(local.get $2)
)
+ (func $through-fallthrough (param $x i32) (param $y i32) (result i32)
+ (local.set $x
+ (block (result i32)
+ (nop)
+ (local.tee $y
+ (i32.const 7)
+ )
+ )
+ )
+ (return
+ (i32.add
+ (local.get $x)
+ (local.get $y)
+ )
+ )
+ )
)