43 lines
666 B
Kotlin
Vendored
43 lines
666 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: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
|