diff options
Diffstat (limited to 'test/unit.fromasm.clamp')
-rw-r--r-- | test/unit.fromasm.clamp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/unit.fromasm.clamp b/test/unit.fromasm.clamp index 7bfcdd531..f95accb61 100644 --- a/test/unit.fromasm.clamp +++ b/test/unit.fromasm.clamp @@ -1182,6 +1182,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 @@ -1198,6 +1210,11 @@ (f64.const 100) ) ) + (drop + (call $autoDrop + (i32.const 52) + ) + ) ) (func $vi (param $0 i32) (nop) |