From 21e9bd7ea2622405b73ba8f7d3a57e47a0078157 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Thu, 11 Feb 2021 14:51:55 +0100 Subject: [PATCH] Add regression tests for obsolete issues #KT-9304 #KT-14961 #KT-16549 #KT-21080 #KT-28234 #KT-30102 #KT-31994 #KT-34291 #KT-38099 #KT-41174 #KT-44622 #KT-44701 #KT-44781 #KT-44849 #KT-44978 #KT-45081 #KT-45286 #KT-45383 #KT-45444 #KT-45907 --- .../FirBlackBoxCodegenTestGenerated.java | 102 ++++++++++++++++++ ...FirBlackBoxInlineCodegenTestGenerated.java | 18 ++++ .../box/arrays/kt34291_16dimensions.kt | 6 ++ .../adaptedSuspendFunctionReference.kt | 32 ++++++ .../inlineClasses/funInterface.kt | 22 ++++ .../callableReference/function/adapted.kt | 22 ++++ .../codegen/box/coroutines/kt21080.kt | 27 +++++ .../codegen/box/coroutines/kt38099.kt | 25 +++++ .../codegen/box/coroutines/kt44781.kt | 25 +++++ .../box/delegation/kt30102_comparable.kt | 8 ++ .../recursiveCallInInlineLambda.kt | 27 +++++ .../recursiveCallInInlineLambdaWithCapture.kt | 18 ++++ .../kt45444_privateFunInterface.kt | 16 +++ .../codegen/box/inlineClasses/kt31994.kt | 15 +++ .../box/inlineClasses/kt44701_jvmOverloads.kt | 7 ++ .../codegen/box/inlineClasses/kt44978.kt | 14 +++ .../codegen/box/localClasses/kt45383.kt | 10 ++ .../box/reflection/enclosing/kt45907.kt | 10 ++ compiler/testData/codegen/box/when/kt45081.kt | 12 +++ .../boxInline/anonymousObject/kt41174.kt | 14 +++ .../boxInline/nonLocalReturns/kt9304.kt | 16 +++ .../codegen/boxInline/reified/kt28234.kt | 28 +++++ .../codegen/BlackBoxCodegenTestGenerated.java | 102 ++++++++++++++++++ .../BlackBoxInlineCodegenTestGenerated.java | 18 ++++ ...otlinAgainstInlineKotlinTestGenerated.java | 18 ++++ .../IrBlackBoxCodegenTestGenerated.java | 102 ++++++++++++++++++ .../IrBlackBoxInlineCodegenTestGenerated.java | 18 ++++ ...otlinAgainstInlineKotlinTestGenerated.java | 18 ++++ ...JvmIrAgainstOldBoxInlineTestGenerated.java | 18 ++++ .../JvmIrAgainstOldBoxTestGenerated.java | 12 +++ ...JvmOldAgainstIrBoxInlineTestGenerated.java | 18 ++++ .../JvmOldAgainstIrBoxTestGenerated.java | 12 +++ .../LightAnalysisModeTestGenerated.java | 75 +++++++++++++ .../IrJsCodegenBoxES6TestGenerated.java | 70 ++++++++++++ .../IrJsCodegenInlineES6TestGenerated.java | 10 ++ .../IrJsCodegenBoxTestGenerated.java | 60 +++++++++++ .../IrJsCodegenInlineTestGenerated.java | 10 ++ .../semantics/JsCodegenBoxTestGenerated.java | 60 +++++++++++ .../JsCodegenInlineTestGenerated.java | 10 ++ ...LegacyPrimitiveArraysBoxTestGenerated.java | 5 + .../IrCodegenBoxWasmTestGenerated.java | 40 +++++++ 41 files changed, 1150 insertions(+) create mode 100644 compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt create mode 100644 compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt create mode 100644 compiler/testData/codegen/box/coroutines/kt21080.kt create mode 100644 compiler/testData/codegen/box/coroutines/kt38099.kt create mode 100644 compiler/testData/codegen/box/coroutines/kt44781.kt create mode 100644 compiler/testData/codegen/box/delegation/kt30102_comparable.kt create mode 100644 compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt create mode 100644 compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt create mode 100644 compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt create mode 100644 compiler/testData/codegen/box/inlineClasses/kt31994.kt create mode 100644 compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt create mode 100644 compiler/testData/codegen/box/inlineClasses/kt44978.kt create mode 100644 compiler/testData/codegen/box/localClasses/kt45383.kt create mode 100644 compiler/testData/codegen/box/reflection/enclosing/kt45907.kt create mode 100644 compiler/testData/codegen/box/when/kt45081.kt create mode 100644 compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt create mode 100644 compiler/testData/codegen/boxInline/reified/kt28234.kt diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java index a66aa06478d..c1051f3024d 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java @@ -840,6 +840,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/arrays/kt33.kt"); } + @Test + @TestMetadata("kt34291_16dimensions.kt") + public void testKt34291_16dimensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt"); + } + @Test @TestMetadata("kt3771.kt") public void testKt3771() throws Exception { @@ -6161,6 +6167,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") @TestDataPath("$PROJECT_ROOT") public class CompileKotlinAgainstKotlin { + @Test + @TestMetadata("adaptedSuspendFunctionReference.kt") + public void testAdaptedSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt"); + } + @Test public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); @@ -6653,6 +6665,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt"); } + @Test + @TestMetadata("funInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt"); + } + @Test @TestMetadata("inlineClassFakeOverrideMangling.kt") public void testInlineClassFakeOverrideMangling() throws Exception { @@ -9024,6 +9042,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/coroutines/kt15930.kt"); } + @Test + @TestMetadata("kt21080.kt") + public void testKt21080() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt21080.kt"); + } + @Test @TestMetadata("kt21605.kt") public void testKt21605() throws Exception { @@ -9066,6 +9090,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt38099.kt") + public void testKt38099() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() throws Exception { @@ -9090,6 +9120,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/coroutines/kt44710.kt"); } + @Test + @TestMetadata("kt44781.kt") + public void testKt44781() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt44781.kt"); + } + @Test @TestMetadata("kt45377.kt") public void testKt45377() throws Exception { @@ -9830,6 +9866,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function") @TestDataPath("$PROJECT_ROOT") public class Function { + @Test + @TestMetadata("adapted.kt") + public void testAdapted() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt"); + } + @Test public void testAllFilesPresentInFunction() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); @@ -13466,6 +13508,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/delegation/inDataClass.kt"); } + @Test + @TestMetadata("kt30102_comparable.kt") + public void testKt30102_comparable() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt"); + } + @Test @TestMetadata("kt8154.kt") public void testKt8154() throws Exception { @@ -13798,6 +13846,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt"); } + @Test + @TestMetadata("recursiveCallInInlineLambda.kt") + public void testRecursiveCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt"); + } + + @Test + @TestMetadata("recursiveCallInInlineLambdaWithCapture.kt") + public void testRecursiveCallInInlineLambdaWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt"); + } + @Test @TestMetadata("recursiveCallInLambda.kt") public void testRecursiveCallInLambda() throws Exception { @@ -15512,6 +15572,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/funInterface/kt44827_funInterface.kt"); } + @Test + @TestMetadata("kt45444_privateFunInterface.kt") + public void testKt45444_privateFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() throws Exception { @@ -18002,6 +18068,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt"); } + @Test + @TestMetadata("kt31994.kt") + public void testKt31994() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt"); + } + @Test @TestMetadata("kt32793.kt") public void testKt32793() throws Exception { @@ -18056,12 +18128,24 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/inlineClasses/kt44141.kt"); } + @Test + @TestMetadata("kt44701_jvmOverloads.kt") + public void testKt44701_jvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt"); + } + @Test @TestMetadata("kt44867.kt") public void testKt44867() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt"); } + @Test + @TestMetadata("kt44978.kt") + public void testKt44978() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt"); + } + @Test @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { @@ -24372,6 +24456,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/localClasses/kt4174.kt"); } + @Test + @TestMetadata("kt45383.kt") + public void testKt45383() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt45383.kt"); + } + @Test @TestMetadata("localClass.kt") public void testLocalClass() throws Exception { @@ -34657,6 +34747,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/reflection/enclosing/kt11969.kt"); } + @Test + @TestMetadata("kt45907.kt") + public void testKt45907() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/kt45907.kt"); + } + @Test @TestMetadata("kt6368.kt") public void testKt6368() throws Exception { @@ -41306,6 +41402,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/when/kt43242.kt"); } + @Test + @TestMetadata("kt45081.kt") + public void testKt45081() throws Exception { + runTest("compiler/testData/codegen/box/when/kt45081.kt"); + } + @Test @TestMetadata("kt5307.kt") public void testKt5307() throws Exception { 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 1bee3c1f65a..a97ab667b22 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 @@ -298,6 +298,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test + @TestMetadata("kt41174.kt") + public void testKt41174() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt"); + } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { @@ -2902,6 +2908,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test + @TestMetadata("kt9304.kt") + public void testKt9304() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt"); + } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { @@ -3660,6 +3672,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test + @TestMetadata("kt28234.kt") + public void testKt28234() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt"); + } + @Test @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { diff --git a/compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt b/compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt new file mode 100644 index 00000000000..26abddf5cda --- /dev/null +++ b/compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt @@ -0,0 +1,6 @@ +fun Array>>>>>>>>>>>>>>.dimensions() = "OK" + +fun box(): String = + arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf( + longArrayOf(42L) + ))))))))))))))).dimensions() diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt new file mode 100644 index 00000000000..f33be3b6677 --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt @@ -0,0 +1,32 @@ +// KT-45286 +// MODULE: lib +// WITH_RUNTIME +// FILE: A.kt + +package a + +import kotlin.coroutines.* + +var result = "Fail" + +fun f() { + result = "OK" +} + +fun g(block: suspend () -> Unit) { + block.startCoroutine(Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) +} + +inline fun h() = g(::f) + +// MODULE: main(lib) +// FILE: B.kt + +package b + +fun box(): String { + a.h() + return a.result +} diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt new file mode 100644 index 00000000000..ae65420d1de --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt @@ -0,0 +1,22 @@ +// KT-44622 +// MODULE: lib +// FILE: A.kt + +package x + +inline class A(val value: String) + +fun interface B { + fun method(a: A): String +} + +// MODULE: main(lib) +// FILE: B.kt + +package y + +import x.* + +val b = B { it.value } + +fun box(): String = b.method(A("OK")) diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt new file mode 100644 index 00000000000..f263d8bc052 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt @@ -0,0 +1,22 @@ +// IGNORE_BACKEND: JVM +// WITH_RUNTIME +// KT-44849 + +import kotlin.coroutines.* + +var result = "Fail" + +class Wrapper(val action: suspend () -> Unit) { + init { + action.startCoroutine(Continuation(EmptyCoroutineContext) { it.getOrThrow() }) + } +} + +suspend fun some(a: String = "OK") { + result = a +} + +fun box(): String { + Wrapper(::some) + return result +} diff --git a/compiler/testData/codegen/box/coroutines/kt21080.kt b/compiler/testData/codegen/box/coroutines/kt21080.kt new file mode 100644 index 00000000000..55fc09a9cab --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/kt21080.kt @@ -0,0 +1,27 @@ +// WITH_RUNTIME +// WITH_COROUTINES +// IGNORE_BACKEND: JVM +// IGNORE_BACKEND_FIR: JVM_IR + +import kotlin.coroutines.* +import helpers.* + +suspend fun suspendThere(v: A): A = suspendCoroutine { x -> + x.resume(v) +} + +class A(var value: Int) + +suspend operator fun A?.plus(a: A) = suspendThere(A((this?.value ?: 0) + a.value)) +class B(var a: A) + +fun builder(c: suspend () -> Unit) { + c.startCoroutine(EmptyContinuation) +} + +fun box(): String { + var b: B? = B(A(11)) + builder { b?.a += A(31) } + if (b?.a?.value != 42) return "FAIL 0" + return "OK" +} diff --git a/compiler/testData/codegen/box/coroutines/kt38099.kt b/compiler/testData/codegen/box/coroutines/kt38099.kt new file mode 100644 index 00000000000..ffdd8d75a39 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/kt38099.kt @@ -0,0 +1,25 @@ +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// WITH_RUNTIME + +import kotlin.coroutines.* + +object MyObject2 { + @JvmStatic + suspend fun enable(o: Any) { + if (o.hashCode() != 0) { + suspendCoroutine {} + } + } +} + +fun go(block: suspend () -> Unit) { + block.startCoroutine(Continuation(EmptyCoroutineContext) { it.getOrThrow() }) +} + +fun box(): String { + go { + MyObject2.enable("") + } + return "OK" +} diff --git a/compiler/testData/codegen/box/coroutines/kt44781.kt b/compiler/testData/codegen/box/coroutines/kt44781.kt new file mode 100644 index 00000000000..dfde2f25d32 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/kt44781.kt @@ -0,0 +1,25 @@ +// WITH_RUNTIME + +import kotlin.coroutines.* + +inline suspend fun foo(crossinline block: () -> String): String { + return bar { _ -> block() } +} + +suspend fun bar(block: suspend (Int) -> String): String { + return block(1) +} + +fun launch(block: suspend () -> String): String { + var result = "" + block.startCoroutine(Continuation(EmptyCoroutineContext) { result = it.getOrThrow() }) + return result +} + +fun box(): String { + return launch { + foo { + "OK" + } + } +} diff --git a/compiler/testData/codegen/box/delegation/kt30102_comparable.kt b/compiler/testData/codegen/box/delegation/kt30102_comparable.kt new file mode 100644 index 00000000000..13230184f69 --- /dev/null +++ b/compiler/testData/codegen/box/delegation/kt30102_comparable.kt @@ -0,0 +1,8 @@ +// IGNORE_BACKEND: JVM + +fun box(): String { + val a = BooleanWrap(false) + return if (a < true) "OK" else "Fail" +} + +class BooleanWrap(private val value: Boolean): Comparable by value diff --git a/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt new file mode 100644 index 00000000000..a0a98d9058d --- /dev/null +++ b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt @@ -0,0 +1,27 @@ +// KT-16549 +// IGNORE_BACKEND: JVM + +class TailInline { + private inline fun act(action: () -> Unit) { + return action() + } + + private var countDown = 10 + + tailrec fun test(): Int { + if (countDown < 5) return countDown + act { + countDown-- + if (countDown < 1) + return countDown + else + return test() // GOTO countDown-- + } + return countDown + } +} + +fun box(): String { + val result = TailInline().test() + return if (result == 4) "OK" else "Fail: $result" +} diff --git a/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt new file mode 100644 index 00000000000..6b3da285c1c --- /dev/null +++ b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt @@ -0,0 +1,18 @@ +// KT-14961 +// IGNORE_BACKEND: JVM, JS_IR, WASM +// WITH_RUNTIME + +fun listOfFactor(number: Int): List { + tailrec fun listOfFactor(number: Int, acc: List): List { + (2..number).forEach { + if (number % it == 0) return listOfFactor(number / it, acc + it) + } + return acc + } + return listOfFactor(number, emptyList()) +} + +fun box(): String { + val factors = listOfFactor(60) + return if (factors.size == 4) "OK" else "Fail: $factors" +} diff --git a/compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt b/compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt new file mode 100644 index 00000000000..2c6a913e7e7 --- /dev/null +++ b/compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt @@ -0,0 +1,16 @@ +// IGNORE_BACKEND: JVM +// DONT_TARGET_EXACT_BACKEND: WASM +// WASM_MUTE_REASON: SAM_CONVERSIONS + +private fun interface Listener { + fun onChanged(): String +} + +private class Foo { + private val listener = Listener { "OK" } + val result = listener.onChanged() +} + +private val foo = Foo() + +fun box(): String = foo.result diff --git a/compiler/testData/codegen/box/inlineClasses/kt31994.kt b/compiler/testData/codegen/box/inlineClasses/kt31994.kt new file mode 100644 index 00000000000..a1d0860db65 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt31994.kt @@ -0,0 +1,15 @@ +// IGNORE_BACKEND: JVM +// IGNORE_LIGHT_ANALYSIS + +fun box(): String = + testBug(null) + +fun testBug(test: Test?): String = + test?.Inner()?.thing ?: "OK" + +class Test(val name: String) { + inner class Inner { + val thing: String + get() = name + } +} diff --git a/compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt b/compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt new file mode 100644 index 00000000000..1017657b423 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt @@ -0,0 +1,7 @@ +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// WITH_RUNTIME + +inline class Location @JvmOverloads constructor(val value: String? = "OK") + +fun box(): String = Location().value!! diff --git a/compiler/testData/codegen/box/inlineClasses/kt44978.kt b/compiler/testData/codegen/box/inlineClasses/kt44978.kt new file mode 100644 index 00000000000..ff80e81fac4 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/kt44978.kt @@ -0,0 +1,14 @@ +// IGNORE_BACKEND: JVM +// WITH_RUNTIME + +inline class StringArray(val values: Array) + +fun foo(a1: StringArray, a2: StringArray): String { + var result = "" + for ((_, a) in arrayOf(a1, a2).withIndex()) { + result += a.values[0] + } + return result +} + +fun box(): String = foo(StringArray(arrayOf("O")), StringArray(arrayOf("K"))) diff --git a/compiler/testData/codegen/box/localClasses/kt45383.kt b/compiler/testData/codegen/box/localClasses/kt45383.kt new file mode 100644 index 00000000000..3be56dfa9e8 --- /dev/null +++ b/compiler/testData/codegen/box/localClasses/kt45383.kt @@ -0,0 +1,10 @@ +// IGNORE_BACKEND: JVM + +fun box(): String { + var cur = 0 + class Node(l: Int) { + val left = if (l > 0) Node(l - 1) else null + val ind: Int = (left?.ind ?: cur) + 1 + } + return if (Node(5).ind == 6) "OK" else "Fail" +} diff --git a/compiler/testData/codegen/box/reflection/enclosing/kt45907.kt b/compiler/testData/codegen/box/reflection/enclosing/kt45907.kt new file mode 100644 index 00000000000..2af4ac98395 --- /dev/null +++ b/compiler/testData/codegen/box/reflection/enclosing/kt45907.kt @@ -0,0 +1,10 @@ +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// WITH_RUNTIME + +fun box(): String = use { + class Local(val n: Int) + if (Local::class.java.declaringClass == null) "OK" else "Fail" +} + +inline fun use(block: () -> T): T = block() diff --git a/compiler/testData/codegen/box/when/kt45081.kt b/compiler/testData/codegen/box/when/kt45081.kt new file mode 100644 index 00000000000..18c0b416501 --- /dev/null +++ b/compiler/testData/codegen/box/when/kt45081.kt @@ -0,0 +1,12 @@ +// WITH_RUNTIME +// IGNORE_BACKEND: WASM +// WASM_MUTE_REASON: STDLIB_TEXT + +fun test(text: String): String { + when (text.takeWhile { it.isLetter() }) { + in arrayOf("a") -> return "OK" + } + return "FAIL" +} + +fun box(): String = test("a") diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt new file mode 100644 index 00000000000..a96587656de --- /dev/null +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt @@ -0,0 +1,14 @@ +// TARGET_BACKEND: JVM +// WITH_RUNTIME +// FULL_JDK +// FILE: 1.kt + +inline fun foo(crossinline init: (String) -> String): String = + listOf("OK").stream().map { init(it) }.findFirst().get() + +inline fun bar(crossinline init: (String) -> String): String = + foo { foo(init) } + +// FILE: 2.kt + +fun box(): String = bar { it } diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt new file mode 100644 index 00000000000..660fb6b964e --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt @@ -0,0 +1,16 @@ +// IGNORE_BACKEND: JVM +// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR +// IGNORE_BACKEND_FIR: JVM_IR +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt + +inline fun foo(f: () -> Unit) { + f() +} + +// FILE: 2.kt + +fun box(): String = (bar@ l@ fun(): String { + foo { return@bar "OK" } + return "fail" +}) () diff --git a/compiler/testData/codegen/boxInline/reified/kt28234.kt b/compiler/testData/codegen/boxInline/reified/kt28234.kt new file mode 100644 index 00000000000..04bcde9174f --- /dev/null +++ b/compiler/testData/codegen/boxInline/reified/kt28234.kt @@ -0,0 +1,28 @@ +// IGNORE_BACKEND: JVM +// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt + +package test + +class M(size: Int) { + val m = IntArray(size) { 0 } +} + +inline operator fun M.get(a: Any, b: Any, ifn: () -> Int) = + m[ifn()] + +inline operator fun M.set(a: T, b: Any, ifn: () -> Int, v: Int) { + if (b !is T) throw AssertionError() + m[ifn()] = v +} + +// FILE: 2.kt + +import test.* + +fun box(): String { + val m = M(4) + m["a", "b", { 1 }] += 10 + return if (m.m[1] == 10) "OK" else "Fail" +} diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java index 82f04814459..d663b424274 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java @@ -840,6 +840,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/arrays/kt33.kt"); } + @Test + @TestMetadata("kt34291_16dimensions.kt") + public void testKt34291_16dimensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt"); + } + @Test @TestMetadata("kt3771.kt") public void testKt3771() throws Exception { @@ -6161,6 +6167,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") @TestDataPath("$PROJECT_ROOT") public class CompileKotlinAgainstKotlin { + @Test + @TestMetadata("adaptedSuspendFunctionReference.kt") + public void testAdaptedSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt"); + } + @Test public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); @@ -6653,6 +6665,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt"); } + @Test + @TestMetadata("funInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt"); + } + @Test @TestMetadata("inlineClassFakeOverrideMangling.kt") public void testInlineClassFakeOverrideMangling() throws Exception { @@ -9024,6 +9042,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/kt15930.kt"); } + @Test + @TestMetadata("kt21080.kt") + public void testKt21080() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt21080.kt"); + } + @Test @TestMetadata("kt21605.kt") public void testKt21605() throws Exception { @@ -9066,6 +9090,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt38099.kt") + public void testKt38099() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() throws Exception { @@ -9090,6 +9120,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/kt44710.kt"); } + @Test + @TestMetadata("kt44781.kt") + public void testKt44781() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt44781.kt"); + } + @Test @TestMetadata("kt45377.kt") public void testKt45377() throws Exception { @@ -9830,6 +9866,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function") @TestDataPath("$PROJECT_ROOT") public class Function { + @Test + @TestMetadata("adapted.kt") + public void testAdapted() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt"); + } + @Test public void testAllFilesPresentInFunction() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); @@ -13466,6 +13508,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/delegation/inDataClass.kt"); } + @Test + @TestMetadata("kt30102_comparable.kt") + public void testKt30102_comparable() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt"); + } + @Test @TestMetadata("kt8154.kt") public void testKt8154() throws Exception { @@ -13798,6 +13846,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt"); } + @Test + @TestMetadata("recursiveCallInInlineLambda.kt") + public void testRecursiveCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt"); + } + + @Test + @TestMetadata("recursiveCallInInlineLambdaWithCapture.kt") + public void testRecursiveCallInInlineLambdaWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt"); + } + @Test @TestMetadata("recursiveCallInLambda.kt") public void testRecursiveCallInLambda() throws Exception { @@ -15488,6 +15548,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/funInterface/kt44827_funInterface.kt"); } + @Test + @TestMetadata("kt45444_privateFunInterface.kt") + public void testKt45444_privateFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() throws Exception { @@ -17978,6 +18044,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt"); } + @Test + @TestMetadata("kt31994.kt") + public void testKt31994() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt"); + } + @Test @TestMetadata("kt32793.kt") public void testKt32793() throws Exception { @@ -18032,12 +18104,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/kt44141.kt"); } + @Test + @TestMetadata("kt44701_jvmOverloads.kt") + public void testKt44701_jvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt"); + } + @Test @TestMetadata("kt44867.kt") public void testKt44867() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt"); } + @Test + @TestMetadata("kt44978.kt") + public void testKt44978() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt"); + } + @Test @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { @@ -24348,6 +24432,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/localClasses/kt4174.kt"); } + @Test + @TestMetadata("kt45383.kt") + public void testKt45383() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt45383.kt"); + } + @Test @TestMetadata("localClass.kt") public void testLocalClass() throws Exception { @@ -34633,6 +34723,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/reflection/enclosing/kt11969.kt"); } + @Test + @TestMetadata("kt45907.kt") + public void testKt45907() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/kt45907.kt"); + } + @Test @TestMetadata("kt6368.kt") public void testKt6368() throws Exception { @@ -41282,6 +41378,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/when/kt43242.kt"); } + @Test + @TestMetadata("kt45081.kt") + public void testKt45081() throws Exception { + runTest("compiler/testData/codegen/box/when/kt45081.kt"); + } + @Test @TestMetadata("kt5307.kt") public void testKt5307() throws Exception { 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 e58203d76d6..9257d26acce 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 @@ -298,6 +298,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test + @TestMetadata("kt41174.kt") + public void testKt41174() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt"); + } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { @@ -2902,6 +2908,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test + @TestMetadata("kt9304.kt") + public void testKt9304() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt"); + } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { @@ -3660,6 +3672,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test + @TestMetadata("kt28234.kt") + public void testKt28234() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt"); + } + @Test @TestMetadata("kt35511.kt") public void testKt35511() 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 9470fe0531e..9c8aa8cf509 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 @@ -298,6 +298,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test + @TestMetadata("kt41174.kt") + public void testKt41174() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt"); + } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { @@ -2902,6 +2908,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test + @TestMetadata("kt9304.kt") + public void testKt9304() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt"); + } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { @@ -3660,6 +3672,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test + @TestMetadata("kt28234.kt") + public void testKt28234() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt"); + } + @Test @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java index 0bb70cb495a..01c3ad614f2 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java @@ -840,6 +840,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/arrays/kt33.kt"); } + @Test + @TestMetadata("kt34291_16dimensions.kt") + public void testKt34291_16dimensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt"); + } + @Test @TestMetadata("kt3771.kt") public void testKt3771() throws Exception { @@ -6161,6 +6167,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") @TestDataPath("$PROJECT_ROOT") public class CompileKotlinAgainstKotlin { + @Test + @TestMetadata("adaptedSuspendFunctionReference.kt") + public void testAdaptedSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt"); + } + @Test public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); @@ -6653,6 +6665,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt"); } + @Test + @TestMetadata("funInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt"); + } + @Test @TestMetadata("inlineClassFakeOverrideMangling.kt") public void testInlineClassFakeOverrideMangling() throws Exception { @@ -9024,6 +9042,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/kt15930.kt"); } + @Test + @TestMetadata("kt21080.kt") + public void testKt21080() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt21080.kt"); + } + @Test @TestMetadata("kt21605.kt") public void testKt21605() throws Exception { @@ -9066,6 +9090,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt38099.kt") + public void testKt38099() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() throws Exception { @@ -9090,6 +9120,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/kt44710.kt"); } + @Test + @TestMetadata("kt44781.kt") + public void testKt44781() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt44781.kt"); + } + @Test @TestMetadata("kt45377.kt") public void testKt45377() throws Exception { @@ -9830,6 +9866,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function") @TestDataPath("$PROJECT_ROOT") public class Function { + @Test + @TestMetadata("adapted.kt") + public void testAdapted() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt"); + } + @Test public void testAllFilesPresentInFunction() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); @@ -13466,6 +13508,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/delegation/inDataClass.kt"); } + @Test + @TestMetadata("kt30102_comparable.kt") + public void testKt30102_comparable() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt"); + } + @Test @TestMetadata("kt8154.kt") public void testKt8154() throws Exception { @@ -13798,6 +13846,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt"); } + @Test + @TestMetadata("recursiveCallInInlineLambda.kt") + public void testRecursiveCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt"); + } + + @Test + @TestMetadata("recursiveCallInInlineLambdaWithCapture.kt") + public void testRecursiveCallInInlineLambdaWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt"); + } + @Test @TestMetadata("recursiveCallInLambda.kt") public void testRecursiveCallInLambda() throws Exception { @@ -15512,6 +15572,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/funInterface/kt44827_funInterface.kt"); } + @Test + @TestMetadata("kt45444_privateFunInterface.kt") + public void testKt45444_privateFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() throws Exception { @@ -18002,6 +18068,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt"); } + @Test + @TestMetadata("kt31994.kt") + public void testKt31994() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt"); + } + @Test @TestMetadata("kt32793.kt") public void testKt32793() throws Exception { @@ -18056,12 +18128,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/kt44141.kt"); } + @Test + @TestMetadata("kt44701_jvmOverloads.kt") + public void testKt44701_jvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt"); + } + @Test @TestMetadata("kt44867.kt") public void testKt44867() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt"); } + @Test + @TestMetadata("kt44978.kt") + public void testKt44978() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt"); + } + @Test @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { @@ -24372,6 +24456,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/localClasses/kt4174.kt"); } + @Test + @TestMetadata("kt45383.kt") + public void testKt45383() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt45383.kt"); + } + @Test @TestMetadata("localClass.kt") public void testLocalClass() throws Exception { @@ -34657,6 +34747,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/reflection/enclosing/kt11969.kt"); } + @Test + @TestMetadata("kt45907.kt") + public void testKt45907() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/kt45907.kt"); + } + @Test @TestMetadata("kt6368.kt") public void testKt6368() throws Exception { @@ -41306,6 +41402,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/when/kt43242.kt"); } + @Test + @TestMetadata("kt45081.kt") + public void testKt45081() throws Exception { + runTest("compiler/testData/codegen/box/when/kt45081.kt"); + } + @Test @TestMetadata("kt5307.kt") public void testKt5307() 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 9fb6095ddf9..debaba7eb19 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 @@ -298,6 +298,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test + @TestMetadata("kt41174.kt") + public void testKt41174() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt"); + } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { @@ -2902,6 +2908,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test + @TestMetadata("kt9304.kt") + public void testKt9304() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt"); + } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { @@ -3660,6 +3672,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test + @TestMetadata("kt28234.kt") + public void testKt28234() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt"); + } + @Test @TestMetadata("kt35511.kt") public void testKt35511() 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 55e41322306..30617a6f480 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 @@ -298,6 +298,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test + @TestMetadata("kt41174.kt") + public void testKt41174() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt"); + } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { @@ -2902,6 +2908,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test + @TestMetadata("kt9304.kt") + public void testKt9304() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt"); + } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { @@ -3660,6 +3672,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test + @TestMetadata("kt28234.kt") + public void testKt28234() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt"); + } + @Test @TestMetadata("kt35511.kt") public void testKt35511() 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 e42ec5e9820..776ffb98c12 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 @@ -298,6 +298,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test + @TestMetadata("kt41174.kt") + public void testKt41174() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt"); + } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { @@ -2902,6 +2908,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test + @TestMetadata("kt9304.kt") + public void testKt9304() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt"); + } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { @@ -3660,6 +3672,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test + @TestMetadata("kt28234.kt") + public void testKt28234() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt"); + } + @Test @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxTestGenerated.java index 1f306923ef5..be25d4b8f73 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxTestGenerated.java @@ -20,6 +20,12 @@ import java.util.regex.Pattern; @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") @TestDataPath("$PROJECT_ROOT") public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxTest { + @Test + @TestMetadata("adaptedSuspendFunctionReference.kt") + public void testAdaptedSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt"); + } + @Test public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); @@ -512,6 +518,12 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt"); } + @Test + @TestMetadata("funInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt"); + } + @Test @TestMetadata("inlineClassFakeOverrideMangling.kt") public void testInlineClassFakeOverrideMangling() 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 6f7e9d3cc2b..77750fa7d8d 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 @@ -298,6 +298,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test + @TestMetadata("kt41174.kt") + public void testKt41174() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt"); + } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { @@ -2902,6 +2908,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test + @TestMetadata("kt9304.kt") + public void testKt9304() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt"); + } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { @@ -3660,6 +3672,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test + @TestMetadata("kt28234.kt") + public void testKt28234() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt"); + } + @Test @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxTestGenerated.java index d66a3486685..0f34d2bf945 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxTestGenerated.java @@ -20,6 +20,12 @@ import java.util.regex.Pattern; @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") @TestDataPath("$PROJECT_ROOT") public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxTest { + @Test + @TestMetadata("adaptedSuspendFunctionReference.kt") + public void testAdaptedSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt"); + } + @Test public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); @@ -512,6 +518,12 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt"); } + @Test + @TestMetadata("funInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt"); + } + @Test @TestMetadata("inlineClassFakeOverrideMangling.kt") public void testInlineClassFakeOverrideMangling() throws Exception { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index 58008671fe7..929206eac11 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -737,6 +737,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/arrays/kt33.kt"); } + @TestMetadata("kt34291_16dimensions.kt") + public void testKt34291_16dimensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt"); + } + @TestMetadata("kt3771.kt") public void testKt3771() throws Exception { runTest("compiler/testData/codegen/box/arrays/kt3771.kt"); @@ -6766,11 +6771,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Coroutines extends AbstractLightAnalysisModeTest { + @TestMetadata("kt21080.kt") + public void ignoreKt21080() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt21080.kt"); + } + @TestMetadata("kt24135.kt") public void ignoreKt24135() throws Exception { runTest("compiler/testData/codegen/box/coroutines/kt24135.kt"); } + @TestMetadata("kt38099.kt") + public void ignoreKt38099() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -7099,6 +7114,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/coroutines/kt44710.kt"); } + @TestMetadata("kt44781.kt") + public void testKt44781() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt44781.kt"); + } + @TestMetadata("kt45377.kt") public void testKt45377() throws Exception { runTest("compiler/testData/codegen/box/coroutines/kt45377.kt"); @@ -7744,6 +7764,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Function extends AbstractLightAnalysisModeTest { + @TestMetadata("adapted.kt") + public void ignoreAdapted() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -10906,6 +10931,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Delegation extends AbstractLightAnalysisModeTest { + @TestMetadata("kt30102_comparable.kt") + public void ignoreKt30102_comparable() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -11185,6 +11215,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class TailRecursion extends AbstractLightAnalysisModeTest { + @TestMetadata("recursiveCallInInlineLambda.kt") + public void ignoreRecursiveCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt"); + } + + @TestMetadata("recursiveCallInInlineLambdaWithCapture.kt") + public void ignoreRecursiveCallInInlineLambdaWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -12693,6 +12733,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class FunInterface extends AbstractLightAnalysisModeTest { + @TestMetadata("kt45444_privateFunInterface.kt") + public void ignoreKt45444_privateFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -14314,16 +14359,31 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt"); } + @TestMetadata("kt31994.kt") + public void ignoreKt31994() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt"); + } + @TestMetadata("kt32793.kt") public void ignoreKt32793() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt"); } + @TestMetadata("kt44701_jvmOverloads.kt") + public void ignoreKt44701_jvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt"); + } + @TestMetadata("kt44867.kt") public void ignoreKt44867() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt"); } + @TestMetadata("kt44978.kt") + public void ignoreKt44978() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt"); + } + @TestMetadata("kt45991.kt") public void ignoreKt45991() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt"); @@ -20468,6 +20528,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt"); } + @TestMetadata("kt45383.kt") + public void ignoreKt45383() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt45383.kt"); + } + @TestMetadata("subclassingExtensionReceiverClass.kt") public void ignoreSubclassingExtensionReceiverClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/subclassingExtensionReceiverClass.kt"); @@ -27330,6 +27395,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Enclosing extends AbstractLightAnalysisModeTest { + @TestMetadata("kt45907.kt") + public void ignoreKt45907() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/kt45907.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -33221,6 +33291,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/when/kt43242.kt"); } + @TestMetadata("kt45081.kt") + public void testKt45081() throws Exception { + runTest("compiler/testData/codegen/box/when/kt45081.kt"); + } + @TestMetadata("kt5307.kt") public void testKt5307() throws Exception { runTest("compiler/testData/codegen/box/when/kt5307.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java index cd4a5ff8c64..5f00014e315 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java @@ -417,6 +417,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/arrays/kt33.kt"); } + @TestMetadata("kt34291_16dimensions.kt") + public void testKt34291_16dimensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt"); + } + @TestMetadata("kt3771.kt") public void testKt3771() throws Exception { runTest("compiler/testData/codegen/box/arrays/kt3771.kt"); @@ -4206,6 +4211,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); } + @TestMetadata("adaptedSuspendFunctionReference.kt") + public void testAdaptedSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt"); + } + public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @@ -4430,6 +4440,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt"); } + @TestMetadata("funInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt"); + } + @TestMetadata("inlineClassFakeOverrideMangling.kt") public void testInlineClassFakeOverrideMangling() throws Exception { runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/inlineClassFakeOverrideMangling.kt"); @@ -6288,6 +6303,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/coroutines/kt15930.kt"); } + @TestMetadata("kt21080.kt") + public void testKt21080() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt21080.kt"); + } + @TestMetadata("kt21605.kt") public void testKt21605() throws Exception { runTest("compiler/testData/codegen/box/coroutines/kt21605.kt"); @@ -6343,6 +6363,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/coroutines/kt44710.kt"); } + @TestMetadata("kt44781.kt") + public void testKt44781() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt44781.kt"); + } + @TestMetadata("kt45377.kt") public void testKt45377() throws Exception { runTest("compiler/testData/codegen/box/coroutines/kt45377.kt"); @@ -6922,6 +6947,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); } + @TestMetadata("adapted.kt") + public void testAdapted() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt"); + } + public void testAllFilesPresentInFunction() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @@ -9803,6 +9833,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/delegation/inDataClass.kt"); } + @TestMetadata("kt30102_comparable.kt") + public void testKt30102_comparable() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt"); + } + @TestMetadata("kt8154.kt") public void testKt8154() throws Exception { runTest("compiler/testData/codegen/box/delegation/kt8154.kt"); @@ -10092,6 +10127,16 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt"); } + @TestMetadata("recursiveCallInInlineLambda.kt") + public void testRecursiveCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt"); + } + + @TestMetadata("recursiveCallInInlineLambdaWithCapture.kt") + public void testRecursiveCallInInlineLambdaWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt"); + } + @TestMetadata("recursiveCallInLambda.kt") public void testRecursiveCallInLambda() throws Exception { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLambda.kt"); @@ -11275,6 +11320,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/funInterface/irrelevantPrivateDeclarations.kt"); } + @TestMetadata("kt45444_privateFunInterface.kt") + public void testKt45444_privateFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt"); + } + @TestMetadata("multimodule.kt") public void testMultimodule() throws Exception { runTest("compiler/testData/codegen/box/funInterface/multimodule.kt"); @@ -13086,6 +13136,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/inlineClasses/kt28585.kt"); } + @TestMetadata("kt31994.kt") + public void testKt31994() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt"); + } + @TestMetadata("kt32793.kt") public void testKt32793() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt"); @@ -13136,6 +13191,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt"); } + @TestMetadata("kt44978.kt") + public void testKt44978() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt"); + } + @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt"); @@ -16090,6 +16150,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/localClasses/kt4174.kt"); } + @TestMetadata("kt45383.kt") + public void testKt45383() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt45383.kt"); + } + @TestMetadata("localClass.kt") public void testLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/localClass.kt"); @@ -27881,6 +27946,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/when/kt2466.kt"); } + @TestMetadata("kt45081.kt") + public void testKt45081() throws Exception { + runTest("compiler/testData/codegen/box/when/kt45081.kt"); + } + @TestMetadata("kt5307.kt") public void testKt5307() throws Exception { runTest("compiler/testData/codegen/box/when/kt5307.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenInlineES6TestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenInlineES6TestGenerated.java index 41bff6fe402..b9bfda999ad 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenInlineES6TestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenInlineES6TestGenerated.java @@ -2342,6 +2342,11 @@ public class IrJsCodegenInlineES6TestGenerated extends AbstractIrJsCodegenInline runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @TestMetadata("kt9304.kt") + public void testKt9304() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt"); + } + @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); @@ -2995,6 +3000,11 @@ public class IrJsCodegenInlineES6TestGenerated extends AbstractIrJsCodegenInline runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @TestMetadata("kt28234.kt") + public void testKt28234() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt"); + } + @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java index f3cec2965ac..11315fb4f69 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java @@ -417,6 +417,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/arrays/kt33.kt"); } + @TestMetadata("kt34291_16dimensions.kt") + public void testKt34291_16dimensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt"); + } + @TestMetadata("kt3771.kt") public void testKt3771() throws Exception { runTest("compiler/testData/codegen/box/arrays/kt3771.kt"); @@ -5709,6 +5714,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/kt15930.kt"); } + @TestMetadata("kt21080.kt") + public void testKt21080() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt21080.kt"); + } + @TestMetadata("kt21605.kt") public void testKt21605() throws Exception { runTest("compiler/testData/codegen/box/coroutines/kt21605.kt"); @@ -5764,6 +5774,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/kt44710.kt"); } + @TestMetadata("kt44781.kt") + public void testKt44781() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt44781.kt"); + } + @TestMetadata("kt45377.kt") public void testKt45377() throws Exception { runTest("compiler/testData/codegen/box/coroutines/kt45377.kt"); @@ -6343,6 +6358,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath); } + @TestMetadata("adapted.kt") + public void testAdapted() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt"); + } + public void testAllFilesPresentInFunction() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } @@ -9224,6 +9244,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/delegation/inDataClass.kt"); } + @TestMetadata("kt30102_comparable.kt") + public void testKt30102_comparable() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt"); + } + @TestMetadata("kt8154.kt") public void testKt8154() throws Exception { runTest("compiler/testData/codegen/box/delegation/kt8154.kt"); @@ -9513,6 +9538,16 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt"); } + @TestMetadata("recursiveCallInInlineLambda.kt") + public void testRecursiveCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt"); + } + + @TestMetadata("recursiveCallInInlineLambdaWithCapture.kt") + public void testRecursiveCallInInlineLambdaWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt"); + } + @TestMetadata("recursiveCallInLambda.kt") public void testRecursiveCallInLambda() throws Exception { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLambda.kt"); @@ -10696,6 +10731,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/funInterface/irrelevantPrivateDeclarations.kt"); } + @TestMetadata("kt45444_privateFunInterface.kt") + public void testKt45444_privateFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt"); + } + @TestMetadata("multimodule.kt") public void testMultimodule() throws Exception { runTest("compiler/testData/codegen/box/funInterface/multimodule.kt"); @@ -12507,6 +12547,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt28585.kt"); } + @TestMetadata("kt31994.kt") + public void testKt31994() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt"); + } + @TestMetadata("kt32793.kt") public void testKt32793() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt"); @@ -12557,6 +12602,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt"); } + @TestMetadata("kt44978.kt") + public void testKt44978() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt"); + } + @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt"); @@ -15511,6 +15561,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/localClasses/kt4174.kt"); } + @TestMetadata("kt45383.kt") + public void testKt45383() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt45383.kt"); + } + @TestMetadata("localClass.kt") public void testLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/localClass.kt"); @@ -27302,6 +27357,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/when/kt2466.kt"); } + @TestMetadata("kt45081.kt") + public void testKt45081() throws Exception { + runTest("compiler/testData/codegen/box/when/kt45081.kt"); + } + @TestMetadata("kt5307.kt") public void testKt5307() throws Exception { runTest("compiler/testData/codegen/box/when/kt5307.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenInlineTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenInlineTestGenerated.java index 5d7d9b55532..66e18f2427e 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenInlineTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenInlineTestGenerated.java @@ -2342,6 +2342,11 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @TestMetadata("kt9304.kt") + public void testKt9304() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt"); + } + @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); @@ -2995,6 +3000,11 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @TestMetadata("kt28234.kt") + public void testKt28234() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt"); + } + @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java index 98ebb160863..e7cb3c24ce8 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java @@ -417,6 +417,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/arrays/kt33.kt"); } + @TestMetadata("kt34291_16dimensions.kt") + public void testKt34291_16dimensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt"); + } + @TestMetadata("kt3771.kt") public void testKt3771() throws Exception { runTest("compiler/testData/codegen/box/arrays/kt3771.kt"); @@ -5709,6 +5714,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/kt15930.kt"); } + @TestMetadata("kt21080.kt") + public void testKt21080() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt21080.kt"); + } + @TestMetadata("kt21605.kt") public void testKt21605() throws Exception { runTest("compiler/testData/codegen/box/coroutines/kt21605.kt"); @@ -5764,6 +5774,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/kt44710.kt"); } + @TestMetadata("kt44781.kt") + public void testKt44781() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt44781.kt"); + } + @TestMetadata("kt45377.kt") public void testKt45377() throws Exception { runTest("compiler/testData/codegen/box/coroutines/kt45377.kt"); @@ -6343,6 +6358,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath); } + @TestMetadata("adapted.kt") + public void testAdapted() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt"); + } + public void testAllFilesPresentInFunction() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true); } @@ -9224,6 +9244,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/delegation/inDataClass.kt"); } + @TestMetadata("kt30102_comparable.kt") + public void testKt30102_comparable() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt"); + } + @TestMetadata("kt8154.kt") public void testKt8154() throws Exception { runTest("compiler/testData/codegen/box/delegation/kt8154.kt"); @@ -9513,6 +9538,16 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt"); } + @TestMetadata("recursiveCallInInlineLambda.kt") + public void testRecursiveCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt"); + } + + @TestMetadata("recursiveCallInInlineLambdaWithCapture.kt") + public void testRecursiveCallInInlineLambdaWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt"); + } + @TestMetadata("recursiveCallInLambda.kt") public void testRecursiveCallInLambda() throws Exception { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLambda.kt"); @@ -10696,6 +10731,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/funInterface/irrelevantPrivateDeclarations.kt"); } + @TestMetadata("kt45444_privateFunInterface.kt") + public void testKt45444_privateFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt"); + } + @TestMetadata("multimodule.kt") public void testMultimodule() throws Exception { runTest("compiler/testData/codegen/box/funInterface/multimodule.kt"); @@ -12572,6 +12612,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt28585.kt"); } + @TestMetadata("kt31994.kt") + public void testKt31994() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt"); + } + @TestMetadata("kt32793.kt") public void testKt32793() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt"); @@ -12622,6 +12667,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt"); } + @TestMetadata("kt44978.kt") + public void testKt44978() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt"); + } + @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt"); @@ -15576,6 +15626,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/localClasses/kt4174.kt"); } + @TestMetadata("kt45383.kt") + public void testKt45383() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt45383.kt"); + } + @TestMetadata("localClass.kt") public void testLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/localClass.kt"); @@ -27262,6 +27317,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/when/kt2466.kt"); } + @TestMetadata("kt45081.kt") + public void testKt45081() throws Exception { + runTest("compiler/testData/codegen/box/when/kt45081.kt"); + } + @TestMetadata("kt5307.kt") public void testKt5307() throws Exception { runTest("compiler/testData/codegen/box/when/kt5307.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenInlineTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenInlineTestGenerated.java index 9e8111be9fa..7766e495cba 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenInlineTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenInlineTestGenerated.java @@ -2342,6 +2342,11 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @TestMetadata("kt9304.kt") + public void testKt9304() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt"); + } + @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); @@ -2995,6 +3000,11 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest { runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @TestMetadata("kt28234.kt") + public void testKt28234() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt"); + } + @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsLegacyPrimitiveArraysBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsLegacyPrimitiveArraysBoxTestGenerated.java index ff31df04891..4fc313a8706 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsLegacyPrimitiveArraysBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsLegacyPrimitiveArraysBoxTestGenerated.java @@ -240,6 +240,11 @@ public class JsLegacyPrimitiveArraysBoxTestGenerated extends AbstractJsLegacyPri runTest("compiler/testData/codegen/box/arrays/kt33.kt"); } + @TestMetadata("kt34291_16dimensions.kt") + public void testKt34291_16dimensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt"); + } + @TestMetadata("kt3771.kt") public void testKt3771() throws Exception { runTest("compiler/testData/codegen/box/arrays/kt3771.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java index 3b063cb3c03..f85cce07f75 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java @@ -367,6 +367,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/arrays/kt238.kt"); } + @TestMetadata("kt34291_16dimensions.kt") + public void testKt34291_16dimensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt"); + } + @TestMetadata("kt3771.kt") public void testKt3771() throws Exception { runTest("compiler/testData/codegen/box/arrays/kt3771.kt"); @@ -4312,6 +4317,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/delegation/inDataClass.kt"); } + @TestMetadata("kt30102_comparable.kt") + public void testKt30102_comparable() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt"); + } + @TestMetadata("kt8154.kt") public void testKt8154() throws Exception { runTest("compiler/testData/codegen/box/delegation/kt8154.kt"); @@ -4546,6 +4556,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realIteratorFoldl.kt"); } + @TestMetadata("recursiveCallInInlineLambda.kt") + public void testRecursiveCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt"); + } + + @TestMetadata("recursiveCallInInlineLambdaWithCapture.kt") + public void testRecursiveCallInInlineLambdaWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt"); + } + @TestMetadata("recursiveInnerFunction.kt") public void testRecursiveInnerFunction() throws Exception { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveInnerFunction.kt"); @@ -6797,6 +6817,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt"); } + @TestMetadata("kt31994.kt") + public void testKt31994() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt"); + } + @TestMetadata("kt33119.kt") public void testKt33119() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt"); @@ -6842,6 +6867,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt"); } + @TestMetadata("kt44978.kt") + public void testKt44978() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt"); + } + @TestMetadata("kt45991.kt") public void testKt45991() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt"); @@ -9376,6 +9406,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/localClasses/kt4174.kt"); } + @TestMetadata("kt45383.kt") + public void testKt45383() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt45383.kt"); + } + @TestMetadata("localClass.kt") public void testLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/localClass.kt"); @@ -15415,6 +15450,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/when/kt2466.kt"); } + @TestMetadata("kt45081.kt") + public void testKt45081() throws Exception { + runTest("compiler/testData/codegen/box/when/kt45081.kt"); + } + @TestMetadata("kt5307.kt") public void testKt5307() throws Exception { runTest("compiler/testData/codegen/box/when/kt5307.kt");