mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
All bytecode text tests are run with stdlib in the classpath and only for JVM backend, therefore directives WITH_RUNTIME, TARGET_BACKEND, IGNORE_BACKEND are not needed
15 lines
364 B
Kotlin
Vendored
15 lines
364 B
Kotlin
Vendored
fun testPrimitiveArray(i: Int, ints: IntArray) = i in ints.indices
|
|
|
|
fun testObjectArray(i: Int, xs: Array<Any>) = i in xs.indices
|
|
|
|
fun testLongWithPrimitiveArray(i: Long, ints: IntArray) = i in ints.indices
|
|
|
|
fun testLongWithObjectArray(i: Long, xs: Array<Any>) = i in xs.indices
|
|
|
|
// 0 getIndices
|
|
// 0 contains
|
|
// 2 I2L
|
|
// 4 ARRAYLENGTH
|
|
// 2 LCONST_0
|
|
// 6 ICONST_0
|