mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
15 lines
271 B
Kotlin
Vendored
15 lines
271 B
Kotlin
Vendored
// !LANGUAGE: +NoConstantValueAttributeForNonConstVals
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
import kotlin.test.assertEquals
|
|
|
|
val minus0F = -0.0F
|
|
val minus0D = -0.0
|
|
|
|
fun box(): String {
|
|
assertEquals(-0.0F, minus0F)
|
|
assertEquals(-0.0, minus0D)
|
|
|
|
return "OK"
|
|
} |