e9c9d5731e
This is in preparation for enabling the tests for FIR which will be easier to do when the tests are on the new infrastructure.
29 lines
621 B
Kotlin
Vendored
29 lines
621 B
Kotlin
Vendored
// FILE: test.kt
|
|
|
|
fun box() {
|
|
var x: String
|
|
var y: Int
|
|
var z: Boolean
|
|
z = false
|
|
y = 42
|
|
if (!z) {
|
|
x = y.toString()
|
|
}
|
|
}
|
|
|
|
// The JVM IR backend does not generate line number information for the
|
|
// declaration of local variables without initializer. Stepping through
|
|
// those does not seem useful. This is consistent with javac behavior
|
|
// as well. The JVM backend does generate these line numbers.
|
|
|
|
// EXPECTATIONS
|
|
// EXPECTATIONS JVM
|
|
// test.kt:4 box
|
|
// test.kt:5 box
|
|
// test.kt:6 box
|
|
// EXPECTATIONS
|
|
// test.kt:7 box
|
|
// test.kt:8 box
|
|
// test.kt:9 box
|
|
// test.kt:10 box
|
|
// test.kt:12 box |