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() {
val n = 3
val k = foo(n)
}
fun foo(n :Int ) : Int {
if (n == 1 || n == 0) {
return 1
}
return foo(n-1) * n
}
// LINENUMBERS
// TestKt.box():3
// TestKt.box():4
// TestKt.foo(int):8
// TestKt.foo(int):11
// TestKt.foo(int):8
// TestKt.foo(int):11
// TestKt.foo(int):8
// TestKt.foo(int):9
// TestKt.foo(int):11
// TestKt.foo(int):11
// TestKt.box():4
// TestKt.box():5