[JVM+IR] Update straight-forward LVT tests

This commit is contained in:
Kristoffer Andersen
2020-10-07 13:28:19 +02:00
committed by max-kammerer
parent 2c9bf95227
commit 3291f8455b
10 changed files with 89 additions and 57 deletions
@@ -0,0 +1,21 @@
// FILE: test.kt
class A {
inline val s: Int
get() = 1
}
fun box() {
val a = A()
var y = a.s
y++
}
// LOCAL VARIABLES
// TestKt:8:
// A:2:
// TestKt:8:
// TestKt:9: a:A=A
// TestKt:4: a:A=A, this_$iv:A=A, $i$f$getS:int=0:int
// TestKt:9: a:A=A
// TestKt:10: a:A=A, y:int=1:int
// TestKt:11: a:A=A, y:int=2:int
+19
View File
@@ -0,0 +1,19 @@
// FILE: test.kt
// WITH_RUNTIME
class C {
@kotlin.jvm.JvmOverloads fun foo(firstParam: Int, secondParam: String = "") {
}
}
fun box() {
C().foo(4)
}
// LOCAL VARIABLES
// TestKt:9:
// C:3:
// TestKt:9:
// C:4:
// C:5: firstParam:int=4:int, secondParam:java.lang.String="":java.lang.String
// C:4:
// TestKt:10:
@@ -0,0 +1,13 @@
// FILE: test.kt
fun String.test() {
}
fun box() {
"OK".test()
}
// LOCAL VARIABLES
// TestKt:7:
// TestKt:4: $this$test:java.lang.String="OK":java.lang.String
// TestKt:8: