9fa1614903
Allow specifying JVM and JVM_IR as well as shared expectations. Add the method name to the step. Discard steps in synthetic methods.
43 lines
673 B
Kotlin
Vendored
43 lines
673 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// FILE: test.kt
|
|
inline fun foo(stringMaker: () -> String = { "OK" }): String {
|
|
return stringMaker()
|
|
}
|
|
|
|
inline fun foo2(stringMaker: () -> String = {
|
|
"OK"
|
|
// Comment
|
|
}): String {
|
|
return stringMaker()
|
|
}
|
|
|
|
fun box(): String {
|
|
foo()
|
|
foo2()
|
|
return "OK"
|
|
}
|
|
|
|
// The IR Backend does the following:
|
|
// test.kt:15
|
|
// test.kt:3
|
|
// test.kt:4
|
|
// test.kt:3
|
|
// test.kt:3 <---
|
|
// test.kt:16
|
|
// test.kt:7
|
|
// test.kt:11
|
|
// test.kt:8
|
|
// test.kt:7 <---
|
|
// test.kt:17
|
|
|
|
// LINENUMBERS
|
|
// test.kt:15 box
|
|
// test.kt:3 box
|
|
// test.kt:4 box
|
|
// test.kt:3 box
|
|
// test.kt:16 box
|
|
// test.kt:7 box
|
|
// test.kt:11 box
|
|
// test.kt:8 box
|
|
// test.kt:17 box
|