summaryrefslogtreecommitdiff
path: root/test/unit.fromasm
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-23 15:35:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-23 15:46:12 -0700
commit8ef9aafab1a2c47f9a09c8e64636da570870dc00 (patch)
tree25940052eb129a642f2121e4b9f0941077a4d9e9 /test/unit.fromasm
parent8f897c7d5543fd1529b8279801ddbb59ffff7f1b (diff)
downloadbinaryen-8ef9aafab1a2c47f9a09c8e64636da570870dc00.tar.gz
binaryen-8ef9aafab1a2c47f9a09c8e64636da570870dc00.tar.bz2
binaryen-8ef9aafab1a2c47f9a09c8e64636da570870dc00.zip
replace two drops in an if-else with one on the if
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r--test/unit.fromasm13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm
index c4af783eb..123e087e6 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -1031,4 +1031,17 @@
)
)
)
+ (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)
+ )
+ )
+ )
+ )
)