From e38f02b53a5f8b8f5352cb88efdd8dc4cb01d1ad Mon Sep 17 00:00:00 2001 From: Igor Chevdar Date: Thu, 4 Aug 2022 20:39:39 +0300 Subject: [PATCH] [box-tests] Added a bunch of tests on local objects in inline lambdas --- ...FirBlackBoxInlineCodegenTestGenerated.java | 18 ++++++++++ ...reeBlackBoxInlineCodegenTestGenerated.java | 18 ++++++++++ ...otlinAgainstInlineKotlinTestGenerated.java | 18 ++++++++++ .../boxInline/anonymousObject/kt52795_3.kt | 36 +++++++++++++++++++ .../boxInline/anonymousObject/kt52795_4.kt | 34 ++++++++++++++++++ .../boxInline/anonymousObject/kt52795_5.kt | 24 +++++++++++++ .../BlackBoxInlineCodegenTestGenerated.java | 18 ++++++++++ ...otlinAgainstInlineKotlinTestGenerated.java | 18 ++++++++++ .../IrBlackBoxInlineCodegenTestGenerated.java | 18 ++++++++++ ...otlinAgainstInlineKotlinTestGenerated.java | 18 ++++++++++ ...otlinAgainstInlineKotlinTestGenerated.java | 18 ++++++++++ ...JvmIrAgainstOldBoxInlineTestGenerated.java | 18 ++++++++++ ...JvmOldAgainstIrBoxInlineTestGenerated.java | 18 ++++++++++ .../js/test/JsCodegenInlineTestGenerated.java | 18 ++++++++++ .../ir/IrJsCodegenInlineTestGenerated.java | 18 ++++++++++ .../IrCodegenBoxInlineWasmTestGenerated.java | 15 ++++++++ .../NativeCodegenBoxTestGenerated.java | 18 ++++++++++ 17 files changed, 343 insertions(+) create mode 100644 compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt create mode 100644 compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt create mode 100644 compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxInlineCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxInlineCodegenTestGenerated.java index 75129bff00d..3f8dad6713c 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxInlineCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxInlineCodegenTestGenerated.java @@ -368,6 +368,24 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxInlineCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxInlineCodegenTestGenerated.java index 0e2ce5f2204..97b52ae65f9 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxInlineCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxInlineCodegenTestGenerated.java @@ -368,6 +368,24 @@ public class FirLightTreeBlackBoxInlineCodegenTestGenerated extends AbstractFirL runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java index 40e5596a5c8..3f02c900db0 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java @@ -368,6 +368,24 @@ public class FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends A runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt new file mode 100644 index 00000000000..65e4cf62cca --- /dev/null +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt @@ -0,0 +1,36 @@ +// NO_CHECK_LAMBDA_INLINING +// IGNORE_BACKEND: JVM, WASM +// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR + +import kotlin.IllegalStateException + +// FILE: 1.kt +inline fun mrun(block: () -> T) = block() +inline fun mrunTwice(block: () -> T) : T { + val first = block() + val second = block() + if (first!!::class != second!!::class) + throw IllegalStateException("${first!!::class} != ${second!!::class}") + return first +} + +inline fun T.noop() = this + +// FILE: 2.kt +fun bar(o: String): String { + val callable = mrun { + fun localAnonymousFun(k: String): String { + fun localAnonymousFunLevel2() = mrunTwice { + object { + fun foo() = o + k + } + } + return localAnonymousFunLevel2().foo() + } + ::localAnonymousFun + }.noop() + + return callable("K") +} + +fun box() = bar("O") diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt new file mode 100644 index 00000000000..7f13d2f3304 --- /dev/null +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt @@ -0,0 +1,34 @@ +// NO_CHECK_LAMBDA_INLINING +// IGNORE_BACKEND: JVM, WASM +// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR + +import kotlin.IllegalStateException + +// FILE: 1.kt +inline fun mrun(noinline block: () -> T) = block() +inline fun mrunTwice(block: () -> T) : T { + val first = block() + val second = block() + if (first!!::class != second!!::class) + throw IllegalStateException("${first!!::class} != ${second!!::class}") + return first +} + +// FILE: 2.kt +fun bar(o: String): String { + val callable = mrun { + fun localAnonymousFun(k: String): String { + fun localAnonymousFunLevel2() = mrunTwice { + object { + fun foo() = o + k + } + } + return localAnonymousFunLevel2().foo() + } + ::localAnonymousFun + } + + return callable("K") +} + +fun box() = bar("O") diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt new file mode 100644 index 00000000000..323202c2583 --- /dev/null +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt @@ -0,0 +1,24 @@ +// NO_CHECK_LAMBDA_INLINING + +import kotlin.IllegalStateException + +// FILE: 1.kt +inline fun mrun2(noinline block: () -> T, block2: () -> Unit): T { block2(); return block() } + +// FILE: 2.kt +fun bar(o: String): String { + val obj = mrun2( + { + object { + fun foo() = o + "K" + } + }, + { + fun localFun() = 42 + } + ) + + return obj.foo() +} + +fun box() = bar("O") \ No newline at end of file diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxInlineCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxInlineCodegenTestGenerated.java index 5047525dc2f..f0764d10d5a 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxInlineCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxInlineCodegenTestGenerated.java @@ -368,6 +368,24 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java index 96c696fcfd7..332f9f77198 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java @@ -368,6 +368,24 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxInlineCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxInlineCodegenTestGenerated.java index 836cfc75f21..52beff031af 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxInlineCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxInlineCodegenTestGenerated.java @@ -368,6 +368,24 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrCompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrCompileKotlinAgainstInlineKotlinTestGenerated.java index 4e77b40445f..b4e4de73685 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrCompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrCompileKotlinAgainstInlineKotlinTestGenerated.java @@ -368,6 +368,24 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java index 3aceaf18c6a..c73c5bc90bc 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java @@ -368,6 +368,24 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxInlineTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxInlineTestGenerated.java index 5ba9469eb6c..37dda60f713 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxInlineTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxInlineTestGenerated.java @@ -368,6 +368,24 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxInlineTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxInlineTestGenerated.java index 2c7e4f219c0..b562d5b1995 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxInlineTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxInlineTestGenerated.java @@ -368,6 +368,24 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java index b571e5df1d6..4e6b11f3a4a 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java @@ -326,6 +326,24 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java index 4da5f880f05..d8c309206f5 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java @@ -326,6 +326,24 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxInlineWasmTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxInlineWasmTestGenerated.java index e7f20b6ecd2..97f03537498 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxInlineWasmTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxInlineWasmTestGenerated.java @@ -290,6 +290,21 @@ public class IrCodegenBoxInlineWasmTestGenerated extends AbstractIrCodegenBoxInl runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt"); diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java index fb0043ece18..697c5b9eb60 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java @@ -40292,6 +40292,24 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); } + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception {