Files
kotlin-fork/compiler/testData/debug/stepping/kt15259.kt
T
Ilya Chernikov 5b3816cce5 Test infra: refactor IGNORE_BACKEND directive
treat it as a general one, introduce *_K1 and *_K2 variants for
more specific ignoring
2022-11-12 16:28:23 +01:00

29 lines
498 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: test.kt
interface ObjectFace
private fun makeFace() = object : ObjectFace {
init { 5 }
}
fun box() {
makeFace()
}
// IR backend has additional steps on the way _out_ of the init block.
// EXPECTATIONS JVM JVM_IR
// test.kt:11 box
// test.kt:5 makeFace
// test.kt:5 <init>
// test.kt:7 <init>
// test.kt:8 makeFace
// test.kt:11 box
// test.kt:12 box
// EXPECTATIONS JS_IR
// test.kt:11 box
// test.kt:8 makeFace
// test.kt:5 <init>
// test.kt:12 box