Add a JVM backend debug information test, this commit is for verifying

line numbers for stepping.

Running JVM instance and read stepping events from it to verify with the
test data.
This commit is contained in:
Jiaxiang Chen
2019-06-06 01:37:06 -07:00
committed by max-kammerer
parent f17e9ba9fe
commit 0a2812f83b
13 changed files with 626 additions and 12 deletions
+26
View File
@@ -0,0 +1,26 @@
//FILE: test.kt
fun box(): Int {
if (
getB() ==
getA())
return 0
return getB()
}
fun getA() = 3
inline fun getB(): Int {
return 1
}
// IGNORE_BACKEND: JVM_IR
// old backend is missing a line number after return from inline function call, actually IR backend results seems more right.
// LINENUMBERS
// TestKt.box():4
// TestKt.box():13
// TestKt.box():5
// TestKt.getA():10
// TestKt.box():5
// TestKt.box():7
// TestKt.box():13