summaryrefslogtreecommitdiff
path: root/test/unit.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r--test/unit.fromasm17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm
index 580057f82..f0145265d 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -1158,6 +1158,18 @@
(get_local $0)
)
)
+ (func $autoDrop (param $0 i32) (result i32)
+ (if
+ (i32.eq
+ (get_local $0)
+ (i32.const 17)
+ )
+ (return
+ (i32.const 5)
+ )
+ )
+ (get_local $0)
+ )
(func $keepAlive
(drop
(call $sqrts
@@ -1174,6 +1186,11 @@
(f64.const 100)
)
)
+ (drop
+ (call $autoDrop
+ (i32.const 52)
+ )
+ )
)
(func $vi (param $0 i32)
(nop)