Files
kotlin-fork/native/native.tests/testData/lldb/kt33364.kt
T
Ivan Kylchik 2ded62c53e [Native] Drop LLDB_TRACE test directive
This directive doesn't have a lot of meaning. It is always set this
way that we are getting text file with the same name as test file.
2024-01-26 15:54:41 +00:00

22 lines
479 B
Kotlin
Vendored

// KIND: STANDALONE_LLDB
// FREE_COMPILER_ARGS: -Xg-generate-debug-trampoline=enable
// FILE: kt33364.kt
fun main() {
val param = 3
//breakpoint here (line: 8, breakpoint is set to 9th line)
when(param) {
1 -> print("A")
2 -> print("B")
else -> print("C")
}
// breakpoint here (line: 15, breakpoint is set to 16th line)
when {
param == 1 -> print("A")
param == 2 -> print("B")
else -> print("C")
}
}