From 328853dffeb5afe1f7d316e39a12493798252d05 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Wed, 2 Mar 2022 00:34:21 +0100 Subject: [PATCH] Add tests for obsolete issues (Test for KT-37331 is added to multiplatform/defaultArguments/suspend.kt.) #KT-30080 #KT-33641 #KT-36237 #KT-36952 #KT-37331 #KT-38920 #KT-39256 #KT-42415 #KT-44636 #KT-45704 #KT-47084 #KT-47894 --- .../FirBlackBoxCodegenTestGenerated.java | 66 +++++++++++++++++++ .../bound/kt44636_localExtension.kt | 9 +++ .../kt47894_inlineFunWithObjectWithNothing.kt | 23 +++++++ .../kt45704_elvisInInlineFun.kt | 17 +++++ .../tailrec/kt38920_localTailrec.kt | 30 +++++++++ .../dataClasses/toString/primitiveArrays.kt | 29 ++++++++ .../kt47084_lambdaInDefaultArgument.kt | 9 +++ .../multiplatform/defaultArguments/suspend.kt | 5 +- ...dentityEqualsWithBooleanInLocalFunction.kt | 6 ++ .../kt42415_javaClassOfLongLiteral.kt | 7 ++ .../testData/codegen/box/reified/kt36237.kt | 10 +++ ...t39256_privateInlineWithAnonymousObject.kt | 13 ++++ .../kt33641_inlineClass.kt | 23 +++++++ .../codegen/BlackBoxCodegenTestGenerated.java | 66 +++++++++++++++++++ .../IrBlackBoxCodegenTestGenerated.java | 66 +++++++++++++++++++ .../LightAnalysisModeTestGenerated.java | 55 ++++++++++++++++ .../js/test/JsCodegenBoxTestGenerated.java | 60 +++++++++++++++++ .../test/ir/IrJsCodegenBoxTestGenerated.java | 60 +++++++++++++++++ .../IrCodegenBoxWasmTestGenerated.java | 50 ++++++++++++++ .../NativeCodegenBoxTestGenerated.java | 60 +++++++++++++++++ 20 files changed, 662 insertions(+), 2 deletions(-) create mode 100644 compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt create mode 100644 compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt create mode 100644 compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt create mode 100644 compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt create mode 100644 compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt create mode 100644 compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt create mode 100644 compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt create mode 100644 compiler/testData/codegen/box/primitiveTypes/kt42415_javaClassOfLongLiteral.kt create mode 100644 compiler/testData/codegen/box/reified/kt36237.kt create mode 100644 compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt create mode 100644 compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.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 854b9b98448..092d26c0566 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 @@ -3602,6 +3602,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/callableReference/bound/kt15446.kt"); } + @Test + @TestMetadata("kt44636_localExtension.kt") + public void testKt44636_localExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt"); + } + @Test @TestMetadata("localUnitFunction.kt") public void testLocalUnitFunction() throws Exception { @@ -6181,6 +6187,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/closures/kt47840.kt"); } + @Test + @TestMetadata("kt47894_inlineFunWithObjectWithNothing.kt") + public void testKt47894_inlineFunWithObjectWithNothing() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt"); + } + @Test @TestMetadata("kt5589.kt") public void testKt5589() throws Exception { @@ -8916,6 +8928,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt17384.kt"); } + @Test + @TestMetadata("kt45704_elvisInInlineFun.kt") + public void testKt45704_elvisInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt"); + } + @Test @TestMetadata("kt9022And.kt") public void testKt9022And() throws Exception { @@ -11115,6 +11133,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixRecursiveCall.kt"); } + @Test + @TestMetadata("kt38920_localTailrec.kt") + public void testKt38920_localTailrec() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt"); + } + @Test @TestMetadata("realIteratorFoldl.kt") public void testRealIteratorFoldl() throws Exception { @@ -13428,6 +13452,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/dataClasses/toString/mixedParams.kt"); } + @Test + @TestMetadata("primitiveArrays.kt") + public void testPrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt"); + } + @Test @TestMetadata("unitComponent.kt") public void testUnitComponent() throws Exception { @@ -15191,6 +15221,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/insideElvis.kt"); } + @Test + @TestMetadata("kt47084_lambdaInDefaultArgument.kt") + public void testKt47084_lambdaInDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt"); + } + @Test @TestMetadata("labeledThisReferences.kt") public void testLabeledThisReferences() throws Exception { @@ -33149,6 +33185,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt"); } + @Test + @TestMetadata("kt36952_identityEqualsWithBooleanInLocalFunction.kt") + public void testKt36952_identityEqualsWithBooleanInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt"); + } + @Test @TestMetadata("kt37505.kt") public void testKt37505() throws Exception { @@ -33173,6 +33215,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/primitiveTypes/kt4210.kt"); } + @Test + @TestMetadata("kt42415_javaClassOfLongLiteral.kt") + public void testKt42415_javaClassOfLongLiteral() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt42415_javaClassOfLongLiteral.kt"); + } + @Test @TestMetadata("kt4251.kt") public void testKt4251() throws Exception { @@ -43789,6 +43837,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/reified/kt16445.kt"); } + @Test + @TestMetadata("kt36237.kt") + public void testKt36237() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt36237.kt"); + } + + @Test + @TestMetadata("kt39256_privateInlineWithAnonymousObject.kt") + public void testKt39256_privateInlineWithAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt"); + } + @Test @TestMetadata("nestedReified.kt") public void testNestedReified() throws Exception { @@ -48688,6 +48748,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt"); } + @Test + @TestMetadata("kt33641_inlineClass.kt") + public void testKt33641_inlineClass() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt"); + } + @Test @TestMetadata("rangeCheckOnSubjectVariable.kt") public void testRangeCheckOnSubjectVariable() throws Exception { diff --git a/compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt b/compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt new file mode 100644 index 00000000000..42d2f8338c6 --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt @@ -0,0 +1,9 @@ +// IGNORE_BACKEND: JVM + +inline fun g(h: () -> String): String = h() + +fun box(): String { + val result = "OK" + fun Any.f(): String = result + return g("Fail"::f) +} diff --git a/compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt b/compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt new file mode 100644 index 00000000000..30b81946bcd --- /dev/null +++ b/compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt @@ -0,0 +1,23 @@ +interface Kla6 { + fun fu32() +} + +class Kla7 { + inline fun fu33(crossinline f: (Int) -> Any) = + object : Kla6 { + override fun fu32() { + f(1) + } + var ttmh: Int = throw RuntimeException() + }.fu32() + + inline fun fu34(crossinline f: (Int) -> Any) = + fu33 { f(1) } +} + +fun box(): String = try { + Kla7().fu34 {} + "Fail" +} catch (e: RuntimeException) { + "OK" +} diff --git a/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt b/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt new file mode 100644 index 00000000000..8aec957f7f8 --- /dev/null +++ b/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt @@ -0,0 +1,17 @@ +inline fun inlineCall(block: (CharSequence, CharSequence) -> Unit) { + for (i in 0..0) { + val s = "K".takeIf { true } + + block( + "O", + s ?: continue + ) + } +} + +fun box(): String { + inlineCall { a, b -> + return a.toString() + b + } + return "Fail" +} diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt new file mode 100644 index 00000000000..d96e01d6686 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt @@ -0,0 +1,30 @@ +// IGNORE_BACKEND: JVM +// WITH_STDLIB +// WITH_COROUTINES +// DONT_RUN_GENERATED_CODE: JS + +import helpers.* +import kotlin.coroutines.* + +var iterations = 0 + +fun builder(c: suspend () -> Unit) { + c.startCoroutine(EmptyContinuation) +} + +fun box(): String { + var result = "" + + tailrec suspend fun theLoop(value: Int, string: String) { + if (value == 2) return + result += string + if (++iterations > 2) error("Fail: too many iterations") + theLoop(value + 1, "b") + } + + builder { + theLoop(0, "a") + } + + return if (result == "ab") "OK" else "Fail $result" +} diff --git a/compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt b/compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt new file mode 100644 index 00000000000..64d8b1eb1d5 --- /dev/null +++ b/compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt @@ -0,0 +1,29 @@ +// IGNORE_BACKEND: JVM, JS, JS_IR +// KT-30080 + +data class A( + val z: BooleanArray, + var c: CharArray, + val b: ByteArray, + val s: ShortArray, + val i: IntArray, + val f: FloatArray, + val j: LongArray, + val d: DoubleArray, +) + +fun box(): String { + val a = A( + booleanArrayOf(true), + charArrayOf('a'), + byteArrayOf(1), + shortArrayOf(2), + intArrayOf(3), + floatArrayOf(4f), + longArrayOf(5), + doubleArrayOf(6.0), + ) + return if (a.toString() == "A(z=[true], c=[a], b=[1], s=[2], i=[3], f=[4.0], j=[5], d=[6.0])") + "OK" + else "Fail: $a" +} diff --git a/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt new file mode 100644 index 00000000000..a615010210c --- /dev/null +++ b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt @@ -0,0 +1,9 @@ +fun f(block: () -> Unit): String { + block() + return "OK" +} + +tailrec fun foo(a: String = run { f {} }): String = + if (a.length == 0) foo() else a + +fun box(): String = foo() diff --git a/compiler/testData/codegen/box/multiplatform/defaultArguments/suspend.kt b/compiler/testData/codegen/box/multiplatform/defaultArguments/suspend.kt index da36dfd4998..9918940645c 100644 --- a/compiler/testData/codegen/box/multiplatform/defaultArguments/suspend.kt +++ b/compiler/testData/codegen/box/multiplatform/defaultArguments/suspend.kt @@ -20,7 +20,8 @@ actual interface I { } class II : I { - override suspend fun f(p: Int): String = "OK" + override suspend fun f(p: Int): String = + if (p == 1) "OK" else "Fail: $p" } fun builder(c: suspend () -> Unit) { @@ -33,4 +34,4 @@ fun box(): String { res = II().f() } return res -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt b/compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt new file mode 100644 index 00000000000..0f92fc19cc5 --- /dev/null +++ b/compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt @@ -0,0 +1,6 @@ +// IGNORE_BACKEND: WASM + +fun box(): String { + fun a(a: Any) = a === 1.1 is Double + return if (a(true)) "OK" else "Fail" +} diff --git a/compiler/testData/codegen/box/primitiveTypes/kt42415_javaClassOfLongLiteral.kt b/compiler/testData/codegen/box/primitiveTypes/kt42415_javaClassOfLongLiteral.kt new file mode 100644 index 00000000000..3559e9e845b --- /dev/null +++ b/compiler/testData/codegen/box/primitiveTypes/kt42415_javaClassOfLongLiteral.kt @@ -0,0 +1,7 @@ +// TARGET_BACKEND: JVM +// WITH_STDLIB + +fun box(): String { + val a = 1.javaClass + return if (a == 2L.javaClass) "Fail" else "OK" +} diff --git a/compiler/testData/codegen/box/reified/kt36237.kt b/compiler/testData/codegen/box/reified/kt36237.kt new file mode 100644 index 00000000000..a386973b47d --- /dev/null +++ b/compiler/testData/codegen/box/reified/kt36237.kt @@ -0,0 +1,10 @@ +inline fun cast(value: Any): P = + cast0(value) + +inline fun cast0( + value: Any, + func: (Any) -> Z = { it as Z } +): Z = func(value) + +fun box(): String = + cast("OK") diff --git a/compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt b/compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt new file mode 100644 index 00000000000..21e3e11718d --- /dev/null +++ b/compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt @@ -0,0 +1,13 @@ +interface I +class C + +private inline fun C.f() = object : I { + val unused = T::class +} + +fun box(): String { + val t1 = C().f() + val t2 = C().f() + arrayOf(t1, t2) + return "OK" +} diff --git a/compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt b/compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt new file mode 100644 index 00000000000..bb22d91a477 --- /dev/null +++ b/compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt @@ -0,0 +1,23 @@ +// WITH_STDLIB + +fun box(): String { + val x = Result.success(42) + var y = 0 + when (x) { + Result.success(42) -> { + y++ + } + else -> { + y -= 10 + } + } + when (val z = Result.success(42)) { + Result.success(42) -> { + y++ + } + else -> { + y -= 100 + } + } + return if (y == 2) "OK" else "Fail $y" +} 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 4573b21fb20..a06a34609ea 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 @@ -3506,6 +3506,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/callableReference/bound/kt15446.kt"); } + @Test + @TestMetadata("kt44636_localExtension.kt") + public void testKt44636_localExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt"); + } + @Test @TestMetadata("localUnitFunction.kt") public void testLocalUnitFunction() throws Exception { @@ -6061,6 +6067,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/closures/kt47840.kt"); } + @Test + @TestMetadata("kt47894_inlineFunWithObjectWithNothing.kt") + public void testKt47894_inlineFunWithObjectWithNothing() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt"); + } + @Test @TestMetadata("kt5589.kt") public void testKt5589() throws Exception { @@ -8790,6 +8802,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt17384.kt"); } + @Test + @TestMetadata("kt45704_elvisInInlineFun.kt") + public void testKt45704_elvisInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt"); + } + @Test @TestMetadata("kt9022And.kt") public void testKt9022And() throws Exception { @@ -10989,6 +11007,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixRecursiveCall.kt"); } + @Test + @TestMetadata("kt38920_localTailrec.kt") + public void testKt38920_localTailrec() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt"); + } + @Test @TestMetadata("realIteratorFoldl.kt") public void testRealIteratorFoldl() throws Exception { @@ -13302,6 +13326,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/dataClasses/toString/mixedParams.kt"); } + @Test + @TestMetadata("primitiveArrays.kt") + public void testPrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt"); + } + @Test @TestMetadata("unitComponent.kt") public void testUnitComponent() throws Exception { @@ -15065,6 +15095,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/insideElvis.kt"); } + @Test + @TestMetadata("kt47084_lambdaInDefaultArgument.kt") + public void testKt47084_lambdaInDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt"); + } + @Test @TestMetadata("labeledThisReferences.kt") public void testLabeledThisReferences() throws Exception { @@ -32693,6 +32729,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt"); } + @Test + @TestMetadata("kt36952_identityEqualsWithBooleanInLocalFunction.kt") + public void testKt36952_identityEqualsWithBooleanInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt"); + } + @Test @TestMetadata("kt37505.kt") public void testKt37505() throws Exception { @@ -32717,6 +32759,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/primitiveTypes/kt4210.kt"); } + @Test + @TestMetadata("kt42415_javaClassOfLongLiteral.kt") + public void testKt42415_javaClassOfLongLiteral() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt42415_javaClassOfLongLiteral.kt"); + } + @Test @TestMetadata("kt4251.kt") public void testKt4251() throws Exception { @@ -43297,6 +43345,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/reified/kt16445.kt"); } + @Test + @TestMetadata("kt36237.kt") + public void testKt36237() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt36237.kt"); + } + + @Test + @TestMetadata("kt39256_privateInlineWithAnonymousObject.kt") + public void testKt39256_privateInlineWithAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt"); + } + @Test @TestMetadata("nestedReified.kt") public void testNestedReified() throws Exception { @@ -48136,6 +48196,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt"); } + @Test + @TestMetadata("kt33641_inlineClass.kt") + public void testKt33641_inlineClass() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt"); + } + @Test @TestMetadata("rangeCheckOnSubjectVariable.kt") public void testRangeCheckOnSubjectVariable() 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 eb74d31d565..51c0d2ebce0 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 @@ -3602,6 +3602,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/callableReference/bound/kt15446.kt"); } + @Test + @TestMetadata("kt44636_localExtension.kt") + public void testKt44636_localExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt"); + } + @Test @TestMetadata("localUnitFunction.kt") public void testLocalUnitFunction() throws Exception { @@ -6181,6 +6187,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/closures/kt47840.kt"); } + @Test + @TestMetadata("kt47894_inlineFunWithObjectWithNothing.kt") + public void testKt47894_inlineFunWithObjectWithNothing() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt"); + } + @Test @TestMetadata("kt5589.kt") public void testKt5589() throws Exception { @@ -8916,6 +8928,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt17384.kt"); } + @Test + @TestMetadata("kt45704_elvisInInlineFun.kt") + public void testKt45704_elvisInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt"); + } + @Test @TestMetadata("kt9022And.kt") public void testKt9022And() throws Exception { @@ -11115,6 +11133,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixRecursiveCall.kt"); } + @Test + @TestMetadata("kt38920_localTailrec.kt") + public void testKt38920_localTailrec() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt"); + } + @Test @TestMetadata("realIteratorFoldl.kt") public void testRealIteratorFoldl() throws Exception { @@ -13428,6 +13452,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/dataClasses/toString/mixedParams.kt"); } + @Test + @TestMetadata("primitiveArrays.kt") + public void testPrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt"); + } + @Test @TestMetadata("unitComponent.kt") public void testUnitComponent() throws Exception { @@ -15191,6 +15221,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/insideElvis.kt"); } + @Test + @TestMetadata("kt47084_lambdaInDefaultArgument.kt") + public void testKt47084_lambdaInDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt"); + } + @Test @TestMetadata("labeledThisReferences.kt") public void testLabeledThisReferences() throws Exception { @@ -33149,6 +33185,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt"); } + @Test + @TestMetadata("kt36952_identityEqualsWithBooleanInLocalFunction.kt") + public void testKt36952_identityEqualsWithBooleanInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt"); + } + @Test @TestMetadata("kt37505.kt") public void testKt37505() throws Exception { @@ -33173,6 +33215,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/primitiveTypes/kt4210.kt"); } + @Test + @TestMetadata("kt42415_javaClassOfLongLiteral.kt") + public void testKt42415_javaClassOfLongLiteral() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt42415_javaClassOfLongLiteral.kt"); + } + @Test @TestMetadata("kt4251.kt") public void testKt4251() throws Exception { @@ -43789,6 +43837,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/reified/kt16445.kt"); } + @Test + @TestMetadata("kt36237.kt") + public void testKt36237() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt36237.kt"); + } + + @Test + @TestMetadata("kt39256_privateInlineWithAnonymousObject.kt") + public void testKt39256_privateInlineWithAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt"); + } + @Test @TestMetadata("nestedReified.kt") public void testNestedReified() throws Exception { @@ -48688,6 +48748,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt"); } + @Test + @TestMetadata("kt33641_inlineClass.kt") + public void testKt33641_inlineClass() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt"); + } + @Test @TestMetadata("rangeCheckOnSubjectVariable.kt") public void testRangeCheckOnSubjectVariable() 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 ab032a39923..e9f0c9df81a 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -2963,6 +2963,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Bound extends AbstractLightAnalysisModeTest { + @TestMetadata("kt44636_localExtension.kt") + public void ignoreKt44636_localExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -5284,6 +5289,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/closures/kt47840.kt"); } + @TestMetadata("kt47894_inlineFunWithObjectWithNothing.kt") + public void testKt47894_inlineFunWithObjectWithNothing() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt"); + } + @TestMetadata("kt5589.kt") public void testKt5589() throws Exception { runTest("compiler/testData/codegen/box/closures/kt5589.kt"); @@ -6800,6 +6810,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt17384.kt"); } + @TestMetadata("kt45704_elvisInInlineFun.kt") + public void testKt45704_elvisInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt"); + } + @TestMetadata("kt9022And.kt") public void testKt9022And() throws Exception { runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt9022And.kt"); @@ -8702,6 +8717,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Tailrec extends AbstractLightAnalysisModeTest { + @TestMetadata("kt38920_localTailrec.kt") + public void ignoreKt38920_localTailrec() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -10760,6 +10780,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class ToString extends AbstractLightAnalysisModeTest { + @TestMetadata("primitiveArrays.kt") + public void ignorePrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -12380,6 +12405,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/insideElvis.kt"); } + @TestMetadata("kt47084_lambdaInDefaultArgument.kt") + public void testKt47084_lambdaInDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt"); + } + @TestMetadata("labeledThisReferences.kt") public void testLabeledThisReferences() throws Exception { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/labeledThisReferences.kt"); @@ -27868,6 +27898,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt"); } + @TestMetadata("kt36952_identityEqualsWithBooleanInLocalFunction.kt") + public void testKt36952_identityEqualsWithBooleanInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt"); + } + @TestMetadata("kt37505.kt") public void testKt37505() throws Exception { runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt"); @@ -27888,6 +27923,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/primitiveTypes/kt4210.kt"); } + @TestMetadata("kt42415_javaClassOfLongLiteral.kt") + public void testKt42415_javaClassOfLongLiteral() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt42415_javaClassOfLongLiteral.kt"); + } + @TestMetadata("kt4251.kt") public void testKt4251() throws Exception { runTest("compiler/testData/codegen/box/primitiveTypes/kt4251.kt"); @@ -34922,6 +34962,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/reified/kt16445.kt"); } + @TestMetadata("kt36237.kt") + public void testKt36237() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt36237.kt"); + } + + @TestMetadata("kt39256_privateInlineWithAnonymousObject.kt") + public void testKt39256_privateInlineWithAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt"); + } + @TestMetadata("nestedReified.kt") public void testNestedReified() throws Exception { runTest("compiler/testData/codegen/box/reified/nestedReified.kt"); @@ -39169,6 +39219,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt"); } + @TestMetadata("kt33641_inlineClass.kt") + public void testKt33641_inlineClass() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt"); + } + @TestMetadata("rangeCheckOnSubjectVariable.kt") public void testRangeCheckOnSubjectVariable() throws Exception { runTest("compiler/testData/codegen/box/when/whenSubjectVariable/rangeCheckOnSubjectVariable.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java index b5167531f35..cc1d3854811 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java @@ -2372,6 +2372,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/callableReference/bound/kt15446.kt"); } + @Test + @TestMetadata("kt44636_localExtension.kt") + public void testKt44636_localExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt"); + } + @Test @TestMetadata("multiCase.kt") public void testMultiCase() throws Exception { @@ -4627,6 +4633,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/closures/kt47840.kt"); } + @Test + @TestMetadata("kt47894_inlineFunWithObjectWithNothing.kt") + public void testKt47894_inlineFunWithObjectWithNothing() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt"); + } + @Test @TestMetadata("kt5589.kt") public void testKt5589() throws Exception { @@ -5996,6 +6008,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt17384.kt"); } + @Test + @TestMetadata("kt45704_elvisInInlineFun.kt") + public void testKt45704_elvisInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt"); + } + @Test @TestMetadata("kt9022And.kt") public void testKt9022And() throws Exception { @@ -7943,6 +7961,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixRecursiveCall.kt"); } + @Test + @TestMetadata("kt38920_localTailrec.kt") + public void testKt38920_localTailrec() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt"); + } + @Test @TestMetadata("realIteratorFoldl.kt") public void testRealIteratorFoldl() throws Exception { @@ -9980,6 +10004,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/dataClasses/toString/mixedParams.kt"); } + @Test + @TestMetadata("primitiveArrays.kt") + public void testPrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt"); + } + @Test @TestMetadata("unitComponent.kt") public void testUnitComponent() throws Exception { @@ -11575,6 +11605,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/insideElvis.kt"); } + @Test + @TestMetadata("kt47084_lambdaInDefaultArgument.kt") + public void testKt47084_lambdaInDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt"); + } + @Test @TestMetadata("labeledThisReferences.kt") public void testLabeledThisReferences() throws Exception { @@ -23845,6 +23881,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt"); } + @Test + @TestMetadata("kt36952_identityEqualsWithBooleanInLocalFunction.kt") + public void testKt36952_identityEqualsWithBooleanInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt"); + } + @Test @TestMetadata("kt37505.kt") public void testKt37505() throws Exception { @@ -31977,6 +32019,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/reified/kt16445.kt"); } + @Test + @TestMetadata("kt36237.kt") + public void testKt36237() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt36237.kt"); + } + + @Test + @TestMetadata("kt39256_privateInlineWithAnonymousObject.kt") + public void testKt39256_privateInlineWithAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt"); + } + @Test @TestMetadata("newArrayInt.kt") public void testNewArrayInt() throws Exception { @@ -35388,6 +35442,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt"); } + @Test + @TestMetadata("kt33641_inlineClass.kt") + public void testKt33641_inlineClass() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt"); + } + @Test @TestMetadata("rangeCheckOnSubjectVariable.kt") public void testRangeCheckOnSubjectVariable() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java index e1ef88dcea2..cdf7fdb4f78 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java @@ -2414,6 +2414,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/callableReference/bound/kt15446.kt"); } + @Test + @TestMetadata("kt44636_localExtension.kt") + public void testKt44636_localExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt"); + } + @Test @TestMetadata("multiCase.kt") public void testMultiCase() throws Exception { @@ -4669,6 +4675,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/closures/kt47840.kt"); } + @Test + @TestMetadata("kt47894_inlineFunWithObjectWithNothing.kt") + public void testKt47894_inlineFunWithObjectWithNothing() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt"); + } + @Test @TestMetadata("kt5589.kt") public void testKt5589() throws Exception { @@ -6038,6 +6050,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt17384.kt"); } + @Test + @TestMetadata("kt45704_elvisInInlineFun.kt") + public void testKt45704_elvisInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt"); + } + @Test @TestMetadata("kt9022And.kt") public void testKt9022And() throws Exception { @@ -7985,6 +8003,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixRecursiveCall.kt"); } + @Test + @TestMetadata("kt38920_localTailrec.kt") + public void testKt38920_localTailrec() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt"); + } + @Test @TestMetadata("realIteratorFoldl.kt") public void testRealIteratorFoldl() throws Exception { @@ -10022,6 +10046,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/dataClasses/toString/mixedParams.kt"); } + @Test + @TestMetadata("primitiveArrays.kt") + public void testPrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt"); + } + @Test @TestMetadata("unitComponent.kt") public void testUnitComponent() throws Exception { @@ -11617,6 +11647,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/insideElvis.kt"); } + @Test + @TestMetadata("kt47084_lambdaInDefaultArgument.kt") + public void testKt47084_lambdaInDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt"); + } + @Test @TestMetadata("labeledThisReferences.kt") public void testLabeledThisReferences() throws Exception { @@ -23809,6 +23845,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt"); } + @Test + @TestMetadata("kt36952_identityEqualsWithBooleanInLocalFunction.kt") + public void testKt36952_identityEqualsWithBooleanInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt"); + } + @Test @TestMetadata("kt37505.kt") public void testKt37505() throws Exception { @@ -32079,6 +32121,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/reified/kt16445.kt"); } + @Test + @TestMetadata("kt36237.kt") + public void testKt36237() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt36237.kt"); + } + + @Test + @TestMetadata("kt39256_privateInlineWithAnonymousObject.kt") + public void testKt39256_privateInlineWithAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt"); + } + @Test @TestMetadata("newArrayInt.kt") public void testNewArrayInt() throws Exception { @@ -35490,6 +35544,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt"); } + @Test + @TestMetadata("kt33641_inlineClass.kt") + public void testKt33641_inlineClass() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt"); + } + @Test @TestMetadata("rangeCheckOnSubjectVariable.kt") public void testRangeCheckOnSubjectVariable() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java index 8d07cdce495..538740f1374 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java @@ -2146,6 +2146,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/callableReference/bound/kt15446.kt"); } + @TestMetadata("kt44636_localExtension.kt") + public void testKt44636_localExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt"); + } + @TestMetadata("multiCase.kt") public void testMultiCase() throws Exception { runTest("compiler/testData/codegen/box/callableReference/bound/multiCase.kt"); @@ -4114,6 +4119,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/closures/kt47840.kt"); } + @TestMetadata("kt47894_inlineFunWithObjectWithNothing.kt") + public void testKt47894_inlineFunWithObjectWithNothing() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt"); + } + @TestMetadata("kt5589.kt") public void testKt5589() throws Exception { runTest("compiler/testData/codegen/box/closures/kt5589.kt"); @@ -5222,6 +5232,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt17384.kt"); } + @TestMetadata("kt45704_elvisInInlineFun.kt") + public void testKt45704_elvisInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt"); + } + @TestMetadata("kt9022And.kt") public void testKt9022And() throws Exception { runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt9022And.kt"); @@ -6947,6 +6962,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixRecursiveCall.kt"); } + @TestMetadata("kt38920_localTailrec.kt") + public void testKt38920_localTailrec() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt"); + } + @TestMetadata("realIteratorFoldl.kt") public void testRealIteratorFoldl() throws Exception { runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/realIteratorFoldl.kt"); @@ -8780,6 +8800,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/dataClasses/toString/mixedParams.kt"); } + @TestMetadata("primitiveArrays.kt") + public void testPrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt"); + } + @TestMetadata("unitComponent.kt") public void testUnitComponent() throws Exception { runTest("compiler/testData/codegen/box/dataClasses/toString/unitComponent.kt"); @@ -9612,6 +9637,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/insideElvis.kt"); } + @TestMetadata("kt47084_lambdaInDefaultArgument.kt") + public void testKt47084_lambdaInDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt"); + } + @TestMetadata("labeledThisReferences.kt") public void testLabeledThisReferences() throws Exception { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/labeledThisReferences.kt"); @@ -20467,6 +20497,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt"); } + @TestMetadata("kt36952_identityEqualsWithBooleanInLocalFunction.kt") + public void testKt36952_identityEqualsWithBooleanInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt"); + } + @TestMetadata("kt37505.kt") public void testKt37505() throws Exception { runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt"); @@ -26684,6 +26719,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/reified/kt16445.kt"); } + @TestMetadata("kt36237.kt") + public void testKt36237() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt36237.kt"); + } + + @TestMetadata("kt39256_privateInlineWithAnonymousObject.kt") + public void testKt39256_privateInlineWithAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt"); + } + @TestMetadata("newArrayInt.kt") public void testNewArrayInt() throws Exception { runTest("compiler/testData/codegen/box/reified/newArrayInt.kt"); @@ -29741,6 +29786,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt"); } + @TestMetadata("kt33641_inlineClass.kt") + public void testKt33641_inlineClass() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt"); + } + @TestMetadata("rangeCheckOnSubjectVariable.kt") public void testRangeCheckOnSubjectVariable() throws Exception { runTest("compiler/testData/codegen/box/when/whenSubjectVariable/rangeCheckOnSubjectVariable.kt"); diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java index 0cb63012f43..26cbeb8100a 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java @@ -2472,6 +2472,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/callableReference/bound/kt15446.kt"); } + @Test + @TestMetadata("kt44636_localExtension.kt") + public void testKt44636_localExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt"); + } + @Test @TestMetadata("multiCase.kt") public void testMultiCase() throws Exception { @@ -4765,6 +4771,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/closures/kt47840.kt"); } + @Test + @TestMetadata("kt47894_inlineFunWithObjectWithNothing.kt") + public void testKt47894_inlineFunWithObjectWithNothing() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt"); + } + @Test @TestMetadata("kt5589.kt") public void testKt5589() throws Exception { @@ -6834,6 +6846,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt17384.kt"); } + @Test + @TestMetadata("kt45704_elvisInInlineFun.kt") + public void testKt45704_elvisInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt"); + } + @Test @TestMetadata("kt9022And.kt") public void testKt9022And() throws Exception { @@ -8825,6 +8843,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixRecursiveCall.kt"); } + @Test + @TestMetadata("kt38920_localTailrec.kt") + public void testKt38920_localTailrec() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt"); + } + @Test @TestMetadata("realIteratorFoldl.kt") public void testRealIteratorFoldl() throws Exception { @@ -10920,6 +10944,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/dataClasses/toString/mixedParams.kt"); } + @Test + @TestMetadata("primitiveArrays.kt") + public void testPrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt"); + } + @Test @TestMetadata("unitComponent.kt") public void testUnitComponent() throws Exception { @@ -12557,6 +12587,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/insideElvis.kt"); } + @Test + @TestMetadata("kt47084_lambdaInDefaultArgument.kt") + public void testKt47084_lambdaInDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt"); + } + @Test @TestMetadata("labeledThisReferences.kt") public void testLabeledThisReferences() throws Exception { @@ -26572,6 +26608,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt"); } + @Test + @TestMetadata("kt36952_identityEqualsWithBooleanInLocalFunction.kt") + public void testKt36952_identityEqualsWithBooleanInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt"); + } + @Test @TestMetadata("kt37505.kt") public void testKt37505() throws Exception { @@ -35002,6 +35044,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/reified/kt16445.kt"); } + @Test + @TestMetadata("kt36237.kt") + public void testKt36237() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt36237.kt"); + } + + @Test + @TestMetadata("kt39256_privateInlineWithAnonymousObject.kt") + public void testKt39256_privateInlineWithAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt"); + } + @Test @TestMetadata("newArrayInt.kt") public void testNewArrayInt() throws Exception { @@ -38505,6 +38559,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt"); } + @Test + @TestMetadata("kt33641_inlineClass.kt") + public void testKt33641_inlineClass() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt"); + } + @Test @TestMetadata("rangeCheckOnSubjectVariable.kt") public void testRangeCheckOnSubjectVariable() throws Exception {