diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 10:29:08 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 10:29:08 -0700 |
commit | 1f3825ea4fd717de015705651b9911a47751f13c (patch) | |
tree | d03a5be8584da35cd7863b36cfda9bdd6985b2fc /test/unit.asm.js | |
parent | cd0ada7a34736790d368c11ec536dd32c36aeffa (diff) | |
download | binaryen-1f3825ea4fd717de015705651b9911a47751f13c.tar.gz binaryen-1f3825ea4fd717de015705651b9911a47751f13c.tar.bz2 binaryen-1f3825ea4fd717de015705651b9911a47751f13c.zip |
parse large negative literals properly
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r-- | test/unit.asm.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js new file mode 100644 index 000000000..fd05746d6 --- /dev/null +++ b/test/unit.asm.js @@ -0,0 +1,11 @@ +function () { + "use asm"; + function big_negative() { + var temp = 0.0; + temp = -2147483648; + temp = -2147483648.0; + temp = -21474836480.0; + } + return { big_negative: big_negative }; +} + |