[JVM+IR] Update straight-forward LVT tests
This commit is contained in:
committed by
max-kammerer
parent
2c9bf95227
commit
3291f8455b
@@ -1,8 +0,0 @@
|
||||
class A {
|
||||
inline val s: Int
|
||||
get() = 1
|
||||
}
|
||||
|
||||
// METHOD : A.getS()I
|
||||
// VARIABLE : NAME=this TYPE=LA; INDEX=0
|
||||
// VARIABLE : NAME=$i$f$getS TYPE=I INDEX=1
|
||||
@@ -1,9 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
class C {
|
||||
@kotlin.jvm.JvmOverloads fun foo(firstParam: Int, secondParam: String = "") {
|
||||
}
|
||||
}
|
||||
|
||||
// METHOD : C.foo(I)V
|
||||
// VARIABLE : NAME=this TYPE=LC; INDEX=0
|
||||
// VARIABLE : NAME=firstParam TYPE=I INDEX=1
|
||||
@@ -1,10 +0,0 @@
|
||||
class A() {
|
||||
fun String.test() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// METHOD : A.test(Ljava/lang/String;)V
|
||||
// VARIABLE : NAME=this TYPE=LA; INDEX=0
|
||||
// VARIABLE : NAME=$this$test TYPE=Ljava/lang/String; INDEX=1
|
||||
@@ -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
|
||||
@@ -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:
|
||||
-15
@@ -59,11 +59,6 @@ public class CheckLocalVariablesTableTestGenerated extends AbstractCheckLocalVar
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineProperty.kt")
|
||||
public void testInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimple.kt")
|
||||
public void testInlineSimple() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimple.kt");
|
||||
@@ -84,11 +79,6 @@ public class CheckLocalVariablesTableTestGenerated extends AbstractCheckLocalVar
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInReturnedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11117.kt")
|
||||
public void testKt11117() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/kt11117.kt");
|
||||
@@ -109,11 +99,6 @@ public class CheckLocalVariablesTableTestGenerated extends AbstractCheckLocalVar
|
||||
runTest("compiler/testData/checkLocalVariablesTable/objectInLocalPropertyDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("receiverParameter.kt")
|
||||
public void testReceiverParameter() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/receiverParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/underscoreNames.kt");
|
||||
|
||||
Generated
+18
@@ -55,12 +55,30 @@ public class IrLocalVariableTestGenerated extends AbstractIrLocalVariableTest {
|
||||
runTest("compiler/testData/debug/localVariables/destructuringInLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProperty.kt")
|
||||
public void testInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/inlineProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localFun.kt")
|
||||
public void testLocalFun() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/localFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("receiverParameter.kt")
|
||||
public void testReceiverParameter() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
|
||||
Generated
+18
@@ -55,12 +55,30 @@ public class LocalVariableTestGenerated extends AbstractLocalVariableTest {
|
||||
runTest("compiler/testData/debug/localVariables/destructuringInLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProperty.kt")
|
||||
public void testInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/inlineProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localFun.kt")
|
||||
public void testLocalFun() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/localFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("receiverParameter.kt")
|
||||
public void testReceiverParameter() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
|
||||
Generated
-15
@@ -59,11 +59,6 @@ public class IrCheckLocalVariablesTableTestGenerated extends AbstractIrCheckLoca
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineProperty.kt")
|
||||
public void testInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimple.kt")
|
||||
public void testInlineSimple() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimple.kt");
|
||||
@@ -84,11 +79,6 @@ public class IrCheckLocalVariablesTableTestGenerated extends AbstractIrCheckLoca
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInReturnedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11117.kt")
|
||||
public void testKt11117() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/kt11117.kt");
|
||||
@@ -109,11 +99,6 @@ public class IrCheckLocalVariablesTableTestGenerated extends AbstractIrCheckLoca
|
||||
runTest("compiler/testData/checkLocalVariablesTable/objectInLocalPropertyDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("receiverParameter.kt")
|
||||
public void testReceiverParameter() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/receiverParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/underscoreNames.kt");
|
||||
|
||||
Reference in New Issue
Block a user