Files
kotlin/compiler/testData/codegen/bytecodeText/forLoop/forInRangeToQualifiedConst.kt
2018-12-21 16:20:45 +01:00

16 lines
215 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
object Host {
const val M = 1
const val N = 4
}
fun test(): Int {
var s = 0
for (i in Host.M .. Host.N) {
s += i
}
return s
}
// 0 IF_ICMPEQ
// 1 IF_ICMPGT