diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-23 20:34:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-23 20:34:56 -0700 |
commit | b6469ed600832887e8874d1a0407b993dd2c03e8 (patch) | |
tree | 325cafc1625265a8d7569a4f2b2a45910e4040fb /test/unit.fromasm.imprecise | |
parent | dc82f588309f1a4413be18460159699df74661c4 (diff) | |
parent | 7d5180a5b3e369634dbc1442117068d332d71049 (diff) | |
download | binaryen-b6469ed600832887e8874d1a0407b993dd2c03e8.tar.gz binaryen-b6469ed600832887e8874d1a0407b993dd2c03e8.tar.bz2 binaryen-b6469ed600832887e8874d1a0407b993dd2c03e8.zip |
Merge pull request #710 from WebAssembly/autodrop-fix
Autodrop fixes
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r-- | test/unit.fromasm.imprecise | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise index ad130ea82..b170c8b82 100644 --- a/test/unit.fromasm.imprecise +++ b/test/unit.fromasm.imprecise @@ -489,13 +489,11 @@ ) ) (func $smallIf - (block $do-once$0 - (if - (i32.const 2) - (drop - (call $lb - (i32.const 3) - ) + (if + (i32.const 2) + (drop + (call $lb + (i32.const 3) ) ) ) @@ -1004,4 +1002,27 @@ ) (get_local $0) ) + (func $dropIgnoredImportInIf (param $0 i32) (param $1 i32) (param $2 i32) + (if + (get_local $0) + (drop + (call $lb + (get_local $2) + ) + ) + ) + ) + (func $dropIgnoredImportsInIf (param $0 i32) (param $1 i32) (param $2 i32) + (drop + (if + (get_local $0) + (call $lb + (get_local $1) + ) + (call $lb + (get_local $2) + ) + ) + ) + ) ) |