From 5c8d555808b80270eb354172a4a518d94832b5aa Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Fri, 22 Jan 2021 15:13:50 +0300 Subject: [PATCH] [Test] Move KotlinAgainstKotlin tests under BlackBoxCodegen tests --- .../FirBlackBoxCodegenTestGenerated.java | 874 ++++++++++++++++++ ...mpileKotlinAgainstKotlinTestGenerated.java | 794 ---------------- .../annotationInInterface.kt | 2 + .../annotationOnTypeUseInTypeAlias.kt | 2 + .../annotationsOnTypeAliases.kt | 3 + ...llDeserializedPropertyOnInlineClassType.kt | 2 + ...zedPropertyOnInlineClassTypeOldMangling.kt | 4 +- .../callsToMultifileClassFromOtherPackage.kt | 2 + .../clashingFakeOverrideSignatures.kt | 2 + .../classInObject.kt | 2 + .../companionObjectInEnum.kt | 2 + .../companionObjectMember.kt | 2 + ...onstPropertyReferenceFromMultifileClass.kt | 2 + .../constructorVararg.kt | 2 + ...lineClassParametersInBinaryDependencies.kt | 2 + ...rametersInBinaryDependenciesOldMangling.kt | 6 +- .../copySamOnInline.kt | 2 + .../copySamOnInline2.kt | 2 + .../coroutinesBinary.kt | 2 + .../defaultConstructor.kt | 2 + .../defaultLambdaRegeneration.kt | 2 + .../defaultLambdaRegeneration2.kt | 2 + .../defaultWithInlineClassAndReceivers.kt | 2 + ...tWithInlineClassAndReceiversOldMangling.kt | 4 +- .../delegatedDefault.kt | 2 + .../delegationAndAnnotations.kt | 3 + .../doublyNestedClass.kt | 2 + .../box}/compileKotlinAgainstKotlin/enum.kt | 2 + .../expectClassActualTypeAlias.kt | 3 + .../fakeOverridesForIntersectionTypes.kt | 2 + .../fir/AnonymousObjectInProperty.kt | 2 + .../fir/ExistingSymbolInFakeOverride.kt | 2 + .../fir/IncrementalCompilerRunner.kt | 2 + .../fir/IrConstAcceptMultiModule.kt | 3 + .../fir/LibraryProperty.kt | 2 + .../importCompanion.kt | 3 + .../inlineClassFakeOverrideMangling.kt | 2 + ...ineClassFakeOverrideManglingOldMangling.kt | 4 +- .../inlineClassFromBinaryDependencies.kt | 2 + ...eClassFromBinaryDependenciesOldMangling.kt | 7 +- .../inlineClassInlineFunctionCall.kt | 3 +- ...nlineClassInlineFunctionCallOldMangling.kt | 4 +- .../inlineClassInlineProperty.kt | 2 + .../inlineClassInlinePropertyOldMangling.kt | 4 +- .../inlineClassesOldMangling.kt | 4 + .../inlinedConstants.kt | 3 + .../innerClassConstructor.kt | 2 + ...interfaceDelegationAndBridgesProcessing.kt | 2 + .../internalSetterOverridden.kt | 2 + .../internalWithDefaultArgs.kt | 2 + .../internalWithInlineClass.kt | 2 + .../internalWithOtherModuleName.kt | 2 + .../intersectionOverrideProperies.kt | 2 + .../allCompatibility/callStackTrace.kt | 2 + .../allCompatibility/delegationBy/simple.kt | 2 + .../delegationBy/simpleProperty.kt | 2 + .../defaults/allCompatibility/superCall.kt | 2 + .../superCallFromInterface.kt | 2 + .../superCallFromInterface2.kt | 2 + .../allCompatibility/superPropAccess.kt | 2 + .../superPropAccessFromInterface.kt | 2 + .../superPropAccessFromInterface2.kt | 2 + .../jvm8/defaults/interop/likeMemberClash.kt | 1 + .../defaults/interop/likeSpecialization.kt | 1 + .../jvm8/defaults/interop/newAndOldSchemes.kt | 1 + .../defaults/interop/newAndOldSchemes2.kt | 1 + .../interop/newAndOldSchemes2Compatibility.kt | 1 + .../defaults/interop/newAndOldSchemes3.kt | 1 + .../interop/newSchemeWithJvmDefault.kt | 1 + .../jvm8/defaults/superCall.kt | 2 + .../jvm8/defaults/superCallFromInterface.kt | 2 + .../jvm8/defaults/superCallFromInterface2.kt | 2 + .../jvm8/defaults/superPropAccess.kt | 2 + .../defaults/superPropAccessFromInterface.kt | 2 + .../defaults/superPropAccessFromInterface2.kt | 2 + .../jvm8/jvm8against6/delegation/diamond.kt | 2 + .../jvm8/jvm8against6/delegation/diamond2.kt | 2 + .../jvm8/jvm8against6/delegation/diamond3.kt | 2 + .../jvm8/jvm8against6/jdk8Against6.kt | 2 + .../jvm8/jvm8against6/simpleCall.kt | 2 + .../simpleCallWithBigHierarchy.kt | 2 + .../jvm8against6/simpleCallWithHierarchy.kt | 2 + .../jvm8/jvm8against6/simpleProp.kt | 2 + .../jvm8against6/simplePropWithHierarchy.kt | 2 + .../compileKotlinAgainstKotlin/jvmField.kt | 2 + .../jvmFieldInAnnotationCompanion.kt | 5 +- .../jvmFieldInConstructor.kt | 2 + .../jvmFieldInInterfaceCompanion.kt | 5 +- .../compileKotlinAgainstKotlin/jvmNames.kt | 3 + .../jvmPackageName.kt | 3 + .../jvmPackageNameInRootPackage.kt | 3 + .../jvmPackageNameMultifileClass.kt | 3 + .../jvmPackageNameWithJvmName.kt | 3 + .../jvmStaticInObject.kt | 2 + .../jvmStaticInObjectPropertyReference.kt | 2 + .../kotlinPropertyAsAnnotationParameter.kt | 2 + .../compileKotlinAgainstKotlin/kt14012.kt | 2 + .../kt14012_multi.kt | 2 + .../compileKotlinAgainstKotlin/kt21775.kt | 5 +- ...dataForMembersInLocalClassInInitializer.kt | 2 + ...ileClassInlineFunctionAccessingProperty.kt | 2 + .../multifileClassWithTypealias.kt | 2 + .../compileKotlinAgainstKotlin/nestedClass.kt | 2 + .../nestedClassInAnnotationArgument.kt | 2 + .../compileKotlinAgainstKotlin/nestedEnum.kt | 2 + .../nestedFunctionTypeAliasExpansion.kt | 4 +- .../nestedObject.kt | 2 + .../nestedTypeAliasExpansion.kt | 4 +- ...plicitOverrideForDelegatedFromSupertype.kt | 2 + .../optionalAnnotation.kt | 3 + .../platformTypes.kt | 2 + ...vateCompanionObjectValInDifferentModule.kt | 2 + ...onObjectValInDifferentModuleOldMangling.kt | 4 +- .../privateTopLevelValInDifferentModule.kt | 2 + ...TopLevelValInDifferentModuleOldMangling.kt | 6 +- .../propertyReference.kt | 2 + .../recursiveGeneric.kt | 3 + .../reflectTopLevelFunctionOtherFile.kt | 3 + .../compileKotlinAgainstKotlin/sealedClass.kt | 2 + .../secondaryConstructors.kt | 2 + .../box}/compileKotlinAgainstKotlin/simple.kt | 2 + .../simpleValAnonymousObject.kt | 2 + .../specialBridgesInDependencies.kt | 2 + .../starImportEnum.kt | 2 + .../suspendFunWithDefaultMangling.kt | 4 + .../suspendFunWithDefaultOldMangling.kt | 8 +- .../targetedJvmName.kt | 2 + .../typeAliasesKt13181.kt | 2 + .../typeAnnotations/implicitReturn.kt | 3 + .../unsignedTypesInAnnotations.kt | 2 + .../useDeserializedFunInterface.kt | 2 + .../codegen/BlackBoxCodegenTestGenerated.java | 874 ++++++++++++++++++ .../IrBlackBoxCodegenTestGenerated.java | 874 ++++++++++++++++++ ...stractFirCompileKotlinAgainstKotlinTest.kt | 18 - .../jetbrains/kotlin/test/KotlinBaseTest.kt | 3 + .../generators/GenerateJUnit3CompilerTests.kt | 22 +- ...mpileKotlinAgainstKotlinTestGenerated.java | 793 ---------------- .../LightAnalysisModeTestGenerated.java | 2 +- ...mpileKotlinAgainstKotlinTestGenerated.java | 794 ---------------- .../ir/JvmIrAgainstOldBoxTestGenerated.java | 298 +++--- .../ir/JvmOldAgainstIrBoxTestGenerated.java | 298 +++--- .../generators/tests/GenerateJsTests.kt | 10 +- .../IrJsCodegenBoxES6TestGenerated.java | 515 +++++++++++ .../IrJsCodegenBoxErrorTestGenerated.java | 2 +- .../IrJsCodegenBoxTestGenerated.java | 2 +- .../semantics/JsCodegenBoxTestGenerated.java | 2 +- .../IrCodegenBoxWasmTestGenerated.java | 2 +- 147 files changed, 3749 insertions(+), 2743 deletions(-) delete mode 100644 compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/FirCompileKotlinAgainstKotlinTestGenerated.java rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/annotationInInterface.kt (92%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt (96%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt (90%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt (91%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt (92%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt (95%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/classInObject.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/companionObjectInEnum.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/companionObjectMember.kt (84%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt (91%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/constructorVararg.kt (78%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt (83%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt (77%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/copySamOnInline.kt (96%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/copySamOnInline2.kt (93%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/coroutinesBinary.kt (95%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/defaultConstructor.kt (76%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt (92%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt (93%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/delegatedDefault.kt (85%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/delegationAndAnnotations.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/doublyNestedClass.kt (84%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/enum.kt (84%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt (79%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt (93%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt (85%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt (95%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt (94%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt (97%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/fir/LibraryProperty.kt (91%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/importCompanion.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt (91%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt (95%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt (93%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt (81%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt (88%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt (85%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt (90%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/inlinedConstants.kt (93%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/innerClassConstructor.kt (90%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt (93%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/internalSetterOverridden.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/internalWithInlineClass.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt (95%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt (96%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt (94%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt (94%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt (90%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt (91%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt (91%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt (96%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt (96%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt (98%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt (96%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt (97%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt (98%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt (98%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt (90%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt (90%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt (92%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt (90%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt (90%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt (92%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt (93%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt (93%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt (93%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt (91%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt (88%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt (91%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt (90%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt (87%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt (90%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvmField.kt (92%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt (90%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt (92%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvmNames.kt (92%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvmPackageName.kt (84%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt (79%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt (81%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvmStaticInObject.kt (85%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt (97%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt (96%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/kt14012.kt (83%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/kt14012_multi.kt (87%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/kt21775.kt (95%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt (93%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/nestedClass.kt (79%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt (94%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/nestedEnum.kt (85%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt (87%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/nestedObject.kt (79%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/optionalAnnotation.kt (93%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/platformTypes.kt (95%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt (91%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt (92%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/propertyReference.kt (92%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/recursiveGeneric.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt (84%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/sealedClass.kt (95%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/secondaryConstructors.kt (95%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/simple.kt (82%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt (88%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/starImportEnum.kt (89%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt (85%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt (86%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/targetedJvmName.kt (85%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/typeAliasesKt13181.kt (88%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt (95%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt (94%) rename compiler/testData/{ => codegen/box}/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt (95%) delete mode 100644 compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractFirCompileKotlinAgainstKotlinTest.kt delete mode 100644 compiler/tests-gen/org/jetbrains/kotlin/codegen/CompileKotlinAgainstKotlinTestGenerated.java delete mode 100644 compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrCompileKotlinAgainstKotlinTestGenerated.java diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java index be48a63ee7a..860ed4e3bfe 100644 --- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java @@ -5949,6 +5949,880 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") + @TestDataPath("$PROJECT_ROOT") + public class CompileKotlinAgainstKotlin extends AbstractFirBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationInInterface.kt") + public void testAnnotationInInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationInInterface.kt"); + } + + @Test + @TestMetadata("annotationOnTypeUseInTypeAlias.kt") + public void testAnnotationOnTypeUseInTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt"); + } + + @Test + @TestMetadata("annotationsOnTypeAliases.kt") + public void testAnnotationsOnTypeAliases() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt"); + } + + @Test + @TestMetadata("callDeserializedPropertyOnInlineClassType.kt") + public void testCallDeserializedPropertyOnInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt"); + } + + @Test + @TestMetadata("callDeserializedPropertyOnInlineClassTypeOldMangling.kt") + public void testCallDeserializedPropertyOnInlineClassTypeOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt"); + } + + @Test + @TestMetadata("callsToMultifileClassFromOtherPackage.kt") + public void testCallsToMultifileClassFromOtherPackage() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt"); + } + + @Test + @TestMetadata("clashingFakeOverrideSignatures.kt") + public void testClashingFakeOverrideSignatures() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt"); + } + + @Test + @TestMetadata("classInObject.kt") + public void testClassInObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/classInObject.kt"); + } + + @Test + @TestMetadata("companionObjectInEnum.kt") + public void testCompanionObjectInEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectInEnum.kt"); + } + + @Test + @TestMetadata("companionObjectMember.kt") + public void testCompanionObjectMember() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectMember.kt"); + } + + @Test + @TestMetadata("constPropertyReferenceFromMultifileClass.kt") + public void testConstPropertyReferenceFromMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt"); + } + + @Test + @TestMetadata("constructorVararg.kt") + public void testConstructorVararg() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorVararg.kt"); + } + + @Test + @TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt") + public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt"); + } + + @Test + @TestMetadata("constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt") + public void testConstructorWithInlineClassParametersInBinaryDependenciesOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt"); + } + + @Test + @TestMetadata("copySamOnInline.kt") + public void testCopySamOnInline() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline.kt"); + } + + @Test + @TestMetadata("copySamOnInline2.kt") + public void testCopySamOnInline2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline2.kt"); + } + + @Test + @TestMetadata("coroutinesBinary.kt") + public void testCoroutinesBinary() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/coroutinesBinary.kt"); + } + + @Test + @TestMetadata("defaultConstructor.kt") + public void testDefaultConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultConstructor.kt"); + } + + @Test + @TestMetadata("defaultLambdaRegeneration.kt") + public void testDefaultLambdaRegeneration() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt"); + } + + @Test + @TestMetadata("defaultLambdaRegeneration2.kt") + public void testDefaultLambdaRegeneration2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt"); + } + + @Test + @TestMetadata("defaultWithInlineClassAndReceivers.kt") + public void testDefaultWithInlineClassAndReceivers() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt"); + } + + @Test + @TestMetadata("defaultWithInlineClassAndReceiversOldMangling.kt") + public void testDefaultWithInlineClassAndReceiversOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt"); + } + + @Test + @TestMetadata("delegatedDefault.kt") + public void testDelegatedDefault() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegatedDefault.kt"); + } + + @Test + @TestMetadata("delegationAndAnnotations.kt") + public void testDelegationAndAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegationAndAnnotations.kt"); + } + + @Test + @TestMetadata("doublyNestedClass.kt") + public void testDoublyNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/doublyNestedClass.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/enum.kt"); + } + + @Test + @TestMetadata("expectClassActualTypeAlias.kt") + public void testExpectClassActualTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt"); + } + + @Test + @TestMetadata("fakeOverridesForIntersectionTypes.kt") + public void testFakeOverridesForIntersectionTypes() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt"); + } + + @Test + @TestMetadata("importCompanion.kt") + public void testImportCompanion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/importCompanion.kt"); + } + + @Test + @TestMetadata("inlineClassFakeOverrideMangling.kt") + public void testInlineClassFakeOverrideMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt"); + } + + @Test + @TestMetadata("inlineClassFakeOverrideManglingOldMangling.kt") + public void testInlineClassFakeOverrideManglingOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassFromBinaryDependencies.kt") + public void testInlineClassFromBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt"); + } + + @Test + @TestMetadata("inlineClassFromBinaryDependenciesOldMangling.kt") + public void testInlineClassFromBinaryDependenciesOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassInlineFunctionCall.kt") + public void testInlineClassInlineFunctionCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt"); + } + + @Test + @TestMetadata("inlineClassInlineFunctionCallOldMangling.kt") + public void testInlineClassInlineFunctionCallOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassInlineProperty.kt") + public void testInlineClassInlineProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt"); + } + + @Test + @TestMetadata("inlineClassInlinePropertyOldMangling.kt") + public void testInlineClassInlinePropertyOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassesOldMangling.kt") + public void testInlineClassesOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt"); + } + + @Test + @TestMetadata("inlinedConstants.kt") + public void testInlinedConstants() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlinedConstants.kt"); + } + + @Test + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/innerClassConstructor.kt"); + } + + @Test + @TestMetadata("interfaceDelegationAndBridgesProcessing.kt") + public void testInterfaceDelegationAndBridgesProcessing() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt"); + } + + @Test + @TestMetadata("internalSetterOverridden.kt") + public void testInternalSetterOverridden() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt"); + } + + @Test + @TestMetadata("internalWithDefaultArgs.kt") + public void testInternalWithDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt"); + } + + @Test + @TestMetadata("internalWithInlineClass.kt") + public void testInternalWithInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithInlineClass.kt"); + } + + @Test + @TestMetadata("internalWithOtherModuleName.kt") + public void testInternalWithOtherModuleName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt"); + } + + @Test + @TestMetadata("intersectionOverrideProperies.kt") + public void testIntersectionOverrideProperies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt"); + } + + @Test + @TestMetadata("jvmField.kt") + public void testJvmField() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmField.kt"); + } + + @Test + @TestMetadata("jvmFieldInAnnotationCompanion.kt") + public void testJvmFieldInAnnotationCompanion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt"); + } + + @Test + @TestMetadata("jvmFieldInConstructor.kt") + public void testJvmFieldInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt"); + } + + @Test + @TestMetadata("jvmFieldInInterfaceCompanion.kt") + public void testJvmFieldInInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt"); + } + + @Test + @TestMetadata("jvmNames.kt") + public void testJvmNames() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt"); + } + + @Test + @TestMetadata("jvmPackageName.kt") + public void testJvmPackageName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageName.kt"); + } + + @Test + @TestMetadata("jvmPackageNameInRootPackage.kt") + public void testJvmPackageNameInRootPackage() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt"); + } + + @Test + @TestMetadata("jvmPackageNameMultifileClass.kt") + public void testJvmPackageNameMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt"); + } + + @Test + @TestMetadata("jvmPackageNameWithJvmName.kt") + public void testJvmPackageNameWithJvmName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt"); + } + + @Test + @TestMetadata("jvmStaticInObject.kt") + public void testJvmStaticInObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObject.kt"); + } + + @Test + @TestMetadata("jvmStaticInObjectPropertyReference.kt") + public void testJvmStaticInObjectPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt"); + } + + @Test + @TestMetadata("kotlinPropertyAsAnnotationParameter.kt") + public void testKotlinPropertyAsAnnotationParameter() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt"); + } + + @Test + @TestMetadata("kt14012.kt") + public void testKt14012() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt"); + } + + @Test + @TestMetadata("kt14012_multi.kt") + public void testKt14012_multi() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012_multi.kt"); + } + + @Test + @TestMetadata("kt21775.kt") + public void testKt21775() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt"); + } + + @Test + @TestMetadata("metadataForMembersInLocalClassInInitializer.kt") + public void testMetadataForMembersInLocalClassInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt"); + } + + @Test + @TestMetadata("multifileClassInlineFunctionAccessingProperty.kt") + public void testMultifileClassInlineFunctionAccessingProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt"); + } + + @Test + @TestMetadata("multifileClassWithTypealias.kt") + public void testMultifileClassWithTypealias() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt"); + } + + @Test + @TestMetadata("nestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClass.kt"); + } + + @Test + @TestMetadata("nestedClassInAnnotationArgument.kt") + public void testNestedClassInAnnotationArgument() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt"); + } + + @Test + @TestMetadata("nestedEnum.kt") + public void testNestedEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedEnum.kt"); + } + + @Test + @TestMetadata("nestedFunctionTypeAliasExpansion.kt") + public void testNestedFunctionTypeAliasExpansion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt"); + } + + @Test + @TestMetadata("nestedObject.kt") + public void testNestedObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedObject.kt"); + } + + @Test + @TestMetadata("nestedTypeAliasExpansion.kt") + public void testNestedTypeAliasExpansion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt"); + } + + @Test + @TestMetadata("noExplicitOverrideForDelegatedFromSupertype.kt") + public void testNoExplicitOverrideForDelegatedFromSupertype() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt"); + } + + @Test + @TestMetadata("optionalAnnotation.kt") + public void testOptionalAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/optionalAnnotation.kt"); + } + + @Test + @TestMetadata("platformTypes.kt") + public void testPlatformTypes() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/platformTypes.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectValInDifferentModule.kt") + public void testPrivateCompanionObjectValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectValInDifferentModuleOldMangling.kt") + public void testPrivateCompanionObjectValInDifferentModuleOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt"); + } + + @Test + @TestMetadata("privateTopLevelValInDifferentModule.kt") + public void testPrivateTopLevelValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt"); + } + + @Test + @TestMetadata("privateTopLevelValInDifferentModuleOldMangling.kt") + public void testPrivateTopLevelValInDifferentModuleOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt"); + } + + @Test + @TestMetadata("propertyReference.kt") + public void testPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/propertyReference.kt"); + } + + @Test + @TestMetadata("recursiveGeneric.kt") + public void testRecursiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/recursiveGeneric.kt"); + } + + @Test + @TestMetadata("reflectTopLevelFunctionOtherFile.kt") + public void testReflectTopLevelFunctionOtherFile() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt"); + } + + @Test + @TestMetadata("sealedClass.kt") + public void testSealedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/sealedClass.kt"); + } + + @Test + @TestMetadata("secondaryConstructors.kt") + public void testSecondaryConstructors() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/secondaryConstructors.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simple.kt"); + } + + @Test + @TestMetadata("simpleValAnonymousObject.kt") + public void testSimpleValAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt"); + } + + @Test + @TestMetadata("specialBridgesInDependencies.kt") + public void testSpecialBridgesInDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt"); + } + + @Test + @TestMetadata("starImportEnum.kt") + public void testStarImportEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/starImportEnum.kt"); + } + + @Test + @TestMetadata("suspendFunWithDefaultMangling.kt") + public void testSuspendFunWithDefaultMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt"); + } + + @Test + @TestMetadata("suspendFunWithDefaultOldMangling.kt") + public void testSuspendFunWithDefaultOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt"); + } + + @Test + @TestMetadata("targetedJvmName.kt") + public void testTargetedJvmName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt"); + } + + @Test + @TestMetadata("typeAliasesKt13181.kt") + public void testTypeAliasesKt13181() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAliasesKt13181.kt"); + } + + @Test + @TestMetadata("unsignedTypesInAnnotations.kt") + public void testUnsignedTypesInAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt"); + } + + @Test + @TestMetadata("useDeserializedFunInterface.kt") + public void testUseDeserializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir") + @TestDataPath("$PROJECT_ROOT") + public class Fir extends AbstractFirBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInFir() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("AnonymousObjectInProperty.kt") + public void testAnonymousObjectInProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt"); + } + + @Test + @TestMetadata("ExistingSymbolInFakeOverride.kt") + public void testExistingSymbolInFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt"); + } + + @Test + @TestMetadata("IncrementalCompilerRunner.kt") + public void testIncrementalCompilerRunner() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt"); + } + + @Test + @TestMetadata("IrConstAcceptMultiModule.kt") + public void testIrConstAcceptMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt"); + } + + @Test + @TestMetadata("LibraryProperty.kt") + public void testLibraryProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/LibraryProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8 extends AbstractFirBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInJvm8() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults") + @TestDataPath("$PROJECT_ROOT") + public class Defaults extends AbstractFirBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInDefaults() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt"); + } + + @Test + @TestMetadata("superCallFromInterface.kt") + public void testSuperCallFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt"); + } + + @Test + @TestMetadata("superCallFromInterface2.kt") + public void testSuperCallFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt"); + } + + @Test + @TestMetadata("superPropAccess.kt") + public void testSuperPropAccess() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface.kt") + public void testSuperPropAccessFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface2.kt") + public void testSuperPropAccessFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") + @TestDataPath("$PROJECT_ROOT") + public class AllCompatibility extends AbstractFirBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInAllCompatibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callStackTrace.kt") + public void testCallStackTrace() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt"); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt"); + } + + @Test + @TestMetadata("superCallFromInterface.kt") + public void testSuperCallFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt"); + } + + @Test + @TestMetadata("superCallFromInterface2.kt") + public void testSuperCallFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt"); + } + + @Test + @TestMetadata("superPropAccess.kt") + public void testSuperPropAccess() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface.kt") + public void testSuperPropAccessFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface2.kt") + public void testSuperPropAccessFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy") + @TestDataPath("$PROJECT_ROOT") + public class DelegationBy extends AbstractFirBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInDelegationBy() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt"); + } + + @Test + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop") + @TestDataPath("$PROJECT_ROOT") + public class Interop extends AbstractFirBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInInterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("likeMemberClash.kt") + public void testLikeMemberClash() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt"); + } + + @Test + @TestMetadata("likeSpecialization.kt") + public void testLikeSpecialization() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes.kt") + public void testNewAndOldSchemes() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes2.kt") + public void testNewAndOldSchemes2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes2Compatibility.kt") + public void testNewAndOldSchemes2Compatibility() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes3.kt") + public void testNewAndOldSchemes3() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt"); + } + + @Test + @TestMetadata("newSchemeWithJvmDefault.kt") + public void testNewSchemeWithJvmDefault() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8against6 extends AbstractFirBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInJvm8against6() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("jdk8Against6.kt") + public void testJdk8Against6() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt"); + } + + @Test + @TestMetadata("simpleCall.kt") + public void testSimpleCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt"); + } + + @Test + @TestMetadata("simpleCallWithBigHierarchy.kt") + public void testSimpleCallWithBigHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt"); + } + + @Test + @TestMetadata("simpleCallWithHierarchy.kt") + public void testSimpleCallWithHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt"); + } + + @Test + @TestMetadata("simpleProp.kt") + public void testSimpleProp() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt"); + } + + @Test + @TestMetadata("simplePropWithHierarchy.kt") + public void testSimplePropWithHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation") + @TestDataPath("$PROJECT_ROOT") + public class Delegation extends AbstractFirBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInDelegation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt"); + } + + @Test + @TestMetadata("diamond2.kt") + public void testDiamond2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt"); + } + + @Test + @TestMetadata("diamond3.kt") + public void testDiamond3() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations") + @TestDataPath("$PROJECT_ROOT") + public class TypeAnnotations extends AbstractFirBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInTypeAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("implicitReturn.kt") + public void testImplicitReturn() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt"); + } + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/constants") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/FirCompileKotlinAgainstKotlinTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/FirCompileKotlinAgainstKotlinTestGenerated.java deleted file mode 100644 index 78cb73d344c..00000000000 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/FirCompileKotlinAgainstKotlinTestGenerated.java +++ /dev/null @@ -1,794 +0,0 @@ -/* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.codegen; - -import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; -import org.jetbrains.kotlin.test.util.KtTestUtil; -import org.jetbrains.kotlin.test.TargetBackend; -import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; - -import java.io.File; -import java.util.regex.Pattern; - -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ -@SuppressWarnings("all") -@TestMetadata("compiler/testData/compileKotlinAgainstKotlin") -@TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) -public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - - public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("annotationInInterface.kt") - public void testAnnotationInInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt"); - } - - @TestMetadata("annotationOnTypeUseInTypeAlias.kt") - public void testAnnotationOnTypeUseInTypeAlias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt"); - } - - @TestMetadata("annotationsOnTypeAliases.kt") - public void testAnnotationsOnTypeAliases() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt"); - } - - @TestMetadata("callDeserializedPropertyOnInlineClassType.kt") - public void testCallDeserializedPropertyOnInlineClassType() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt"); - } - - @TestMetadata("callDeserializedPropertyOnInlineClassTypeOldMangling.kt") - public void testCallDeserializedPropertyOnInlineClassTypeOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt"); - } - - @TestMetadata("callsToMultifileClassFromOtherPackage.kt") - public void testCallsToMultifileClassFromOtherPackage() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt"); - } - - @TestMetadata("clashingFakeOverrideSignatures.kt") - public void testClashingFakeOverrideSignatures() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt"); - } - - @TestMetadata("classInObject.kt") - public void testClassInObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/classInObject.kt"); - } - - @TestMetadata("companionObjectInEnum.kt") - public void testCompanionObjectInEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt"); - } - - @TestMetadata("companionObjectMember.kt") - public void testCompanionObjectMember() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt"); - } - - @TestMetadata("constPropertyReferenceFromMultifileClass.kt") - public void testConstPropertyReferenceFromMultifileClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt"); - } - - @TestMetadata("constructorVararg.kt") - public void testConstructorVararg() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt"); - } - - @TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt") - public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt"); - } - - @TestMetadata("constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt") - public void testConstructorWithInlineClassParametersInBinaryDependenciesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt"); - } - - @TestMetadata("copySamOnInline.kt") - public void testCopySamOnInline() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt"); - } - - @TestMetadata("copySamOnInline2.kt") - public void testCopySamOnInline2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt"); - } - - @TestMetadata("coroutinesBinary.kt") - public void testCoroutinesBinary() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt"); - } - - @TestMetadata("defaultConstructor.kt") - public void testDefaultConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt"); - } - - @TestMetadata("defaultLambdaRegeneration.kt") - public void testDefaultLambdaRegeneration() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt"); - } - - @TestMetadata("defaultLambdaRegeneration2.kt") - public void testDefaultLambdaRegeneration2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt"); - } - - @TestMetadata("defaultWithInlineClassAndReceivers.kt") - public void testDefaultWithInlineClassAndReceivers() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt"); - } - - @TestMetadata("defaultWithInlineClassAndReceiversOldMangling.kt") - public void testDefaultWithInlineClassAndReceiversOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt"); - } - - @TestMetadata("delegatedDefault.kt") - public void testDelegatedDefault() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt"); - } - - @TestMetadata("delegationAndAnnotations.kt") - public void testDelegationAndAnnotations() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt"); - } - - @TestMetadata("doublyNestedClass.kt") - public void testDoublyNestedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt"); - } - - @TestMetadata("enum.kt") - public void testEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/enum.kt"); - } - - @TestMetadata("expectClassActualTypeAlias.kt") - public void testExpectClassActualTypeAlias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt"); - } - - @TestMetadata("fakeOverridesForIntersectionTypes.kt") - public void testFakeOverridesForIntersectionTypes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt"); - } - - @TestMetadata("importCompanion.kt") - public void testImportCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/importCompanion.kt"); - } - - @TestMetadata("inlineClassFakeOverrideMangling.kt") - public void testInlineClassFakeOverrideMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt"); - } - - @TestMetadata("inlineClassFakeOverrideManglingOldMangling.kt") - public void testInlineClassFakeOverrideManglingOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt"); - } - - @TestMetadata("inlineClassFromBinaryDependencies.kt") - public void testInlineClassFromBinaryDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt"); - } - - @TestMetadata("inlineClassFromBinaryDependenciesOldMangling.kt") - public void testInlineClassFromBinaryDependenciesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt"); - } - - @TestMetadata("inlineClassInlineFunctionCall.kt") - public void testInlineClassInlineFunctionCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt"); - } - - @TestMetadata("inlineClassInlineFunctionCallOldMangling.kt") - public void testInlineClassInlineFunctionCallOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt"); - } - - @TestMetadata("inlineClassInlineProperty.kt") - public void testInlineClassInlineProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt"); - } - - @TestMetadata("inlineClassInlinePropertyOldMangling.kt") - public void testInlineClassInlinePropertyOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt"); - } - - @TestMetadata("inlineClassesOldMangling.kt") - public void testInlineClassesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt"); - } - - @TestMetadata("inlinedConstants.kt") - public void testInlinedConstants() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt"); - } - - @TestMetadata("innerClassConstructor.kt") - public void testInnerClassConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt"); - } - - @TestMetadata("interfaceDelegationAndBridgesProcessing.kt") - public void testInterfaceDelegationAndBridgesProcessing() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt"); - } - - @TestMetadata("internalSetterOverridden.kt") - public void testInternalSetterOverridden() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt"); - } - - @TestMetadata("internalWithDefaultArgs.kt") - public void testInternalWithDefaultArgs() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt"); - } - - @TestMetadata("internalWithInlineClass.kt") - public void testInternalWithInlineClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithInlineClass.kt"); - } - - @TestMetadata("internalWithOtherModuleName.kt") - public void testInternalWithOtherModuleName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt"); - } - - @TestMetadata("intersectionOverrideProperies.kt") - public void testIntersectionOverrideProperies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt"); - } - - @TestMetadata("jvmField.kt") - public void testJvmField() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmField.kt"); - } - - @TestMetadata("jvmFieldInAnnotationCompanion.kt") - public void testJvmFieldInAnnotationCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt"); - } - - @TestMetadata("jvmFieldInConstructor.kt") - public void testJvmFieldInConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt"); - } - - @TestMetadata("jvmFieldInInterfaceCompanion.kt") - public void testJvmFieldInInterfaceCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt"); - } - - @TestMetadata("jvmNames.kt") - public void testJvmNames() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt"); - } - - @TestMetadata("jvmPackageName.kt") - public void testJvmPackageName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt"); - } - - @TestMetadata("jvmPackageNameInRootPackage.kt") - public void testJvmPackageNameInRootPackage() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt"); - } - - @TestMetadata("jvmPackageNameMultifileClass.kt") - public void testJvmPackageNameMultifileClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt"); - } - - @TestMetadata("jvmPackageNameWithJvmName.kt") - public void testJvmPackageNameWithJvmName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt"); - } - - @TestMetadata("jvmStaticInObject.kt") - public void testJvmStaticInObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt"); - } - - @TestMetadata("jvmStaticInObjectPropertyReference.kt") - public void testJvmStaticInObjectPropertyReference() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt"); - } - - @TestMetadata("kotlinPropertyAsAnnotationParameter.kt") - public void testKotlinPropertyAsAnnotationParameter() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt"); - } - - @TestMetadata("kt14012.kt") - public void testKt14012() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012.kt"); - } - - @TestMetadata("kt14012_multi.kt") - public void testKt14012_multi() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt"); - } - - @TestMetadata("kt21775.kt") - public void testKt21775() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt21775.kt"); - } - - @TestMetadata("metadataForMembersInLocalClassInInitializer.kt") - public void testMetadataForMembersInLocalClassInInitializer() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt"); - } - - @TestMetadata("multifileClassInlineFunctionAccessingProperty.kt") - public void testMultifileClassInlineFunctionAccessingProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt"); - } - - @TestMetadata("multifileClassWithTypealias.kt") - public void testMultifileClassWithTypealias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt"); - } - - @TestMetadata("nestedClass.kt") - public void testNestedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt"); - } - - @TestMetadata("nestedClassInAnnotationArgument.kt") - public void testNestedClassInAnnotationArgument() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt"); - } - - @TestMetadata("nestedEnum.kt") - public void testNestedEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt"); - } - - @TestMetadata("nestedFunctionTypeAliasExpansion.kt") - public void testNestedFunctionTypeAliasExpansion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt"); - } - - @TestMetadata("nestedObject.kt") - public void testNestedObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt"); - } - - @TestMetadata("nestedTypeAliasExpansion.kt") - public void testNestedTypeAliasExpansion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt"); - } - - @TestMetadata("noExplicitOverrideForDelegatedFromSupertype.kt") - public void testNoExplicitOverrideForDelegatedFromSupertype() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt"); - } - - @TestMetadata("optionalAnnotation.kt") - public void testOptionalAnnotation() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt"); - } - - @TestMetadata("platformTypes.kt") - public void testPlatformTypes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt"); - } - - @TestMetadata("privateCompanionObjectValInDifferentModule.kt") - public void testPrivateCompanionObjectValInDifferentModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt"); - } - - @TestMetadata("privateCompanionObjectValInDifferentModuleOldMangling.kt") - public void testPrivateCompanionObjectValInDifferentModuleOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt"); - } - - @TestMetadata("privateTopLevelValInDifferentModule.kt") - public void testPrivateTopLevelValInDifferentModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt"); - } - - @TestMetadata("privateTopLevelValInDifferentModuleOldMangling.kt") - public void testPrivateTopLevelValInDifferentModuleOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt"); - } - - @TestMetadata("propertyReference.kt") - public void testPropertyReference() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt"); - } - - @TestMetadata("recursiveGeneric.kt") - public void testRecursiveGeneric() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt"); - } - - @TestMetadata("reflectTopLevelFunctionOtherFile.kt") - public void testReflectTopLevelFunctionOtherFile() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt"); - } - - @TestMetadata("sealedClass.kt") - public void testSealedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt"); - } - - @TestMetadata("secondaryConstructors.kt") - public void testSecondaryConstructors() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/simple.kt"); - } - - @TestMetadata("simpleValAnonymousObject.kt") - public void testSimpleValAnonymousObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt"); - } - - @TestMetadata("specialBridgesInDependencies.kt") - public void testSpecialBridgesInDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt"); - } - - @TestMetadata("starImportEnum.kt") - public void testStarImportEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt"); - } - - @TestMetadata("suspendFunWithDefaultMangling.kt") - public void testSuspendFunWithDefaultMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt"); - } - - @TestMetadata("suspendFunWithDefaultOldMangling.kt") - public void testSuspendFunWithDefaultOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt"); - } - - @TestMetadata("targetedJvmName.kt") - public void testTargetedJvmName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt"); - } - - @TestMetadata("typeAliasesKt13181.kt") - public void testTypeAliasesKt13181() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt"); - } - - @TestMetadata("unsignedTypesInAnnotations.kt") - public void testUnsignedTypesInAnnotations() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt"); - } - - @TestMetadata("useDeserializedFunInterface.kt") - public void testUseDeserializedFunInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/fir") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Fir extends AbstractFirCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - - public void testAllFilesPresentInFir() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("AnonymousObjectInProperty.kt") - public void testAnonymousObjectInProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt"); - } - - @TestMetadata("ExistingSymbolInFakeOverride.kt") - public void testExistingSymbolInFakeOverride() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt"); - } - - @TestMetadata("IncrementalCompilerRunner.kt") - public void testIncrementalCompilerRunner() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt"); - } - - @TestMetadata("IrConstAcceptMultiModule.kt") - public void testIrConstAcceptMultiModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt"); - } - - @TestMetadata("LibraryProperty.kt") - public void testLibraryProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt"); - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Jvm8 extends AbstractFirCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - - public void testAllFilesPresentInJvm8() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Defaults extends AbstractFirCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - - public void testAllFilesPresentInDefaults() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("superCall.kt") - public void testSuperCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt"); - } - - @TestMetadata("superCallFromInterface.kt") - public void testSuperCallFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt"); - } - - @TestMetadata("superCallFromInterface2.kt") - public void testSuperCallFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt"); - } - - @TestMetadata("superPropAccess.kt") - public void testSuperPropAccess() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt"); - } - - @TestMetadata("superPropAccessFromInterface.kt") - public void testSuperPropAccessFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt"); - } - - @TestMetadata("superPropAccessFromInterface2.kt") - public void testSuperPropAccessFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AllCompatibility extends AbstractFirCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - - public void testAllFilesPresentInAllCompatibility() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("callStackTrace.kt") - public void testCallStackTrace() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt"); - } - - @TestMetadata("superCall.kt") - public void testSuperCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt"); - } - - @TestMetadata("superCallFromInterface.kt") - public void testSuperCallFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt"); - } - - @TestMetadata("superCallFromInterface2.kt") - public void testSuperCallFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt"); - } - - @TestMetadata("superPropAccess.kt") - public void testSuperPropAccess() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt"); - } - - @TestMetadata("superPropAccessFromInterface.kt") - public void testSuperPropAccessFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt"); - } - - @TestMetadata("superPropAccessFromInterface2.kt") - public void testSuperPropAccessFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DelegationBy extends AbstractFirCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - - public void testAllFilesPresentInDelegationBy() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt"); - } - - @TestMetadata("simpleProperty.kt") - public void testSimpleProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt"); - } - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Interop extends AbstractFirCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - - public void testAllFilesPresentInInterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("likeMemberClash.kt") - public void testLikeMemberClash() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt"); - } - - @TestMetadata("likeSpecialization.kt") - public void testLikeSpecialization() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt"); - } - - @TestMetadata("newAndOldSchemes.kt") - public void testNewAndOldSchemes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt"); - } - - @TestMetadata("newAndOldSchemes2.kt") - public void testNewAndOldSchemes2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt"); - } - - @TestMetadata("newAndOldSchemes2Compatibility.kt") - public void testNewAndOldSchemes2Compatibility() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt"); - } - - @TestMetadata("newAndOldSchemes3.kt") - public void testNewAndOldSchemes3() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt"); - } - - @TestMetadata("newSchemeWithJvmDefault.kt") - public void testNewSchemeWithJvmDefault() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt"); - } - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Jvm8against6 extends AbstractFirCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - - public void testAllFilesPresentInJvm8against6() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("jdk8Against6.kt") - public void testJdk8Against6() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt"); - } - - @TestMetadata("simpleCall.kt") - public void testSimpleCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt"); - } - - @TestMetadata("simpleCallWithBigHierarchy.kt") - public void testSimpleCallWithBigHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt"); - } - - @TestMetadata("simpleCallWithHierarchy.kt") - public void testSimpleCallWithHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt"); - } - - @TestMetadata("simpleProp.kt") - public void testSimpleProp() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt"); - } - - @TestMetadata("simplePropWithHierarchy.kt") - public void testSimplePropWithHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Delegation extends AbstractFirCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - - public void testAllFilesPresentInDelegation() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("diamond.kt") - public void testDiamond() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt"); - } - - @TestMetadata("diamond2.kt") - public void testDiamond2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt"); - } - - @TestMetadata("diamond3.kt") - public void testDiamond3() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt"); - } - } - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TypeAnnotations extends AbstractFirCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - - public void testAllFilesPresentInTypeAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("implicitReturn.kt") - public void testImplicitReturn() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt"); - } - } -} diff --git a/compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationInInterface.kt similarity index 92% rename from compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationInInterface.kt index 995de6ec0eb..94a6808ed6f 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationInInterface.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package a @@ -12,6 +13,7 @@ interface Tr { fun foo() {} } +// MODULE: main(lib) // FILE: B.kt class C : a.Tr diff --git a/compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt similarity index 96% rename from compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt index 467f94de31f..ab1c731623c 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt @@ -1,6 +1,7 @@ // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // WITH_REFLECT +// MODULE: lib // FILE: A.kt @Target(AnnotationTarget.TYPE) annotation class Anno(val value: String) @@ -15,6 +16,7 @@ class C(val t: T) typealias MyCMyFoo = C<@Anno("OK") MyFoo?> typealias MyCMaybeFoo = C<@Anno("OK") MyMaybeFoo> +// MODULE: main(lib) // FILE: B.kt fun testMyFoo(myc: MyCMyFoo) {} fun testMyMaybeFoo(mycmyb: MyCMaybeFoo) {} diff --git a/compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt similarity index 90% rename from compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt index f01a7de8fe3..90bfdbe1100 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt @@ -1,4 +1,6 @@ +// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package a @@ -13,6 +15,7 @@ annotation class Ann(val x: Int) @Ann(2) typealias TA = Any +// MODULE: main(lib) // FILE: B.kt import a.Ann diff --git a/compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt index 5006d26bcf9..ed635145c75 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt @@ -1,4 +1,5 @@ // !LANGUAGE: +InlineClasses +// MODULE: lib // FILE: A.kt package a @@ -8,6 +9,7 @@ inline class Foo(val x: IntArray) { val size: Int get() = x.size } +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt similarity index 91% rename from compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt index 6dd95b4460f..ea62b6bea6b 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt @@ -1,7 +1,8 @@ // TARGET_BACKEND: JVM // !LANGUAGE: +InlineClasses -// FILE: A.kt +// MODULE: lib // KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME +// FILE: A.kt package a @@ -10,6 +11,7 @@ inline class Foo(val x: IntArray) { val size: Int get() = x.size } +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt similarity index 92% rename from compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt index 3c6332d89bb..e622dfd36fe 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt @file:[JvmName("MultifileClass") JvmMultifileClass] @@ -9,6 +10,7 @@ const val constOK: String = "OK" val valOK: String = "OK" var varOK: String = "Hmmm?" +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt similarity index 95% rename from compiler/testData/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt index eb06a1ded37..d2c843590e7 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // ^ TODO decide if we want to fix KT-42020 for FIR as well +// MODULE: lib // FILE: a.kt package a @@ -8,6 +9,7 @@ open class Base { fun foo(y: String) = "y:$y" } +// MODULE: main(lib) // FILE: b.kt import a.Base diff --git a/compiler/testData/compileKotlinAgainstKotlin/classInObject.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/classInObject.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/classInObject.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/classInObject.kt index 28cf854a951..199481b6fa0 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/classInObject.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/classInObject.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package a @@ -8,6 +9,7 @@ object CartRoutes { } } +// MODULE: main(lib) // FILE: B.kt import a.CartRoutes diff --git a/compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectInEnum.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectInEnum.kt index 23b2ba03385..2ac79105a2e 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectInEnum.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package library @@ -10,6 +11,7 @@ public enum class EnumClass { } } +// MODULE: main(lib) // FILE: B.kt import library.EnumClass diff --git a/compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectMember.kt similarity index 84% rename from compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectMember.kt index deda85e7ded..3961d8f5cab 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectMember.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt class A { @@ -7,6 +8,7 @@ class A { } } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt similarity index 91% rename from compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt index e72e0a12217..5866a12d5c0 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt @file:[JvmName("MultifileClass") JvmMultifileClass] @@ -9,6 +10,7 @@ annotation class A @A const val OK: String = "OK" +// MODULE: main(lib) // FILE: B.kt import a.OK diff --git a/compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorVararg.kt similarity index 78% rename from compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorVararg.kt index b618feba70e..2b8bd8c4084 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorVararg.kt @@ -1,9 +1,11 @@ +// MODULE: lib // FILE: A.kt class A(vararg s: String) { } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt similarity index 83% rename from compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt index 164be2e2171..7ff12306b2d 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt @@ -1,4 +1,5 @@ // !LANGUAGE: +InlineClasses +// MODULE: lib // FILE: A.kt package lib @@ -6,6 +7,7 @@ inline class S(val string: String) class Test(val s: S) +// MODULE: main(lib) // FILE: B.kt import lib.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt similarity index 77% rename from compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt index 8febf6b7379..dc31e923699 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt @@ -1,14 +1,16 @@ // TARGET_BACKEND: JVM // !LANGUAGE: +InlineClasses -// FILE: A.kt +// MODULE: lib // KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME +// FILE: A.kt package lib inline class S(val string: String) class Test(val s: S) +// MODULE: main(lib) // FILE: B.kt import lib.* -fun box() = Test(S("OK")).s.string \ No newline at end of file +fun box() = Test(S("OK")).s.string diff --git a/compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline.kt similarity index 96% rename from compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline.kt index f3c92ac7b5a..c421c033181 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline.kt @@ -1,4 +1,5 @@ // IGNORE_BACKEND_FIR: JVM_IR +// MODULE: lib // FILE: A.kt // FULL_JDK @@ -16,6 +17,7 @@ inline fun doWork(noinline job: () -> String): Callable { var sameModule = doWork { "O" } +// MODULE: main(lib) // FILE: B.kt import test.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline2.kt similarity index 93% rename from compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline2.kt index d5888612bd2..88d8b8be0c5 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline2.kt @@ -1,4 +1,5 @@ // IGNORE_BACKEND_FIR: JVM_IR +// MODULE: lib // FILE: A.kt // FULL_JDK @@ -10,6 +11,7 @@ inline fun doWork(noinline job: () -> String): Callable { return Callable(job) } +// MODULE: main(lib) // FILE: B.kt import test.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/coroutinesBinary.kt similarity index 95% rename from compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/coroutinesBinary.kt index d857af0cd9d..01afa8c36e2 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/coroutinesBinary.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt // WITH_RUNTIME // WITH_COROUTINES @@ -27,6 +28,7 @@ fun builder(c: suspend Controller.() -> Unit) { controller.callback() } +// MODULE: main(lib) // FILE: B.kt import a.builder diff --git a/compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultConstructor.kt similarity index 76% rename from compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultConstructor.kt index 8cbbab06504..350411dd058 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultConstructor.kt @@ -1,9 +1,11 @@ +// MODULE: lib // FILE: A.kt package aaa class A(val a: Int = 1) +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt similarity index 92% rename from compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt index 78eaf5387fd..855d294061a 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package test @@ -9,6 +10,7 @@ inline fun test(s: () -> () -> String = { val z = "Outer"; { "OK" } }) = val same = test() +// MODULE: main(lib) // FILE: B.kt import test.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt similarity index 93% rename from compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt index 80e5c2758e9..f76903c5270 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package test @@ -9,6 +10,7 @@ inline fun test(s: () -> () -> () -> String = { val z = "Outer"; { { "OK" } } }) val same = test() +// MODULE: main(lib) // FILE: B.kt import test.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt index a868b65df07..7d0f19055c9 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt @@ -1,4 +1,5 @@ // !LANGUAGE: +InlineClasses +// MODULE: lib // FILE: A.kt package z @@ -8,6 +9,7 @@ class X { fun Int.foo(z: Z, value: String = "OK") = value } +// MODULE: main(lib) // FILE: B.kt import z.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt index 268760734a8..1c6ccbe5712 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt @@ -1,7 +1,8 @@ // TARGET_BACKEND: JVM // !LANGUAGE: +InlineClasses -// FILE: A.kt +// MODULE: lib // KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME +// FILE: A.kt package z inline class Z(val s: String) @@ -10,6 +11,7 @@ class X { fun Int.foo(z: Z, value: String = "OK") = value } +// MODULE: main(lib) // FILE: B.kt import z.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegatedDefault.kt similarity index 85% rename from compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegatedDefault.kt index a3e995b04fa..46edc4677e7 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegatedDefault.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package lib @@ -11,6 +12,7 @@ class B : A { class C(val x: A) : A by x +// MODULE: main(lib) // FILE: B.kt import lib.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegationAndAnnotations.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegationAndAnnotations.kt index 0fe888bdeb5..fb606a0f1ac 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegationAndAnnotations.kt @@ -1,5 +1,7 @@ +// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // WITH_RUNTIME +// MODULE: lib // FILE: A.kt import java.io.IOException @@ -12,6 +14,7 @@ interface A { annotation class Anno +// MODULE: main(lib) // FILE: B.kt class B(a: A) : A by a diff --git a/compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/doublyNestedClass.kt similarity index 84% rename from compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/doublyNestedClass.kt index 12ceef419a4..a03730ff7e7 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/doublyNestedClass.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package aaa @@ -10,6 +11,7 @@ class A { } } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/enum.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/enum.kt similarity index 84% rename from compiler/testData/compileKotlinAgainstKotlin/enum.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/enum.kt index aedb880cdbc..9eb2f9c1842 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/enum.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/enum.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package aaa @@ -7,6 +8,7 @@ enum class E { SUBCLASS { } } +// MODULE: main(lib) // FILE: B.kt import aaa.E diff --git a/compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt similarity index 79% rename from compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt index 9089c2eba32..aff7e8872c4 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt @@ -1,8 +1,11 @@ +// IGNORE_BACKEND_FIR: JVM_IR // IGNORE_BACKEND: NATIVE // !LANGUAGE: +MultiPlatformProjects +// MODULE: lib // FILE: impl.kt class A(val result: String = "OK") +// MODULE: main(lib) // FILE: multiplatform.kt expect class B(result: String = "FAIL") diff --git a/compiler/testData/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt similarity index 93% rename from compiler/testData/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt index c134e2541d6..1afd47382b6 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package a @@ -22,6 +23,7 @@ class D : A, B { override var x: String = "" } +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt similarity index 85% rename from compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt index 541d2fa4276..08f1d2c7760 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt abstract class A { @@ -9,6 +10,7 @@ abstract class A { protected val y = x.foo() } +// MODULE: main(lib) // FILE: B.kt class B : A() { diff --git a/compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt similarity index 95% rename from compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt index 2450ef6b97b..f6d0c0a183f 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt interface KotlinMangler { @@ -22,6 +23,7 @@ abstract class IrBasedKotlinManglerImpl : AbstractKotlinMangler(), Kotli get() = this } +// MODULE: main(lib) // FILE: B.kt abstract class AbstractJvmManglerIr : IrBasedKotlinManglerImpl() diff --git a/compiler/testData/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt similarity index 94% rename from compiler/testData/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt index 0ffc71aaf4d..9541f39e550 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt // WITH_RUNTIME @@ -16,6 +17,7 @@ class IncrementalJsCompilerRunner( ) : IncrementalCompilerRunner(workingDir, fail) { } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt similarity index 97% rename from compiler/testData/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt index e0c04b520e6..9f4328a072a 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt @@ -1,4 +1,6 @@ +// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt // WITH_RUNTIME @@ -81,6 +83,7 @@ interface IrElementVisitor interface IrElementTransformer : IrElementVisitor +// MODULE: main(lib) // FILE: B.kt fun foo(cases: Collection>, exprTransformer: IrElementTransformer, context: Any) { diff --git a/compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/LibraryProperty.kt similarity index 91% rename from compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/LibraryProperty.kt index f60c0cf1f12..01d185907f4 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/LibraryProperty.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt // WITH_RUNTIME @@ -9,6 +10,7 @@ class FqName(val s: String) @JvmField val VOLATILE_ANNOTATION_FQ_NAME = FqName("volatile") +// MODULE: main(lib) // FILE: B.kt import first.second.VOLATILE_ANNOTATION_FQ_NAME diff --git a/compiler/testData/compileKotlinAgainstKotlin/importCompanion.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/importCompanion.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/importCompanion.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/importCompanion.kt index 4309b9a7fb8..095fc4b588a 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/importCompanion.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/importCompanion.kt @@ -1,5 +1,7 @@ // WITH_RUNTIME // TARGET_BACKEND: JVM + +// MODULE: lib // FILE: 1.kt package test @@ -10,6 +12,7 @@ class C(val x: String) { } } +// MODULE: main(lib) // FILE: 2.kt import test.C.Companion.instance diff --git a/compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt index b5f77ab6073..a1fccc07ffd 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt @@ -1,5 +1,6 @@ // !LANGUAGE: +InlineClasses +// MODULE: lib // FILE: 1.kt inline class IC(val s: String) @@ -12,6 +13,7 @@ open class C : A() class D: C() +// MODULE: main(lib) // FILE: 2.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt similarity index 91% rename from compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt index 62905de982b..a94b562e712 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt @@ -1,7 +1,8 @@ // TARGET_BACKEND: JVM // !LANGUAGE: +InlineClasses -// FILE: 1.kt +// MODULE: lib // KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME +// FILE: 1.kt inline class IC(val s: String) @@ -13,6 +14,7 @@ open class C : A() class D: C() +// MODULE: main(lib) // FILE: 2.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt similarity index 95% rename from compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt index 89ff9b439b2..8b8b4402739 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt @@ -1,4 +1,5 @@ // !LANGUAGE: +InlineClasses +// MODULE: lib // FILE: A.kt package z @@ -20,6 +21,7 @@ inline class Z(val s: String) : IFoo { } } +// MODULE: main(lib) // FILE: B.kt import z.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt similarity index 93% rename from compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt index 3219146bd33..d1dfed9babd 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt @@ -1,7 +1,9 @@ // TARGET_BACKEND: JVM // !LANGUAGE: +InlineClasses -// FILE: A.kt +// WITH_STDLIB +// MODULE: lib // KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME +// FILE: A.kt package z interface IFoo { @@ -22,6 +24,7 @@ inline class Z(val s: String) : IFoo { } } +// MODULE: main(lib) // FILE: B.kt import z.* @@ -37,4 +40,4 @@ fun box(): String { test(Z(1234)) test(Z.z(1234)) return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt similarity index 81% rename from compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt index 574a2e10e8e..b4942f6e538 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt @@ -1,10 +1,11 @@ -// !LANGUAGE: +InlineClasses +// MODULE: lib // FILE: A.kt inline class A(val x: String) { inline fun f(other: A): A = other } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt similarity index 88% rename from compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt index 7c91cf4f455..99ccd461a58 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt @@ -1,12 +1,14 @@ // TARGET_BACKEND: JVM // !LANGUAGE: +InlineClasses -// FILE: A.kt +// MODULE: lib // KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME +// FILE: A.kt inline class A(val x: String) { inline fun f(other: A): A = other } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt similarity index 85% rename from compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt index fb8153e2182..e4ac266dbf2 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt @@ -1,4 +1,5 @@ // !LANGUAGE: +InlineClasses +// MODULE: lib // FILE: A.kt package a @@ -8,6 +9,7 @@ inline class S(val value: String) { get() = value + "K" } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt index 83e528e9ae1..c71e6ecd2eb 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt @@ -1,7 +1,8 @@ // TARGET_BACKEND: JVM // !LANGUAGE: +InlineClasses -// FILE: A.kt +// MODULE: lib // KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME +// FILE: A.kt package a @@ -10,6 +11,7 @@ inline class S(val value: String) { get() = value + "K" } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt similarity index 90% rename from compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt index 32b07378d6e..dce8093f7d6 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt @@ -1,4 +1,7 @@ +// IGNORE_BACKEND_FIR: JVM_IR // !LANGUAGE: +InlineClasses + +// MODULE: lib // FILE: 1.kt // KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME package test @@ -9,6 +12,7 @@ fun ordinary(s: String, ic: IC): String = s + ic.s suspend fun suspend(s: String, ic: IC): String = s + ic.s +// MODULE: main(lib) // FILE: 2.kt import kotlin.coroutines.* import test.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlinedConstants.kt similarity index 93% rename from compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlinedConstants.kt index 51cb24fd65a..6006cf90d31 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlinedConstants.kt @@ -1,4 +1,6 @@ +// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package constants @@ -17,6 +19,7 @@ public const val str: String = ":)" @Retention(AnnotationRetention.RUNTIME) public annotation class AnnotationClass(public val value: String) +// MODULE: main(lib) // FILE: B.kt import constants.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/innerClassConstructor.kt similarity index 90% rename from compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/innerClassConstructor.kt index 410cc603f89..ab02e117cfd 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/innerClassConstructor.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package second @@ -6,6 +7,7 @@ public class Outer() { inner class Inner(test: String) } +// MODULE: main(lib) // FILE: B.kt //test for KT-3702 Inner class constructor cannot be invoked in override function with receiver diff --git a/compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt similarity index 93% rename from compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt index 6a38fd21d1d..61c4589d31b 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package test @@ -18,6 +19,7 @@ abstract class CodeBlockBase: CompositeCodeBlock abstract class LineSeparatedCodeBlock: CodeBlockBase() +// MODULE: main(lib) // FILE: B.kt import test.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt index fc975a74458..c2beb454434 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt abstract class Base { abstract var x: String @@ -8,6 +9,7 @@ class Derived: Base() { override var x: String = "Z" } +// MODULE: main(lib) // FILE: B.kt fun box(): String { val d = Derived() diff --git a/compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt index 224667f963f..6efaec9041c 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // IGNORE_BACKEND: NATIVE +// MODULE: lib // FILE: A.kt package a @@ -8,6 +9,7 @@ class Box() { internal fun result(value: String = "OK"): String = value } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/internalWithInlineClass.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithInlineClass.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/internalWithInlineClass.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithInlineClass.kt index 939d2ee11fe..39765c8e15e 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/internalWithInlineClass.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithInlineClass.kt @@ -1,4 +1,5 @@ // IGNORE_BACKEND_FIR: JVM_IR +// MODULE: lib // FILE: A.kt package a @@ -9,6 +10,7 @@ class Box { internal fun result(msg: Message): String = msg.value } +// MODULE: main()(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt index f577b711aa3..1a8ff747125 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // IGNORE_BACKEND: NATIVE +// MODULE: lib // FILE: A.kt package a @@ -8,6 +9,7 @@ class Box(val value: String) { internal fun result(): String = value } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt similarity index 95% rename from compiler/testData/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt index 33a46830ff2..b4f1eef3ddd 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package a @@ -21,6 +22,7 @@ interface IrBindableSymbol : IrSymbol { interface IrSimpleFunctionSymbol : IrFunctionSymbol, IrBindableSymbol +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt similarity index 96% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt index 1142321a241..7d9805e8a2f 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt @@ -1,6 +1,7 @@ // !JVM_DEFAULT_MODE: all-compatibility // JVM_TARGET: 1.8 // FULL_JDK +// MODULE: lib // FILE: 1.kt interface KInterface { fun call(): List { @@ -10,6 +11,7 @@ interface KInterface { fun superCall() = Thread.currentThread().getStackTrace().map { it.className + "." + it.methodName } } +// MODULE: main(lib) // FILE: main.kt interface KInterface2 : KInterface { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt similarity index 94% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt index 1e95990ff38..4122bb80fc2 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt @@ -4,6 +4,7 @@ // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { @JvmDefault @@ -26,6 +27,7 @@ class Delegate : Test { } } +// MODULE: main(lib) // FILE: 2.kt class TestClass(val foo: Test) : Test by foo diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt similarity index 94% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt index ae20669911f..9018fa6575e 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt @@ -4,6 +4,7 @@ // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { @JvmDefault @@ -23,6 +24,7 @@ class Delegate : Test { get() = "K" } +// MODULE: main(lib) // FILE: 2.kt class TestClass(val foo: Test) : Test by foo diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt index 6de59beeec0..efb341c30ae 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt @@ -1,6 +1,7 @@ // !JVM_DEFAULT_MODE: all-compatibility // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { fun test(): String { @@ -8,6 +9,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt class TestClass : Test { override fun test(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt similarity index 90% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt index f4e6944bf84..b08c00d03e0 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt @@ -1,6 +1,7 @@ // !JVM_DEFAULT_MODE: all-compatibility // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { fun test(): String { @@ -8,6 +9,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt interface Test2 : Test { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt similarity index 91% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt index 6d8f1273b90..0cc74d5bec5 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt @@ -1,6 +1,7 @@ // !JVM_DEFAULT_MODE: all-compatibility // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { fun test(): String { @@ -12,6 +13,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt interface Test2 : Test { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt index 86a85c2158c..0899a652493 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt @@ -1,12 +1,14 @@ // !JVM_DEFAULT_MODE: all-compatibility // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { val prop: String get() = "OK" } +// MODULE: main(lib) // FILE: 2.kt class TestClass : Test { override val prop: String diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt index dc3419e08ed..ec30b2feeb4 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt @@ -1,12 +1,14 @@ // !JVM_DEFAULT_MODE: all-compatibility // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { val prop: String get() = "OK" } +// MODULE: main(lib) // FILE: 2.kt interface Test2 : Test { override val prop: String diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt similarity index 91% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt index 65d77df390a..8a6f3dca9b4 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt @@ -1,6 +1,7 @@ // !JVM_DEFAULT_MODE: all-compatibility // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { val prop: String @@ -10,6 +11,7 @@ interface Test { get() = "OK" } +// MODULE: main(lib) // FILE: 2.kt interface Test2 : Test { override val prop: String diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt similarity index 96% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt index e6480c3b89d..50e602c6ced 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // FULL_JDK +// MODULE: lib // FILE: 1.kt // !JVM_DEFAULT_MODE: disable interface Check { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt similarity index 96% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt index addfd9ec5fa..e134ed9befb 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt @@ -1,6 +1,7 @@ // IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME // JVM_TARGET: 1.8 +// MODULE: lib // FILE: 1.kt // !JVM_DEFAULT_MODE: disable diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt similarity index 98% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt index 6f8c16cb5db..e2a32d16bb9 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // FULL_JDK +// MODULE: lib // FILE: 1.kt interface KInterface { fun call(): List { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt similarity index 96% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt index 8e7ad04a6e3..a7388ae0220 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: 1.kt // !JVM_DEFAULT_MODE: disable diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt similarity index 97% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt index 606a3122e63..4570cd01716 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: 1.kt // !JVM_DEFAULT_MODE: disable diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt similarity index 98% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt index 309ec073a8e..de4b454c1b4 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // FULL_JDK +// MODULE: lib // FILE: 1.kt // !JVM_DEFAULT_MODE: disable interface KInterface { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt similarity index 98% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt index 00fb371ff65..a900a5dc95f 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt @@ -2,6 +2,7 @@ // FULL_JDK // WITH_RUNTIME // JVM_TARGET: 1.8 +// MODULE: lib // FILE: 1.kt // !JVM_DEFAULT_MODE: enable interface KInterface { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt similarity index 90% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt index 18329abfac4..e45d20cbedb 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt @@ -1,6 +1,7 @@ // !JVM_DEFAULT_MODE: enable // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { @JvmDefault @@ -9,6 +10,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt class TestClass : Test { override fun test(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt similarity index 90% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt index 18d9fd5ad8b..4317facf0e8 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt @@ -1,6 +1,7 @@ // !JVM_DEFAULT_MODE: enable // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { @JvmDefault @@ -9,6 +10,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt interface Test2 : Test { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt similarity index 92% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt index 694274ca7f0..4008ef316d6 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt @@ -1,6 +1,7 @@ // !JVM_DEFAULT_MODE: enable // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { @JvmDefault @@ -13,6 +14,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt interface Test2 : Test { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt similarity index 90% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt index eee1b61a93e..0b7a1adc24d 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt @@ -2,6 +2,7 @@ // !JVM_DEFAULT_MODE: enable // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { @JvmDefault @@ -9,6 +10,7 @@ interface Test { get() = "OK" } +// MODULE: main(lib) // FILE: 2.kt class TestClass : Test { override val prop: String diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt similarity index 90% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt index a41174e6cf3..c3561e2e0cd 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt @@ -2,6 +2,7 @@ // !JVM_DEFAULT_MODE: enable // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { @JvmDefault @@ -9,6 +10,7 @@ interface Test { get() = "OK" } +// MODULE: main(lib) // FILE: 2.kt interface Test2 : Test { @JvmDefault diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt similarity index 92% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt index 17a7a2e5146..6a7ac09d6f6 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt @@ -2,6 +2,7 @@ // !JVM_DEFAULT_MODE: enable // JVM_TARGET: 1.8 // WITH_RUNTIME +// MODULE: lib // FILE: 1.kt interface Test { @JvmDefault @@ -12,6 +13,7 @@ interface Test { get() = "OK" } +// MODULE: main(lib) // FILE: 2.kt interface Test2 : Test { @JvmDefault diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt similarity index 93% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt index 15e6faacc1d..74ba37d1395 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt @@ -1,4 +1,5 @@ // !JVM_DEFAULT_MODE: enable +// MODULE: lib // FILE: 1.kt interface Test { fun test(): String { @@ -6,6 +7,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt // JVM_TARGET: 1.8 // WITH_RUNTIME diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt similarity index 93% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt index 3ba7991a9b3..4cea8c7f1a9 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt @@ -1,4 +1,5 @@ // !JVM_DEFAULT_MODE: enable +// MODULE: lib // FILE: 1.kt interface Test { fun test(): String { @@ -6,6 +7,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt // JVM_TARGET: 1.8 // WITH_RUNTIME diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt similarity index 93% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt index 0abbf2d98ea..6669b00a515 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt @@ -1,4 +1,5 @@ // !JVM_DEFAULT_MODE: enable +// MODULE: lib // FILE: 1.kt interface Test { fun test(): String { @@ -6,6 +7,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt // JVM_TARGET: 1.8 // WITH_RUNTIME diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt similarity index 91% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt index a2b985bfd01..9822d3d939e 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt @@ -1,4 +1,5 @@ // SKIP_JDK6 +// MODULE: lib // FILE: A.kt import java.util.* class Jdk6List : AbstractList() { @@ -11,6 +12,7 @@ class Jdk6List : AbstractList() { } +// MODULE: main(lib) // FILE: B.kt // FULL_JDK diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt similarity index 88% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt index eceedef8df0..648b73ff1a2 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: 1.kt interface Test { @@ -6,6 +7,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt // JVM_TARGET: 1.8 class TestClass : Test { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt similarity index 91% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt index 1fa4e6dc2ac..922e7c8db84 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt @@ -1,4 +1,5 @@ // !JVM_DEFAULT_MODE: enable +// MODULE: lib // FILE: 1.kt interface Test { fun test(): String { @@ -6,6 +7,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt // JVM_TARGET: 1.8 // WITH_RUNTIME diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt similarity index 90% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt index 9dc14e651bb..10ac0f6aa20 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt @@ -1,4 +1,5 @@ // !JVM_DEFAULT_MODE: enable +// MODULE: lib // FILE: 1.kt interface Test { @@ -7,6 +8,7 @@ interface Test { } } +// MODULE: main(lib) // FILE: 2.kt // JVM_TARGET: 1.8 // WITH_RUNTIME diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt similarity index 87% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt index ce7cdd97a93..d6ee34ed0d4 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: 1.kt interface Test { @@ -5,6 +6,7 @@ interface Test { get() = "OK" } +// MODULE: main(lib) // FILE: 2.kt // JVM_TARGET: 1.8 class TestClass : Test { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt similarity index 90% rename from compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt index 33b52cd6de6..d21666d1576 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt @@ -1,4 +1,5 @@ // !JVM_DEFAULT_MODE: enable +// MODULE: lib // FILE: 1.kt interface Test { @@ -6,6 +7,7 @@ interface Test { get() = "OK" } +// MODULE: main(lib) // FILE: 2.kt // JVM_TARGET: 1.8 // WITH_RUNTIME diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvmField.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmField.kt similarity index 92% rename from compiler/testData/compileKotlinAgainstKotlin/jvmField.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmField.kt index d1b7412e933..f637755a3e5 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvmField.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmField.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt open class A { @@ -12,6 +13,7 @@ open class B : A() { } +// MODULE: main(lib) // FILE: B.kt open class C : B() { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt similarity index 90% rename from compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt index 26741f1dda1..71e9a49baf4 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt @@ -1,7 +1,8 @@ // !LANGUAGE: +JvmFieldInInterface +NestedClassesInAnnotations // TARGET_BACKEND: JVM - // WITH_RUNTIME + +// MODULE: lib // FILE: Foo.kt public class Bar(public val value: String) @@ -13,7 +14,7 @@ annotation class Foo { } } - +// MODULE: main(lib) // FILE: bar.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt similarity index 92% rename from compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt index 0cde2a5ceb2..af8f67504c5 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt open class A(@JvmField public val publicField: String = "1", @@ -8,6 +9,7 @@ open class A(@JvmField public val publicField: String = "1", open class B : A() +// MODULE: main(lib) // FILE: B.kt open class C : B() { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt index f99d3fec96a..f4942394fca 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt @@ -1,7 +1,8 @@ // !LANGUAGE: +JvmFieldInInterface // TARGET_BACKEND: JVM - // WITH_RUNTIME + +// MODULE: lib // FILE: Foo.kt public class Bar(public val value: String) @@ -13,7 +14,7 @@ interface Foo { } } - +// MODULE: main(lib) // FILE: bar.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt similarity index 92% rename from compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt index 88011ca28c9..9c02a1c8591 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt @@ -1,4 +1,6 @@ +// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package lib @@ -24,6 +26,7 @@ open class A { annotation class Anno(@get:JvmName("uglyJvmName") val value: String) +// MODULE: main(lib) // FILE: B.kt import lib.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageName.kt similarity index 84% rename from compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageName.kt index 8cc09416ed6..a723278ffee 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageName.kt @@ -1,4 +1,6 @@ +// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") @@ -11,6 +13,7 @@ var v: Int = 1 inline fun i(block: () -> Unit) = block() +// MODULE: main(lib) // FILE: B.kt import foo.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt similarity index 79% rename from compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt index 7cf60d73870..2d17da5d850 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt @@ -1,4 +1,6 @@ +// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") @@ -8,6 +10,7 @@ fun f() = "OK" var v: Int = 1 +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt index fc80cf8849d..73bb3d1ee5d 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt @@ -1,6 +1,8 @@ +// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // WITH_RUNTIME +// MODULE: lib // FILE: A.kt @file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER") @@ -17,6 +19,7 @@ val g: S? get() = f().substring(0, 0) + "K" inline fun i(block: () -> T): T = block() +// MODULE: main(lib) // FILE: B.kt import foo.bar.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt similarity index 81% rename from compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt index 29bcde0e05b..6e1955c7fb7 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt @@ -1,4 +1,6 @@ +// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") @@ -10,6 +12,7 @@ fun f() = "OK" var v: Int = 1 +// MODULE: main(lib) // FILE: B.kt import foo.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObject.kt similarity index 85% rename from compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObject.kt index 5e67b2cd53a..c063e0c6ed8 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObject.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package aaa @@ -10,6 +11,7 @@ public object TestObject { public val test: String = "OK" } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt similarity index 97% rename from compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt index e8734ec9544..2ad4cfe9e5a 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt @@ -1,6 +1,7 @@ // TARGET_BACKEND: JVM // IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME +// MODULE: lib // FILE: A.kt object Host { @@ -30,6 +31,7 @@ object Host { set(value) { field = value } } +// MODULE: main(lib) // FILE: B.kt import kotlin.reflect.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt similarity index 96% rename from compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt index a43165004f0..443e8b77a8f 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package a @@ -23,6 +24,7 @@ const val bool2 = bool const val c2 = c const val str2 = str +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/kt14012.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt similarity index 83% rename from compiler/testData/compileKotlinAgainstKotlin/kt14012.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt index 71da17120c4..2b90f2170a6 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/kt14012.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package test @@ -8,6 +9,7 @@ fun test() { property = "OK" } +// MODULE: main(lib) // FILE: B.kt import test.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012_multi.kt similarity index 87% rename from compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012_multi.kt index 79d2cf612d8..f6f29e06ef4 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012_multi.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt @file:JvmName("TTest") @file:JvmMultifileClass @@ -11,6 +12,7 @@ fun test() { property = "OK" } +// MODULE: main(lib) // FILE: B.kt import test.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/kt21775.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt similarity index 95% rename from compiler/testData/compileKotlinAgainstKotlin/kt21775.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt index a683731e927..6e10ac5153b 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/kt21775.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: lib.kt package lib @@ -26,7 +27,7 @@ class CreateEmployeeUseCaseAccessor { } } - +// MODULE: main(lib) // FILE: main.kt import lib.* @@ -40,4 +41,4 @@ class CreateEmployeeUseCaseTest { fun box(): String { return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt similarity index 93% rename from compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt index 07a8a23d5d8..f0d6ad2df0b 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt class A { @@ -14,6 +15,7 @@ class A { } } +// MODULE: main(lib) // FILE: B.kt import kotlin.reflect.full.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt index 467db537c76..452bc04360e 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt @file:[JvmName("Test") JvmMultifileClass] @@ -8,6 +9,7 @@ val property = "K" inline fun K(body: () -> String): String = body() + property +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt index 3fe812ecce0..4b989490827 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt @file:[JvmName("Test") JvmMultifileClass] @@ -6,6 +7,7 @@ typealias S = String typealias LS = List +// MODULE: main(lib) // FILE: B.kt import java.util.Arrays diff --git a/compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClass.kt similarity index 79% rename from compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClass.kt index 52d14e6357d..c2dc25ddd2a 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClass.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package aaa @@ -8,6 +9,7 @@ class A { } } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt similarity index 94% rename from compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt index fcf207eb5be..29b87a9af70 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: 1.kt import kotlin.reflect.* @@ -32,6 +33,7 @@ interface I { fun foo(): String = "OK" } +// MODULE: main(lib) // FILE: 2.kt class D : I { diff --git a/compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedEnum.kt similarity index 85% rename from compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedEnum.kt index 678e8d191a0..e5ef9e1f522 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedEnum.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package aaa @@ -8,6 +9,7 @@ class A { } } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt similarity index 87% rename from compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt index dd56222f2ed..b4ba537726a 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: lib.kt package lib @@ -7,6 +8,7 @@ typealias Effect = (Dispatch) -> Unit fun noEffect(): Effect = TODO() +// MODULE: main(lib) // FILE: main.kt import lib.* @@ -14,4 +16,4 @@ import lib.* fun box(): String { val s = { noEffect() } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedObject.kt similarity index 79% rename from compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedObject.kt index a338168c8fd..3afae8dfe64 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedObject.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package aaa @@ -8,6 +9,7 @@ class A { } } +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt index 4ec42b0eb62..52023fb3b80 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: lib.kt package lib @@ -9,6 +10,7 @@ typealias B = Inv> fun materialize(): B? = null +// MODULE: main(lib) // FILE: main.kt import lib.* @@ -16,4 +18,4 @@ import lib.* fun box(): String { val s = { materialize() } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt index 9999f9323ba..81caf1dc6bb 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package a @@ -8,6 +9,7 @@ interface Named { interface A : Named +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/optionalAnnotation.kt similarity index 93% rename from compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/optionalAnnotation.kt index 0af7b987b29..724f7e0f9ed 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/optionalAnnotation.kt @@ -1,7 +1,9 @@ +// IGNORE_BACKEND_FIR: JVM_IR // !LANGUAGE: +MultiPlatformProjects // !USE_EXPERIMENTAL: kotlin.ExperimentalMultiplatform // TARGET_BACKEND: JVM // FULL_JDK +// MODULE: lib // FILE: A.kt package a @@ -13,6 +15,7 @@ expect annotation class B(val s: String) actual annotation class A(actual val x: Int) +// MODULE: main(lib) // FILE: B.kt @file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE") // TODO: support common sources in the test infrastructure diff --git a/compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/platformTypes.kt similarity index 95% rename from compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/platformTypes.kt index 0dc58020a8b..e7341bea820 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/platformTypes.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package test @@ -9,6 +10,7 @@ fun printStream() = System.out fun list() = Collections.emptyList() fun array(a: Array) = Arrays.copyOf(a, 2) +// MODULE: main(lib) // FILE: B.kt import java.io.PrintStream diff --git a/compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt similarity index 91% rename from compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt index 605479aee50..d072ac712a0 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt @@ -2,6 +2,7 @@ // IGNORE_BACKEND: JS_IR, JS, NATIVE // WITH_REFLECT +// MODULE: lib // FILE: A.kt package a @@ -16,6 +17,7 @@ class Host { } } +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt similarity index 92% rename from compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt index 221f80cde62..56407d4eb7a 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt @@ -3,8 +3,9 @@ // IGNORE_BACKEND: JS_IR, JS, NATIVE // WITH_REFLECT -// FILE: A.kt +// MODULE: lib // KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME +// FILE: A.kt package a import kotlin.reflect.jvm.isAccessible @@ -18,6 +19,7 @@ class Host { } } +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt index 3b2fdc6c24d..be5ef9a2dc1 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt @@ -2,6 +2,7 @@ // IGNORE_BACKEND: JS_IR, JS, NATIVE // WITH_REFLECT +// MODULE: lib // FILE: A.kt package a @@ -13,6 +14,7 @@ private val ok = S("OK") val ref = ::ok.apply { isAccessible = true } +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt index 0479520d631..adc2b7119f1 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt @@ -3,8 +3,9 @@ // IGNORE_BACKEND: JS_IR, JS, NATIVE // WITH_REFLECT -// FILE: A.kt +// MODULE: lib // KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME +// FILE: A.kt package a import kotlin.reflect.jvm.isAccessible @@ -15,7 +16,8 @@ private val ok = S("OK") val ref = ::ok.apply { isAccessible = true } +// MODULE: main(lib) // FILE: B.kt import a.* -fun box() = ref.call().s \ No newline at end of file +fun box() = ref.call().s diff --git a/compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/propertyReference.kt similarity index 92% rename from compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/propertyReference.kt index 35bdea51241..3d398ca9d5a 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/propertyReference.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package a @@ -7,6 +8,7 @@ public var topLevel: Int = 42 public val String.extension: Long get() = length.toLong() +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/recursiveGeneric.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/recursiveGeneric.kt index 36e8135d592..51c4be90afa 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/recursiveGeneric.kt @@ -1,4 +1,6 @@ +// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package a @@ -11,6 +13,7 @@ interface Super { fun foo(p: Rec<*, *>) = p.t() } +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt similarity index 84% rename from compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt index 4c6721a4750..b021228d93a 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt @@ -1,11 +1,14 @@ +// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // WITH_REFLECT +// MODULE: lib // FILE: A.kt fun test() { } +// MODULE: main(lib) // FILE: B.kt import kotlin.reflect.jvm.javaMethod diff --git a/compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/sealedClass.kt similarity index 95% rename from compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/sealedClass.kt index dff0e486a51..e8683cc1e18 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/sealedClass.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package a @@ -13,6 +14,7 @@ sealed class NestedAndTopLevel { } class TopLevel : NestedAndTopLevel() +// MODULE: main(lib) // FILE: B.kt import a.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/secondaryConstructors.kt similarity index 95% rename from compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/secondaryConstructors.kt index 4fa277472d8..143c007dbb8 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/secondaryConstructors.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt open class A { @@ -10,6 +11,7 @@ open class A { } } +// MODULE: main(lib) // FILE: B.kt class B1() : A("123") { diff --git a/compiler/testData/compileKotlinAgainstKotlin/simple.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/simple.kt similarity index 82% rename from compiler/testData/compileKotlinAgainstKotlin/simple.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/simple.kt index 2a74fe2aba4..ccd2fe3ca56 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/simple.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/simple.kt @@ -1,9 +1,11 @@ +// MODULE: lib // FILE: A.kt package aaa fun hello() = 17 +// MODULE: main(lib) // FILE: B.kt fun box(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt similarity index 88% rename from compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt index 4d6fc957ea0..25eee755cb8 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package pkg @@ -10,6 +11,7 @@ interface ClassA { } } +// MODULE: main(lib) // FILE: B.kt import pkg.ClassA diff --git a/compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt index 95828c6a4d6..c4da7c0d992 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt @@ -1,11 +1,13 @@ // IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME +// MODULE: lib // FILE: A.kt package a open class A : ArrayList() +// MODULE: main(lib) // FILE: B.kt import a.A diff --git a/compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/starImportEnum.kt similarity index 89% rename from compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/starImportEnum.kt index 74d9dea8fa5..31e939b7f0a 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/starImportEnum.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt package aaa @@ -11,6 +12,7 @@ enum class E { } } +// MODULE: main(lib) // FILE: B.kt import aaa.E.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt similarity index 85% rename from compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt index 7906f56bf27..3a367377714 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt @@ -1,5 +1,8 @@ +// IGNORE_BACKEND_FIR: JVM_IR // !LANGUAGE: +InlineClasses // WITH_COROUTINES + +// MODULE: lib // FILE: a.kt package a @@ -12,6 +15,7 @@ suspend fun foo(p: P = P("OK")) { result = p.value } +// MODULE: main(lib) // FILE: b.kt import kotlin.coroutines.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt similarity index 86% rename from compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt index 03d1e7e49b9..5ce925d1188 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt @@ -1,8 +1,10 @@ // TARGET_BACKEND: JVM +// IGNORE_BACKEND_FIR: JVM_IR // !LANGUAGE: +InlineClasses -// WITH_COROUTINES -// FILE: a.kt +// WITH_STDLIB +// MODULE: lib // KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME +// FILE: a.kt package a @@ -14,6 +16,8 @@ suspend fun foo(p: P = P("OK")) { result = p.value } +// MODULE: main(lib) +// WITH_COROUTINES // FILE: b.kt import kotlin.coroutines.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt similarity index 85% rename from compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt index 8a62410214c..453e0fbd3d5 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// MODULE: lib // FILE: A.kt package lib @@ -6,6 +7,7 @@ package lib @get:JvmName("renamedGetFoo") var foo = "not set" +// MODULE: main(lib) // FILE: B.kt import lib.* diff --git a/compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAliasesKt13181.kt similarity index 88% rename from compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAliasesKt13181.kt index 101c79e0cbd..1e5d383a59a 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAliasesKt13181.kt @@ -1,3 +1,4 @@ +// MODULE: lib // FILE: A.kt typealias Bar = (T) -> String @@ -6,6 +7,7 @@ class Foo(val t: T) { fun baz(b: Bar) = b(t) } +// MODULE: main(lib) // FILE: B.kt class FooTest { fun baz(): String { diff --git a/compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt similarity index 95% rename from compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt index c8b117a7130..22192d5c3b9 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt @@ -1,9 +1,11 @@ +// IGNORE_BACKEND_FIR: JVM_IR // KOTLIN_CONFIGURATION_FLAGS: +JVM.EMIT_JVM_TYPE_ANNOTATIONS // TARGET_BACKEND: JVM // JVM_TARGET: 1.8 // WITH_REFLECT // FULL_JDK +// MODULE: lib // FILE: A.kt import java.lang.reflect.AnnotatedType @@ -15,6 +17,7 @@ annotation class TypeAnn fun bar(): @TypeAnn String = "OK" +// MODULE: main(lib) // FILE: B.kt import java.lang.reflect.AnnotatedType diff --git a/compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt similarity index 94% rename from compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt index 610f894ab59..0b8f41f648b 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt @@ -2,6 +2,7 @@ // IGNORE_BACKEND: NATIVE // WITH_RUNTIME +// MODULE: lib // FILE: A.kt @kotlin.annotation.Target(AnnotationTarget.TYPE, AnnotationTarget.FUNCTION) @@ -17,6 +18,7 @@ object ForTest { fun g(b: @Anno(ONE_UINT) String) {} } +// MODULE: main(lib) // FILE: B.kt diff --git a/compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt similarity index 95% rename from compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt rename to compiler/testData/codegen/box/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt index 06c13da3428..335d155a2ee 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt @@ -1,5 +1,6 @@ // !LANGUAGE: +NewInference +FunctionalInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions +// MODULE: lib // FILE: A.kt fun interface KRunnable { @@ -8,6 +9,7 @@ fun interface KRunnable { fun inA(k: KRunnable): String = k.invoke() +// MODULE: main(lib) // FILE: B.kt fun inB(k: KRunnable): String = k.invoke() 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 7efa77b468a..5e372ad91e3 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 @@ -5949,6 +5949,880 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") + @TestDataPath("$PROJECT_ROOT") + public class CompileKotlinAgainstKotlin extends AbstractBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("annotationInInterface.kt") + public void testAnnotationInInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationInInterface.kt"); + } + + @Test + @TestMetadata("annotationOnTypeUseInTypeAlias.kt") + public void testAnnotationOnTypeUseInTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt"); + } + + @Test + @TestMetadata("annotationsOnTypeAliases.kt") + public void testAnnotationsOnTypeAliases() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt"); + } + + @Test + @TestMetadata("callDeserializedPropertyOnInlineClassType.kt") + public void testCallDeserializedPropertyOnInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt"); + } + + @Test + @TestMetadata("callDeserializedPropertyOnInlineClassTypeOldMangling.kt") + public void testCallDeserializedPropertyOnInlineClassTypeOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt"); + } + + @Test + @TestMetadata("callsToMultifileClassFromOtherPackage.kt") + public void testCallsToMultifileClassFromOtherPackage() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt"); + } + + @Test + @TestMetadata("clashingFakeOverrideSignatures.kt") + public void testClashingFakeOverrideSignatures() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt"); + } + + @Test + @TestMetadata("classInObject.kt") + public void testClassInObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/classInObject.kt"); + } + + @Test + @TestMetadata("companionObjectInEnum.kt") + public void testCompanionObjectInEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectInEnum.kt"); + } + + @Test + @TestMetadata("companionObjectMember.kt") + public void testCompanionObjectMember() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectMember.kt"); + } + + @Test + @TestMetadata("constPropertyReferenceFromMultifileClass.kt") + public void testConstPropertyReferenceFromMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt"); + } + + @Test + @TestMetadata("constructorVararg.kt") + public void testConstructorVararg() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorVararg.kt"); + } + + @Test + @TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt") + public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt"); + } + + @Test + @TestMetadata("constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt") + public void testConstructorWithInlineClassParametersInBinaryDependenciesOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt"); + } + + @Test + @TestMetadata("copySamOnInline.kt") + public void testCopySamOnInline() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline.kt"); + } + + @Test + @TestMetadata("copySamOnInline2.kt") + public void testCopySamOnInline2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline2.kt"); + } + + @Test + @TestMetadata("coroutinesBinary.kt") + public void testCoroutinesBinary() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/coroutinesBinary.kt"); + } + + @Test + @TestMetadata("defaultConstructor.kt") + public void testDefaultConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultConstructor.kt"); + } + + @Test + @TestMetadata("defaultLambdaRegeneration.kt") + public void testDefaultLambdaRegeneration() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt"); + } + + @Test + @TestMetadata("defaultLambdaRegeneration2.kt") + public void testDefaultLambdaRegeneration2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt"); + } + + @Test + @TestMetadata("defaultWithInlineClassAndReceivers.kt") + public void testDefaultWithInlineClassAndReceivers() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt"); + } + + @Test + @TestMetadata("defaultWithInlineClassAndReceiversOldMangling.kt") + public void testDefaultWithInlineClassAndReceiversOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt"); + } + + @Test + @TestMetadata("delegatedDefault.kt") + public void testDelegatedDefault() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegatedDefault.kt"); + } + + @Test + @TestMetadata("delegationAndAnnotations.kt") + public void testDelegationAndAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegationAndAnnotations.kt"); + } + + @Test + @TestMetadata("doublyNestedClass.kt") + public void testDoublyNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/doublyNestedClass.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/enum.kt"); + } + + @Test + @TestMetadata("expectClassActualTypeAlias.kt") + public void testExpectClassActualTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt"); + } + + @Test + @TestMetadata("fakeOverridesForIntersectionTypes.kt") + public void testFakeOverridesForIntersectionTypes() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt"); + } + + @Test + @TestMetadata("importCompanion.kt") + public void testImportCompanion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/importCompanion.kt"); + } + + @Test + @TestMetadata("inlineClassFakeOverrideMangling.kt") + public void testInlineClassFakeOverrideMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt"); + } + + @Test + @TestMetadata("inlineClassFakeOverrideManglingOldMangling.kt") + public void testInlineClassFakeOverrideManglingOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassFromBinaryDependencies.kt") + public void testInlineClassFromBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt"); + } + + @Test + @TestMetadata("inlineClassFromBinaryDependenciesOldMangling.kt") + public void testInlineClassFromBinaryDependenciesOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassInlineFunctionCall.kt") + public void testInlineClassInlineFunctionCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt"); + } + + @Test + @TestMetadata("inlineClassInlineFunctionCallOldMangling.kt") + public void testInlineClassInlineFunctionCallOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassInlineProperty.kt") + public void testInlineClassInlineProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt"); + } + + @Test + @TestMetadata("inlineClassInlinePropertyOldMangling.kt") + public void testInlineClassInlinePropertyOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassesOldMangling.kt") + public void testInlineClassesOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt"); + } + + @Test + @TestMetadata("inlinedConstants.kt") + public void testInlinedConstants() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlinedConstants.kt"); + } + + @Test + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/innerClassConstructor.kt"); + } + + @Test + @TestMetadata("interfaceDelegationAndBridgesProcessing.kt") + public void testInterfaceDelegationAndBridgesProcessing() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt"); + } + + @Test + @TestMetadata("internalSetterOverridden.kt") + public void testInternalSetterOverridden() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt"); + } + + @Test + @TestMetadata("internalWithDefaultArgs.kt") + public void testInternalWithDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt"); + } + + @Test + @TestMetadata("internalWithInlineClass.kt") + public void testInternalWithInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithInlineClass.kt"); + } + + @Test + @TestMetadata("internalWithOtherModuleName.kt") + public void testInternalWithOtherModuleName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt"); + } + + @Test + @TestMetadata("intersectionOverrideProperies.kt") + public void testIntersectionOverrideProperies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt"); + } + + @Test + @TestMetadata("jvmField.kt") + public void testJvmField() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmField.kt"); + } + + @Test + @TestMetadata("jvmFieldInAnnotationCompanion.kt") + public void testJvmFieldInAnnotationCompanion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt"); + } + + @Test + @TestMetadata("jvmFieldInConstructor.kt") + public void testJvmFieldInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt"); + } + + @Test + @TestMetadata("jvmFieldInInterfaceCompanion.kt") + public void testJvmFieldInInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt"); + } + + @Test + @TestMetadata("jvmNames.kt") + public void testJvmNames() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt"); + } + + @Test + @TestMetadata("jvmPackageName.kt") + public void testJvmPackageName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageName.kt"); + } + + @Test + @TestMetadata("jvmPackageNameInRootPackage.kt") + public void testJvmPackageNameInRootPackage() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt"); + } + + @Test + @TestMetadata("jvmPackageNameMultifileClass.kt") + public void testJvmPackageNameMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt"); + } + + @Test + @TestMetadata("jvmPackageNameWithJvmName.kt") + public void testJvmPackageNameWithJvmName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt"); + } + + @Test + @TestMetadata("jvmStaticInObject.kt") + public void testJvmStaticInObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObject.kt"); + } + + @Test + @TestMetadata("jvmStaticInObjectPropertyReference.kt") + public void testJvmStaticInObjectPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt"); + } + + @Test + @TestMetadata("kotlinPropertyAsAnnotationParameter.kt") + public void testKotlinPropertyAsAnnotationParameter() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt"); + } + + @Test + @TestMetadata("kt14012.kt") + public void testKt14012() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt"); + } + + @Test + @TestMetadata("kt14012_multi.kt") + public void testKt14012_multi() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012_multi.kt"); + } + + @Test + @TestMetadata("kt21775.kt") + public void testKt21775() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt"); + } + + @Test + @TestMetadata("metadataForMembersInLocalClassInInitializer.kt") + public void testMetadataForMembersInLocalClassInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt"); + } + + @Test + @TestMetadata("multifileClassInlineFunctionAccessingProperty.kt") + public void testMultifileClassInlineFunctionAccessingProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt"); + } + + @Test + @TestMetadata("multifileClassWithTypealias.kt") + public void testMultifileClassWithTypealias() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt"); + } + + @Test + @TestMetadata("nestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClass.kt"); + } + + @Test + @TestMetadata("nestedClassInAnnotationArgument.kt") + public void testNestedClassInAnnotationArgument() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt"); + } + + @Test + @TestMetadata("nestedEnum.kt") + public void testNestedEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedEnum.kt"); + } + + @Test + @TestMetadata("nestedFunctionTypeAliasExpansion.kt") + public void testNestedFunctionTypeAliasExpansion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt"); + } + + @Test + @TestMetadata("nestedObject.kt") + public void testNestedObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedObject.kt"); + } + + @Test + @TestMetadata("nestedTypeAliasExpansion.kt") + public void testNestedTypeAliasExpansion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt"); + } + + @Test + @TestMetadata("noExplicitOverrideForDelegatedFromSupertype.kt") + public void testNoExplicitOverrideForDelegatedFromSupertype() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt"); + } + + @Test + @TestMetadata("optionalAnnotation.kt") + public void testOptionalAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/optionalAnnotation.kt"); + } + + @Test + @TestMetadata("platformTypes.kt") + public void testPlatformTypes() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/platformTypes.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectValInDifferentModule.kt") + public void testPrivateCompanionObjectValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectValInDifferentModuleOldMangling.kt") + public void testPrivateCompanionObjectValInDifferentModuleOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt"); + } + + @Test + @TestMetadata("privateTopLevelValInDifferentModule.kt") + public void testPrivateTopLevelValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt"); + } + + @Test + @TestMetadata("privateTopLevelValInDifferentModuleOldMangling.kt") + public void testPrivateTopLevelValInDifferentModuleOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt"); + } + + @Test + @TestMetadata("propertyReference.kt") + public void testPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/propertyReference.kt"); + } + + @Test + @TestMetadata("recursiveGeneric.kt") + public void testRecursiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/recursiveGeneric.kt"); + } + + @Test + @TestMetadata("reflectTopLevelFunctionOtherFile.kt") + public void testReflectTopLevelFunctionOtherFile() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt"); + } + + @Test + @TestMetadata("sealedClass.kt") + public void testSealedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/sealedClass.kt"); + } + + @Test + @TestMetadata("secondaryConstructors.kt") + public void testSecondaryConstructors() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/secondaryConstructors.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simple.kt"); + } + + @Test + @TestMetadata("simpleValAnonymousObject.kt") + public void testSimpleValAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt"); + } + + @Test + @TestMetadata("specialBridgesInDependencies.kt") + public void testSpecialBridgesInDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt"); + } + + @Test + @TestMetadata("starImportEnum.kt") + public void testStarImportEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/starImportEnum.kt"); + } + + @Test + @TestMetadata("suspendFunWithDefaultMangling.kt") + public void testSuspendFunWithDefaultMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt"); + } + + @Test + @TestMetadata("suspendFunWithDefaultOldMangling.kt") + public void testSuspendFunWithDefaultOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt"); + } + + @Test + @TestMetadata("targetedJvmName.kt") + public void testTargetedJvmName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt"); + } + + @Test + @TestMetadata("typeAliasesKt13181.kt") + public void testTypeAliasesKt13181() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAliasesKt13181.kt"); + } + + @Test + @TestMetadata("unsignedTypesInAnnotations.kt") + public void testUnsignedTypesInAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt"); + } + + @Test + @TestMetadata("useDeserializedFunInterface.kt") + public void testUseDeserializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir") + @TestDataPath("$PROJECT_ROOT") + public class Fir extends AbstractBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInFir() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("AnonymousObjectInProperty.kt") + public void testAnonymousObjectInProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt"); + } + + @Test + @TestMetadata("ExistingSymbolInFakeOverride.kt") + public void testExistingSymbolInFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt"); + } + + @Test + @TestMetadata("IncrementalCompilerRunner.kt") + public void testIncrementalCompilerRunner() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt"); + } + + @Test + @TestMetadata("IrConstAcceptMultiModule.kt") + public void testIrConstAcceptMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt"); + } + + @Test + @TestMetadata("LibraryProperty.kt") + public void testLibraryProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/LibraryProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8 extends AbstractBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInJvm8() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults") + @TestDataPath("$PROJECT_ROOT") + public class Defaults extends AbstractBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInDefaults() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt"); + } + + @Test + @TestMetadata("superCallFromInterface.kt") + public void testSuperCallFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt"); + } + + @Test + @TestMetadata("superCallFromInterface2.kt") + public void testSuperCallFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt"); + } + + @Test + @TestMetadata("superPropAccess.kt") + public void testSuperPropAccess() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface.kt") + public void testSuperPropAccessFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface2.kt") + public void testSuperPropAccessFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") + @TestDataPath("$PROJECT_ROOT") + public class AllCompatibility extends AbstractBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInAllCompatibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("callStackTrace.kt") + public void testCallStackTrace() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt"); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt"); + } + + @Test + @TestMetadata("superCallFromInterface.kt") + public void testSuperCallFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt"); + } + + @Test + @TestMetadata("superCallFromInterface2.kt") + public void testSuperCallFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt"); + } + + @Test + @TestMetadata("superPropAccess.kt") + public void testSuperPropAccess() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface.kt") + public void testSuperPropAccessFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface2.kt") + public void testSuperPropAccessFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy") + @TestDataPath("$PROJECT_ROOT") + public class DelegationBy extends AbstractBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInDelegationBy() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt"); + } + + @Test + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop") + @TestDataPath("$PROJECT_ROOT") + public class Interop extends AbstractBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInInterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("likeMemberClash.kt") + public void testLikeMemberClash() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt"); + } + + @Test + @TestMetadata("likeSpecialization.kt") + public void testLikeSpecialization() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes.kt") + public void testNewAndOldSchemes() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes2.kt") + public void testNewAndOldSchemes2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes2Compatibility.kt") + public void testNewAndOldSchemes2Compatibility() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes3.kt") + public void testNewAndOldSchemes3() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt"); + } + + @Test + @TestMetadata("newSchemeWithJvmDefault.kt") + public void testNewSchemeWithJvmDefault() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8against6 extends AbstractBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInJvm8against6() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("jdk8Against6.kt") + public void testJdk8Against6() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt"); + } + + @Test + @TestMetadata("simpleCall.kt") + public void testSimpleCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt"); + } + + @Test + @TestMetadata("simpleCallWithBigHierarchy.kt") + public void testSimpleCallWithBigHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt"); + } + + @Test + @TestMetadata("simpleCallWithHierarchy.kt") + public void testSimpleCallWithHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt"); + } + + @Test + @TestMetadata("simpleProp.kt") + public void testSimpleProp() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt"); + } + + @Test + @TestMetadata("simplePropWithHierarchy.kt") + public void testSimplePropWithHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation") + @TestDataPath("$PROJECT_ROOT") + public class Delegation extends AbstractBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInDelegation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt"); + } + + @Test + @TestMetadata("diamond2.kt") + public void testDiamond2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt"); + } + + @Test + @TestMetadata("diamond3.kt") + public void testDiamond3() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations") + @TestDataPath("$PROJECT_ROOT") + public class TypeAnnotations extends AbstractBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInTypeAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("implicitReturn.kt") + public void testImplicitReturn() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt"); + } + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/constants") @TestDataPath("$PROJECT_ROOT") 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 627208a5425..70dfb85deac 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 @@ -5949,6 +5949,880 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") + @TestDataPath("$PROJECT_ROOT") + public class CompileKotlinAgainstKotlin extends AbstractIrBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationInInterface.kt") + public void testAnnotationInInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationInInterface.kt"); + } + + @Test + @TestMetadata("annotationOnTypeUseInTypeAlias.kt") + public void testAnnotationOnTypeUseInTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt"); + } + + @Test + @TestMetadata("annotationsOnTypeAliases.kt") + public void testAnnotationsOnTypeAliases() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt"); + } + + @Test + @TestMetadata("callDeserializedPropertyOnInlineClassType.kt") + public void testCallDeserializedPropertyOnInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt"); + } + + @Test + @TestMetadata("callDeserializedPropertyOnInlineClassTypeOldMangling.kt") + public void testCallDeserializedPropertyOnInlineClassTypeOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt"); + } + + @Test + @TestMetadata("callsToMultifileClassFromOtherPackage.kt") + public void testCallsToMultifileClassFromOtherPackage() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt"); + } + + @Test + @TestMetadata("clashingFakeOverrideSignatures.kt") + public void testClashingFakeOverrideSignatures() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt"); + } + + @Test + @TestMetadata("classInObject.kt") + public void testClassInObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/classInObject.kt"); + } + + @Test + @TestMetadata("companionObjectInEnum.kt") + public void testCompanionObjectInEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectInEnum.kt"); + } + + @Test + @TestMetadata("companionObjectMember.kt") + public void testCompanionObjectMember() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectMember.kt"); + } + + @Test + @TestMetadata("constPropertyReferenceFromMultifileClass.kt") + public void testConstPropertyReferenceFromMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt"); + } + + @Test + @TestMetadata("constructorVararg.kt") + public void testConstructorVararg() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorVararg.kt"); + } + + @Test + @TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt") + public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt"); + } + + @Test + @TestMetadata("constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt") + public void testConstructorWithInlineClassParametersInBinaryDependenciesOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt"); + } + + @Test + @TestMetadata("copySamOnInline.kt") + public void testCopySamOnInline() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline.kt"); + } + + @Test + @TestMetadata("copySamOnInline2.kt") + public void testCopySamOnInline2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline2.kt"); + } + + @Test + @TestMetadata("coroutinesBinary.kt") + public void testCoroutinesBinary() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/coroutinesBinary.kt"); + } + + @Test + @TestMetadata("defaultConstructor.kt") + public void testDefaultConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultConstructor.kt"); + } + + @Test + @TestMetadata("defaultLambdaRegeneration.kt") + public void testDefaultLambdaRegeneration() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt"); + } + + @Test + @TestMetadata("defaultLambdaRegeneration2.kt") + public void testDefaultLambdaRegeneration2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt"); + } + + @Test + @TestMetadata("defaultWithInlineClassAndReceivers.kt") + public void testDefaultWithInlineClassAndReceivers() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt"); + } + + @Test + @TestMetadata("defaultWithInlineClassAndReceiversOldMangling.kt") + public void testDefaultWithInlineClassAndReceiversOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt"); + } + + @Test + @TestMetadata("delegatedDefault.kt") + public void testDelegatedDefault() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegatedDefault.kt"); + } + + @Test + @TestMetadata("delegationAndAnnotations.kt") + public void testDelegationAndAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegationAndAnnotations.kt"); + } + + @Test + @TestMetadata("doublyNestedClass.kt") + public void testDoublyNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/doublyNestedClass.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/enum.kt"); + } + + @Test + @TestMetadata("expectClassActualTypeAlias.kt") + public void testExpectClassActualTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt"); + } + + @Test + @TestMetadata("fakeOverridesForIntersectionTypes.kt") + public void testFakeOverridesForIntersectionTypes() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt"); + } + + @Test + @TestMetadata("importCompanion.kt") + public void testImportCompanion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/importCompanion.kt"); + } + + @Test + @TestMetadata("inlineClassFakeOverrideMangling.kt") + public void testInlineClassFakeOverrideMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt"); + } + + @Test + @TestMetadata("inlineClassFakeOverrideManglingOldMangling.kt") + public void testInlineClassFakeOverrideManglingOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassFromBinaryDependencies.kt") + public void testInlineClassFromBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt"); + } + + @Test + @TestMetadata("inlineClassFromBinaryDependenciesOldMangling.kt") + public void testInlineClassFromBinaryDependenciesOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassInlineFunctionCall.kt") + public void testInlineClassInlineFunctionCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt"); + } + + @Test + @TestMetadata("inlineClassInlineFunctionCallOldMangling.kt") + public void testInlineClassInlineFunctionCallOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassInlineProperty.kt") + public void testInlineClassInlineProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt"); + } + + @Test + @TestMetadata("inlineClassInlinePropertyOldMangling.kt") + public void testInlineClassInlinePropertyOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt"); + } + + @Test + @TestMetadata("inlineClassesOldMangling.kt") + public void testInlineClassesOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt"); + } + + @Test + @TestMetadata("inlinedConstants.kt") + public void testInlinedConstants() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlinedConstants.kt"); + } + + @Test + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/innerClassConstructor.kt"); + } + + @Test + @TestMetadata("interfaceDelegationAndBridgesProcessing.kt") + public void testInterfaceDelegationAndBridgesProcessing() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt"); + } + + @Test + @TestMetadata("internalSetterOverridden.kt") + public void testInternalSetterOverridden() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt"); + } + + @Test + @TestMetadata("internalWithDefaultArgs.kt") + public void testInternalWithDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt"); + } + + @Test + @TestMetadata("internalWithInlineClass.kt") + public void testInternalWithInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithInlineClass.kt"); + } + + @Test + @TestMetadata("internalWithOtherModuleName.kt") + public void testInternalWithOtherModuleName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt"); + } + + @Test + @TestMetadata("intersectionOverrideProperies.kt") + public void testIntersectionOverrideProperies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt"); + } + + @Test + @TestMetadata("jvmField.kt") + public void testJvmField() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmField.kt"); + } + + @Test + @TestMetadata("jvmFieldInAnnotationCompanion.kt") + public void testJvmFieldInAnnotationCompanion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt"); + } + + @Test + @TestMetadata("jvmFieldInConstructor.kt") + public void testJvmFieldInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt"); + } + + @Test + @TestMetadata("jvmFieldInInterfaceCompanion.kt") + public void testJvmFieldInInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt"); + } + + @Test + @TestMetadata("jvmNames.kt") + public void testJvmNames() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt"); + } + + @Test + @TestMetadata("jvmPackageName.kt") + public void testJvmPackageName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageName.kt"); + } + + @Test + @TestMetadata("jvmPackageNameInRootPackage.kt") + public void testJvmPackageNameInRootPackage() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt"); + } + + @Test + @TestMetadata("jvmPackageNameMultifileClass.kt") + public void testJvmPackageNameMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt"); + } + + @Test + @TestMetadata("jvmPackageNameWithJvmName.kt") + public void testJvmPackageNameWithJvmName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt"); + } + + @Test + @TestMetadata("jvmStaticInObject.kt") + public void testJvmStaticInObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObject.kt"); + } + + @Test + @TestMetadata("jvmStaticInObjectPropertyReference.kt") + public void testJvmStaticInObjectPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt"); + } + + @Test + @TestMetadata("kotlinPropertyAsAnnotationParameter.kt") + public void testKotlinPropertyAsAnnotationParameter() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt"); + } + + @Test + @TestMetadata("kt14012.kt") + public void testKt14012() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt"); + } + + @Test + @TestMetadata("kt14012_multi.kt") + public void testKt14012_multi() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012_multi.kt"); + } + + @Test + @TestMetadata("kt21775.kt") + public void testKt21775() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt"); + } + + @Test + @TestMetadata("metadataForMembersInLocalClassInInitializer.kt") + public void testMetadataForMembersInLocalClassInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt"); + } + + @Test + @TestMetadata("multifileClassInlineFunctionAccessingProperty.kt") + public void testMultifileClassInlineFunctionAccessingProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt"); + } + + @Test + @TestMetadata("multifileClassWithTypealias.kt") + public void testMultifileClassWithTypealias() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt"); + } + + @Test + @TestMetadata("nestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClass.kt"); + } + + @Test + @TestMetadata("nestedClassInAnnotationArgument.kt") + public void testNestedClassInAnnotationArgument() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt"); + } + + @Test + @TestMetadata("nestedEnum.kt") + public void testNestedEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedEnum.kt"); + } + + @Test + @TestMetadata("nestedFunctionTypeAliasExpansion.kt") + public void testNestedFunctionTypeAliasExpansion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt"); + } + + @Test + @TestMetadata("nestedObject.kt") + public void testNestedObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedObject.kt"); + } + + @Test + @TestMetadata("nestedTypeAliasExpansion.kt") + public void testNestedTypeAliasExpansion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt"); + } + + @Test + @TestMetadata("noExplicitOverrideForDelegatedFromSupertype.kt") + public void testNoExplicitOverrideForDelegatedFromSupertype() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt"); + } + + @Test + @TestMetadata("optionalAnnotation.kt") + public void testOptionalAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/optionalAnnotation.kt"); + } + + @Test + @TestMetadata("platformTypes.kt") + public void testPlatformTypes() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/platformTypes.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectValInDifferentModule.kt") + public void testPrivateCompanionObjectValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectValInDifferentModuleOldMangling.kt") + public void testPrivateCompanionObjectValInDifferentModuleOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt"); + } + + @Test + @TestMetadata("privateTopLevelValInDifferentModule.kt") + public void testPrivateTopLevelValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt"); + } + + @Test + @TestMetadata("privateTopLevelValInDifferentModuleOldMangling.kt") + public void testPrivateTopLevelValInDifferentModuleOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt"); + } + + @Test + @TestMetadata("propertyReference.kt") + public void testPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/propertyReference.kt"); + } + + @Test + @TestMetadata("recursiveGeneric.kt") + public void testRecursiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/recursiveGeneric.kt"); + } + + @Test + @TestMetadata("reflectTopLevelFunctionOtherFile.kt") + public void testReflectTopLevelFunctionOtherFile() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt"); + } + + @Test + @TestMetadata("sealedClass.kt") + public void testSealedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/sealedClass.kt"); + } + + @Test + @TestMetadata("secondaryConstructors.kt") + public void testSecondaryConstructors() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/secondaryConstructors.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simple.kt"); + } + + @Test + @TestMetadata("simpleValAnonymousObject.kt") + public void testSimpleValAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt"); + } + + @Test + @TestMetadata("specialBridgesInDependencies.kt") + public void testSpecialBridgesInDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt"); + } + + @Test + @TestMetadata("starImportEnum.kt") + public void testStarImportEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/starImportEnum.kt"); + } + + @Test + @TestMetadata("suspendFunWithDefaultMangling.kt") + public void testSuspendFunWithDefaultMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt"); + } + + @Test + @TestMetadata("suspendFunWithDefaultOldMangling.kt") + public void testSuspendFunWithDefaultOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt"); + } + + @Test + @TestMetadata("targetedJvmName.kt") + public void testTargetedJvmName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt"); + } + + @Test + @TestMetadata("typeAliasesKt13181.kt") + public void testTypeAliasesKt13181() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAliasesKt13181.kt"); + } + + @Test + @TestMetadata("unsignedTypesInAnnotations.kt") + public void testUnsignedTypesInAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt"); + } + + @Test + @TestMetadata("useDeserializedFunInterface.kt") + public void testUseDeserializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir") + @TestDataPath("$PROJECT_ROOT") + public class Fir extends AbstractIrBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInFir() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("AnonymousObjectInProperty.kt") + public void testAnonymousObjectInProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt"); + } + + @Test + @TestMetadata("ExistingSymbolInFakeOverride.kt") + public void testExistingSymbolInFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt"); + } + + @Test + @TestMetadata("IncrementalCompilerRunner.kt") + public void testIncrementalCompilerRunner() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt"); + } + + @Test + @TestMetadata("IrConstAcceptMultiModule.kt") + public void testIrConstAcceptMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt"); + } + + @Test + @TestMetadata("LibraryProperty.kt") + public void testLibraryProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/LibraryProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8 extends AbstractIrBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInJvm8() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults") + @TestDataPath("$PROJECT_ROOT") + public class Defaults extends AbstractIrBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInDefaults() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt"); + } + + @Test + @TestMetadata("superCallFromInterface.kt") + public void testSuperCallFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt"); + } + + @Test + @TestMetadata("superCallFromInterface2.kt") + public void testSuperCallFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt"); + } + + @Test + @TestMetadata("superPropAccess.kt") + public void testSuperPropAccess() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface.kt") + public void testSuperPropAccessFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface2.kt") + public void testSuperPropAccessFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") + @TestDataPath("$PROJECT_ROOT") + public class AllCompatibility extends AbstractIrBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInAllCompatibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callStackTrace.kt") + public void testCallStackTrace() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt"); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt"); + } + + @Test + @TestMetadata("superCallFromInterface.kt") + public void testSuperCallFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt"); + } + + @Test + @TestMetadata("superCallFromInterface2.kt") + public void testSuperCallFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt"); + } + + @Test + @TestMetadata("superPropAccess.kt") + public void testSuperPropAccess() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface.kt") + public void testSuperPropAccessFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt"); + } + + @Test + @TestMetadata("superPropAccessFromInterface2.kt") + public void testSuperPropAccessFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy") + @TestDataPath("$PROJECT_ROOT") + public class DelegationBy extends AbstractIrBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInDelegationBy() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt"); + } + + @Test + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop") + @TestDataPath("$PROJECT_ROOT") + public class Interop extends AbstractIrBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInInterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("likeMemberClash.kt") + public void testLikeMemberClash() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt"); + } + + @Test + @TestMetadata("likeSpecialization.kt") + public void testLikeSpecialization() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes.kt") + public void testNewAndOldSchemes() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes2.kt") + public void testNewAndOldSchemes2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes2Compatibility.kt") + public void testNewAndOldSchemes2Compatibility() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt"); + } + + @Test + @TestMetadata("newAndOldSchemes3.kt") + public void testNewAndOldSchemes3() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt"); + } + + @Test + @TestMetadata("newSchemeWithJvmDefault.kt") + public void testNewSchemeWithJvmDefault() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8against6 extends AbstractIrBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInJvm8against6() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("jdk8Against6.kt") + public void testJdk8Against6() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt"); + } + + @Test + @TestMetadata("simpleCall.kt") + public void testSimpleCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt"); + } + + @Test + @TestMetadata("simpleCallWithBigHierarchy.kt") + public void testSimpleCallWithBigHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt"); + } + + @Test + @TestMetadata("simpleCallWithHierarchy.kt") + public void testSimpleCallWithHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt"); + } + + @Test + @TestMetadata("simpleProp.kt") + public void testSimpleProp() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt"); + } + + @Test + @TestMetadata("simplePropWithHierarchy.kt") + public void testSimplePropWithHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation") + @TestDataPath("$PROJECT_ROOT") + public class Delegation extends AbstractIrBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInDelegation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt"); + } + + @Test + @TestMetadata("diamond2.kt") + public void testDiamond2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt"); + } + + @Test + @TestMetadata("diamond3.kt") + public void testDiamond3() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations") + @TestDataPath("$PROJECT_ROOT") + public class TypeAnnotations extends AbstractIrBlackBoxCodegenTest { + @Test + public void testAllFilesPresentInTypeAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("implicitReturn.kt") + public void testImplicitReturn() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt"); + } + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/constants") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractFirCompileKotlinAgainstKotlinTest.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractFirCompileKotlinAgainstKotlinTest.kt deleted file mode 100644 index 02db57411ab..00000000000 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractFirCompileKotlinAgainstKotlinTest.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.codegen - -import org.jetbrains.kotlin.config.CommonConfigurationKeys -import org.jetbrains.kotlin.config.CompilerConfiguration -import org.jetbrains.kotlin.config.JVMConfigurationKeys - -abstract class AbstractFirCompileKotlinAgainstKotlinTest : AbstractCompileKotlinAgainstKotlinTest() { - override fun updateConfiguration(configuration: CompilerConfiguration) { - super.updateConfiguration(configuration) - configuration.put(CommonConfigurationKeys.USE_FIR, true) - configuration.put(JVMConfigurationKeys.IR, true) - } -} \ No newline at end of file diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinBaseTest.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinBaseTest.kt index e76c43656e1..d48a37f5048 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinBaseTest.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinBaseTest.kt @@ -197,6 +197,9 @@ abstract class KotlinBaseTest : KtUsefulTestCase() if (InTextDirectivesUtils.isDirectiveDefined(file.content, "WITH_RUNTIME")) { addRuntime = true } + if (InTextDirectivesUtils.isDirectiveDefined(file.content, "WITH_STDLIB")) { + addRuntime = true + } if (InTextDirectivesUtils.isDirectiveDefined(file.content, "WITH_REFLECT")) { addReflect = true } diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt index dffe91dede0..564e8f07e8c 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt @@ -97,7 +97,12 @@ fun generateJUnit3CompilerTests(args: Array) { testClass { // "ranges/stepped" is excluded because it contains hundreds of generated tests and only have a box() method. // There isn't much to be gained from running light analysis tests on them. - model("codegen/box", targetBackend = TargetBackend.JVM, skipIgnored = true, excludeDirs = listOf("ranges/stepped")) + model( + "codegen/box", + targetBackend = TargetBackend.JVM, + skipIgnored = true, + excludeDirs = listOf("ranges/stepped", "compileKotlinAgainstKotlin") + ) } testClass { @@ -263,10 +268,6 @@ fun generateJUnit3CompilerTests(args: Array) { ) } - testClass { - model("compileKotlinAgainstKotlin") - } - testClass { model("compileKotlinAgainstKotlinJdk15") } @@ -403,15 +404,12 @@ fun generateJUnit3CompilerTests(args: Array) { ) } - testClass { - model("compileKotlinAgainstKotlin", targetBackend = TargetBackend.JVM_IR) - } testClass { - model("compileKotlinAgainstKotlin", targetBackend = TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD) + model("codegen/box/compileKotlinAgainstKotlin", targetBackend = TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD) } testClass { model( - "compileKotlinAgainstKotlin", + "codegen/box/compileKotlinAgainstKotlin", targetBackend = TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR ) } @@ -501,10 +499,6 @@ fun generateJUnit3CompilerTests(args: Array) { testClass { model("codegen/boxAgainstJava", targetBackend = TargetBackend.JVM_IR, excludeDirs = listOf("oldLanguageVersions")) } - - testClass { - model("compileKotlinAgainstKotlin", targetBackend = TargetBackend.JVM_IR) - } } testGroup( diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/CompileKotlinAgainstKotlinTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/CompileKotlinAgainstKotlinTestGenerated.java deleted file mode 100644 index db674468db1..00000000000 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/CompileKotlinAgainstKotlinTestGenerated.java +++ /dev/null @@ -1,793 +0,0 @@ -/* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.codegen; - -import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; -import org.jetbrains.kotlin.test.util.KtTestUtil; -import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; - -import java.io.File; -import java.util.regex.Pattern; - -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ -@SuppressWarnings("all") -@TestMetadata("compiler/testData/compileKotlinAgainstKotlin") -@TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) -public class CompileKotlinAgainstKotlinTestGenerated extends AbstractCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("annotationInInterface.kt") - public void testAnnotationInInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt"); - } - - @TestMetadata("annotationOnTypeUseInTypeAlias.kt") - public void testAnnotationOnTypeUseInTypeAlias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt"); - } - - @TestMetadata("annotationsOnTypeAliases.kt") - public void testAnnotationsOnTypeAliases() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt"); - } - - @TestMetadata("callDeserializedPropertyOnInlineClassType.kt") - public void testCallDeserializedPropertyOnInlineClassType() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt"); - } - - @TestMetadata("callDeserializedPropertyOnInlineClassTypeOldMangling.kt") - public void testCallDeserializedPropertyOnInlineClassTypeOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt"); - } - - @TestMetadata("callsToMultifileClassFromOtherPackage.kt") - public void testCallsToMultifileClassFromOtherPackage() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt"); - } - - @TestMetadata("clashingFakeOverrideSignatures.kt") - public void testClashingFakeOverrideSignatures() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt"); - } - - @TestMetadata("classInObject.kt") - public void testClassInObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/classInObject.kt"); - } - - @TestMetadata("companionObjectInEnum.kt") - public void testCompanionObjectInEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt"); - } - - @TestMetadata("companionObjectMember.kt") - public void testCompanionObjectMember() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt"); - } - - @TestMetadata("constPropertyReferenceFromMultifileClass.kt") - public void testConstPropertyReferenceFromMultifileClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt"); - } - - @TestMetadata("constructorVararg.kt") - public void testConstructorVararg() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt"); - } - - @TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt") - public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt"); - } - - @TestMetadata("constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt") - public void testConstructorWithInlineClassParametersInBinaryDependenciesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt"); - } - - @TestMetadata("copySamOnInline.kt") - public void testCopySamOnInline() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt"); - } - - @TestMetadata("copySamOnInline2.kt") - public void testCopySamOnInline2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt"); - } - - @TestMetadata("coroutinesBinary.kt") - public void testCoroutinesBinary() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt"); - } - - @TestMetadata("defaultConstructor.kt") - public void testDefaultConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt"); - } - - @TestMetadata("defaultLambdaRegeneration.kt") - public void testDefaultLambdaRegeneration() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt"); - } - - @TestMetadata("defaultLambdaRegeneration2.kt") - public void testDefaultLambdaRegeneration2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt"); - } - - @TestMetadata("defaultWithInlineClassAndReceivers.kt") - public void testDefaultWithInlineClassAndReceivers() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt"); - } - - @TestMetadata("defaultWithInlineClassAndReceiversOldMangling.kt") - public void testDefaultWithInlineClassAndReceiversOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt"); - } - - @TestMetadata("delegatedDefault.kt") - public void testDelegatedDefault() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt"); - } - - @TestMetadata("delegationAndAnnotations.kt") - public void testDelegationAndAnnotations() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt"); - } - - @TestMetadata("doublyNestedClass.kt") - public void testDoublyNestedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt"); - } - - @TestMetadata("enum.kt") - public void testEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/enum.kt"); - } - - @TestMetadata("expectClassActualTypeAlias.kt") - public void testExpectClassActualTypeAlias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt"); - } - - @TestMetadata("fakeOverridesForIntersectionTypes.kt") - public void testFakeOverridesForIntersectionTypes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt"); - } - - @TestMetadata("importCompanion.kt") - public void testImportCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/importCompanion.kt"); - } - - @TestMetadata("inlineClassFakeOverrideMangling.kt") - public void testInlineClassFakeOverrideMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt"); - } - - @TestMetadata("inlineClassFakeOverrideManglingOldMangling.kt") - public void testInlineClassFakeOverrideManglingOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt"); - } - - @TestMetadata("inlineClassFromBinaryDependencies.kt") - public void testInlineClassFromBinaryDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt"); - } - - @TestMetadata("inlineClassFromBinaryDependenciesOldMangling.kt") - public void testInlineClassFromBinaryDependenciesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt"); - } - - @TestMetadata("inlineClassInlineFunctionCall.kt") - public void testInlineClassInlineFunctionCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt"); - } - - @TestMetadata("inlineClassInlineFunctionCallOldMangling.kt") - public void testInlineClassInlineFunctionCallOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt"); - } - - @TestMetadata("inlineClassInlineProperty.kt") - public void testInlineClassInlineProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt"); - } - - @TestMetadata("inlineClassInlinePropertyOldMangling.kt") - public void testInlineClassInlinePropertyOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt"); - } - - @TestMetadata("inlineClassesOldMangling.kt") - public void testInlineClassesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt"); - } - - @TestMetadata("inlinedConstants.kt") - public void testInlinedConstants() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt"); - } - - @TestMetadata("innerClassConstructor.kt") - public void testInnerClassConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt"); - } - - @TestMetadata("interfaceDelegationAndBridgesProcessing.kt") - public void testInterfaceDelegationAndBridgesProcessing() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt"); - } - - @TestMetadata("internalSetterOverridden.kt") - public void testInternalSetterOverridden() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt"); - } - - @TestMetadata("internalWithDefaultArgs.kt") - public void testInternalWithDefaultArgs() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt"); - } - - @TestMetadata("internalWithInlineClass.kt") - public void testInternalWithInlineClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithInlineClass.kt"); - } - - @TestMetadata("internalWithOtherModuleName.kt") - public void testInternalWithOtherModuleName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt"); - } - - @TestMetadata("intersectionOverrideProperies.kt") - public void testIntersectionOverrideProperies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt"); - } - - @TestMetadata("jvmField.kt") - public void testJvmField() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmField.kt"); - } - - @TestMetadata("jvmFieldInAnnotationCompanion.kt") - public void testJvmFieldInAnnotationCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt"); - } - - @TestMetadata("jvmFieldInConstructor.kt") - public void testJvmFieldInConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt"); - } - - @TestMetadata("jvmFieldInInterfaceCompanion.kt") - public void testJvmFieldInInterfaceCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt"); - } - - @TestMetadata("jvmNames.kt") - public void testJvmNames() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt"); - } - - @TestMetadata("jvmPackageName.kt") - public void testJvmPackageName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt"); - } - - @TestMetadata("jvmPackageNameInRootPackage.kt") - public void testJvmPackageNameInRootPackage() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt"); - } - - @TestMetadata("jvmPackageNameMultifileClass.kt") - public void testJvmPackageNameMultifileClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt"); - } - - @TestMetadata("jvmPackageNameWithJvmName.kt") - public void testJvmPackageNameWithJvmName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt"); - } - - @TestMetadata("jvmStaticInObject.kt") - public void testJvmStaticInObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt"); - } - - @TestMetadata("jvmStaticInObjectPropertyReference.kt") - public void testJvmStaticInObjectPropertyReference() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt"); - } - - @TestMetadata("kotlinPropertyAsAnnotationParameter.kt") - public void testKotlinPropertyAsAnnotationParameter() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt"); - } - - @TestMetadata("kt14012.kt") - public void testKt14012() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012.kt"); - } - - @TestMetadata("kt14012_multi.kt") - public void testKt14012_multi() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt"); - } - - @TestMetadata("kt21775.kt") - public void testKt21775() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt21775.kt"); - } - - @TestMetadata("metadataForMembersInLocalClassInInitializer.kt") - public void testMetadataForMembersInLocalClassInInitializer() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt"); - } - - @TestMetadata("multifileClassInlineFunctionAccessingProperty.kt") - public void testMultifileClassInlineFunctionAccessingProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt"); - } - - @TestMetadata("multifileClassWithTypealias.kt") - public void testMultifileClassWithTypealias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt"); - } - - @TestMetadata("nestedClass.kt") - public void testNestedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt"); - } - - @TestMetadata("nestedClassInAnnotationArgument.kt") - public void testNestedClassInAnnotationArgument() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt"); - } - - @TestMetadata("nestedEnum.kt") - public void testNestedEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt"); - } - - @TestMetadata("nestedFunctionTypeAliasExpansion.kt") - public void testNestedFunctionTypeAliasExpansion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt"); - } - - @TestMetadata("nestedObject.kt") - public void testNestedObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt"); - } - - @TestMetadata("nestedTypeAliasExpansion.kt") - public void testNestedTypeAliasExpansion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt"); - } - - @TestMetadata("noExplicitOverrideForDelegatedFromSupertype.kt") - public void testNoExplicitOverrideForDelegatedFromSupertype() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt"); - } - - @TestMetadata("optionalAnnotation.kt") - public void testOptionalAnnotation() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt"); - } - - @TestMetadata("platformTypes.kt") - public void testPlatformTypes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt"); - } - - @TestMetadata("privateCompanionObjectValInDifferentModule.kt") - public void testPrivateCompanionObjectValInDifferentModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt"); - } - - @TestMetadata("privateCompanionObjectValInDifferentModuleOldMangling.kt") - public void testPrivateCompanionObjectValInDifferentModuleOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt"); - } - - @TestMetadata("privateTopLevelValInDifferentModule.kt") - public void testPrivateTopLevelValInDifferentModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt"); - } - - @TestMetadata("privateTopLevelValInDifferentModuleOldMangling.kt") - public void testPrivateTopLevelValInDifferentModuleOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt"); - } - - @TestMetadata("propertyReference.kt") - public void testPropertyReference() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt"); - } - - @TestMetadata("recursiveGeneric.kt") - public void testRecursiveGeneric() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt"); - } - - @TestMetadata("reflectTopLevelFunctionOtherFile.kt") - public void testReflectTopLevelFunctionOtherFile() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt"); - } - - @TestMetadata("sealedClass.kt") - public void testSealedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt"); - } - - @TestMetadata("secondaryConstructors.kt") - public void testSecondaryConstructors() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/simple.kt"); - } - - @TestMetadata("simpleValAnonymousObject.kt") - public void testSimpleValAnonymousObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt"); - } - - @TestMetadata("specialBridgesInDependencies.kt") - public void testSpecialBridgesInDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt"); - } - - @TestMetadata("starImportEnum.kt") - public void testStarImportEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt"); - } - - @TestMetadata("suspendFunWithDefaultMangling.kt") - public void testSuspendFunWithDefaultMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt"); - } - - @TestMetadata("suspendFunWithDefaultOldMangling.kt") - public void testSuspendFunWithDefaultOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt"); - } - - @TestMetadata("targetedJvmName.kt") - public void testTargetedJvmName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt"); - } - - @TestMetadata("typeAliasesKt13181.kt") - public void testTypeAliasesKt13181() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt"); - } - - @TestMetadata("unsignedTypesInAnnotations.kt") - public void testUnsignedTypesInAnnotations() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt"); - } - - @TestMetadata("useDeserializedFunInterface.kt") - public void testUseDeserializedFunInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/fir") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Fir extends AbstractCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInFir() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("AnonymousObjectInProperty.kt") - public void testAnonymousObjectInProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt"); - } - - @TestMetadata("ExistingSymbolInFakeOverride.kt") - public void testExistingSymbolInFakeOverride() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt"); - } - - @TestMetadata("IncrementalCompilerRunner.kt") - public void testIncrementalCompilerRunner() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt"); - } - - @TestMetadata("IrConstAcceptMultiModule.kt") - public void testIrConstAcceptMultiModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt"); - } - - @TestMetadata("LibraryProperty.kt") - public void testLibraryProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt"); - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Jvm8 extends AbstractCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInJvm8() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Defaults extends AbstractCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInDefaults() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("superCall.kt") - public void testSuperCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt"); - } - - @TestMetadata("superCallFromInterface.kt") - public void testSuperCallFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt"); - } - - @TestMetadata("superCallFromInterface2.kt") - public void testSuperCallFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt"); - } - - @TestMetadata("superPropAccess.kt") - public void testSuperPropAccess() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt"); - } - - @TestMetadata("superPropAccessFromInterface.kt") - public void testSuperPropAccessFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt"); - } - - @TestMetadata("superPropAccessFromInterface2.kt") - public void testSuperPropAccessFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AllCompatibility extends AbstractCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInAllCompatibility() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("callStackTrace.kt") - public void testCallStackTrace() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt"); - } - - @TestMetadata("superCall.kt") - public void testSuperCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt"); - } - - @TestMetadata("superCallFromInterface.kt") - public void testSuperCallFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt"); - } - - @TestMetadata("superCallFromInterface2.kt") - public void testSuperCallFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt"); - } - - @TestMetadata("superPropAccess.kt") - public void testSuperPropAccess() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt"); - } - - @TestMetadata("superPropAccessFromInterface.kt") - public void testSuperPropAccessFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt"); - } - - @TestMetadata("superPropAccessFromInterface2.kt") - public void testSuperPropAccessFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DelegationBy extends AbstractCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInDelegationBy() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt"); - } - - @TestMetadata("simpleProperty.kt") - public void testSimpleProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt"); - } - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Interop extends AbstractCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInInterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("likeMemberClash.kt") - public void testLikeMemberClash() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt"); - } - - @TestMetadata("likeSpecialization.kt") - public void testLikeSpecialization() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt"); - } - - @TestMetadata("newAndOldSchemes.kt") - public void testNewAndOldSchemes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt"); - } - - @TestMetadata("newAndOldSchemes2.kt") - public void testNewAndOldSchemes2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt"); - } - - @TestMetadata("newAndOldSchemes2Compatibility.kt") - public void testNewAndOldSchemes2Compatibility() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt"); - } - - @TestMetadata("newAndOldSchemes3.kt") - public void testNewAndOldSchemes3() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt"); - } - - @TestMetadata("newSchemeWithJvmDefault.kt") - public void testNewSchemeWithJvmDefault() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt"); - } - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Jvm8against6 extends AbstractCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInJvm8against6() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("jdk8Against6.kt") - public void testJdk8Against6() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt"); - } - - @TestMetadata("simpleCall.kt") - public void testSimpleCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt"); - } - - @TestMetadata("simpleCallWithBigHierarchy.kt") - public void testSimpleCallWithBigHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt"); - } - - @TestMetadata("simpleCallWithHierarchy.kt") - public void testSimpleCallWithHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt"); - } - - @TestMetadata("simpleProp.kt") - public void testSimpleProp() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt"); - } - - @TestMetadata("simplePropWithHierarchy.kt") - public void testSimplePropWithHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Delegation extends AbstractCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInDelegation() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("diamond.kt") - public void testDiamond() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt"); - } - - @TestMetadata("diamond2.kt") - public void testDiamond2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt"); - } - - @TestMetadata("diamond3.kt") - public void testDiamond3() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt"); - } - } - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TypeAnnotations extends AbstractCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInTypeAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("implicitReturn.kt") - public void testImplicitReturn() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt"); - } - } -} diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index 872585a9061..baeac9480e1 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -27,7 +27,7 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } public void testAllFilesPresentInBox() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true, "ranges/stepped"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true, "ranges/stepped", "compileKotlinAgainstKotlin"); } @TestMetadata("compiler/testData/codegen/box/annotations") diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrCompileKotlinAgainstKotlinTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrCompileKotlinAgainstKotlinTestGenerated.java deleted file mode 100644 index 5d113d872e1..00000000000 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrCompileKotlinAgainstKotlinTestGenerated.java +++ /dev/null @@ -1,794 +0,0 @@ -/* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.codegen.ir; - -import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; -import org.jetbrains.kotlin.test.util.KtTestUtil; -import org.jetbrains.kotlin.test.TargetBackend; -import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; - -import java.io.File; -import java.util.regex.Pattern; - -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ -@SuppressWarnings("all") -@TestMetadata("compiler/testData/compileKotlinAgainstKotlin") -@TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) -public class IrCompileKotlinAgainstKotlinTestGenerated extends AbstractIrCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("annotationInInterface.kt") - public void testAnnotationInInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt"); - } - - @TestMetadata("annotationOnTypeUseInTypeAlias.kt") - public void testAnnotationOnTypeUseInTypeAlias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt"); - } - - @TestMetadata("annotationsOnTypeAliases.kt") - public void testAnnotationsOnTypeAliases() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt"); - } - - @TestMetadata("callDeserializedPropertyOnInlineClassType.kt") - public void testCallDeserializedPropertyOnInlineClassType() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt"); - } - - @TestMetadata("callDeserializedPropertyOnInlineClassTypeOldMangling.kt") - public void testCallDeserializedPropertyOnInlineClassTypeOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt"); - } - - @TestMetadata("callsToMultifileClassFromOtherPackage.kt") - public void testCallsToMultifileClassFromOtherPackage() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt"); - } - - @TestMetadata("clashingFakeOverrideSignatures.kt") - public void testClashingFakeOverrideSignatures() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt"); - } - - @TestMetadata("classInObject.kt") - public void testClassInObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/classInObject.kt"); - } - - @TestMetadata("companionObjectInEnum.kt") - public void testCompanionObjectInEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt"); - } - - @TestMetadata("companionObjectMember.kt") - public void testCompanionObjectMember() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt"); - } - - @TestMetadata("constPropertyReferenceFromMultifileClass.kt") - public void testConstPropertyReferenceFromMultifileClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt"); - } - - @TestMetadata("constructorVararg.kt") - public void testConstructorVararg() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt"); - } - - @TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt") - public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt"); - } - - @TestMetadata("constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt") - public void testConstructorWithInlineClassParametersInBinaryDependenciesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt"); - } - - @TestMetadata("copySamOnInline.kt") - public void testCopySamOnInline() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt"); - } - - @TestMetadata("copySamOnInline2.kt") - public void testCopySamOnInline2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt"); - } - - @TestMetadata("coroutinesBinary.kt") - public void testCoroutinesBinary() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt"); - } - - @TestMetadata("defaultConstructor.kt") - public void testDefaultConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt"); - } - - @TestMetadata("defaultLambdaRegeneration.kt") - public void testDefaultLambdaRegeneration() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt"); - } - - @TestMetadata("defaultLambdaRegeneration2.kt") - public void testDefaultLambdaRegeneration2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt"); - } - - @TestMetadata("defaultWithInlineClassAndReceivers.kt") - public void testDefaultWithInlineClassAndReceivers() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt"); - } - - @TestMetadata("defaultWithInlineClassAndReceiversOldMangling.kt") - public void testDefaultWithInlineClassAndReceiversOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt"); - } - - @TestMetadata("delegatedDefault.kt") - public void testDelegatedDefault() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt"); - } - - @TestMetadata("delegationAndAnnotations.kt") - public void testDelegationAndAnnotations() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt"); - } - - @TestMetadata("doublyNestedClass.kt") - public void testDoublyNestedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt"); - } - - @TestMetadata("enum.kt") - public void testEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/enum.kt"); - } - - @TestMetadata("expectClassActualTypeAlias.kt") - public void testExpectClassActualTypeAlias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt"); - } - - @TestMetadata("fakeOverridesForIntersectionTypes.kt") - public void testFakeOverridesForIntersectionTypes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt"); - } - - @TestMetadata("importCompanion.kt") - public void testImportCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/importCompanion.kt"); - } - - @TestMetadata("inlineClassFakeOverrideMangling.kt") - public void testInlineClassFakeOverrideMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt"); - } - - @TestMetadata("inlineClassFakeOverrideManglingOldMangling.kt") - public void testInlineClassFakeOverrideManglingOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt"); - } - - @TestMetadata("inlineClassFromBinaryDependencies.kt") - public void testInlineClassFromBinaryDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt"); - } - - @TestMetadata("inlineClassFromBinaryDependenciesOldMangling.kt") - public void testInlineClassFromBinaryDependenciesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt"); - } - - @TestMetadata("inlineClassInlineFunctionCall.kt") - public void testInlineClassInlineFunctionCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt"); - } - - @TestMetadata("inlineClassInlineFunctionCallOldMangling.kt") - public void testInlineClassInlineFunctionCallOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt"); - } - - @TestMetadata("inlineClassInlineProperty.kt") - public void testInlineClassInlineProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt"); - } - - @TestMetadata("inlineClassInlinePropertyOldMangling.kt") - public void testInlineClassInlinePropertyOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt"); - } - - @TestMetadata("inlineClassesOldMangling.kt") - public void testInlineClassesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt"); - } - - @TestMetadata("inlinedConstants.kt") - public void testInlinedConstants() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt"); - } - - @TestMetadata("innerClassConstructor.kt") - public void testInnerClassConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt"); - } - - @TestMetadata("interfaceDelegationAndBridgesProcessing.kt") - public void testInterfaceDelegationAndBridgesProcessing() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt"); - } - - @TestMetadata("internalSetterOverridden.kt") - public void testInternalSetterOverridden() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt"); - } - - @TestMetadata("internalWithDefaultArgs.kt") - public void testInternalWithDefaultArgs() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt"); - } - - @TestMetadata("internalWithInlineClass.kt") - public void testInternalWithInlineClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithInlineClass.kt"); - } - - @TestMetadata("internalWithOtherModuleName.kt") - public void testInternalWithOtherModuleName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt"); - } - - @TestMetadata("intersectionOverrideProperies.kt") - public void testIntersectionOverrideProperies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt"); - } - - @TestMetadata("jvmField.kt") - public void testJvmField() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmField.kt"); - } - - @TestMetadata("jvmFieldInAnnotationCompanion.kt") - public void testJvmFieldInAnnotationCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt"); - } - - @TestMetadata("jvmFieldInConstructor.kt") - public void testJvmFieldInConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt"); - } - - @TestMetadata("jvmFieldInInterfaceCompanion.kt") - public void testJvmFieldInInterfaceCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt"); - } - - @TestMetadata("jvmNames.kt") - public void testJvmNames() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt"); - } - - @TestMetadata("jvmPackageName.kt") - public void testJvmPackageName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt"); - } - - @TestMetadata("jvmPackageNameInRootPackage.kt") - public void testJvmPackageNameInRootPackage() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt"); - } - - @TestMetadata("jvmPackageNameMultifileClass.kt") - public void testJvmPackageNameMultifileClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt"); - } - - @TestMetadata("jvmPackageNameWithJvmName.kt") - public void testJvmPackageNameWithJvmName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt"); - } - - @TestMetadata("jvmStaticInObject.kt") - public void testJvmStaticInObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt"); - } - - @TestMetadata("jvmStaticInObjectPropertyReference.kt") - public void testJvmStaticInObjectPropertyReference() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt"); - } - - @TestMetadata("kotlinPropertyAsAnnotationParameter.kt") - public void testKotlinPropertyAsAnnotationParameter() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt"); - } - - @TestMetadata("kt14012.kt") - public void testKt14012() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012.kt"); - } - - @TestMetadata("kt14012_multi.kt") - public void testKt14012_multi() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt"); - } - - @TestMetadata("kt21775.kt") - public void testKt21775() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt21775.kt"); - } - - @TestMetadata("metadataForMembersInLocalClassInInitializer.kt") - public void testMetadataForMembersInLocalClassInInitializer() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt"); - } - - @TestMetadata("multifileClassInlineFunctionAccessingProperty.kt") - public void testMultifileClassInlineFunctionAccessingProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt"); - } - - @TestMetadata("multifileClassWithTypealias.kt") - public void testMultifileClassWithTypealias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt"); - } - - @TestMetadata("nestedClass.kt") - public void testNestedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt"); - } - - @TestMetadata("nestedClassInAnnotationArgument.kt") - public void testNestedClassInAnnotationArgument() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt"); - } - - @TestMetadata("nestedEnum.kt") - public void testNestedEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt"); - } - - @TestMetadata("nestedFunctionTypeAliasExpansion.kt") - public void testNestedFunctionTypeAliasExpansion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt"); - } - - @TestMetadata("nestedObject.kt") - public void testNestedObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt"); - } - - @TestMetadata("nestedTypeAliasExpansion.kt") - public void testNestedTypeAliasExpansion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt"); - } - - @TestMetadata("noExplicitOverrideForDelegatedFromSupertype.kt") - public void testNoExplicitOverrideForDelegatedFromSupertype() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt"); - } - - @TestMetadata("optionalAnnotation.kt") - public void testOptionalAnnotation() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt"); - } - - @TestMetadata("platformTypes.kt") - public void testPlatformTypes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt"); - } - - @TestMetadata("privateCompanionObjectValInDifferentModule.kt") - public void testPrivateCompanionObjectValInDifferentModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt"); - } - - @TestMetadata("privateCompanionObjectValInDifferentModuleOldMangling.kt") - public void testPrivateCompanionObjectValInDifferentModuleOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt"); - } - - @TestMetadata("privateTopLevelValInDifferentModule.kt") - public void testPrivateTopLevelValInDifferentModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt"); - } - - @TestMetadata("privateTopLevelValInDifferentModuleOldMangling.kt") - public void testPrivateTopLevelValInDifferentModuleOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt"); - } - - @TestMetadata("propertyReference.kt") - public void testPropertyReference() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt"); - } - - @TestMetadata("recursiveGeneric.kt") - public void testRecursiveGeneric() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt"); - } - - @TestMetadata("reflectTopLevelFunctionOtherFile.kt") - public void testReflectTopLevelFunctionOtherFile() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt"); - } - - @TestMetadata("sealedClass.kt") - public void testSealedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt"); - } - - @TestMetadata("secondaryConstructors.kt") - public void testSecondaryConstructors() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/simple.kt"); - } - - @TestMetadata("simpleValAnonymousObject.kt") - public void testSimpleValAnonymousObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt"); - } - - @TestMetadata("specialBridgesInDependencies.kt") - public void testSpecialBridgesInDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt"); - } - - @TestMetadata("starImportEnum.kt") - public void testStarImportEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt"); - } - - @TestMetadata("suspendFunWithDefaultMangling.kt") - public void testSuspendFunWithDefaultMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt"); - } - - @TestMetadata("suspendFunWithDefaultOldMangling.kt") - public void testSuspendFunWithDefaultOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt"); - } - - @TestMetadata("targetedJvmName.kt") - public void testTargetedJvmName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt"); - } - - @TestMetadata("typeAliasesKt13181.kt") - public void testTypeAliasesKt13181() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt"); - } - - @TestMetadata("unsignedTypesInAnnotations.kt") - public void testUnsignedTypesInAnnotations() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt"); - } - - @TestMetadata("useDeserializedFunInterface.kt") - public void testUseDeserializedFunInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/fir") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Fir extends AbstractIrCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInFir() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("AnonymousObjectInProperty.kt") - public void testAnonymousObjectInProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt"); - } - - @TestMetadata("ExistingSymbolInFakeOverride.kt") - public void testExistingSymbolInFakeOverride() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt"); - } - - @TestMetadata("IncrementalCompilerRunner.kt") - public void testIncrementalCompilerRunner() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt"); - } - - @TestMetadata("IrConstAcceptMultiModule.kt") - public void testIrConstAcceptMultiModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt"); - } - - @TestMetadata("LibraryProperty.kt") - public void testLibraryProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt"); - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Jvm8 extends AbstractIrCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInJvm8() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Defaults extends AbstractIrCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInDefaults() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("superCall.kt") - public void testSuperCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt"); - } - - @TestMetadata("superCallFromInterface.kt") - public void testSuperCallFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt"); - } - - @TestMetadata("superCallFromInterface2.kt") - public void testSuperCallFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt"); - } - - @TestMetadata("superPropAccess.kt") - public void testSuperPropAccess() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt"); - } - - @TestMetadata("superPropAccessFromInterface.kt") - public void testSuperPropAccessFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt"); - } - - @TestMetadata("superPropAccessFromInterface2.kt") - public void testSuperPropAccessFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AllCompatibility extends AbstractIrCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInAllCompatibility() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("callStackTrace.kt") - public void testCallStackTrace() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt"); - } - - @TestMetadata("superCall.kt") - public void testSuperCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt"); - } - - @TestMetadata("superCallFromInterface.kt") - public void testSuperCallFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt"); - } - - @TestMetadata("superCallFromInterface2.kt") - public void testSuperCallFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt"); - } - - @TestMetadata("superPropAccess.kt") - public void testSuperPropAccess() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt"); - } - - @TestMetadata("superPropAccessFromInterface.kt") - public void testSuperPropAccessFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt"); - } - - @TestMetadata("superPropAccessFromInterface2.kt") - public void testSuperPropAccessFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DelegationBy extends AbstractIrCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInDelegationBy() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt"); - } - - @TestMetadata("simpleProperty.kt") - public void testSimpleProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt"); - } - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Interop extends AbstractIrCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInInterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("likeMemberClash.kt") - public void testLikeMemberClash() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt"); - } - - @TestMetadata("likeSpecialization.kt") - public void testLikeSpecialization() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt"); - } - - @TestMetadata("newAndOldSchemes.kt") - public void testNewAndOldSchemes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt"); - } - - @TestMetadata("newAndOldSchemes2.kt") - public void testNewAndOldSchemes2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt"); - } - - @TestMetadata("newAndOldSchemes2Compatibility.kt") - public void testNewAndOldSchemes2Compatibility() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt"); - } - - @TestMetadata("newAndOldSchemes3.kt") - public void testNewAndOldSchemes3() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt"); - } - - @TestMetadata("newSchemeWithJvmDefault.kt") - public void testNewSchemeWithJvmDefault() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt"); - } - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Jvm8against6 extends AbstractIrCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInJvm8against6() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("jdk8Against6.kt") - public void testJdk8Against6() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt"); - } - - @TestMetadata("simpleCall.kt") - public void testSimpleCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt"); - } - - @TestMetadata("simpleCallWithBigHierarchy.kt") - public void testSimpleCallWithBigHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt"); - } - - @TestMetadata("simpleCallWithHierarchy.kt") - public void testSimpleCallWithHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt"); - } - - @TestMetadata("simpleProp.kt") - public void testSimpleProp() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt"); - } - - @TestMetadata("simplePropWithHierarchy.kt") - public void testSimplePropWithHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt"); - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Delegation extends AbstractIrCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInDelegation() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("diamond.kt") - public void testDiamond() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt"); - } - - @TestMetadata("diamond2.kt") - public void testDiamond2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt"); - } - - @TestMetadata("diamond3.kt") - public void testDiamond3() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt"); - } - } - } - } - - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TypeAnnotations extends AbstractIrCompileKotlinAgainstKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInTypeAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("implicitReturn.kt") - public void testImplicitReturn() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt"); - } - } -} diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmIrAgainstOldBoxTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmIrAgainstOldBoxTestGenerated.java index 7a938973a5b..cc3c7b87494 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmIrAgainstOldBoxTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmIrAgainstOldBoxTestGenerated.java @@ -18,7 +18,7 @@ import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") -@TestMetadata("compiler/testData/compileKotlinAgainstKotlin") +@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxTest { @@ -27,470 +27,470 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT } public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } @TestMetadata("annotationInInterface.kt") public void testAnnotationInInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationInInterface.kt"); } @TestMetadata("annotationOnTypeUseInTypeAlias.kt") public void testAnnotationOnTypeUseInTypeAlias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt"); } @TestMetadata("annotationsOnTypeAliases.kt") public void testAnnotationsOnTypeAliases() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt"); } @TestMetadata("callDeserializedPropertyOnInlineClassType.kt") public void testCallDeserializedPropertyOnInlineClassType() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt"); } @TestMetadata("callDeserializedPropertyOnInlineClassTypeOldMangling.kt") public void testCallDeserializedPropertyOnInlineClassTypeOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt"); } @TestMetadata("callsToMultifileClassFromOtherPackage.kt") public void testCallsToMultifileClassFromOtherPackage() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt"); } @TestMetadata("clashingFakeOverrideSignatures.kt") public void testClashingFakeOverrideSignatures() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt"); } @TestMetadata("classInObject.kt") public void testClassInObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/classInObject.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/classInObject.kt"); } @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectInEnum.kt"); } @TestMetadata("companionObjectMember.kt") public void testCompanionObjectMember() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectMember.kt"); } @TestMetadata("constPropertyReferenceFromMultifileClass.kt") public void testConstPropertyReferenceFromMultifileClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt"); } @TestMetadata("constructorVararg.kt") public void testConstructorVararg() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorVararg.kt"); } @TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt") public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt"); } @TestMetadata("constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt") public void testConstructorWithInlineClassParametersInBinaryDependenciesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt"); } @TestMetadata("copySamOnInline.kt") public void testCopySamOnInline() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline.kt"); } @TestMetadata("copySamOnInline2.kt") public void testCopySamOnInline2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline2.kt"); } @TestMetadata("coroutinesBinary.kt") public void testCoroutinesBinary() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/coroutinesBinary.kt"); } @TestMetadata("defaultConstructor.kt") public void testDefaultConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultConstructor.kt"); } @TestMetadata("defaultLambdaRegeneration.kt") public void testDefaultLambdaRegeneration() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt"); } @TestMetadata("defaultLambdaRegeneration2.kt") public void testDefaultLambdaRegeneration2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt"); } @TestMetadata("defaultWithInlineClassAndReceivers.kt") public void testDefaultWithInlineClassAndReceivers() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt"); } @TestMetadata("defaultWithInlineClassAndReceiversOldMangling.kt") public void testDefaultWithInlineClassAndReceiversOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt"); } @TestMetadata("delegatedDefault.kt") public void testDelegatedDefault() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegatedDefault.kt"); } @TestMetadata("delegationAndAnnotations.kt") public void testDelegationAndAnnotations() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegationAndAnnotations.kt"); } @TestMetadata("doublyNestedClass.kt") public void testDoublyNestedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/doublyNestedClass.kt"); } @TestMetadata("enum.kt") public void testEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/enum.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/enum.kt"); } @TestMetadata("expectClassActualTypeAlias.kt") public void testExpectClassActualTypeAlias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt"); } @TestMetadata("fakeOverridesForIntersectionTypes.kt") public void testFakeOverridesForIntersectionTypes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt"); } @TestMetadata("importCompanion.kt") public void testImportCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/importCompanion.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/importCompanion.kt"); } @TestMetadata("inlineClassFakeOverrideMangling.kt") public void testInlineClassFakeOverrideMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt"); } @TestMetadata("inlineClassFakeOverrideManglingOldMangling.kt") public void testInlineClassFakeOverrideManglingOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt"); } @TestMetadata("inlineClassFromBinaryDependencies.kt") public void testInlineClassFromBinaryDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt"); } @TestMetadata("inlineClassFromBinaryDependenciesOldMangling.kt") public void testInlineClassFromBinaryDependenciesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt"); } @TestMetadata("inlineClassInlineFunctionCall.kt") public void testInlineClassInlineFunctionCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt"); } @TestMetadata("inlineClassInlineFunctionCallOldMangling.kt") public void testInlineClassInlineFunctionCallOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt"); } @TestMetadata("inlineClassInlineProperty.kt") public void testInlineClassInlineProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt"); } @TestMetadata("inlineClassInlinePropertyOldMangling.kt") public void testInlineClassInlinePropertyOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt"); } @TestMetadata("inlineClassesOldMangling.kt") public void testInlineClassesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt"); } @TestMetadata("inlinedConstants.kt") public void testInlinedConstants() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlinedConstants.kt"); } @TestMetadata("innerClassConstructor.kt") public void testInnerClassConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/innerClassConstructor.kt"); } @TestMetadata("interfaceDelegationAndBridgesProcessing.kt") public void testInterfaceDelegationAndBridgesProcessing() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt"); } @TestMetadata("internalSetterOverridden.kt") public void testInternalSetterOverridden() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt"); } @TestMetadata("internalWithDefaultArgs.kt") public void testInternalWithDefaultArgs() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt"); } @TestMetadata("internalWithInlineClass.kt") public void testInternalWithInlineClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithInlineClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithInlineClass.kt"); } @TestMetadata("internalWithOtherModuleName.kt") public void testInternalWithOtherModuleName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt"); } @TestMetadata("intersectionOverrideProperies.kt") public void testIntersectionOverrideProperies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt"); } @TestMetadata("jvmField.kt") public void testJvmField() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmField.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmField.kt"); } @TestMetadata("jvmFieldInAnnotationCompanion.kt") public void testJvmFieldInAnnotationCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt"); } @TestMetadata("jvmFieldInConstructor.kt") public void testJvmFieldInConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt"); } @TestMetadata("jvmFieldInInterfaceCompanion.kt") public void testJvmFieldInInterfaceCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt"); } @TestMetadata("jvmNames.kt") public void testJvmNames() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt"); } @TestMetadata("jvmPackageName.kt") public void testJvmPackageName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageName.kt"); } @TestMetadata("jvmPackageNameInRootPackage.kt") public void testJvmPackageNameInRootPackage() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt"); } @TestMetadata("jvmPackageNameMultifileClass.kt") public void testJvmPackageNameMultifileClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt"); } @TestMetadata("jvmPackageNameWithJvmName.kt") public void testJvmPackageNameWithJvmName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt"); } @TestMetadata("jvmStaticInObject.kt") public void testJvmStaticInObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObject.kt"); } @TestMetadata("jvmStaticInObjectPropertyReference.kt") public void testJvmStaticInObjectPropertyReference() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt"); } @TestMetadata("kotlinPropertyAsAnnotationParameter.kt") public void testKotlinPropertyAsAnnotationParameter() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt"); } @TestMetadata("kt14012.kt") public void testKt14012() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt"); } @TestMetadata("kt14012_multi.kt") public void testKt14012_multi() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012_multi.kt"); } @TestMetadata("kt21775.kt") public void testKt21775() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt21775.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt"); } @TestMetadata("metadataForMembersInLocalClassInInitializer.kt") public void testMetadataForMembersInLocalClassInInitializer() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt"); } @TestMetadata("multifileClassInlineFunctionAccessingProperty.kt") public void testMultifileClassInlineFunctionAccessingProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt"); } @TestMetadata("multifileClassWithTypealias.kt") public void testMultifileClassWithTypealias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt"); } @TestMetadata("nestedClass.kt") public void testNestedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClass.kt"); } @TestMetadata("nestedClassInAnnotationArgument.kt") public void testNestedClassInAnnotationArgument() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt"); } @TestMetadata("nestedEnum.kt") public void testNestedEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedEnum.kt"); } @TestMetadata("nestedFunctionTypeAliasExpansion.kt") public void testNestedFunctionTypeAliasExpansion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt"); } @TestMetadata("nestedObject.kt") public void testNestedObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedObject.kt"); } @TestMetadata("nestedTypeAliasExpansion.kt") public void testNestedTypeAliasExpansion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt"); } @TestMetadata("noExplicitOverrideForDelegatedFromSupertype.kt") public void testNoExplicitOverrideForDelegatedFromSupertype() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt"); } @TestMetadata("optionalAnnotation.kt") public void testOptionalAnnotation() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/optionalAnnotation.kt"); } @TestMetadata("platformTypes.kt") public void testPlatformTypes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/platformTypes.kt"); } @TestMetadata("privateCompanionObjectValInDifferentModule.kt") public void testPrivateCompanionObjectValInDifferentModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt"); } @TestMetadata("privateCompanionObjectValInDifferentModuleOldMangling.kt") public void testPrivateCompanionObjectValInDifferentModuleOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt"); } @TestMetadata("privateTopLevelValInDifferentModule.kt") public void testPrivateTopLevelValInDifferentModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt"); } @TestMetadata("privateTopLevelValInDifferentModuleOldMangling.kt") public void testPrivateTopLevelValInDifferentModuleOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt"); } @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/propertyReference.kt"); } @TestMetadata("recursiveGeneric.kt") public void testRecursiveGeneric() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/recursiveGeneric.kt"); } @TestMetadata("reflectTopLevelFunctionOtherFile.kt") public void testReflectTopLevelFunctionOtherFile() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt"); } @TestMetadata("sealedClass.kt") public void testSealedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/sealedClass.kt"); } @TestMetadata("secondaryConstructors.kt") public void testSecondaryConstructors() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/secondaryConstructors.kt"); } @TestMetadata("simple.kt") public void testSimple() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/simple.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simple.kt"); } @TestMetadata("simpleValAnonymousObject.kt") public void testSimpleValAnonymousObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt"); } @TestMetadata("specialBridgesInDependencies.kt") public void testSpecialBridgesInDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt"); } @TestMetadata("starImportEnum.kt") public void testStarImportEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/starImportEnum.kt"); } @TestMetadata("suspendFunWithDefaultMangling.kt") public void testSuspendFunWithDefaultMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt"); } @TestMetadata("suspendFunWithDefaultOldMangling.kt") public void testSuspendFunWithDefaultOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt"); } @TestMetadata("targetedJvmName.kt") public void testTargetedJvmName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt"); } @TestMetadata("typeAliasesKt13181.kt") public void testTypeAliasesKt13181() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAliasesKt13181.kt"); } @TestMetadata("unsignedTypesInAnnotations.kt") public void testUnsignedTypesInAnnotations() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt"); } @TestMetadata("useDeserializedFunInterface.kt") public void testUseDeserializedFunInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt"); } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/fir") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Fir extends AbstractJvmIrAgainstOldBoxTest { @@ -499,36 +499,36 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT } public void testAllFilesPresentInFir() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } @TestMetadata("AnonymousObjectInProperty.kt") public void testAnonymousObjectInProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt"); } @TestMetadata("ExistingSymbolInFakeOverride.kt") public void testExistingSymbolInFakeOverride() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt"); } @TestMetadata("IncrementalCompilerRunner.kt") public void testIncrementalCompilerRunner() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt"); } @TestMetadata("IrConstAcceptMultiModule.kt") public void testIrConstAcceptMultiModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt"); } @TestMetadata("LibraryProperty.kt") public void testLibraryProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/LibraryProperty.kt"); } } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Jvm8 extends AbstractJvmIrAgainstOldBoxTest { @@ -537,10 +537,10 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT } public void testAllFilesPresentInJvm8() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Defaults extends AbstractJvmIrAgainstOldBoxTest { @@ -549,40 +549,40 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT } public void testAllFilesPresentInDefaults() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt"); } @TestMetadata("superCallFromInterface.kt") public void testSuperCallFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt"); } @TestMetadata("superCallFromInterface2.kt") public void testSuperCallFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt"); } @TestMetadata("superPropAccess.kt") public void testSuperPropAccess() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt"); } @TestMetadata("superPropAccessFromInterface.kt") public void testSuperPropAccessFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt"); } @TestMetadata("superPropAccessFromInterface2.kt") public void testSuperPropAccessFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt"); } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class AllCompatibility extends AbstractJvmIrAgainstOldBoxTest { @@ -591,45 +591,45 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT } public void testAllFilesPresentInAllCompatibility() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } @TestMetadata("callStackTrace.kt") public void testCallStackTrace() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt"); } @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt"); } @TestMetadata("superCallFromInterface.kt") public void testSuperCallFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt"); } @TestMetadata("superCallFromInterface2.kt") public void testSuperCallFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt"); } @TestMetadata("superPropAccess.kt") public void testSuperPropAccess() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt"); } @TestMetadata("superPropAccessFromInterface.kt") public void testSuperPropAccessFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt"); } @TestMetadata("superPropAccessFromInterface2.kt") public void testSuperPropAccessFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt"); } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class DelegationBy extends AbstractJvmIrAgainstOldBoxTest { @@ -638,22 +638,22 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT } public void testAllFilesPresentInDelegationBy() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } @TestMetadata("simple.kt") public void testSimple() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt"); } @TestMetadata("simpleProperty.kt") public void testSimpleProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt"); } } } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Interop extends AbstractJvmIrAgainstOldBoxTest { @@ -662,47 +662,47 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT } public void testAllFilesPresentInInterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } @TestMetadata("likeMemberClash.kt") public void testLikeMemberClash() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt"); } @TestMetadata("likeSpecialization.kt") public void testLikeSpecialization() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt"); } @TestMetadata("newAndOldSchemes.kt") public void testNewAndOldSchemes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt"); } @TestMetadata("newAndOldSchemes2.kt") public void testNewAndOldSchemes2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt"); } @TestMetadata("newAndOldSchemes2Compatibility.kt") public void testNewAndOldSchemes2Compatibility() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt"); } @TestMetadata("newAndOldSchemes3.kt") public void testNewAndOldSchemes3() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt"); } @TestMetadata("newSchemeWithJvmDefault.kt") public void testNewSchemeWithJvmDefault() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt"); } } } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Jvm8against6 extends AbstractJvmIrAgainstOldBoxTest { @@ -711,40 +711,40 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT } public void testAllFilesPresentInJvm8against6() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } @TestMetadata("jdk8Against6.kt") public void testJdk8Against6() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt"); } @TestMetadata("simpleCall.kt") public void testSimpleCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt"); } @TestMetadata("simpleCallWithBigHierarchy.kt") public void testSimpleCallWithBigHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt"); } @TestMetadata("simpleCallWithHierarchy.kt") public void testSimpleCallWithHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt"); } @TestMetadata("simpleProp.kt") public void testSimpleProp() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt"); } @TestMetadata("simplePropWithHierarchy.kt") public void testSimplePropWithHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt"); } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Delegation extends AbstractJvmIrAgainstOldBoxTest { @@ -753,28 +753,28 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT } public void testAllFilesPresentInDelegation() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } @TestMetadata("diamond.kt") public void testDiamond() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt"); } @TestMetadata("diamond2.kt") public void testDiamond2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt"); } @TestMetadata("diamond3.kt") public void testDiamond3() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt"); } } } } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class TypeAnnotations extends AbstractJvmIrAgainstOldBoxTest { @@ -783,12 +783,12 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT } public void testAllFilesPresentInTypeAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } @TestMetadata("implicitReturn.kt") public void testImplicitReturn() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt"); } } } diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmOldAgainstIrBoxTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmOldAgainstIrBoxTestGenerated.java index 05848569b43..a13e5d215e4 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmOldAgainstIrBoxTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmOldAgainstIrBoxTestGenerated.java @@ -18,7 +18,7 @@ import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") -@TestMetadata("compiler/testData/compileKotlinAgainstKotlin") +@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxTest { @@ -27,470 +27,470 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT } public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } @TestMetadata("annotationInInterface.kt") public void testAnnotationInInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationInInterface.kt"); } @TestMetadata("annotationOnTypeUseInTypeAlias.kt") public void testAnnotationOnTypeUseInTypeAlias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt"); } @TestMetadata("annotationsOnTypeAliases.kt") public void testAnnotationsOnTypeAliases() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt"); } @TestMetadata("callDeserializedPropertyOnInlineClassType.kt") public void testCallDeserializedPropertyOnInlineClassType() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt"); } @TestMetadata("callDeserializedPropertyOnInlineClassTypeOldMangling.kt") public void testCallDeserializedPropertyOnInlineClassTypeOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt"); } @TestMetadata("callsToMultifileClassFromOtherPackage.kt") public void testCallsToMultifileClassFromOtherPackage() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt"); } @TestMetadata("clashingFakeOverrideSignatures.kt") public void testClashingFakeOverrideSignatures() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt"); } @TestMetadata("classInObject.kt") public void testClassInObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/classInObject.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/classInObject.kt"); } @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectInEnum.kt"); } @TestMetadata("companionObjectMember.kt") public void testCompanionObjectMember() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectMember.kt"); } @TestMetadata("constPropertyReferenceFromMultifileClass.kt") public void testConstPropertyReferenceFromMultifileClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt"); } @TestMetadata("constructorVararg.kt") public void testConstructorVararg() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorVararg.kt"); } @TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt") public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt"); } @TestMetadata("constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt") public void testConstructorWithInlineClassParametersInBinaryDependenciesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt"); } @TestMetadata("copySamOnInline.kt") public void testCopySamOnInline() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline.kt"); } @TestMetadata("copySamOnInline2.kt") public void testCopySamOnInline2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline2.kt"); } @TestMetadata("coroutinesBinary.kt") public void testCoroutinesBinary() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/coroutinesBinary.kt"); } @TestMetadata("defaultConstructor.kt") public void testDefaultConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultConstructor.kt"); } @TestMetadata("defaultLambdaRegeneration.kt") public void testDefaultLambdaRegeneration() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt"); } @TestMetadata("defaultLambdaRegeneration2.kt") public void testDefaultLambdaRegeneration2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt"); } @TestMetadata("defaultWithInlineClassAndReceivers.kt") public void testDefaultWithInlineClassAndReceivers() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt"); } @TestMetadata("defaultWithInlineClassAndReceiversOldMangling.kt") public void testDefaultWithInlineClassAndReceiversOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt"); } @TestMetadata("delegatedDefault.kt") public void testDelegatedDefault() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegatedDefault.kt"); } @TestMetadata("delegationAndAnnotations.kt") public void testDelegationAndAnnotations() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegationAndAnnotations.kt"); } @TestMetadata("doublyNestedClass.kt") public void testDoublyNestedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/doublyNestedClass.kt"); } @TestMetadata("enum.kt") public void testEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/enum.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/enum.kt"); } @TestMetadata("expectClassActualTypeAlias.kt") public void testExpectClassActualTypeAlias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt"); } @TestMetadata("fakeOverridesForIntersectionTypes.kt") public void testFakeOverridesForIntersectionTypes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt"); } @TestMetadata("importCompanion.kt") public void testImportCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/importCompanion.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/importCompanion.kt"); } @TestMetadata("inlineClassFakeOverrideMangling.kt") public void testInlineClassFakeOverrideMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt"); } @TestMetadata("inlineClassFakeOverrideManglingOldMangling.kt") public void testInlineClassFakeOverrideManglingOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt"); } @TestMetadata("inlineClassFromBinaryDependencies.kt") public void testInlineClassFromBinaryDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt"); } @TestMetadata("inlineClassFromBinaryDependenciesOldMangling.kt") public void testInlineClassFromBinaryDependenciesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt"); } @TestMetadata("inlineClassInlineFunctionCall.kt") public void testInlineClassInlineFunctionCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt"); } @TestMetadata("inlineClassInlineFunctionCallOldMangling.kt") public void testInlineClassInlineFunctionCallOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt"); } @TestMetadata("inlineClassInlineProperty.kt") public void testInlineClassInlineProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt"); } @TestMetadata("inlineClassInlinePropertyOldMangling.kt") public void testInlineClassInlinePropertyOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt"); } @TestMetadata("inlineClassesOldMangling.kt") public void testInlineClassesOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt"); } @TestMetadata("inlinedConstants.kt") public void testInlinedConstants() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlinedConstants.kt"); } @TestMetadata("innerClassConstructor.kt") public void testInnerClassConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/innerClassConstructor.kt"); } @TestMetadata("interfaceDelegationAndBridgesProcessing.kt") public void testInterfaceDelegationAndBridgesProcessing() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt"); } @TestMetadata("internalSetterOverridden.kt") public void testInternalSetterOverridden() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt"); } @TestMetadata("internalWithDefaultArgs.kt") public void testInternalWithDefaultArgs() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt"); } @TestMetadata("internalWithInlineClass.kt") public void testInternalWithInlineClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithInlineClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithInlineClass.kt"); } @TestMetadata("internalWithOtherModuleName.kt") public void testInternalWithOtherModuleName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt"); } @TestMetadata("intersectionOverrideProperies.kt") public void testIntersectionOverrideProperies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt"); } @TestMetadata("jvmField.kt") public void testJvmField() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmField.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmField.kt"); } @TestMetadata("jvmFieldInAnnotationCompanion.kt") public void testJvmFieldInAnnotationCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt"); } @TestMetadata("jvmFieldInConstructor.kt") public void testJvmFieldInConstructor() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt"); } @TestMetadata("jvmFieldInInterfaceCompanion.kt") public void testJvmFieldInInterfaceCompanion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt"); } @TestMetadata("jvmNames.kt") public void testJvmNames() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt"); } @TestMetadata("jvmPackageName.kt") public void testJvmPackageName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageName.kt"); } @TestMetadata("jvmPackageNameInRootPackage.kt") public void testJvmPackageNameInRootPackage() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt"); } @TestMetadata("jvmPackageNameMultifileClass.kt") public void testJvmPackageNameMultifileClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt"); } @TestMetadata("jvmPackageNameWithJvmName.kt") public void testJvmPackageNameWithJvmName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt"); } @TestMetadata("jvmStaticInObject.kt") public void testJvmStaticInObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObject.kt"); } @TestMetadata("jvmStaticInObjectPropertyReference.kt") public void testJvmStaticInObjectPropertyReference() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt"); } @TestMetadata("kotlinPropertyAsAnnotationParameter.kt") public void testKotlinPropertyAsAnnotationParameter() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt"); } @TestMetadata("kt14012.kt") public void testKt14012() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt"); } @TestMetadata("kt14012_multi.kt") public void testKt14012_multi() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012_multi.kt"); } @TestMetadata("kt21775.kt") public void testKt21775() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/kt21775.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt"); } @TestMetadata("metadataForMembersInLocalClassInInitializer.kt") public void testMetadataForMembersInLocalClassInInitializer() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt"); } @TestMetadata("multifileClassInlineFunctionAccessingProperty.kt") public void testMultifileClassInlineFunctionAccessingProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt"); } @TestMetadata("multifileClassWithTypealias.kt") public void testMultifileClassWithTypealias() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt"); } @TestMetadata("nestedClass.kt") public void testNestedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClass.kt"); } @TestMetadata("nestedClassInAnnotationArgument.kt") public void testNestedClassInAnnotationArgument() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt"); } @TestMetadata("nestedEnum.kt") public void testNestedEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedEnum.kt"); } @TestMetadata("nestedFunctionTypeAliasExpansion.kt") public void testNestedFunctionTypeAliasExpansion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt"); } @TestMetadata("nestedObject.kt") public void testNestedObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedObject.kt"); } @TestMetadata("nestedTypeAliasExpansion.kt") public void testNestedTypeAliasExpansion() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt"); } @TestMetadata("noExplicitOverrideForDelegatedFromSupertype.kt") public void testNoExplicitOverrideForDelegatedFromSupertype() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt"); } @TestMetadata("optionalAnnotation.kt") public void testOptionalAnnotation() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/optionalAnnotation.kt"); } @TestMetadata("platformTypes.kt") public void testPlatformTypes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/platformTypes.kt"); } @TestMetadata("privateCompanionObjectValInDifferentModule.kt") public void testPrivateCompanionObjectValInDifferentModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt"); } @TestMetadata("privateCompanionObjectValInDifferentModuleOldMangling.kt") public void testPrivateCompanionObjectValInDifferentModuleOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt"); } @TestMetadata("privateTopLevelValInDifferentModule.kt") public void testPrivateTopLevelValInDifferentModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt"); } @TestMetadata("privateTopLevelValInDifferentModuleOldMangling.kt") public void testPrivateTopLevelValInDifferentModuleOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt"); } @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/propertyReference.kt"); } @TestMetadata("recursiveGeneric.kt") public void testRecursiveGeneric() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/recursiveGeneric.kt"); } @TestMetadata("reflectTopLevelFunctionOtherFile.kt") public void testReflectTopLevelFunctionOtherFile() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt"); } @TestMetadata("sealedClass.kt") public void testSealedClass() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/sealedClass.kt"); } @TestMetadata("secondaryConstructors.kt") public void testSecondaryConstructors() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/secondaryConstructors.kt"); } @TestMetadata("simple.kt") public void testSimple() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/simple.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simple.kt"); } @TestMetadata("simpleValAnonymousObject.kt") public void testSimpleValAnonymousObject() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt"); } @TestMetadata("specialBridgesInDependencies.kt") public void testSpecialBridgesInDependencies() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt"); } @TestMetadata("starImportEnum.kt") public void testStarImportEnum() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/starImportEnum.kt"); } @TestMetadata("suspendFunWithDefaultMangling.kt") public void testSuspendFunWithDefaultMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt"); } @TestMetadata("suspendFunWithDefaultOldMangling.kt") public void testSuspendFunWithDefaultOldMangling() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt"); } @TestMetadata("targetedJvmName.kt") public void testTargetedJvmName() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt"); } @TestMetadata("typeAliasesKt13181.kt") public void testTypeAliasesKt13181() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAliasesKt13181.kt"); } @TestMetadata("unsignedTypesInAnnotations.kt") public void testUnsignedTypesInAnnotations() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt"); } @TestMetadata("useDeserializedFunInterface.kt") public void testUseDeserializedFunInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt"); } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/fir") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Fir extends AbstractJvmOldAgainstIrBoxTest { @@ -499,36 +499,36 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT } public void testAllFilesPresentInFir() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } @TestMetadata("AnonymousObjectInProperty.kt") public void testAnonymousObjectInProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt"); } @TestMetadata("ExistingSymbolInFakeOverride.kt") public void testExistingSymbolInFakeOverride() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt"); } @TestMetadata("IncrementalCompilerRunner.kt") public void testIncrementalCompilerRunner() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt"); } @TestMetadata("IrConstAcceptMultiModule.kt") public void testIrConstAcceptMultiModule() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt"); } @TestMetadata("LibraryProperty.kt") public void testLibraryProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/LibraryProperty.kt"); } } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Jvm8 extends AbstractJvmOldAgainstIrBoxTest { @@ -537,10 +537,10 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT } public void testAllFilesPresentInJvm8() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Defaults extends AbstractJvmOldAgainstIrBoxTest { @@ -549,40 +549,40 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT } public void testAllFilesPresentInDefaults() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt"); } @TestMetadata("superCallFromInterface.kt") public void testSuperCallFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt"); } @TestMetadata("superCallFromInterface2.kt") public void testSuperCallFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt"); } @TestMetadata("superPropAccess.kt") public void testSuperPropAccess() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt"); } @TestMetadata("superPropAccessFromInterface.kt") public void testSuperPropAccessFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt"); } @TestMetadata("superPropAccessFromInterface2.kt") public void testSuperPropAccessFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt"); } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class AllCompatibility extends AbstractJvmOldAgainstIrBoxTest { @@ -591,45 +591,45 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT } public void testAllFilesPresentInAllCompatibility() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } @TestMetadata("callStackTrace.kt") public void testCallStackTrace() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt"); } @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt"); } @TestMetadata("superCallFromInterface.kt") public void testSuperCallFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt"); } @TestMetadata("superCallFromInterface2.kt") public void testSuperCallFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt"); } @TestMetadata("superPropAccess.kt") public void testSuperPropAccess() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt"); } @TestMetadata("superPropAccessFromInterface.kt") public void testSuperPropAccessFromInterface() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt"); } @TestMetadata("superPropAccessFromInterface2.kt") public void testSuperPropAccessFromInterface2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt"); } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class DelegationBy extends AbstractJvmOldAgainstIrBoxTest { @@ -638,22 +638,22 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT } public void testAllFilesPresentInDelegationBy() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } @TestMetadata("simple.kt") public void testSimple() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt"); } @TestMetadata("simpleProperty.kt") public void testSimpleProperty() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt"); } } } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Interop extends AbstractJvmOldAgainstIrBoxTest { @@ -662,47 +662,47 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT } public void testAllFilesPresentInInterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } @TestMetadata("likeMemberClash.kt") public void testLikeMemberClash() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt"); } @TestMetadata("likeSpecialization.kt") public void testLikeSpecialization() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt"); } @TestMetadata("newAndOldSchemes.kt") public void testNewAndOldSchemes() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt"); } @TestMetadata("newAndOldSchemes2.kt") public void testNewAndOldSchemes2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt"); } @TestMetadata("newAndOldSchemes2Compatibility.kt") public void testNewAndOldSchemes2Compatibility() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt"); } @TestMetadata("newAndOldSchemes3.kt") public void testNewAndOldSchemes3() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt"); } @TestMetadata("newSchemeWithJvmDefault.kt") public void testNewSchemeWithJvmDefault() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt"); } } } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Jvm8against6 extends AbstractJvmOldAgainstIrBoxTest { @@ -711,40 +711,40 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT } public void testAllFilesPresentInJvm8against6() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } @TestMetadata("jdk8Against6.kt") public void testJdk8Against6() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt"); } @TestMetadata("simpleCall.kt") public void testSimpleCall() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt"); } @TestMetadata("simpleCallWithBigHierarchy.kt") public void testSimpleCallWithBigHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt"); } @TestMetadata("simpleCallWithHierarchy.kt") public void testSimpleCallWithHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt"); } @TestMetadata("simpleProp.kt") public void testSimpleProp() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt"); } @TestMetadata("simplePropWithHierarchy.kt") public void testSimplePropWithHierarchy() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt"); } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Delegation extends AbstractJvmOldAgainstIrBoxTest { @@ -753,28 +753,28 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT } public void testAllFilesPresentInDelegation() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } @TestMetadata("diamond.kt") public void testDiamond() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt"); } @TestMetadata("diamond2.kt") public void testDiamond2() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt"); } @TestMetadata("diamond3.kt") public void testDiamond3() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt"); } } } } - @TestMetadata("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations") + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class TypeAnnotations extends AbstractJvmOldAgainstIrBoxTest { @@ -783,12 +783,12 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT } public void testAllFilesPresentInTypeAnnotations() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } @TestMetadata("implicitReturn.kt") public void testImplicitReturn() throws Exception { - runTest("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt"); + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt"); } } } diff --git a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt index de2b7e14f67..30f955daf95 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt @@ -70,15 +70,15 @@ fun main(args: Array) { testGroup("js/js.tests/tests-gen", "compiler/testData", testRunnerMethodName = "runTest0") { testClass { - model("codegen/box", targetBackend = TargetBackend.JS) + model("codegen/box", targetBackend = TargetBackend.JS, excludeDirs = listOf("compileKotlinAgainstKotlin")) } testClass { - model("codegen/box", targetBackend = TargetBackend.JS_IR) + model("codegen/box", targetBackend = TargetBackend.JS_IR, excludeDirs = listOf("compileKotlinAgainstKotlin")) } testClass { - model("codegen/boxError", targetBackend = TargetBackend.JS_IR) + model("codegen/boxError", targetBackend = TargetBackend.JS_IR, excludeDirs = listOf("compileKotlinAgainstKotlin")) } testClass { @@ -103,7 +103,9 @@ fun main(args: Array) { // TODO: Support delegated properties "delegatedProperty", - "oldLanguageVersions" + "oldLanguageVersions", + + "compileKotlinAgainstKotlin" ) ) } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java index 7c0c1f99fc4..55dc7c08a6f 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java @@ -4145,6 +4145,521 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes } } + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CompileKotlinAgainstKotlin extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callDeserializedPropertyOnInlineClassType.kt") + public void testCallDeserializedPropertyOnInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt"); + } + + @TestMetadata("clashingFakeOverrideSignatures.kt") + public void testClashingFakeOverrideSignatures() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt"); + } + + @TestMetadata("classInObject.kt") + public void testClassInObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/classInObject.kt"); + } + + @TestMetadata("companionObjectInEnum.kt") + public void testCompanionObjectInEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectInEnum.kt"); + } + + @TestMetadata("companionObjectMember.kt") + public void testCompanionObjectMember() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectMember.kt"); + } + + @TestMetadata("constructorVararg.kt") + public void testConstructorVararg() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorVararg.kt"); + } + + @TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt") + public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt"); + } + + @TestMetadata("copySamOnInline.kt") + public void testCopySamOnInline() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline.kt"); + } + + @TestMetadata("copySamOnInline2.kt") + public void testCopySamOnInline2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline2.kt"); + } + + @TestMetadata("coroutinesBinary.kt") + public void testCoroutinesBinary() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/coroutinesBinary.kt"); + } + + @TestMetadata("defaultConstructor.kt") + public void testDefaultConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultConstructor.kt"); + } + + @TestMetadata("defaultWithInlineClassAndReceivers.kt") + public void testDefaultWithInlineClassAndReceivers() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt"); + } + + @TestMetadata("delegatedDefault.kt") + public void testDelegatedDefault() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegatedDefault.kt"); + } + + @TestMetadata("doublyNestedClass.kt") + public void testDoublyNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/doublyNestedClass.kt"); + } + + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/enum.kt"); + } + + @TestMetadata("expectClassActualTypeAlias.kt") + public void testExpectClassActualTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt"); + } + + @TestMetadata("inlineClassFakeOverrideMangling.kt") + public void testInlineClassFakeOverrideMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt"); + } + + @TestMetadata("inlineClassFromBinaryDependencies.kt") + public void testInlineClassFromBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt"); + } + + @TestMetadata("inlineClassInlineFunctionCall.kt") + public void testInlineClassInlineFunctionCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt"); + } + + @TestMetadata("inlineClassInlineProperty.kt") + public void testInlineClassInlineProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt"); + } + + @TestMetadata("inlineClassesOldMangling.kt") + public void testInlineClassesOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt"); + } + + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/innerClassConstructor.kt"); + } + + @TestMetadata("interfaceDelegationAndBridgesProcessing.kt") + public void testInterfaceDelegationAndBridgesProcessing() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt"); + } + + @TestMetadata("internalSetterOverridden.kt") + public void testInternalSetterOverridden() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt"); + } + + @TestMetadata("internalWithDefaultArgs.kt") + public void testInternalWithDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt"); + } + + @TestMetadata("internalWithInlineClass.kt") + public void testInternalWithInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithInlineClass.kt"); + } + + @TestMetadata("internalWithOtherModuleName.kt") + public void testInternalWithOtherModuleName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt"); + } + + @TestMetadata("kt14012.kt") + public void testKt14012() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt"); + } + + @TestMetadata("kt21775.kt") + public void testKt21775() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt"); + } + + @TestMetadata("nestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClass.kt"); + } + + @TestMetadata("nestedClassInAnnotationArgument.kt") + public void testNestedClassInAnnotationArgument() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt"); + } + + @TestMetadata("nestedEnum.kt") + public void testNestedEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedEnum.kt"); + } + + @TestMetadata("nestedFunctionTypeAliasExpansion.kt") + public void testNestedFunctionTypeAliasExpansion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt"); + } + + @TestMetadata("nestedObject.kt") + public void testNestedObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedObject.kt"); + } + + @TestMetadata("nestedTypeAliasExpansion.kt") + public void testNestedTypeAliasExpansion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt"); + } + + @TestMetadata("privateCompanionObjectValInDifferentModule.kt") + public void testPrivateCompanionObjectValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt"); + } + + @TestMetadata("privateTopLevelValInDifferentModule.kt") + public void testPrivateTopLevelValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt"); + } + + @TestMetadata("propertyReference.kt") + public void testPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/propertyReference.kt"); + } + + @TestMetadata("sealedClass.kt") + public void testSealedClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/sealedClass.kt"); + } + + @TestMetadata("secondaryConstructors.kt") + public void testSecondaryConstructors() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/secondaryConstructors.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simple.kt"); + } + + @TestMetadata("simpleValAnonymousObject.kt") + public void testSimpleValAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt"); + } + + @TestMetadata("specialBridgesInDependencies.kt") + public void testSpecialBridgesInDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt"); + } + + @TestMetadata("starImportEnum.kt") + public void testStarImportEnum() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/starImportEnum.kt"); + } + + @TestMetadata("suspendFunWithDefaultMangling.kt") + public void testSuspendFunWithDefaultMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt"); + } + + @TestMetadata("typeAliasesKt13181.kt") + public void testTypeAliasesKt13181() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAliasesKt13181.kt"); + } + + @TestMetadata("unsignedTypesInAnnotations.kt") + public void testUnsignedTypesInAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt"); + } + + @TestMetadata("useDeserializedFunInterface.kt") + public void testUseDeserializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Fir extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFir() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Jvm8 extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvm8() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Defaults extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDefaults() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt"); + } + + @TestMetadata("superCallFromInterface.kt") + public void testSuperCallFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt"); + } + + @TestMetadata("superCallFromInterface2.kt") + public void testSuperCallFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt"); + } + + @TestMetadata("superPropAccess.kt") + public void testSuperPropAccess() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt"); + } + + @TestMetadata("superPropAccessFromInterface.kt") + public void testSuperPropAccessFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt"); + } + + @TestMetadata("superPropAccessFromInterface2.kt") + public void testSuperPropAccessFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class AllCompatibility extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAllCompatibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callStackTrace.kt") + public void testCallStackTrace() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt"); + } + + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt"); + } + + @TestMetadata("superCallFromInterface.kt") + public void testSuperCallFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt"); + } + + @TestMetadata("superCallFromInterface2.kt") + public void testSuperCallFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt"); + } + + @TestMetadata("superPropAccess.kt") + public void testSuperPropAccess() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt"); + } + + @TestMetadata("superPropAccessFromInterface.kt") + public void testSuperPropAccessFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt"); + } + + @TestMetadata("superPropAccessFromInterface2.kt") + public void testSuperPropAccessFromInterface2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DelegationBy extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDelegationBy() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Interop extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("likeMemberClash.kt") + public void testLikeMemberClash() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt"); + } + + @TestMetadata("likeSpecialization.kt") + public void testLikeSpecialization() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt"); + } + + @TestMetadata("newAndOldSchemes.kt") + public void testNewAndOldSchemes() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt"); + } + + @TestMetadata("newAndOldSchemes2.kt") + public void testNewAndOldSchemes2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt"); + } + + @TestMetadata("newAndOldSchemes2Compatibility.kt") + public void testNewAndOldSchemes2Compatibility() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt"); + } + + @TestMetadata("newAndOldSchemes3.kt") + public void testNewAndOldSchemes3() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt"); + } + + @TestMetadata("newSchemeWithJvmDefault.kt") + public void testNewSchemeWithJvmDefault() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Jvm8against6 extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvm8against6() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("jdk8Against6.kt") + public void testJdk8Against6() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt"); + } + + @TestMetadata("simpleCall.kt") + public void testSimpleCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt"); + } + + @TestMetadata("simpleCallWithBigHierarchy.kt") + public void testSimpleCallWithBigHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt"); + } + + @TestMetadata("simpleCallWithHierarchy.kt") + public void testSimpleCallWithHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt"); + } + + @TestMetadata("simpleProp.kt") + public void testSimpleProp() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt"); + } + + @TestMetadata("simplePropWithHierarchy.kt") + public void testSimplePropWithHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Delegation extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDelegation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("diamond.kt") + public void testDiamond() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt"); + } + + @TestMetadata("diamond2.kt") + public void testDiamond2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt"); + } + + @TestMetadata("diamond3.kt") + public void testDiamond3() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TypeAnnotations extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypeAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + @TestMetadata("compiler/testData/codegen/box/constants") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxErrorTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxErrorTestGenerated.java index 7c960da1864..cb4abb0c6a9 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxErrorTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxErrorTestGenerated.java @@ -27,7 +27,7 @@ public class IrJsCodegenBoxErrorTestGenerated extends AbstractIrJsCodegenBoxErro } public void testAllFilesPresentInBoxError() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxError"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxError"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true, "compileKotlinAgainstKotlin"); } @TestMetadata("compiler/testData/codegen/boxError/semantic") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java index f509a97dae0..5f1178e8a57 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java @@ -27,7 +27,7 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } public void testAllFilesPresentInBox() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true, "compileKotlinAgainstKotlin"); } @TestMetadata("compiler/testData/codegen/box/annotations") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java index f70210960ab..fe613cfb372 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java @@ -27,7 +27,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { } public void testAllFilesPresentInBox() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true, "compileKotlinAgainstKotlin"); } @TestMetadata("compiler/testData/codegen/box/annotations") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java index 86b2fff7795..248c615fd3b 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java @@ -27,7 +27,7 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest } public void testAllFilesPresentInBox() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true, "toArray", "classLiteral", "reflection", "contracts", "platformTypes", "ranges/stepped/unsigned", "coroutines", "parametersMetadata", "finally", "deadCodeElimination", "controlStructures/tryCatchInExpressions", "delegatedProperty", "oldLanguageVersions"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true, "toArray", "classLiteral", "reflection", "contracts", "platformTypes", "ranges/stepped/unsigned", "coroutines", "parametersMetadata", "finally", "deadCodeElimination", "controlStructures/tryCatchInExpressions", "delegatedProperty", "oldLanguageVersions", "compileKotlinAgainstKotlin"); } @TestMetadata("compiler/testData/codegen/box/annotations")