mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
10 lines
401 B
Kotlin
Vendored
10 lines
401 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
fun testPrimitiveArray(ints: IntArray) =
|
|
10 in ints.indices
|
|
|
|
// We currently fail to optimize this method because of DUP_X1 instruction generated for range check.
|
|
// TODO either don't generate DUP_X1/DUP2_X2 instructions for range checks (extra local variable + extra instructions),
|
|
// or support DUPn_Xm instructions in PopBackwardPropagationTransformer
|
|
// - 0 DUP
|
|
// - 0 POP |