Files
kotlin-fork/compiler/testData/diagnostics/testsWithJvmBackend/inlineCycle.kt
T
Alexander Udalov 6f2bb8c05a Rename tests with diagnostics on JVM backend
Remove the "_ir" suffix. It was originally used to distinguish tests on
the JVM IR backend from the old JVM backend ("_old"), but the latter are
removed now.
2023-07-17 16:55:24 +00:00

12 lines
258 B
Kotlin
Vendored

// FIR_IDENTICAL
// !RENDER_DIAGNOSTICS_FULL_TEXT
// TARGET_BACKEND: JVM_IR
inline fun inlineFun1(p: () -> Unit) {
p()
<!INLINE_CALL_CYCLE!>inlineFun2(p)<!>
}
inline fun inlineFun2(p: () -> Unit) {
p()
<!INLINE_CALL_CYCLE!>inlineFun1(p)<!>
}