Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
box
/
unaryOp
/
longOverflow.kt
blob: 4dc123b9d9eddaddbdbcb0f1408a6d13ea1d5c83 [
file
] [
log
] [
blame
]
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"
}