Files
kotlin-fork/native/native.tests/testData/lldb/canInspectArrays.kt
T
Johan Bay 842a66c3de [K/N] Migrate LLDB test to blackboxtest
This change only introduces a single sample test together
with the necessary plumbing for basic LLDB testing.
Migrating the rest of the tests over and introducing more
complex interop setups will be tackled as a follow-up.
2022-12-14 08:58:10 +00:00

14 lines
281 B
Kotlin
Vendored

// KIND: STANDALONE_LLDB
// LLDB_TRACE: canInspectArrays.txt
fun main(args: Array<String>) {
val xs = IntArray(3)
xs[0] = 1
xs[1] = 2
xs[2] = 3
val ys: Array<Any?> = arrayOfNulls(2)
ys[0] = Point(1, 2)
return
}
data class Point(val x: Int, val y: Int)