Files
kotlin/compiler/testData/codegen/bytecodeText/forLoop/forInRangeToLongConst.kt
Mark Punzalan 409d99a52a Add ForLoopsLowering to JVM phases.
Also deleted StepHandler. Since the HeaderInfo.needLastCalculation is
only set to true for handling step progressions, deleted that property
and all associated logic around it.
2019-04-04 09:07:19 +02:00

13 lines
150 B
Kotlin
Vendored

const val N = 42L
fun test(): Long {
var sum = 0L
for (i in 1L .. N) {
sum += i
}
return sum
}
// 1 LCMP
// 0 IFEQ
// 1 IFGT