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.
23 lines
498 B
Kotlin
Vendored
23 lines
498 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM
|
|
// The old backend steps on line 4, 5, 9, and 8. No step on the throw, and a step on the end
|
|
// brace of the finally before going into the actual finally code.
|
|
|
|
// FILE: test.kt
|
|
|
|
fun box(): String {
|
|
try {
|
|
val x = "x"
|
|
throw RuntimeException(x)
|
|
} finally {
|
|
return "OK"
|
|
}
|
|
return "FAIL"
|
|
}
|
|
|
|
// EXPECTATIONS
|
|
// test.kt:8 box:
|
|
// test.kt:9 box:
|
|
// test.kt:10 box: x:java.lang.String="x":java.lang.String
|
|
// test.kt:11 box:
|
|
// test.kt:12 box:
|