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
+26
@@ -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
|
||||
Reference in New Issue
Block a user