mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
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 |