[JVM IR] Generate line number for exception store for finally.
^KT-46451 Fixed
This commit is contained in:
committed by
Alexander Udalov
parent
a1519b7b4e
commit
0b84de31b7
@@ -34,4 +34,5 @@ fun box(): String {
|
||||
// test.kt:11 box: i:int=0:int, e:java.lang.Exception=java.lang.RuntimeException, y:java.lang.String="y":java.lang.String
|
||||
// test.kt:12 box: i:int=0:int, e:java.lang.Exception=java.lang.RuntimeException, y:java.lang.String="y":java.lang.String, z:java.lang.String="z":java.lang.String
|
||||
// test.kt:14 box: i:int=0:int
|
||||
// test.kt:17 box:
|
||||
// test.kt:18 box:
|
||||
|
||||
@@ -34,4 +34,5 @@ fun box(): String {
|
||||
// test.kt:11 box: i:int=0:int, e:java.lang.Exception=java.lang.RuntimeException, y:java.lang.String="y":java.lang.String
|
||||
// test.kt:12 box: i:int=0:int, e:java.lang.Exception=java.lang.RuntimeException, y:java.lang.String="y":java.lang.String, z:java.lang.String="z":java.lang.String
|
||||
// test.kt:14 box: i:int=0:int
|
||||
// test.kt:17 box:
|
||||
// test.kt:18 box:
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// FILE: test.kt
|
||||
|
||||
fun box(): String {
|
||||
try {
|
||||
val x = "x"
|
||||
throw RuntimeException(x)
|
||||
} finally {
|
||||
return "OK"
|
||||
}
|
||||
return "FAIL"
|
||||
}
|
||||
|
||||
// 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.
|
||||
|
||||
// LOCAL VARIABLES
|
||||
// test.kt:4 box:
|
||||
// test.kt:5 box:
|
||||
// test.kt:6 box: x:java.lang.String="x":java.lang.String
|
||||
// test.kt:7 box:
|
||||
// test.kt:8 box:
|
||||
Reference in New Issue
Block a user