summaryrefslogtreecommitdiff
path: root/test/unit.asm.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-10-30 17:02:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2015-10-30 17:02:56 -0700
commitb8b69e896b18efbe553bf1c01e4eb3acbfb909f1 (patch)
tree9f52ca49356d939e40a2c4e3809ed309d5d5dc4e /test/unit.asm.js
parentdce3791b402cc1e49da000cfe918bb21e81b4a6a (diff)
downloadbinaryen-b8b69e896b18efbe553bf1c01e4eb3acbfb909f1.tar.gz
binaryen-b8b69e896b18efbe553bf1c01e4eb3acbfb909f1.tar.bz2
binaryen-b8b69e896b18efbe553bf1c01e4eb3acbfb909f1.zip
fix logical not
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r--test/unit.asm.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js
index 2b599d99a..db14f721b 100644
--- a/test/unit.asm.js
+++ b/test/unit.asm.js
@@ -18,9 +18,14 @@ function () {
function doubleCompares(x, y) {
x = +x;
y = +y;
+ if (x > 0.0) return 0.0;
if (x < y) return +x;
return +y;
}
+ function intOps() {
+ var x = 0;
+ return !x;
+ }
function z() {
}