Files
kotlin-fork/compiler/testData/debug/stepping/if.kt
T
Alexander Korepanov 6556acabba [JS FIR] Enable FIR JS stepping tests
^KT-64422 Fixed
2024-01-08 12:38:37 +00:00

44 lines
684 B
Kotlin
Vendored

// FILE: test.kt
fun box(): Int {
if (
getB() ==
getA())
return 0
return getB()
}
fun getA() = 3
inline fun getB(): Int {
return 1
}
// EXPECTATIONS JVM_IR
// test.kt:6 box
// test.kt:15 box
// test.kt:7 box
// test.kt:12 getA
// test.kt:6 box
// test.kt:9 box
// test.kt:15 box
// test.kt:9 box
// EXPECTATIONS ClassicFrontend JS_IR
// test.kt:5 box
// EXPECTATIONS FIR JS_IR
// test.kt:6 box
// EXPECTATIONS JS_IR
// test.kt:12 getA
// test.kt:9 box
// EXPECTATIONS WASM
// test.kt:1 $box
// test.kt:6 $box (8, 8)
// test.kt:15 $box (11, 4, 11, 4)
// test.kt:7 $box
// test.kt:12 $getA (13, 14)
// test.kt:9 $box (11, 4)
// test.kt:8 $box