[K/N][tests] Added a test on stepping through inline arguments

This commit is contained in:
Igor Chevdar
2023-09-21 15:59:45 +03:00
committed by Space Team
parent 69d2b94a68
commit 1b30f76a78
3 changed files with 63 additions and 0 deletions
@@ -0,0 +1,20 @@
// KIND: STANDALONE_LLDB
// LLDB_TRACE: stepThroughInlineArguments.txt
// FILE: main.kt
fun bar(x: Int): Int {
val res = foo(
x * 2,
x + 2
)
return res
}
fun main() {
println(bar(42))
}
// FILE: lib.kt
inline fun foo(x: Int, y: Int): Int {
return x +
y
}