From d5372521f150555c0557a1f66dae58136087fc8a Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 31 Aug 2021 16:32:07 +0200 Subject: [PATCH] Add tests for obsolete issues #KT-12126 #KT-12189 #KT-23628 #KT-24209 #KT-34338 #KT-47279 #KT-48498 --- .../FirBlackBoxCodegenTestGenerated.java | 24 ++++++++++++++++++ ...FirBlackBoxInlineCodegenTestGenerated.java | 12 +++++++++ .../codegen/FirBytecodeTextTestGenerated.java | 6 +++++ .../testData/codegen/box/elvis/kt24209.kt | 14 +++++++++++ .../kt12189_noClashOnDifferentCase.kt | 13 ++++++++++ .../box/parametersMetadata/jvmOverloads.kt | 22 ++++++++++++++++ .../codegen/box/regressions/kt47279.kt | 8 ++++++ .../boxInline/delegatedProperty/kt48498.kt | 18 +++++++++++++ .../codegen/boxInline/innerClasses/kt12126.kt | 25 +++++++++++++++++++ .../dontGenerateOnNullableString.kt | 12 +++++++++ .../codegen/BlackBoxCodegenTestGenerated.java | 24 ++++++++++++++++++ .../BlackBoxInlineCodegenTestGenerated.java | 12 +++++++++ .../codegen/BytecodeTextTestGenerated.java | 6 +++++ ...otlinAgainstInlineKotlinTestGenerated.java | 12 +++++++++ .../IrBlackBoxCodegenTestGenerated.java | 24 ++++++++++++++++++ .../IrBlackBoxInlineCodegenTestGenerated.java | 12 +++++++++ .../codegen/IrBytecodeTextTestGenerated.java | 6 +++++ ...otlinAgainstInlineKotlinTestGenerated.java | 12 +++++++++ ...otlinAgainstInlineKotlinTestGenerated.java | 12 +++++++++ ...JvmIrAgainstOldBoxInlineTestGenerated.java | 12 +++++++++ ...JvmOldAgainstIrBoxInlineTestGenerated.java | 12 +++++++++ .../LightAnalysisModeTestGenerated.java | 20 +++++++++++++++ .../js/test/JsCodegenBoxTestGenerated.java | 12 +++++++++ .../js/test/JsCodegenInlineTestGenerated.java | 12 +++++++++ .../test/ir/IrJsCodegenBoxTestGenerated.java | 12 +++++++++ .../ir/IrJsCodegenInlineTestGenerated.java | 12 +++++++++ .../IrCodegenBoxWasmTestGenerated.java | 10 ++++++++ .../blackboxtest/ExternalTestGenerated.java | 24 ++++++++++++++++++ 28 files changed, 400 insertions(+) create mode 100644 compiler/testData/codegen/box/elvis/kt24209.kt create mode 100644 compiler/testData/codegen/box/jvmField/kt12189_noClashOnDifferentCase.kt create mode 100644 compiler/testData/codegen/box/parametersMetadata/jvmOverloads.kt create mode 100644 compiler/testData/codegen/box/regressions/kt47279.kt create mode 100644 compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt create mode 100644 compiler/testData/codegen/boxInline/innerClasses/kt12126.kt create mode 100644 compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableString.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 9976583ec2d..16abd1c2146 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 @@ -15419,6 +15419,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/elvis/genericNull.kt"); } + @Test + @TestMetadata("kt24209.kt") + public void testKt24209() throws Exception { + runTest("compiler/testData/codegen/box/elvis/kt24209.kt"); + } + @Test @TestMetadata("kt6694ExactAnnotationForElvis.kt") public void testKt6694ExactAnnotationForElvis() throws Exception { @@ -28755,6 +28761,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/jvmField/interfaceCompanionWithJava.kt"); } + @Test + @TestMetadata("kt12189_noClashOnDifferentCase.kt") + public void testKt12189_noClashOnDifferentCase() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt12189_noClashOnDifferentCase.kt"); + } + @Test @TestMetadata("kt47328.kt") public void testKt47328() throws Exception { @@ -32271,6 +32283,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/parametersMetadata/innerClass.kt"); } + @Test + @TestMetadata("jvmOverloads.kt") + public void testJvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/jvmOverloads.kt"); + } + @Test @TestMetadata("superParams.kt") public void testSuperParams() throws Exception { @@ -43037,6 +43055,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/regressions/kt44993.kt"); } + @Test + @TestMetadata("kt47279.kt") + public void testKt47279() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt47279.kt"); + } + @Test @TestMetadata("kt5056.kt") public void testKt5056() 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 6915db22833..4ca08bb2796 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 @@ -2172,6 +2172,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { @@ -2643,6 +2649,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } } @Nested diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBytecodeTextTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBytecodeTextTestGenerated.java index e3f2347b5ec..426283a5e80 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBytecodeTextTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBytecodeTextTestGenerated.java @@ -4942,6 +4942,12 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest { runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableArray.kt"); } + @Test + @TestMetadata("dontGenerateOnNullableString.kt") + public void testDontGenerateOnNullableString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableString.kt"); + } + @Test @TestMetadata("dontGenerateOnVarargsString.kt") public void testDontGenerateOnVarargsString() throws Exception { diff --git a/compiler/testData/codegen/box/elvis/kt24209.kt b/compiler/testData/codegen/box/elvis/kt24209.kt new file mode 100644 index 00000000000..cad3e2d27f2 --- /dev/null +++ b/compiler/testData/codegen/box/elvis/kt24209.kt @@ -0,0 +1,14 @@ +// IGNORE_BACKEND: JVM + +interface Interface + +operator fun Interface.invoke(): String = "OK" + +class Class : Interface + +object Holder { + val value = Class() +} + +fun box(): String = + Holder?.value()!! diff --git a/compiler/testData/codegen/box/jvmField/kt12189_noClashOnDifferentCase.kt b/compiler/testData/codegen/box/jvmField/kt12189_noClashOnDifferentCase.kt new file mode 100644 index 00000000000..6b5bbbf91ab --- /dev/null +++ b/compiler/testData/codegen/box/jvmField/kt12189_noClashOnDifferentCase.kt @@ -0,0 +1,13 @@ +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// WITH_STDLIB + +abstract class Base { + @JvmField val name: String = "O" + @JvmField val Name: String = "K" +} + +class Derived : Base() + +fun box(): String = + Derived().name + Derived().Name diff --git a/compiler/testData/codegen/box/parametersMetadata/jvmOverloads.kt b/compiler/testData/codegen/box/parametersMetadata/jvmOverloads.kt new file mode 100644 index 00000000000..df04c25c1e6 --- /dev/null +++ b/compiler/testData/codegen/box/parametersMetadata/jvmOverloads.kt @@ -0,0 +1,22 @@ +// SKIP_JDK6 +// TARGET_BACKEND: JVM +// IGNORE_BACKEND: JVM +// WITH_STDLIB +// FULL_JDK +// PARAMETERS_METADATA +// KT-23628 + +class A @JvmOverloads constructor(x: String, y: Int = 42) { + @JvmOverloads + fun f(a: Long, b: Char = 'b') {} +} + +fun box(): String { + val ctor = A::class.java.getDeclaredConstructor(String::class.java).parameters.toList() + if (ctor.toString() != "[java.lang.String x]") return "Fail constructor: $ctor" + + val method = A::class.java.getDeclaredMethod("f", Long::class.java).parameters.toList() + if (method.toString() != "[long a]") return "Fail method: $method" + + return "OK" +} diff --git a/compiler/testData/codegen/box/regressions/kt47279.kt b/compiler/testData/codegen/box/regressions/kt47279.kt new file mode 100644 index 00000000000..18f1c656c9f --- /dev/null +++ b/compiler/testData/codegen/box/regressions/kt47279.kt @@ -0,0 +1,8 @@ +fun test() { + null?.run { return } +} + +fun box(): String { + test() + return "OK" +} diff --git a/compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt b/compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt new file mode 100644 index 00000000000..ee801c9a74f --- /dev/null +++ b/compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt @@ -0,0 +1,18 @@ +// FILE: 1.kt + +package x + +operator fun String.provideDelegate(thisRef: Any?, prop: Any?) = this + +operator fun String.getValue(thisRef: Any?, prop: Any?) = this + +inline fun foo(): String { + val x by "OK" + return x +} + +// FILE: 2.kt + +import x.* + +fun box(): String = foo() diff --git a/compiler/testData/codegen/boxInline/innerClasses/kt12126.kt b/compiler/testData/codegen/boxInline/innerClasses/kt12126.kt new file mode 100644 index 00000000000..aec5d0eec7c --- /dev/null +++ b/compiler/testData/codegen/boxInline/innerClasses/kt12126.kt @@ -0,0 +1,25 @@ +// IGNORE_BACKEND: JVM +// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_IR_AGAINST_OLD +// FILE: a.kt + +package test + +open class A { + val v = "OK" + + open inner class AA { + protected inline fun inAA(crossinline modifier: (String) -> String): String = modifier(v) + } +} + +// FILE: b.kt + +import test.* + +class B : A() { + inner class BB : AA() { + fun test(): String = inAA { i -> i } + } +} + +fun box(): String = B().BB().test() diff --git a/compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableString.kt b/compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableString.kt new file mode 100644 index 00000000000..c311e0eb8b7 --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableString.kt @@ -0,0 +1,12 @@ +// IGNORE_BACKEND: JVM +// KT-34338 + +fun main() { + +} + +fun main(args: Array) { + +} + +// 0 INVOKESTATIC DontGenerateOnNullableArrayKt\.main ()V 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 be02d56262a..33b242dffcf 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 @@ -15305,6 +15305,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/elvis/genericNull.kt"); } + @Test + @TestMetadata("kt24209.kt") + public void testKt24209() throws Exception { + runTest("compiler/testData/codegen/box/elvis/kt24209.kt"); + } + @Test @TestMetadata("kt6694ExactAnnotationForElvis.kt") public void testKt6694ExactAnnotationForElvis() throws Exception { @@ -26001,6 +26007,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/jvmField/interfaceCompanionWithJava.kt"); } + @Test + @TestMetadata("kt12189_noClashOnDifferentCase.kt") + public void testKt12189_noClashOnDifferentCase() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt12189_noClashOnDifferentCase.kt"); + } + @Test @TestMetadata("kt47328.kt") public void testKt47328() throws Exception { @@ -29517,6 +29529,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/parametersMetadata/innerClass.kt"); } + @Test + @TestMetadata("jvmOverloads.kt") + public void testJvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/jvmOverloads.kt"); + } + @Test @TestMetadata("superParams.kt") public void testSuperParams() throws Exception { @@ -40253,6 +40271,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/regressions/kt44993.kt"); } + @Test + @TestMetadata("kt47279.kt") + public void testKt47279() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt47279.kt"); + } + @Test @TestMetadata("kt5056.kt") public void testKt5056() 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 3da66dcd972..c9ec532b54e 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 @@ -2172,6 +2172,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { @@ -2643,6 +2649,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } } @Nested diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BytecodeTextTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BytecodeTextTestGenerated.java index fe80ec3f5eb..445c56a72de 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BytecodeTextTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BytecodeTextTestGenerated.java @@ -4792,6 +4792,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest { runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableArray.kt"); } + @Test + @TestMetadata("dontGenerateOnNullableString.kt") + public void testDontGenerateOnNullableString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableString.kt"); + } + @Test @TestMetadata("dontGenerateOnVarargsString.kt") public void testDontGenerateOnVarargsString() 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 9969503938f..557eef9f661 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 @@ -2172,6 +2172,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { @@ -2643,6 +2649,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } } @Nested 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 c28d7292e32..3c2a30acec8 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 @@ -15419,6 +15419,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/elvis/genericNull.kt"); } + @Test + @TestMetadata("kt24209.kt") + public void testKt24209() throws Exception { + runTest("compiler/testData/codegen/box/elvis/kt24209.kt"); + } + @Test @TestMetadata("kt6694ExactAnnotationForElvis.kt") public void testKt6694ExactAnnotationForElvis() throws Exception { @@ -28755,6 +28761,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/jvmField/interfaceCompanionWithJava.kt"); } + @Test + @TestMetadata("kt12189_noClashOnDifferentCase.kt") + public void testKt12189_noClashOnDifferentCase() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt12189_noClashOnDifferentCase.kt"); + } + @Test @TestMetadata("kt47328.kt") public void testKt47328() throws Exception { @@ -32271,6 +32283,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/parametersMetadata/innerClass.kt"); } + @Test + @TestMetadata("jvmOverloads.kt") + public void testJvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/jvmOverloads.kt"); + } + @Test @TestMetadata("superParams.kt") public void testSuperParams() throws Exception { @@ -43037,6 +43055,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/regressions/kt44993.kt"); } + @Test + @TestMetadata("kt47279.kt") + public void testKt47279() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt47279.kt"); + } + @Test @TestMetadata("kt5056.kt") public void testKt5056() 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 0597f082adf..81f9e51945e 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 @@ -2172,6 +2172,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { @@ -2643,6 +2649,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } } @Nested diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeTextTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeTextTestGenerated.java index beed2f9f0cc..ec576d1e830 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeTextTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeTextTestGenerated.java @@ -4942,6 +4942,12 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest { runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableArray.kt"); } + @Test + @TestMetadata("dontGenerateOnNullableString.kt") + public void testDontGenerateOnNullableString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableString.kt"); + } + @Test @TestMetadata("dontGenerateOnVarargsString.kt") public void testDontGenerateOnVarargsString() 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 d81d6b15413..3eb9ac8be61 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 @@ -2172,6 +2172,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { @@ -2643,6 +2649,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } } @Nested diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java index 9a19fb162d0..b4bf5659640 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java @@ -2172,6 +2172,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { @@ -2643,6 +2649,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } } @Nested 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 32fe0bdb6fa..fa22f9756a8 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 @@ -2172,6 +2172,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { @@ -2643,6 +2649,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } } @Nested 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 a8a60582497..decf086e675 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 @@ -2172,6 +2172,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { @@ -2643,6 +2649,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } } @Nested diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index b61525c5e95..cae07b58b7f 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -12552,6 +12552,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Elvis extends AbstractLightAnalysisModeTest { + @TestMetadata("kt24209.kt") + public void ignoreKt24209() throws Exception { + runTest("compiler/testData/codegen/box/elvis/kt24209.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -21961,6 +21966,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class JvmField extends AbstractLightAnalysisModeTest { + @TestMetadata("kt12189_noClashOnDifferentCase.kt") + public void ignoreKt12189_noClashOnDifferentCase() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt12189_noClashOnDifferentCase.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -25141,6 +25151,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class ParametersMetadata extends AbstractLightAnalysisModeTest { + @TestMetadata("jvmOverloads.kt") + public void ignoreJvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/jvmOverloads.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -32367,6 +32382,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/regressions/kt44993.kt"); } + @TestMetadata("kt47279.kt") + public void testKt47279() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt47279.kt"); + } + @TestMetadata("kt5056.kt") public void testKt5056() throws Exception { runTest("compiler/testData/codegen/box/regressions/kt5056.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 9d11d013445..faeec50fb47 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 @@ -11857,6 +11857,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/elvis/genericNull.kt"); } + @Test + @TestMetadata("kt24209.kt") + public void testKt24209() throws Exception { + runTest("compiler/testData/codegen/box/elvis/kt24209.kt"); + } + @Test @TestMetadata("kt6694ExactAnnotationForElvis.kt") public void testKt6694ExactAnnotationForElvis() throws Exception { @@ -29443,6 +29449,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/regressions/kt4281.kt"); } + @Test + @TestMetadata("kt47279.kt") + public void testKt47279() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt47279.kt"); + } + @Test @TestMetadata("kt5056.kt") public void testKt5056() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java index 9974cdf6212..f794d9e613b 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java @@ -1944,6 +1944,12 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest { runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { @@ -2349,6 +2355,12 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest { public void testInnerInlineFunCapturesOuterWithInlineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/innerInlineFunCapturesOuterWithInlineClass.kt"); } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } } @Nested 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 9bb86a225d8..30d12923169 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 @@ -11899,6 +11899,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/elvis/genericNull.kt"); } + @Test + @TestMetadata("kt24209.kt") + public void testKt24209() throws Exception { + runTest("compiler/testData/codegen/box/elvis/kt24209.kt"); + } + @Test @TestMetadata("kt6694ExactAnnotationForElvis.kt") public void testKt6694ExactAnnotationForElvis() throws Exception { @@ -29545,6 +29551,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/regressions/kt4281.kt"); } + @Test + @TestMetadata("kt47279.kt") + public void testKt47279() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt47279.kt"); + } + @Test @TestMetadata("kt5056.kt") public void testKt5056() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java index f6fb1fb5088..294019d34e3 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java @@ -1944,6 +1944,12 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { @@ -2349,6 +2355,12 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes public void testInnerInlineFunCapturesOuterWithInlineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/innerInlineFunCapturesOuterWithInlineClass.kt"); } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } } @Nested 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 4cc1df82c1f..d7bbb21e4fc 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 @@ -9852,6 +9852,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/elvis/genericNull.kt"); } + @TestMetadata("kt24209.kt") + public void testKt24209() throws Exception { + runTest("compiler/testData/codegen/box/elvis/kt24209.kt"); + } + @TestMetadata("kt6694ExactAnnotationForElvis.kt") public void testKt6694ExactAnnotationForElvis() throws Exception { runTest("compiler/testData/codegen/box/elvis/kt6694ExactAnnotationForElvis.kt"); @@ -24561,6 +24566,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/regressions/kt4281.kt"); } + @TestMetadata("kt47279.kt") + public void testKt47279() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt47279.kt"); + } + @TestMetadata("kt5056.kt") public void testKt5056() throws Exception { runTest("compiler/testData/codegen/box/regressions/kt5056.kt"); diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/ExternalTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/ExternalTestGenerated.java index 4068656e86f..6ff999c7eff 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/ExternalTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/ExternalTestGenerated.java @@ -12835,6 +12835,12 @@ public class ExternalTestGenerated extends AbstractExternalNativeBlackBoxTest { runTest("compiler/testData/codegen/box/elvis/genericNull.kt"); } + @Test + @TestMetadata("kt24209.kt") + public void testKt24209() throws Exception { + runTest("compiler/testData/codegen/box/elvis/kt24209.kt"); + } + @Test @TestMetadata("kt6694ExactAnnotationForElvis.kt") public void testKt6694ExactAnnotationForElvis() throws Exception { @@ -31774,6 +31780,12 @@ public class ExternalTestGenerated extends AbstractExternalNativeBlackBoxTest { runTest("compiler/testData/codegen/box/regressions/kt4281.kt"); } + @Test + @TestMetadata("kt47279.kt") + public void testKt47279() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt47279.kt"); + } + @Test @TestMetadata("kt5056.kt") public void testKt5056() throws Exception { @@ -37432,6 +37444,12 @@ public class ExternalTestGenerated extends AbstractExternalNativeBlackBoxTest { runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { @@ -37857,6 +37875,12 @@ public class ExternalTestGenerated extends AbstractExternalNativeBlackBoxTest { public void testInnerInlineFunCapturesOuterWithInlineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/innerInlineFunCapturesOuterWithInlineClass.kt"); } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } } @Nested