[JS IR BE] Support integer operation overflow

This commit is contained in:
Svyatoslav Kuzmich
2018-10-04 13:31:57 +03:00
parent 8013a56286
commit bad9534abd
22 changed files with 283 additions and 99 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val a: Long = 2147483647 + 1
if (a != -2147483648L) return "fail: in this case we should add to ints and than cast the result to long - overflow expected"