JVM_IR: Add more local variable tests for finally code.

This commit is contained in:
Mads Ager
2021-04-27 17:19:07 +02:00
committed by Mikhael Bogdanov
parent 6095d8a7fa
commit 0c77565104
10 changed files with 268 additions and 3 deletions
+26
View File
@@ -0,0 +1,26 @@
// FILE: test.kt
fun box(): String {
try {
for (i in 0 until 1) {
try {
val x = "x"
var y = "y"
} finally {
break
}
}
} finally {
return "OK"
}
return "FAIL"
}
// LOCAL VARIABLES
// test.kt:4 box:
// test.kt:5 box:
// test.kt:6 box: i:int=0:int
// test.kt:7 box: i:int=0:int
// test.kt:8 box: i:int=0:int, x:java.lang.String="x":java.lang.String
// test.kt:10 box: i:int=0:int
// test.kt:14 box: