[box-tests] Another version of reproducer for KT-56965

This commit is contained in:
Igor Chevdar
2023-03-02 16:58:57 +02:00
committed by Space Team
parent 99ec3215d9
commit 315d9089b0
19 changed files with 124 additions and 0 deletions
@@ -1454,6 +1454,12 @@ public class FirLightTreeBlackBoxInlineCodegenTestGenerated extends AbstractFirL
runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt");
}
@Test
@TestMetadata("kt56965_2.kt")
public void testKt56965_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt");
}
@Test
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1454,6 +1454,12 @@ public class FirLightTreeSerializeCompileKotlinAgainstInlineKotlinTestGenerated
runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt");
}
@Test
@TestMetadata("kt56965_2.kt")
public void testKt56965_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt");
}
@Test
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1454,6 +1454,12 @@ public class FirPsiBlackBoxInlineCodegenTestGenerated extends AbstractFirPsiBlac
runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt");
}
@Test
@TestMetadata("kt56965_2.kt")
public void testKt56965_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt");
}
@Test
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1454,6 +1454,12 @@ public class FirPsiSerializeCompileKotlinAgainstInlineKotlinTestGenerated extend
runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt");
}
@Test
@TestMetadata("kt56965_2.kt")
public void testKt56965_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt");
}
@Test
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -0,0 +1,17 @@
// NO_CHECK_LAMBDA_INLINING
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_IR_AGAINST_OLD
// FILE: 1.kt
inline fun foo(block: () -> String) = block()
inline fun bar() = foo {
val s = "O"
val obj = object {
fun local() = localInline { it }
inline fun localInline(block: (String) -> String) = block(s) + "K"
}
return obj.local()
}
// FILE: 2.kt
fun box() = bar()
@@ -1430,6 +1430,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt");
}
@Test
@TestMetadata("kt56965_2.kt")
public void testKt56965_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt");
}
@Test
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1430,6 +1430,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt");
}
@Test
@TestMetadata("kt56965_2.kt")
public void testKt56965_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt");
}
@Test
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1454,6 +1454,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt");
}
@Test
@TestMetadata("kt56965_2.kt")
public void testKt56965_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt");
}
@Test
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1454,6 +1454,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt");
}
@Test
@TestMetadata("kt56965_2.kt")
public void testKt56965_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt");
}
@Test
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1454,6 +1454,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt");
}
@Test
@TestMetadata("kt56965_2.kt")
public void testKt56965_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt");
}
@Test
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1454,6 +1454,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt");
}
@Test
@TestMetadata("kt56965_2.kt")
public void testKt56965_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt");
}
@Test
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {
@@ -1430,6 +1430,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt");
}
@Test
@TestMetadata("kt56965_2.kt")
public void testKt56965_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt");
}
@Test
@TestMetadata("simpleCapturingInClass.kt")
public void testSimpleCapturingInClass() throws Exception {