Files
kotlin-fork/compiler/testData/codegen/box/unaryOp/longOverflow.kt
T
Svyatoslav Kuzmich 89f7ced0d4 [JS IR BE] Unmute tests
2018-10-10 17:27:37 +03:00

5 lines
197 B
Kotlin
Vendored

fun box(): String {
val a: Long = -(1 shl 31)
if (a != -2147483648L) return "fail: in this case we should add to ints and than cast the result to long - overflow expected"
return "OK"
}