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:
committed by
max-kammerer
parent
f17e9ba9fe
commit
0a2812f83b
+36
@@ -0,0 +1,36 @@
|
||||
//FILE: test.kt
|
||||
fun box() {
|
||||
val k = if (getA()
|
||||
&& getB()
|
||||
&& getC()
|
||||
&& getD()) {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
fun getA() = true
|
||||
|
||||
fun getB() = true
|
||||
|
||||
fun getC() = false
|
||||
|
||||
fun getD() = true
|
||||
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IR backend is missing a line number 3 in box() after stepping on line 9 for getting the result of false
|
||||
|
||||
// LINENUMBERS
|
||||
// TestKt.box():3
|
||||
// TestKt.getA():13
|
||||
// TestKt.box():3
|
||||
// TestKt.box():4
|
||||
// TestKt.getB():15
|
||||
// TestKt.box():4
|
||||
// TestKt.box():5
|
||||
// TestKt.getC():17
|
||||
// TestKt.box():5
|
||||
// TestKt.box():9
|
||||
// TestKt.box():3
|
||||
// TestKt.box():11
|
||||
Reference in New Issue
Block a user