7a43c2de79
This avoids an extra call to 'analyze', which is rather costly. Update debugger testData: Constant condition elimination now performs DCE more consistently.
104 lines
1.7 KiB
Kotlin
Vendored
104 lines
1.7 KiB
Kotlin
Vendored
// FILE: test.kt
|
|
|
|
fun foo() {
|
|
try {
|
|
mightThrow()
|
|
} catch (e: Throwable) {
|
|
"OK"
|
|
} finally {
|
|
"FINALLY"
|
|
}
|
|
|
|
val t = try {
|
|
mightThrow2()
|
|
} catch (e: Throwable) {
|
|
"OK2"
|
|
} finally {
|
|
"FINALLY2"
|
|
}
|
|
}
|
|
|
|
var throw1 = false
|
|
var throw2 = false
|
|
|
|
fun mightThrow() {
|
|
if (throw1) throw Exception()
|
|
}
|
|
|
|
fun mightThrow2() {
|
|
if (throw2) throw Exception()
|
|
}
|
|
|
|
fun box() {
|
|
foo()
|
|
throw2 = true
|
|
foo()
|
|
throw1 = true
|
|
foo()
|
|
}
|
|
|
|
// LINENUMBERS
|
|
// test.kt:33 box
|
|
// test.kt:4 foo
|
|
// test.kt:5 foo
|
|
// test.kt:25 mightThrow
|
|
// test.kt:26 mightThrow
|
|
// test.kt:9 foo
|
|
// test.kt:10 foo
|
|
// test.kt:12 foo
|
|
// test.kt:13 foo
|
|
// test.kt:29 mightThrow2
|
|
// test.kt:30 mightThrow2
|
|
// test.kt:13 foo
|
|
// test.kt:17 foo
|
|
// test.kt:18 foo
|
|
// LINENUMBERS JVM
|
|
// test.kt:17 foo
|
|
// LINENUMBERS JVM_IR
|
|
// test.kt:12 foo
|
|
// LINENUMBERS
|
|
// test.kt:19 foo
|
|
// test.kt:34 box
|
|
// test.kt:35 box
|
|
// test.kt:4 foo
|
|
// test.kt:5 foo
|
|
// test.kt:25 mightThrow
|
|
// test.kt:26 mightThrow
|
|
// test.kt:9 foo
|
|
// test.kt:10 foo
|
|
// test.kt:12 foo
|
|
// test.kt:13 foo
|
|
// test.kt:29 mightThrow2
|
|
// test.kt:14 foo
|
|
// test.kt:15 foo
|
|
// test.kt:17 foo
|
|
// test.kt:18 foo
|
|
// LINENUMBERS JVM
|
|
// test.kt:17 foo
|
|
// LINENUMBERS JVM_IR
|
|
// test.kt:12 foo
|
|
// LINENUMBERS
|
|
// test.kt:19 foo
|
|
// test.kt:36 box
|
|
// test.kt:37 box
|
|
// test.kt:4 foo
|
|
// test.kt:5 foo
|
|
// test.kt:25 mightThrow
|
|
// test.kt:6 foo
|
|
// test.kt:7 foo
|
|
// test.kt:9 foo
|
|
// test.kt:10 foo
|
|
// test.kt:12 foo
|
|
// test.kt:13 foo
|
|
// test.kt:29 mightThrow2
|
|
// test.kt:14 foo
|
|
// test.kt:15 foo
|
|
// test.kt:17 foo
|
|
// test.kt:18 foo
|
|
// LINENUMBERS JVM
|
|
// test.kt:17 foo
|
|
// LINENUMBERS JVM_IR
|
|
// test.kt:12 foo
|
|
// LINENUMBERS
|
|
// test.kt:19 foo
|
|
// test.kt:38 box |