diff options
Diffstat (limited to 'test/unit.fromasm.clamp.no-opts')
-rw-r--r-- | test/unit.fromasm.clamp.no-opts | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/unit.fromasm.clamp.no-opts b/test/unit.fromasm.clamp.no-opts index d8fab1d25..4fddffd49 100644 --- a/test/unit.fromasm.clamp.no-opts +++ b/test/unit.fromasm.clamp.no-opts @@ -1925,6 +1925,40 @@ ) ) ) + (func $autoDrop (param $x i32) (result i32) + (loop $while-in + (block $while-out + (if + (i32.eq + (get_local $x) + (i32.const 17) + ) + (block + (return + (i32.const 5) + ) + (drop + (call $autoDrop + (i32.const 1) + ) + ) + ) + (block + (br $while-out) + (set_local $x + (call $autoDrop + (i32.const 2) + ) + ) + ) + ) + (br $while-in) + ) + ) + (return + (get_local $x) + ) + ) (func $keepAlive (drop (call $sqrts @@ -1941,6 +1975,11 @@ (f64.const 100) ) ) + (drop + (call $autoDrop + (i32.const 52) + ) + ) ) (func $v (nop) |