7b153b2b68
from ForLoopsLowering into ForLoopHeader, reducing the building logic in ForLoopsLowering.
14 lines
176 B
Kotlin
Vendored
14 lines
176 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
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 |