Files
kotlin-fork/compiler/testData/debug/localVariables/catchClause.kt
T
Kristoffer Andersen 27fb46712a [JVM+IR] Unify new debugger tests expectations
This commit unifies the expectation format between the stepping and
LVT tests in the new debugging test harness.

Furthermore, it introduces a compression of runs of locations without
linenumbers. These default to showing as bytecode offsets from
previous line number, which overspecifies the tests: the bytecodes
chosen should not be constrained by a debugging step test.
2020-10-23 11:19:58 +02:00

20 lines
373 B
Kotlin
Vendored

// FILE: test.kt
fun box() {
try {
var a = 1
a --
a /= a
} catch(e : Throwable) {
e.printStackTrace()
}
}
// LOCAL VARIABLES
// test.kt:3 box:
// test.kt:4 box:
// test.kt:5 box: a:int=1:int
// test.kt:6 box: a:int=0:int
// test.kt:7 box:
// test.kt:8 box: e:java.lang.Throwable=java.lang.ArithmeticException
// test.kt:10 box: