Replace bytecode text test with a stepping test
#KT-62965
This commit is contained in:
committed by
Space Team
parent
2e32e13466
commit
19283048a8
-6
@@ -4612,12 +4612,6 @@ public class FirLightTreeBytecodeTextTestGenerated extends AbstractFirLightTreeB
|
||||
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/kt61768.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62965.kt")
|
||||
public void testKt62965() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/kt62965.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleThen.kt")
|
||||
public void testSingleThen() throws Exception {
|
||||
|
||||
+6
@@ -295,6 +295,12 @@ public class FirLightTreeSteppingTestGenerated extends AbstractFirLightTreeStepp
|
||||
runTest("compiler/testData/debug/stepping/inlineSimpleCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaSam.kt")
|
||||
public void testJavaSam() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/javaSam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt15259.kt")
|
||||
public void testKt15259() throws Exception {
|
||||
|
||||
-6
@@ -4612,12 +4612,6 @@ public class FirPsiBytecodeTextTestGenerated extends AbstractFirPsiBytecodeTextT
|
||||
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/kt61768.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62965.kt")
|
||||
public void testKt62965() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/kt62965.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleThen.kt")
|
||||
public void testSingleThen() throws Exception {
|
||||
|
||||
+6
@@ -295,6 +295,12 @@ public class FirPsiSteppingTestGenerated extends AbstractFirPsiSteppingTest {
|
||||
runTest("compiler/testData/debug/stepping/inlineSimpleCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaSam.kt")
|
||||
public void testJavaSam() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/javaSam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt15259.kt")
|
||||
public void testKt15259() throws Exception {
|
||||
|
||||
+1
-1
@@ -401,7 +401,7 @@ internal class FunctionReferenceLowering(private val context: JvmBackendContext)
|
||||
samType: IrType,
|
||||
lambdaMetafactoryArguments: LambdaMetafactoryArguments,
|
||||
startOffset: Int = UNDEFINED_OFFSET,
|
||||
endOffset:Int = UNDEFINED_OFFSET
|
||||
endOffset: Int = UNDEFINED_OFFSET,
|
||||
): IrCall {
|
||||
val notNullSamType = samType.makeNotNull()
|
||||
.removeAnnotations { it.type.classFqName in specialNullabilityAnnotationsFqNames }
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
fun foo() {
|
||||
Runnable {
|
||||
}.run()
|
||||
}
|
||||
|
||||
// 1 LINENUMBER 4 L0\n +INVOKEDYNAMIC run\(\)Ljava/lang/Runnable
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box() {
|
||||
Runnable {
|
||||
}.run()
|
||||
}
|
||||
|
||||
// EXPECTATIONS JVM_IR
|
||||
// test.kt:6 box
|
||||
// test.kt:7 box
|
||||
// test.kt:8 box
|
||||
-6
@@ -11381,12 +11381,6 @@ public class JvmAbiConsistencyTestRestGenerated extends AbstractJvmAbiConsistenc
|
||||
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/kt61768.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62965.kt")
|
||||
public void testKt62965() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/kt62965.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleThen.kt")
|
||||
public void testSingleThen() throws Exception {
|
||||
|
||||
-6
@@ -4612,12 +4612,6 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/kt61768.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt62965.kt")
|
||||
public void testKt62965() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/kt62965.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleThen.kt")
|
||||
public void testSingleThen() throws Exception {
|
||||
|
||||
+6
@@ -295,6 +295,12 @@ public class IrSteppingWithBytecodeInlinerTestGenerated extends AbstractIrSteppi
|
||||
runTest("compiler/testData/debug/stepping/inlineSimpleCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaSam.kt")
|
||||
public void testJavaSam() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/javaSam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt15259.kt")
|
||||
public void testKt15259() throws Exception {
|
||||
|
||||
+6
@@ -295,6 +295,12 @@ public class IrSteppingWithIrInlinerTestGenerated extends AbstractIrSteppingWith
|
||||
runTest("compiler/testData/debug/stepping/inlineSimpleCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaSam.kt")
|
||||
public void testJavaSam() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/javaSam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt15259.kt")
|
||||
public void testKt15259() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user