mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
Had to edit some bytecodeText tests to account for the fact that JVM_IR no longer generates explicit initializations for ConstantValue fields, but NoConstantValueAttributeForNonConstVals is not the default yet.
18 lines
295 B
Kotlin
Vendored
18 lines
295 B
Kotlin
Vendored
// !LANGUAGE: +NoConstantValueAttributeForNonConstVals
|
|
val a = 1.0 + 10
|
|
val b = 2 + 10.0
|
|
val c = 3.0F + 10
|
|
val d = 4 + 10.0F
|
|
val e = 1.0 / 0
|
|
val f = 1 / 0.0
|
|
val g = 0.0 / 0
|
|
val h = 0 / 0.0
|
|
val i = 0.0 / 0.0
|
|
|
|
// 1 LDC 11.0
|
|
// 1 LDC 12.0
|
|
// 1 LDC 13.0
|
|
// 1 LDC 14.0
|
|
// 2 LDC Infinity
|
|
// 3 LDC NaN
|