From 34bac4854118cd384b5f663359bc5083712a6384 Mon Sep 17 00:00:00 2001 From: "vladislav.grechko" Date: Tue, 26 Dec 2023 10:18:19 +0000 Subject: [PATCH] Add JVM ABI K1/K2 consistency tests --- .space/CODEOWNERS | 1 + .../annotatedAnnotationParameter.jvm_abi.txt | 15 + .../annotatedAnnotationParameter.kt | 1 + .../annotatedEnumEntry.jvm_abi.txt | 7 + .../box/annotations/annotatedEnumEntry.kt | 1 + ...otationsOnNonExistentAccessors.jvm_abi.txt | 77 + .../annotationsOnNonExistentAccessors.kt | 1 + .../instances/annotationInstances.jvm_abi.txt | 26 + .../instances/annotationInstances.kt | 2 + .../instances/annotationToString.jvm_abi.txt | 26 + .../instances/annotationToString.kt | 2 + .../jvmAnnotationFlags.jvm_abi.txt | 35 + .../box/annotations/jvmAnnotationFlags.kt | 2 + .../codegen/box/arrays/kt17134.jvm_abi.txt | 26 + .../testData/codegen/box/arrays/kt17134.kt | 2 + .../eqNullableDoublesToIntWithTP.jvm_abi.txt | 15 + .../binaryOp/eqNullableDoublesToIntWithTP.kt | 2 + .../eqNullableDoublesWithTP.jvm_abi.txt | 15 + .../box/binaryOp/eqNullableDoublesWithTP.kt | 2 + .../delegationComplexWithList.jvm_abi.txt | 11 + .../box/bridges/delegationComplexWithList.kt | 2 + .../bridges/delegationProperty.jvm_abi.txt | 11 + .../codegen/box/bridges/delegationProperty.kt | 1 + .../propertyAccessorsWithoutBody.jvm_abi.txt | 22 + .../bridges/propertyAccessorsWithoutBody.kt | 2 + ...leExtensionPropertiesYieldCase.jvm_abi.txt | 13 + .../MutableExtensionPropertiesYieldCase.kt | 2 + .../builtinStubMethods/Collection.jvm_abi.txt | 17 + .../box/builtinStubMethods/Collection.kt | 1 + .../box/builtinStubMethods/List.jvm_abi.txt | 33 + .../codegen/box/builtinStubMethods/List.kt | 1 + .../ListIterator.jvm_abi.txt | 33 + .../box/builtinStubMethods/ListIterator.kt | 1 + .../box/builtinStubMethods/Map.jvm_abi.txt | 6 + .../codegen/box/builtinStubMethods/Map.kt | 1 + .../MapWithAllImplementations.jvm_abi.txt | 6 + .../MapWithAllImplementations.kt | 1 + .../SubstitutedList.jvm_abi.txt | 33 + .../box/builtinStubMethods/SubstitutedList.kt | 1 + .../delegationToArrayList.jvm_abi.txt | 85 + .../delegationToArrayList.kt | 1 + .../extendJavaClasses/abstractMap.jvm_abi.txt | 18 + .../extendJavaClasses/abstractMap.kt | 1 + .../extendJavaClasses/hashMap.jvm_abi.txt | 18 + .../extendJavaClasses/hashMap.kt | 2 + .../superCallToFakeRemoveAt.jvm_abi.txt | 9 + .../superCallToFakeRemoveAt.kt | 2 + .../superCallToRemoveAt.jvm_abi.txt | 9 + .../extendJavaClasses/superCallToRemoveAt.kt | 2 + ...perCallToRemoveAtInJavaDefault.jvm_abi.txt | 9 + .../superCallToRemoveAtInJavaDefault.kt | 2 + .../immutableRemove.jvm_abi.txt | 21 + .../box/builtinStubMethods/immutableRemove.kt | 2 + ...yTypeParametersWithUpperBounds.jvm_abi.txt | 17 + .../manyTypeParametersWithUpperBounds.kt | 1 + .../mapRemove/noDefaultImpls.jvm_abi.txt | 35 + .../mapRemove/noDefaultImpls.kt | 1 + .../nullableReceiverInEquals.jvm_abi.txt | 9 + .../bound/equals/nullableReceiverInEquals.kt | 2 + ...nterfaceConstructorIsKFunction.jvm_abi.txt | 9 + .../funInterfaceConstructorIsKFunction.kt | 2 + ...tructorOfImplicitKFunctionType.jvm_abi.txt | 9 + ...rfaceConstructorOfImplicitKFunctionType.kt | 2 + .../getArityViaFunctionImpl.jvm_abi.txt | 29 + .../function/getArityViaFunctionImpl.kt | 1 + .../genericConstructorReference.jvm_abi.txt | 13 + .../genericConstructorReference.kt | 1 + ...LocalClassConstructorReference.jvm_abi.txt | 13 + .../genericLocalClassConstructorReference.kt | 1 + ...orForPropertyWithPrivateSetter.jvm_abi.txt | 9 + .../accessorForPropertyWithPrivateSetter.kt | 3 + .../property/privateSetOuterClass.jvm_abi.txt | 17 + .../property/privateSetOuterClass.kt | 1 + .../privateSetterInsideClass.jvm_abi.txt | 9 + .../property/privateSetterInsideClass.kt | 2 + .../privateSetterOutsideClass.jvm_abi.txt | 9 + .../property/privateSetterOutsideClass.kt | 1 + ...enceToGenericSyntheticProperty.jvm_abi.txt | 23 + .../referenceToGenericSyntheticProperty.kt | 1 + .../box/casts/genericReturnCast.jvm_abi.txt | 9 + .../codegen/box/casts/genericReturnCast.kt | 1 + .../asWithMutable.jvm_abi.txt | 147 + .../casts/mutableCollections/asWithMutable.kt | 1 + .../isWithMutable.jvm_abi.txt | 147 + .../casts/mutableCollections/isWithMutable.kt | 1 + .../mutabilityMarkerInterfaces.jvm_abi.txt | 6 + .../mutabilityMarkerInterfaces.kt | 2 +- .../reifiedAsWithMutable.jvm_abi.txt | 147 + .../reifiedAsWithMutable.kt | 1 + .../reifiedIsWithMutable.jvm_abi.txt | 147 + .../reifiedIsWithMutable.kt | 1 + .../reifiedSafeAsWithMutable.jvm_abi.txt | 147 + .../reifiedSafeAsWithMutable.kt | 2 +- .../safeAsWithMutable.jvm_abi.txt | 147 + .../mutableCollections/safeAsWithMutable.kt | 1 + .../box/classes/inheritance.jvm_abi.txt | 41 + .../codegen/box/classes/inheritance.kt | 2 + .../codegen/box/classes/kt2391.jvm_abi.txt | 9 + .../testData/codegen/box/classes/kt2391.kt | 2 + .../codegen/box/classes/kt3001.jvm_abi.txt | 11 + .../testData/codegen/box/classes/kt3001.kt | 1 + .../codegen/box/classes/kt9642.jvm_abi.txt | 9 + .../testData/codegen/box/classes/kt9642.kt | 2 + .../overloadBinaryOperator.jvm_abi.txt | 9 + .../box/classes/overloadBinaryOperator.kt | 2 + .../classes/overloadPlusAssign.jvm_abi.txt | 9 + .../codegen/box/classes/overloadPlusAssign.kt | 2 + .../overloadPlusAssignReturn.jvm_abi.txt | 9 + .../box/classes/overloadPlusAssignReturn.kt | 1 + .../overloadPlusToPlusAssign.jvm_abi.txt | 9 + .../box/classes/overloadPlusToPlusAssign.kt | 2 + .../classes/overloadUnaryOperator.jvm_abi.txt | 9 + .../box/classes/overloadUnaryOperator.kt | 1 + .../box/classes/typedDelegation.jvm_abi.txt | 11 + .../codegen/box/classes/typedDelegation.kt | 2 + .../subclosuresWithinInitializers.jvm_abi.txt | 9 + .../closures/subclosuresWithinInitializers.kt | 2 + ...eritFromAbstractMutableListInt.jvm_abi.txt | 26 + .../inheritFromAbstractMutableListInt.kt | 1 + .../box/collections/kt41123.jvm_abi.txt | 18 + .../codegen/box/collections/kt41123.kt | 1 + .../box/collections/readOnlyMap.jvm_abi.txt | 6 + .../codegen/box/collections/readOnlyMap.kt | 1 + .../removeAtIntOverrideInJava.jvm_abi.txt | 41 + .../collections/removeAtIntOverrideInJava.kt | 1 + .../removeOverriddenInJava_Map.jvm_abi.txt | 6 + .../collections/removeOverriddenInJava_Map.kt | 2 + .../specialBridgeForGet.jvm_abi.txt | 35 + .../box/collections/specialBridgeForGet.kt | 1 + ...annotationOnTypeUseInTypeAlias.jvm_abi.txt | 30 + .../annotationOnTypeUseInTypeAlias.kt | 3 + .../fir/AnonymousObjectInProperty.jvm_abi.txt | 9 + .../fir/AnonymousObjectInProperty.kt | 3 +- .../fir/javaTypeParameterBy.jvm_abi.txt | 9 + .../fir/javaTypeParameterBy.kt | 2 + .../internalSetterOverridden.jvm_abi.txt | 17 + .../internalSetterOverridden.kt | 2 + .../delegationBy/simpleProperty.jvm_abi.txt | 11 + .../delegationBy/simpleProperty.kt | 2 + .../jvmNames.jvm_abi.txt | 17 + .../compileKotlinAgainstKotlin/jvmNames.kt | 2 + .../kt14012.jvm_abi.txt | 9 + .../box/compileKotlinAgainstKotlin/kt14012.kt | 2 + .../kt21775.jvm_abi.txt | 9 + .../box/compileKotlinAgainstKotlin/kt21775.kt | 2 + ...stedFunctionTypeAliasExpansion.jvm_abi.txt | 9 + .../nestedFunctionTypeAliasExpansion.kt | 2 + .../nestedTypeAliasExpansion.jvm_abi.txt | 9 + .../nestedTypeAliasExpansion.kt | 2 + ...rrideForDelegatedFromSupertype.jvm_abi.txt | 11 + ...plicitOverrideForDelegatedFromSupertype.kt | 3 + .../targetedJvmName.jvm_abi.txt | 9 + .../targetedJvmName.kt | 2 + .../breakInConstructorArguments.jvm_abi.txt | 9 + .../breakInConstructorArguments.kt | 3 + ...continueInConstructorArguments.jvm_abi.txt | 9 + .../continueInConstructorArguments.kt | 3 + ...lyReturnInConstructorArguments.jvm_abi.txt | 9 + .../earlyReturnInConstructorArguments.kt | 2 + .../inlineFunInConstructorCall.jvm_abi.txt | 9 + .../inlineFunInConstructorCall.kt | 3 + ...ConstructorCallEvaluationOrder.jvm_abi.txt | 9 + ...lineFunInConstructorCallEvaluationOrder.kt | 3 + ...FunInInnerClassConstructorCall.jvm_abi.txt | 9 + .../inlineFunInInnerClassConstructorCall.kt | 3 + ...FunInLocalClassConstructorCall.jvm_abi.txt | 9 + .../inlineFunInLocalClassConstructorCall.kt | 3 + .../loopInInlineFun.jvm_abi.txt | 9 + .../box/constructorCall/loopInInlineFun.kt | 3 + ...hJumpOutInConstructorArguments.jvm_abi.txt | 9 + ...orCallWithJumpOutInConstructorArguments.kt | 3 + ...alReturnInConstructorArguments.jvm_abi.txt | 9 + .../nonLocalReturnInConstructorArguments.kt | 3 + ...pedUnitializedValueInArguments.jvm_abi.txt | 9 + ...ssiblyPoppedUnitializedValueInArguments.kt | 3 + ...ConstructorCallEvaluationOrder.jvm_abi.txt | 9 + .../regularConstructorCallEvaluationOrder.kt | 3 + ...ConstructorCallEvaluationOrder.jvm_abi.txt | 9 + ...ryCatchInConstructorCallEvaluationOrder.kt | 3 + .../fieldInConstructorParens.jvm_abi.txt | 41 + .../box/contracts/fieldInConstructorParens.kt | 2 + .../codegen/box/contracts/kt39374.jvm_abi.txt | 5 + .../testData/codegen/box/contracts/kt39374.kt | 2 + .../codegen/box/contracts/kt45236.jvm_abi.txt | 9 + .../testData/codegen/box/contracts/kt45236.kt | 3 + .../codegen/box/contracts/kt47168.jvm_abi.txt | 41 + .../testData/codegen/box/contracts/kt47168.kt | 3 + .../codegen/box/contracts/kt47300.jvm_abi.txt | 60 + .../testData/codegen/box/contracts/kt47300.kt | 2 + .../box/contracts/listAppend.jvm_abi.txt | 9 + .../codegen/box/contracts/listAppend.kt | 2 + .../forArrayList.jvm_abi.txt | 9 + .../box/controlStructures/forArrayList.kt | 2 + .../forArrayListMultiDecl.jvm_abi.txt | 9 + .../forArrayListMultiDecl.kt | 3 +- .../forInListWithIndexThrowsCME.jvm_abi.txt | 9 + .../forInListWithIndexThrowsCME.kt | 2 + ...orInSequenceWithIndexThrowsCME.jvm_abi.txt | 9 + .../forInSequenceWithIndexThrowsCME.kt | 2 + .../mapSuspendAbstractClear.jvm_abi.txt | 15 + .../bridges/mapSuspendAbstractClear.kt | 1 + .../bridges/mapSuspendClear.jvm_abi.txt | 6 + .../box/coroutines/bridges/mapSuspendClear.kt | 1 + ...ializedSuspendFunctionProperty.jvm_abi.txt | 15 + .../deserializedSuspendFunctionProperty.kt | 2 +- .../coroutines/handleException.jvm_abi.txt | 9 + .../codegen/box/coroutines/handleException.kt | 2 + .../inlineSuspendTypealias.jvm_abi.txt | 9 + .../box/coroutines/inlineSuspendTypealias.kt | 1 + .../box/coroutines/kt51530.jvm_abi.txt | 1942 + .../codegen/box/coroutines/kt51530.kt | 2 + .../box/coroutines/nestedTryCatch.jvm_abi.txt | 9 + .../codegen/box/coroutines/nestedTryCatch.kt | 2 + .../handleException.jvm_abi.txt | 9 + .../handleException.kt | 2 + ...ectConstructionEvaluationOrder.jvm_abi.txt | 9 + ...ddleOfObjectConstructionEvaluationOrder.kt | 2 + .../tailCallOptimizations/also.jvm_abi.txt | 9 + .../coroutines/tailCallOptimizations/also.kt | 2 + .../checkcast.jvm_abi.txt | 9 + .../tailCallOptimizations/checkcast.kt | 2 + .../checkcast2.jvm_abi.txt | 9 + .../tailCallOptimizations/checkcast2.kt | 2 + .../deferredAwaitSuspendImpl.jvm_abi.txt | 9 + .../deferredAwaitSuspendImpl.kt | 2 + .../inlineWithStateMachine.jvm_abi.txt | 9 + .../inlineWithStateMachine.kt | 2 + .../innerObjectRetransformation.jvm_abi.txt | 33 + .../innerObjectRetransformation.kt | 1 + .../interfaceDelegation.jvm_abi.txt | 9 + .../interfaceDelegation.kt | 2 + .../lambdaParameterInlining.jvm_abi.txt | 9 + .../lambdaParameterInlining.kt | 1 + .../returnInlineClass.jvm_abi.txt | 9 + .../returnInlineClass.kt | 1 + .../tailCallOptimizations/simple.jvm_abi.txt | 9 + .../tailCallOptimizations/simple.kt | 2 + .../tailCallIfReturnUnit.jvm_abi.txt | 9 + .../tailCallIfReturnUnit.kt | 2 + .../tailCallIntrinsics.jvm_abi.txt | 9 + .../tailCallIntrinsics.kt | 2 + .../tailSuspendUnitFun.jvm_abi.txt | 9 + .../tailSuspendUnitFun.kt | 2 + .../tryCatch.jvm_abi.txt | 9 + .../tailCallOptimizations/tryCatch.kt | 2 + .../tryCatchTailCall.jvm_abi.txt | 9 + .../tailCallOptimizations/tryCatchTailCall.kt | 2 + .../unit/inline.jvm_abi.txt | 9 + .../tailCallOptimizations/unit/inline.kt | 2 + .../unit/override4.jvm_abi.txt | 9 + .../tailCallOptimizations/unit/override4.kt | 1 + .../unit/override6.jvm_abi.txt | 9 + .../tailCallOptimizations/unit/override6.kt | 1 + .../unreachable.jvm_abi.txt | 9 + .../tailCallOptimizations/unreachable.kt | 2 + .../whenUnit.jvm_abi.txt | 9 + .../tailCallOptimizations/whenUnit.kt | 2 + ...ryCatchFinallyWithHandleResult.jvm_abi.txt | 9 + .../tryCatchFinallyWithHandleResult.kt | 2 + .../tryCatchWithHandleResult.jvm_abi.txt | 9 + .../coroutines/tryCatchWithHandleResult.kt | 2 + .../recursiveDefaultArguments.jvm_abi.txt | 45 + .../recursiveDefaultArguments.kt | 2 + .../delegateToAnother/custom.jvm_abi.txt | 9 + .../delegateToAnother/custom.kt | 2 + .../box/delegatedProperty/kt37204.jvm_abi.txt | 9 + .../codegen/box/delegatedProperty/kt37204.kt | 1 + .../evaluationOrderVar.jvm_abi.txt | 9 + .../provideDelegate/evaluationOrderVar.kt | 1 + .../useKPropertyLater.jvm_abi.txt | 9 + .../delegatedProperty/useKPropertyLater.kt | 1 + .../delegation/computeIfAbsent.jvm_abi.txt | 35 + .../codegen/box/delegation/computeIfAbsent.kt | 1 + ...legationAndInheritanceFromJava.jvm_abi.txt | 11 + .../delegationAndInheritanceFromJava.kt | 2 + .../delegationDifferentModule2.jvm_abi.txt | 22 + .../delegation/delegationDifferentModule2.kt | 2 + .../delegation/delegationToMap.jvm_abi.txt | 35 + .../codegen/box/delegation/delegationToMap.kt | 2 + ...ericFunctionInGenericInterface.jvm_abi.txt | 9 + .../genericFunctionInGenericInterface.kt | 1 + .../delegation/genericProperty.jvm_abi.txt | 11 + .../codegen/box/delegation/genericProperty.kt | 2 + .../box/delegation/inDataClass.jvm_abi.txt | 11 + .../codegen/box/delegation/inDataClass.kt | 2 + .../box/delegation/kt54654.jvm_abi.txt | 11 + .../codegen/box/delegation/kt54654.kt | 1 + .../box/delegation/sealedClass.jvm_abi.txt | 11 + .../codegen/box/delegation/sealedClass.kt | 1 + ...withDefaultsMultipleFilesOrder.jvm_abi.txt | 9 + .../withDefaultsMultipleFilesOrder.kt | 2 + ...deepInnerClassInEnumEntryClass.jvm_abi.txt | 16 + .../enum/deepInnerClassInEnumEntryClass.kt | 2 + ...eepInnerClassInEnumEntryClass2.jvm_abi.txt | 19 + .../enum/deepInnerClassInEnumEntryClass2.kt | 2 + ...enceFromInnerClassConstructor1.jvm_abi.txt | 9 + ...ntryReferenceFromInnerClassConstructor1.kt | 1 + ...enceFromInnerClassConstructor2.jvm_abi.txt | 16 + ...ntryReferenceFromInnerClassConstructor2.kt | 2 + ...enceFromInnerClassConstructor3.jvm_abi.txt | 16 + ...ntryReferenceFromInnerClassConstructor3.kt | 2 + .../innerClassInEnumEntryClass.jvm_abi.txt | 16 + .../box/enum/innerClassInEnumEntryClass.kt | 2 + ...nerClassMethodInEnumEntryClass.jvm_abi.txt | 16 + .../enum/innerClassMethodInEnumEntryClass.kt | 2 + ...erClassMethodInEnumEntryClass2.jvm_abi.txt | 16 + .../enum/innerClassMethodInEnumEntryClass2.kt | 2 + .../box/enum/kt44744_innerClass.jvm_abi.txt | 13 + .../codegen/box/enum/kt44744_innerClass.kt | 2 + .../enum/kt7257_anonObjectInit.jvm_abi.txt | 19 + .../codegen/box/enum/kt7257_anonObjectInit.kt | 2 + .../enum/kt7257_anonObjectMethod.jvm_abi.txt | 19 + .../box/enum/kt7257_anonObjectMethod.kt | 2 + .../enum/kt7257_boundReference1.jvm_abi.txt | 16 + .../box/enum/kt7257_boundReference1.kt | 1 + .../codegen/box/enum/kt9711_2.jvm_abi.txt | 8 + .../testData/codegen/box/enum/kt9711_2.kt | 2 + .../contextAndExtensionLambdaIndy.jvm_abi.txt | 15 + .../contextAndExtensionLambdaIndy.kt | 1 + .../contextualInlineCall.jvm_abi.txt | 61 + .../contextReceivers/contextualInlineCall.kt | 1 + .../fromKEEP/functionalType.jvm_abi.txt | 9 + .../fromKEEP/functionalType.kt | 1 + .../contextReceivers/kt51475.jvm_abi.txt | 41 + .../contextReceivers/kt51475.kt | 1 + .../contextReceivers/kt52213.jvm_abi.txt | 9 + .../contextReceivers/kt52213.kt | 1 + .../contextReceivers/kt53551.jvm_abi.txt | 9 + .../contextReceivers/kt53551.kt | 1 + .../contextReceivers/kt58476.jvm_abi.txt | 9 + .../contextReceivers/kt58476.kt | 1 + .../contextReceivers/plusAssign.jvm_abi.txt | 15 + .../contextReceivers/plusAssign.kt | 2 + .../box/extensionFunctions/kt865.jvm_abi.txt | 9 + .../codegen/box/extensionFunctions/kt865.kt | 1 + .../fir/Fir2IrClassifierStorage.jvm_abi.txt | 19 + .../box/fir/Fir2IrClassifierStorage.kt | 1 + .../box/fir/JKEnumConstant.jvm_abi.txt | 11 + .../codegen/box/fir/JKEnumConstant.kt | 1 + .../codegen/box/fir/LookupTags.jvm_abi.txt | 9 + .../testData/codegen/box/fir/LookupTags.kt | 1 + .../codegen/box/fir/Mockito.jvm_abi.txt | 9 + compiler/testData/codegen/box/fir/Mockito.kt | 1 + .../box/fir/NameHighlighter.jvm_abi.txt | 14 + .../codegen/box/fir/NameHighlighter.kt | 2 + .../TypeParameterInNestedClass.jvm_abi.txt | 13 + .../box/fir/TypeParameterInNestedClass.kt | 2 + .../TypeParameterInNestedClass2.jvm_abi.txt | 13 + .../box/fir/TypeParameterInNestedClass2.kt | 2 + .../box/fir/externalInDependency.jvm_abi.txt | 9 + .../codegen/box/fir/externalInDependency.kt | 1 + ...starProjectionLambdaNullReturn.jvm_abi.txt | 17 + .../box/fir/starProjectionLambdaNullReturn.kt | 1 + .../nativePropertyAccessors.jvm_abi.txt | 25 + .../fullJdk/native/nativePropertyAccessors.kt | 1 + .../fullJdk/regressions/kt15112.jvm_abi.txt | 9 + .../box/fullJdk/regressions/kt15112.kt | 1 + .../nestedBigArityFunCalls.jvm_abi.txt | 9 + .../bigArity/nestedBigArityFunCalls.kt | 1 + ...thMultipleOverriddens_generics.jvm_abi.txt | 11 + ...ropertyWithMultipleOverriddens_generics.kt | 2 + ...MultipleOverriddens_noGenerics.jvm_abi.txt | 11 + ...pertyWithMultipleOverriddens_noGenerics.kt | 1 + .../box/functions/invoke/kt3190.jvm_abi.txt | 9 + .../codegen/box/functions/invoke/kt3190.kt | 1 + .../capturedTypes.jvm_abi.txt | 13 + .../builderInference/capturedTypes.kt | 1 + ...esSubstitutionIntoAbbreviation.jvm_abi.txt | 185 + ...pturedTypesSubstitutionIntoAbbreviation.kt | 2 + .../overrideGenericDefaultMethod.jvm_abi.txt | 10 + .../inference/overrideGenericDefaultMethod.kt | 2 + .../unsafeVarianceCodegen.jvm_abi.txt | 9 + .../box/inference/unsafeVarianceCodegen.kt | 1 + .../arrayDequeRemoveAll.jvm_abi.txt | 60 + .../inlineArgsInPlace/arrayDequeRemoveAll.kt | 1 + .../inlineCircularDedepency.jvm_abi.txt | 9 + .../inlineCircularDedepency.kt | 1 + ...riantOverrideListVsMutableList.jvm_abi.txt | 9 + .../covariantOverrideListVsMutableList.kt | 1 + ...errideListVsMutableListGeneric.jvm_abi.txt | 9 + ...variantOverrideListVsMutableListGeneric.kt | 1 + .../kt31585.jvm_abi.txt | 39 + .../boxReturnValueOnOverride/kt31585.kt | 1 + .../kt31585Generic.jvm_abi.txt | 39 + .../kt31585Generic.kt | 1 + .../inlineMapOfInlineClass.jvm_abi.txt | 10 + .../inlineMapOfInlineClass.kt | 1 + .../inlineMapOfInlineClassGeneric.jvm_abi.txt | 10 + .../inlineMapOfInlineClassGeneric.kt | 1 + ...inlineMutableCollectionBulkAdd.jvm_abi.txt | 53 + .../inlineMutableCollectionBulkAdd.kt | 1 + ...faceImplementationByDelegation.jvm_abi.txt | 19 + .../interfaceImplementationByDelegation.kt | 2 +- ...lementationByDelegationGeneric.jvm_abi.txt | 19 + ...erfaceImplementationByDelegationGeneric.kt | 1 + .../interfaceDelegation/kt38337.jvm_abi.txt | 39 + .../interfaceDelegation/kt38337.kt | 1 + .../kt38337Generic.jvm_abi.txt | 39 + .../interfaceDelegation/kt38337Generic.kt | 1 + ...nWithInlineClassParameterTypes.jvm_abi.txt | 21 + ...DelegationWithInlineClassParameterTypes.kt | 1 + ...lineClassParameterTypesGeneric.jvm_abi.txt | 21 + ...ionWithInlineClassParameterTypesGeneric.kt | 1 + ...nWithInlineClassParameterTypes.jvm_abi.txt | 21 + ...DelegationWithInlineClassParameterTypes.kt | 1 + ...sWithInlineClassParameterTypes.jvm_abi.txt | 15 + ...nlineClassWithInlineClassParameterTypes.kt | 1 + ...lineClassParameterTypesGeneric.jvm_abi.txt | 15 + ...assWithInlineClassParameterTypesGeneric.kt | 1 + ...nWithInlineClassParameterTypes.jvm_abi.txt | 15 + ...DelegationWithInlineClassParameterTypes.kt | 1 + ...lineClassParameterTypesGeneric.jvm_abi.txt | 15 + ...ionWithInlineClassParameterTypesGeneric.kt | 1 + ...FlexibleInlineClassTypeGeneric.jvm_abi.txt | 8 + ...ngOfBoxedFlexibleInlineClassTypeGeneric.kt | 1 + .../kt42933Generic.jvm_abi.txt | 9 + .../propertyDelegation/kt42933Generic.kt | 1 + ...dsInnerOfLocalVarargAndDefault.jvm_abi.txt | 9 + ...jectExtendsInnerOfLocalVarargAndDefault.kt | 1 + ...ExtendsInnerOfLocalWithCapture.jvm_abi.txt | 9 + .../objectExtendsInnerOfLocalWithCapture.kt | 1 + .../codegen/box/intrinsics/kt8666.jvm_abi.txt | 39 + .../testData/codegen/box/intrinsics/kt8666.kt | 2 + .../serialization/typeAnnotation.jvm_abi.txt | 9 + .../serialization/typeAnnotation.kt | 1 + compiler/testData/codegen/box/ir/kt29833.kt | 1 + .../deepGenericDelegatedProperty.jvm_abi.txt | 43 + .../deepGenericDelegatedProperty.kt | 1 + .../innerClassInEnumEntryClass.jvm_abi.txt | 16 + .../innerClassInEnumEntryClass.kt | 1 + ...aFieldAndKotlinPrivateProperty.jvm_abi.txt | 15 + .../javaFieldAndKotlinPrivateProperty.kt | 1 + ...tlinPropertyReferenceFromInner.jvm_abi.txt | 11 + ...ieldAndKotlinPropertyReferenceFromInner.kt | 2 + .../box/javaInterop/kt43217.jvm_abi.txt | 9 + .../codegen/box/javaInterop/kt43217.kt | 3 + .../delegationBy/simpleProperty.jvm_abi.txt | 11 + .../delegationBy/simpleProperty.kt | 2 +- .../delegationBy/simpleProperty.jvm_abi.txt | 11 + .../delegationBy/simpleProperty.kt | 2 +- .../jvm8/javaDefaults/kt40920_map.jvm_abi.txt | 13 + .../box/jvm8/javaDefaults/kt40920_map.kt | 2 + .../codegen/box/jvm8/kt14243_2.jvm_abi.txt | 6 + .../testData/codegen/box/jvm8/kt14243_2.kt | 2 + .../codegen/box/jvm8/kt33054.jvm_abi.txt | 45 + compiler/testData/codegen/box/jvm8/kt33054.kt | 1 + .../testData/codegen/box/jvmField/diamond.kt | 1 + .../jvmName/annotationProperties.jvm_abi.txt | 9 + .../box/jvmName/annotationProperties.kt | 2 + .../propertyAccessorsUseSite.jvm_abi.txt | 9 + .../box/jvmName/propertyAccessorsUseSite.kt | 2 +- .../box/jvmName/propertyName.jvm_abi.txt | 9 + .../codegen/box/jvmName/propertyName.kt | 2 +- .../noRedundantVarargs.jvm_abi.txt | 26 + .../box/jvmOverloads/noRedundantVarargs.kt | 2 + .../codegen/box/jvmStatic/kt31389.jvm_abi.txt | 9 + .../testData/codegen/box/jvmStatic/kt31389.kt | 2 + .../box/jvmStatic/postfixInc.jvm_abi.txt | 9 + .../codegen/box/jvmStatic/postfixInc.kt | 2 +- .../box/jvmStatic/prefixInc.jvm_abi.txt | 9 + .../codegen/box/jvmStatic/prefixInc.kt | 2 +- .../box/jvmStatic/privateSetter.jvm_abi.txt | 9 + .../codegen/box/jvmStatic/privateSetter.kt | 3 +- .../box/jvmStatic/propertyAccess.jvm_abi.txt | 9 + .../codegen/box/jvmStatic/propertyAccess.kt | 2 +- .../simpleProperty.jvm_abi.txt | 9 + .../protectedInSuperClass/simpleProperty.kt | 2 + .../localClassInInitializer.jvm_abi.txt | 8 + .../localClasses/localClassInInitializer.kt | 2 + .../multiplatform/commonInternal.jvm_abi.txt | 3 + .../box/multiplatform/commonInternal.kt | 2 + .../expectAnnotationCallInLibrary.jvm_abi.txt | 9 + .../expectAnnotationCallInLibrary.kt | 1 + .../expectActualCallableReference.jvm_abi.txt | 7 + .../k2/basic/expectActualCallableReference.kt | 1 + ...tExtensionReceiversOnOverloads.jvm_abi.txt | 11 + ...lDifferentExtensionReceiversOnOverloads.kt | 1 + .../expectActualDifferentPackages.jvm_abi.txt | 7 + .../k2/basic/expectActualDifferentPackages.kt | 1 + .../basic/expectActualMultiCommon.jvm_abi.txt | 19 + .../k2/basic/expectActualMultiCommon.kt | 1 + .../k2/basic/expectActualSimple.jvm_abi.txt | 11 + .../k2/basic/expectActualSimple.kt | 1 + .../expectActualTypeParameters.jvm_abi.txt | 7 + .../k2/basic/expectActualTypeParameters.kt | 1 + .../basic/expectActualTypealias.jvm_abi.txt | 7 + .../k2/basic/expectActualTypealias.kt | 1 + ...pectAndCommonFunctionOverloads.jvm_abi.txt | 7 + .../basic/expectAndCommonFunctionOverloads.kt | 1 + .../k2/basic/kt-56329.jvm_abi.txt | 7 + .../box/multiplatform/k2/basic/kt-56329.kt | 1 + .../mpp_optional_expectation.jvm_abi.txt | 3 + .../mpp_optional_expectation.kt | 1 + .../multiModule/hmppSimple.jvm_abi.txt | 11 + .../multiplatform/multiModule/hmppSimple.kt | 1 + .../optionalExpectationJvm.jvm_abi.txt | 11 + .../multiplatform/optionalExpectationJvm.kt | 2 + ...ignmentToPropertyWithQualifier.jvm_abi.txt | 9 + ...mpoundAssignmentToPropertyWithQualifier.kt | 2 + .../codegen/box/objects/kt1136.jvm_abi.txt | 23 + .../testData/codegen/box/objects/kt1136.kt | 2 +- ...tionInObjectInitializer_kt4516.jvm_abi.txt | 9 + ...localFunctionInObjectInitializer_kt4516.kt | 1 + .../objectInLocalAnonymousObject.jvm_abi.txt | 9 + .../objects/objectInLocalAnonymousObject.kt | 1 + .../objects/objectLiteralInClass.jvm_abi.txt | 9 + .../box/objects/objectLiteralInClass.kt | 1 + ...ctVsClassInitialization_kt5291.jvm_abi.txt | 17 + .../objectVsClassInitialization_kt5291.kt | 1 + .../substitutionFunctionFromSuper.jvm_abi.txt | 9 + .../objects/substitutionFunctionFromSuper.kt | 2 +- .../useAnonymousObjectFunction.jvm_abi.txt | 15 + .../box/objects/useAnonymousObjectFunction.kt | 1 + .../box/package/invokespecial.jvm_abi.txt | 35 + .../codegen/box/package/invokespecial.kt | 1 + ...erenceWithTheSameNameAsPackage.jvm_abi.txt | 9 + .../referenceWithTheSameNameAsPackage.kt | 2 + .../polymorphicSignature/invoke.jvm_abi.txt | 9 + .../box/polymorphicSignature/invoke.kt | 1 + .../accessToPrivateProperty.jvm_abi.txt | 27 + .../box/properties/accessToPrivateProperty.kt | 2 + .../accessToPrivateSetter.jvm_abi.txt | 9 + .../box/properties/accessToPrivateSetter.kt | 1 + ...ectedPropertyWithPrivateSetter.jvm_abi.txt | 15 + ...orForProtectedPropertyWithPrivateSetter.kt | 2 + ...thPrivateSetterInObjectLiteral.jvm_abi.txt | 15 + ...ropertyWithPrivateSetterInObjectLiteral.kt | 2 + ...pertyWithPrivateSetterViaSuper.jvm_abi.txt | 15 + ...tectedPropertyWithPrivateSetterViaSuper.kt | 2 + ...ateSetterWithIntermediateClass.jvm_abi.txt | 15 + ...yWithPrivateSetterWithIntermediateClass.kt | 2 + .../classObjectProperties.jvm_abi.txt | 9 + .../box/properties/classObjectProperties.kt | 2 + .../codegen/box/properties/kt2331.jvm_abi.txt | 9 + .../testData/codegen/box/properties/kt2331.kt | 1 + .../codegen/box/properties/kt2786.jvm_abi.txt | 11 + .../testData/codegen/box/properties/kt2786.kt | 1 + .../codegen/box/properties/kt3930.jvm_abi.txt | 9 + .../testData/codegen/box/properties/kt3930.kt | 1 + .../codegen/box/properties/kt4373.jvm_abi.txt | 11 + .../testData/codegen/box/properties/kt4373.kt | 1 + .../properties/kt49203_lateinit.jvm_abi.txt | 9 + .../box/properties/kt49203_lateinit.kt | 1 + .../box/properties/kt49203_var.jvm_abi.txt | 9 + .../codegen/box/properties/kt49203_var.kt | 1 + .../codegen/box/properties/kt8928.jvm_abi.txt | 9 + .../testData/codegen/box/properties/kt8928.kt | 1 + .../codegen/box/properties/kt9603.jvm_abi.txt | 9 + .../testData/codegen/box/properties/kt9603.kt | 1 + .../lateinit/privateSetter.jvm_abi.txt | 9 + .../box/properties/lateinit/privateSetter.kt | 1 + .../privateSetterFromLambda.jvm_abi.txt | 9 + .../lateinit/privateSetterFromLambda.kt | 1 + .../privateSetterViaSubclass.jvm_abi.txt | 9 + .../lateinit/privateSetterViaSubclass.kt | 1 + .../privateVarInCompanion.jvm_abi.txt | 14 + .../lateinit/privateVarInCompanion.kt | 1 + ...teAccessorOfOverriddenProperty.jvm_abi.txt | 9 + .../privateAccessorOfOverriddenProperty.kt | 1 + .../evaluationOrderForCollection.jvm_abi.txt | 9 + .../contains/evaluationOrderForCollection.kt | 1 + ...luationOrderForComparableRange.jvm_abi.txt | 9 + .../evaluationOrderForComparableRange.kt | 1 + .../evaluationOrderForDownTo.jvm_abi.txt | 9 + .../contains/evaluationOrderForDownTo.kt | 2 + ...aluationOrderForDownToReversed.jvm_abi.txt | 9 + .../evaluationOrderForDownToReversed.kt | 2 + ...uationOrderForNullableArgument.jvm_abi.txt | 9 + .../evaluationOrderForNullableArgument.kt | 2 + ...evaluationOrderForRangeLiteral.jvm_abi.txt | 9 + .../evaluationOrderForRangeLiteral.kt | 2 + ...onOrderForRangeLiteralReversed.jvm_abi.txt | 9 + .../evaluationOrderForRangeLiteralReversed.kt | 2 + .../evaluationOrderForUntil.jvm_abi.txt | 9 + .../contains/evaluationOrderForUntil.kt | 2 + ...valuationOrderForUntilReversed.jvm_abi.txt | 9 + .../evaluationOrderForUntilReversed.kt | 2 + .../evaluationOrder/forInDownTo.jvm_abi.txt | 9 + .../box/ranges/evaluationOrder/forInDownTo.kt | 2 + .../forInDownToReversed.jvm_abi.txt | 9 + .../evaluationOrder/forInDownToReversed.kt | 2 + .../forInDownToReversedReversed.jvm_abi.txt | 9 + .../forInDownToReversedReversed.kt | 2 + .../forInRangeLiteral.jvm_abi.txt | 9 + .../evaluationOrder/forInRangeLiteral.kt | 2 + .../forInRangeLiteralReversed.jvm_abi.txt | 9 + .../forInRangeLiteralReversed.kt | 2 + ...InRangeLiteralReversedReversed.jvm_abi.txt | 9 + .../forInRangeLiteralReversedReversed.kt | 2 + .../evaluationOrder/forInUntil.jvm_abi.txt | 9 + .../box/ranges/evaluationOrder/forInUntil.kt | 2 + .../forInUntilReversed.jvm_abi.txt | 9 + .../evaluationOrder/forInUntilReversed.kt | 2 + .../forInUntilReversedReversed.jvm_abi.txt | 9 + .../forInUntilReversedReversed.kt | 2 + .../forInDownToReversedStep.jvm_abi.txt | 9 + .../forInDownTo/forInDownToReversedStep.kt | 2 + ...orInDownToReversedStepReversed.jvm_abi.txt | 9 + .../forInDownToReversedStepReversed.kt | 2 + ...DownToReversedStepReversedStep.jvm_abi.txt | 9 + .../forInDownToReversedStepReversedStep.kt | 2 + .../forInDownTo/forInDownToStep.jvm_abi.txt | 9 + .../stepped/forInDownTo/forInDownToStep.kt | 2 + .../forInDownToStepReversed.jvm_abi.txt | 9 + .../forInDownTo/forInDownToStepReversed.kt | 2 + .../forInDownToStepReversedStep.jvm_abi.txt | 9 + .../forInDownToStepReversedStep.kt | 2 + ...DownToStepReversedStepReversed.jvm_abi.txt | 9 + .../forInDownToStepReversedStepReversed.kt | 2 + .../forInDownToStepStep.jvm_abi.txt | 9 + .../forInDownTo/forInDownToStepStep.kt | 2 + .../forInRangeLiteralReversedStep.jvm_abi.txt | 9 + .../forInRangeLiteralReversedStep.kt | 2 + ...ngeLiteralReversedStepReversed.jvm_abi.txt | 9 + .../forInRangeLiteralReversedStepReversed.kt | 2 + ...iteralReversedStepReversedStep.jvm_abi.txt | 9 + ...rInRangeLiteralReversedStepReversedStep.kt | 2 + .../forInRangeLiteralStep.jvm_abi.txt | 9 + .../forInRangeLiteralStep.kt | 2 + .../forInRangeLiteralStepReversed.jvm_abi.txt | 9 + .../forInRangeLiteralStepReversed.kt | 2 + ...InRangeLiteralStepReversedStep.jvm_abi.txt | 9 + .../forInRangeLiteralStepReversedStep.kt | 2 + ...iteralStepReversedStepReversed.jvm_abi.txt | 9 + ...rInRangeLiteralStepReversedStepReversed.kt | 2 + .../forInRangeLiteralStepStep.jvm_abi.txt | 9 + .../forInRangeLiteralStepStep.kt | 2 + .../forInUntilReversedStep.jvm_abi.txt | 9 + .../forInUntil/forInUntilReversedStep.kt | 2 + ...forInUntilReversedStepReversed.jvm_abi.txt | 9 + .../forInUntilReversedStepReversed.kt | 2 + ...nUntilReversedStepReversedStep.jvm_abi.txt | 9 + .../forInUntilReversedStepReversedStep.kt | 2 + .../forInUntil/forInUntilStep.jvm_abi.txt | 9 + .../stepped/forInUntil/forInUntilStep.kt | 2 + .../forInUntilStepReversed.jvm_abi.txt | 9 + .../forInUntil/forInUntilStepReversed.kt | 2 + .../forInUntilStepReversedStep.jvm_abi.txt | 9 + .../forInUntil/forInUntilStepReversedStep.kt | 2 + ...nUntilStepReversedStepReversed.jvm_abi.txt | 9 + .../forInUntilStepReversedStepReversed.kt | 2 + .../forInUntil/forInUntilStepStep.jvm_abi.txt | 9 + .../stepped/forInUntil/forInUntilStepStep.kt | 2 + .../call/protectedMembers.jvm_abi.txt | 9 + .../box/reflection/call/protectedMembers.kt | 1 + .../delegatedMembers.jvm_abi.txt | 9 + .../genericSignature/delegatedMembers.kt | 2 + .../propertyAccessorsWithJvmName.jvm_abi.txt | 9 + .../mapping/propertyAccessorsWithJvmName.kt | 1 + .../mapping/types/allSupertypes.jvm_abi.txt | 6 + .../reflection/mapping/types/allSupertypes.kt | 1 + .../modifiers/callableVisibility.jvm_abi.txt | 9 + .../modifiers/callableVisibility.kt | 1 + .../parameters/propertySetter.jvm_abi.txt | 14 + .../reflection/parameters/propertySetter.kt | 2 +- .../interfaceDelegation.jvm_abi.txt | 11 + .../properties/interfaceDelegation.kt | 1 + .../variableOfGenericType.jvm_abi.txt | 14 + .../localDelegated/variableOfGenericType.kt | 1 + .../typeParameters/upperBounds.jvm_abi.txt | 8 + .../reflection/typeParameters/upperBounds.kt | 3 +- .../box/regressions/kt3850.jvm_abi.txt | 9 + .../codegen/box/regressions/kt3850.kt | 1 + .../codegen/box/safeCall/kt52743.jvm_abi.txt | 9 + .../testData/codegen/box/safeCall/kt52743.kt | 2 + .../contravariantIntersectionType.jvm_abi.txt | 3 + .../box/sam/contravariantIntersectionType.kt | 1 + .../codegen/box/sam/kt11519.jvm_abi.txt | 31 + compiler/testData/codegen/box/sam/kt11519.kt | 1 + .../box/sam/kt50477Enabled.jvm_abi.txt | 73 + .../codegen/box/sam/kt50477Enabled.kt | 1 + .../sealed/delegatingConstructor.jvm_abi.txt | 9 + .../box/sealed/delegatingConstructor.kt | 2 + .../box/sealed/sealedInSameFile.jvm_abi.txt | 9 + .../codegen/box/sealed/sealedInSameFile.kt | 2 + .../specialBuiltins/bridgesJVM.jvm_abi.txt | 9 + .../codegen/box/specialBuiltins/bridgesJVM.kt | 1 + .../box/specialBuiltins/emptyMap.jvm_abi.txt | 6 + .../codegen/box/specialBuiltins/emptyMap.kt | 2 + .../emptyStringMap.jvm_abi.txt | 6 + .../box/specialBuiltins/emptyStringMap.kt | 2 + .../specialBuiltins/entrySetSOE.jvm_abi.txt | 18 + .../box/specialBuiltins/entrySetSOE.kt | 1 + .../box/specialBuiltins/maps.jvm_abi.txt | 6 + .../codegen/box/specialBuiltins/maps.kt | 2 + .../noSpecialBridgeInSuperClass.jvm_abi.txt | 24 + .../noSpecialBridgeInSuperClass.kt | 2 + .../codegen/box/strings/kt3571.jvm_abi.txt | 11 + .../testData/codegen/box/strings/kt3571.kt | 2 + .../codegen/box/super/kt14243_2.jvm_abi.txt | 6 + .../testData/codegen/box/super/kt14243_2.kt | 2 + .../objectExtendsLocalInner.jvm_abi.txt | 9 + .../objectExtendsLocalInner.kt | 1 + ...basicSuspendConversionGenerics.jvm_abi.txt | 81 + .../basicSuspendConversionGenerics.kt | 2 + ...dConversionForSimpleExpression.jvm_abi.txt | 31 + ...FunSuspendConversionForSimpleExpression.kt | 1 + ...AndFunConversionInDisabledMode.jvm_abi.txt | 7 + .../suspendAndFunConversionInDisabledMode.kt | 1 + ...suspendConversionCompatibility.jvm_abi.txt | 3 + .../synchronized/nonLocalReturn.jvm_abi.txt | 9 + .../box/synchronized/nonLocalReturn.kt | 2 +- .../syntheticAccessors/kt10047.jvm_abi.txt | 9 + .../codegen/box/syntheticAccessors/kt10047.kt | 2 + .../box/syntheticAccessors/kt9717.jvm_abi.txt | 9 + .../codegen/box/syntheticAccessors/kt9717.kt | 2 + .../kt9717DifferentPackages.jvm_abi.txt | 9 + .../kt9717DifferentPackages.kt | 2 + .../kt46578_kotlin_propertyRef.jvm_abi.txt | 29 + .../kt46578_kotlin_propertyRef.kt | 1 + .../syntheticExtensions/kt57103.jvm_abi.txt | 22 + .../box/syntheticExtensions/kt57103.kt | 1 + .../codegen/box/toArray/toArray.jvm_abi.txt | 11 + .../testData/codegen/box/toArray/toArray.kt | 1 + .../toArray/toArrayAlreadyPresent.jvm_abi.txt | 11 + .../box/toArray/toArrayAlreadyPresent.kt | 1 + .../box/toArray/toArrayFromJava.jvm_abi.txt | 11 + .../codegen/box/toArray/toArrayFromJava.kt | 2 + ...reviationWithRedundantArgument.jvm_abi.txt | 9 + ...alizedAbbreviationWithRedundantArgument.kt | 2 + ...tTypeOfTypealiasForSuspendFTMM.jvm_abi.txt | 9 + .../incorrectTypeOfTypealiasForSuspendFTMM.kt | 1 + ...ealiasForSuspendFunctionalType.jvm_abi.txt | 9 + ...TypeOfTypealiasForSuspendFunctionalType.kt | 1 + .../codegen/box/typealias/simple.jvm_abi.txt | 9 + .../testData/codegen/box/typealias/simple.kt | 2 + ...typeAliasInAnonymousObjectType.jvm_abi.txt | 9 + .../typeAliasInAnonymousObjectType.kt | 1 + .../typeAliasOnTypeAlias.jvm_abi.txt | 14 + .../box/typealias/typeAliasOnTypeAlias.kt | 1 + .../box/valueClasses/complex.jvm_abi.txt | 17 + .../codegen/box/valueClasses/complex.kt | 1 + .../box/valueClasses/delegating.jvm_abi.txt | 11 + .../codegen/box/valueClasses/delegating.kt | 1 + .../box/valueClasses/visibility.jvm_abi.txt | 167 + .../codegen/box/valueClasses/visibility.kt | 1 + .../when/enumOptimization/kt15806.jvm_abi.txt | 3 + .../box/when/enumOptimization/kt15806.kt | 1 + .../anonymousObject/kt29595.jvm_abi.txt | 33 + .../boxInline/anonymousObject/kt29595.kt | 2 + .../anonymousObject/kt38197.jvm_abi.txt | 85 + .../boxInline/anonymousObject/kt38197.kt | 2 + .../anonymousObject/kt51950.jvm_abi.txt | 65 + .../boxInline/anonymousObject/kt51950.kt | 2 + .../anonymousObject/sam/kt22304.jvm_abi.txt | 60 + .../boxInline/anonymousObject/sam/kt22304.kt | 2 + .../cfgDependendValInitialization.jvm_abi.txt | 45 + .../cfgDependendValInitialization.kt | 1 + .../contracts/complexInitializer.jvm_abi.txt | 45 + .../boxInline/contracts/complexInitializer.kt | 1 + ...ializerWithStackTransformation.jvm_abi.txt | 45 + ...mplexInitializerWithStackTransformation.kt | 1 + .../crossinlineCallableReference.jvm_abi.txt | 109 + .../contracts/crossinlineCallableReference.kt | 2 + .../definiteLongValInitialization.jvm_abi.txt | 45 + .../definiteLongValInitialization.kt | 1 + ...efiniteNestedValInitialization.jvm_abi.txt | 49 + .../definiteNestedValInitialization.kt | 1 + .../definiteValInitInInitializer.jvm_abi.txt | 45 + .../contracts/definiteValInitInInitializer.kt | 1 + .../definiteValInitialization.jvm_abi.txt | 45 + .../contracts/definiteValInitialization.kt | 1 + .../exactlyOnceCrossinline.jvm_abi.txt | 45 + .../contracts/exactlyOnceCrossinline.kt | 1 + .../exactlyOnceCrossinline2.jvm_abi.txt | 147 + .../contracts/exactlyOnceCrossinline2.kt | 1 + .../contracts/exactlyOnceNoinline.jvm_abi.txt | 45 + .../contracts/exactlyOnceNoinline.kt | 1 + .../contracts/nonLocalReturn.jvm_abi.txt | 45 + .../boxInline/contracts/nonLocalReturn.kt | 1 + .../nonLocalReturnWithCycle.jvm_abi.txt | 49 + .../contracts/nonLocalReturnWithCycle.kt | 1 + .../propertyInitialization.jvm_abi.txt | 45 + .../contracts/propertyInitialization.kt | 1 + ...lizationAndUsageInNestedLambda.jvm_abi.txt | 51 + ...valInitializationAndUsageInNestedLambda.kt | 1 + .../checkObjectClassIsPresent.jvm_abi.txt | 101 + .../checkObjectClassIsPresent.kt | 2 + ...heckStaticObjectClassIsPresent.jvm_abi.txt | 101 + .../checkStaticObjectClassIsPresent.kt | 2 + .../jvmStaticDefault.jvm_abi.txt | 53 + .../lambdaInlining/jvmStaticDefault.kt | 3 + .../lambdaInlining/kt21946.jvm_abi.txt | 53 + .../defaultValues/lambdaInlining/kt21946.kt | 2 + .../maskElimination/kt19679_3.jvm_abi.txt | 45 + .../maskElimination/kt19679_3.kt | 2 + .../delegatedProperty/kt48498.jvm_abi.txt | 49 + .../boxInline/delegatedProperty/kt48498.kt | 2 + .../enclosingInfo/inlineChain2.jvm_abi.txt | 60 + .../boxInline/enclosingInfo/inlineChain2.kt | 2 + .../boxInline/jvmName/simple.jvm_abi.txt | 45 + .../codegen/boxInline/jvmName/simple.kt | 2 + .../tryFinally/chained/intReturn.jvm_abi.txt | 15 + .../tryFinally/chained/intReturn.kt | 2 + .../chained/intReturnComplex.jvm_abi.txt | 15 + .../tryFinally/chained/intReturnComplex.kt | 2 + .../chained/intReturnComplex2.jvm_abi.txt | 15 + .../tryFinally/chained/intReturnComplex2.kt | 2 + .../chained/intReturnComplex3.jvm_abi.txt | 15 + .../tryFinally/chained/intReturnComplex3.kt | 2 + .../chained/intReturnComplex4.jvm_abi.txt | 15 + .../tryFinally/chained/intReturnComplex4.kt | 2 + .../tryFinally/declSite/intReturn.jvm_abi.txt | 15 + .../tryFinally/declSite/intReturn.kt | 2 + .../declSite/intReturnComplex.jvm_abi.txt | 15 + .../tryFinally/declSite/intReturnComplex.kt | 2 + .../declSite/longReturn.jvm_abi.txt | 15 + .../tryFinally/declSite/longReturn.kt | 2 + .../innerAndExternal.jvm_abi.txt | 15 + .../exceptionTable/innerAndExternal.kt | 2 + .../innerAndExternalNested.jvm_abi.txt | 9 + .../exceptionTable/innerAndExternalNested.kt | 2 + .../innerAndExternalSimple.jvm_abi.txt | 9 + .../exceptionTable/innerAndExternalSimple.kt | 2 + .../exceptionTable/nested.jvm_abi.txt | 9 + .../tryFinally/exceptionTable/nested.kt | 2 + .../nestedWithReturns.jvm_abi.txt | 9 + .../exceptionTable/nestedWithReturns.kt | 2 + .../exceptionTable/noFinally.jvm_abi.txt | 9 + .../tryFinally/exceptionTable/noFinally.kt | 2 + .../severalCatchClause.jvm_abi.txt | 15 + .../exceptionTable/severalCatchClause.kt | 2 + .../exceptionTable/simpleThrow.jvm_abi.txt | 9 + .../tryFinally/exceptionTable/simpleThrow.kt | 2 + .../exceptionTable/throwInFinally.jvm_abi.txt | 15 + .../exceptionTable/throwInFinally.kt | 2 + .../tryFinally/kt16417.jvm_abi.txt | 57 + .../nonLocalReturns/tryFinally/kt16417.kt | 2 + .../boxInline/property/fromObject.jvm_abi.txt | 34 + .../codegen/boxInline/property/fromObject.kt | 2 + .../inProjectionSubstitution.jvm_abi.txt | 9 + .../signature/inProjectionSubstitution.kt | 2 + .../boxInline/simple/kt17431.jvm_abi.txt | 9 + .../codegen/boxInline/simple/kt17431.kt | 2 + .../innerObjectRetransformation.jvm_abi.txt | 33 + .../innerObjectRetransformation.kt | 1 + .../suspend/tryCatchReceiver.jvm_abi.txt | 45 + .../boxInline/suspend/tryCatchReceiver.kt | 2 + .../privateInCrossInline.jvm_abi.txt | 64 + .../privateInCrossInline.kt | 2 + .../superInCrossInline.jvm_abi.txt | 64 + .../withinInlineLambda/superInCrossInline.kt | 1 + .../tryCatchFinally/tryCatch2.jvm_abi.txt | 9 + .../boxInline/tryCatchFinally/tryCatch2.kt | 3 +- .../tryCatchFinally.jvm_abi.txt | 9 + .../tryCatchFinally/tryCatchFinally.kt | 2 + .../uncheckedCastToNothing.jvm_abi.txt | 47 + .../typeParameters/uncheckedCastToNothing.kt | 1 + ...ectedPropertyWithPrivateSetter.jvm_abi.txt | 15 + ...orForProtectedPropertyWithPrivateSetter.kt | 2 + ...thPrivateSetterInObjectLiteral.jvm_abi.txt | 15 + ...ropertyWithPrivateSetterInObjectLiteral.kt | 2 + .../annotations/JvmSynthetic.jvm_abi.txt | 35 + .../annotations/JvmSynthetic.kt | 1 + .../annotationsOnDelegatedMembers.jvm_abi.txt | 19 + .../annotationsOnDelegatedMembers.kt | 2 + .../annotations/onProperties.jvm_abi.txt | 25 + .../annotations/onProperties.kt | 1 + .../collectionStubs/ListAndSet.jvm_abi.txt | 27 + .../collectionStubs/ListAndSet.kt | 2 + ...ectionByDelegation2WithFullJdk.jvm_abi.txt | 103 + .../collectionByDelegation2WithFullJdk.kt | 2 +- ...ectionByDelegation3WithFullJdk.jvm_abi.txt | 103 + .../collectionByDelegation3WithFullJdk.kt | 1 + ...lectionByDelegationWithFullJdk.jvm_abi.txt | 103 + .../collectionByDelegationWithFullJdk.kt | 1 + .../customListIterator.jvm_abi.txt | 9 + .../collectionStubs/customListIterator.kt | 3 + .../customMutableListIterator.jvm_abi.txt | 9 + .../customMutableListIterator.kt | 2 + .../customNonGenericToArray.jvm_abi.txt | 31 + .../toArray/customNonGenericToArray.kt | 1 + .../internalGenericToArray.jvm_abi.txt | 11 + .../toArray/internalGenericToArray.kt | 1 + .../fromKEEP/functionalType.jvm_abi.txt | 9 + .../fromKEEP/functionalType.kt | 1 + ...oJavaInterfaceWithWildcardType.jvm_abi.txt | 9 + ...legationToJavaInterfaceWithWildcardType.kt | 2 + .../deprecated/deprecatedProperty.jvm_abi.txt | 42 + .../deprecated/deprecatedProperty.kt | 2 + .../inheritingDeprecation.jvm_abi.txt | 37 + .../deprecated/inheritingDeprecation.kt | 2 + .../immutableCollection.jvm_abi.txt | 21 + .../bytecodeListing/immutableCollection.kt | 2 + .../crossinlineLambdaChain.jvm_abi.txt | 60 + .../enclosingInfo/crossinlineLambdaChain.kt | 2 + ...ineClassWithManyKindsOfMembers.jvm_abi.txt | 9 + .../inlineClassWithManyKindsOfMembers.kt | 1 + .../jvmStatic/kt31389.jvm_abi.txt | 9 + .../bytecodeListing/jvmStatic/kt31389.kt | 1 + .../bytecodeListing/kt43217.jvm_abi.txt | 9 + .../codegen/bytecodeListing/kt43217.kt | 2 + ...yAnnotationsOnDelegatedMembers.jvm_abi.txt | 9 + ...ullabilityAnnotationsOnDelegatedMembers.kt | 2 + .../privateDefaultSetter.jvm_abi.txt | 21 + .../bytecodeListing/privateDefaultSetter.kt | 1 + .../rawTypeInSignature.jvm_abi.txt | 9 + .../bytecodeListing/rawTypeInSignature.kt | 2 + .../signatures/genericClass.jvm_abi.txt | 69 + .../specialBridges/signatures/genericClass.kt | 1 + .../signatures/nonGenericClass.jvm_abi.txt | 69 + .../signatures/nonGenericClass.kt | 2 + .../partiallySpecializedClass.jvm_abi.txt | 69 + .../signatures/partiallySpecializedClass.kt | 1 + .../specialBridgeForGet.jvm_abi.txt | 35 + .../specialBridges/specialBridgeForGet.kt | 2 + .../valueClasses/annotations.jvm_abi.txt | 66 + .../valueClasses/annotations.kt | 2 + .../builtinFunctions/removeAt.jvm_abi.txt | 33 + .../bytecodeText/builtinFunctions/removeAt.kt | 2 + .../inlineUnsignedIntConstant.jvm_abi.txt | 13 + .../constants/inlineUnsignedIntConstant.kt | 1 + ...orInSequenceWithIndexThrowsCME.jvm_abi.txt | 9 + .../forInSequenceWithIndexThrowsCME.kt | 1 + .../inline/finallyMarkers.jvm_abi.txt | 65 + .../bytecodeText/inline/finallyMarkers.kt | 2 + .../intConstantSafeCall.jvm_abi.txt | 13 + .../bytecodeText/intConstantSafeCall.kt | 1 + .../codegen/bytecodeText/kt3845.jvm_abi.txt | 48 + .../testData/codegen/bytecodeText/kt3845.kt | 2 + .../codegen/bytecodeText/kt48367.jvm_abi.txt | 33 + .../testData/codegen/bytecodeText/kt48367.kt | 2 + .../codegen/bytecodeText/kt7188.jvm_abi.txt | 9 + .../testData/codegen/bytecodeText/kt7188.kt | 2 + .../codegen/bytecodeText/kt9603.jvm_abi.txt | 9 + .../testData/codegen/bytecodeText/kt9603.kt | 2 +- .../lineNumbers/delegationToList.jvm_abi.txt | 11 + .../lineNumbers/delegationToList.kt | 2 +- .../redundantSafeCall_1_4.kt | 2 +- .../regularClassWithMFVC.jvm_abi.txt | 9 + .../valueClasses/regularClassWithMFVC.kt | 1 + .../dumpDeclarations/classMembers.jvm_abi.txt | 21 + .../codegen/dumpDeclarations/classMembers.kt | 1 + .../testData/codegen/script/adder.jvm_abi.txt | 21 + compiler/testData/codegen/script/adder.kts | 2 + .../classLiteralInsideFunction.jvm_abi.txt | 37 + .../script/classLiteralInsideFunction.kts | 1 + .../destructuringDeclaration.jvm_abi.txt | 33 + .../script/destructuringDeclaration.kts | 1 + ...ructuringDeclarationUnderscore.jvm_abi.txt | 29 + .../destructuringDeclarationUnderscore.kts | 1 + .../testData/codegen/script/empty.jvm_abi.txt | 17 + compiler/testData/codegen/script/empty.kts | 2 + .../codegen/script/helloWorld.jvm_abi.txt | 21 + .../testData/codegen/script/helloWorld.kts | 2 + .../codegen/script/inline.jvm_abi.txt | 17 + compiler/testData/codegen/script/inline.kts | 1 + .../codegen/script/kt20707.jvm_abi.txt | 30 + compiler/testData/codegen/script/kt20707.kts | 1 + .../codegen/script/kt22029.jvm_abi.txt | 33 + compiler/testData/codegen/script/kt22029.kts | 1 + .../script/localDelegatedProperty.jvm_abi.txt | 17 + .../codegen/script/localDelegatedProperty.kts | 1 + ...localDelegatedPropertyInLambda.jvm_abi.txt | 17 + .../script/localDelegatedPropertyInLambda.kts | 1 + ...elegatedPropertyNoExplicitType.jvm_abi.txt | 17 + .../localDelegatedPropertyNoExplicitType.kts | 1 + .../codegen/script/localFunction.jvm_abi.txt | 17 + .../testData/codegen/script/localFunction.kts | 2 + .../codegen/script/outerCapture.jvm_abi.txt | 17 + .../testData/codegen/script/outerCapture.kts | 2 + .../codegen/script/parameter.jvm_abi.txt | 17 + .../testData/codegen/script/parameter.kts | 2 + .../codegen/script/parameterArray.jvm_abi.txt | 17 + .../codegen/script/parameterArray.kts | 2 + .../script/parameterClosure.jvm_abi.txt | 17 + .../codegen/script/parameterClosure.kts | 1 + .../codegen/script/parameterLong.jvm_abi.txt | 17 + .../testData/codegen/script/parameterLong.kts | 2 + ...classCapturesExtensionIndirect.jvm_abi.txt | 29 + .../classCapturesExtensionIndirect.kts | 1 + ...assCapturesExtensionIndirect2x.jvm_abi.txt | 23 + .../classCapturesExtensionIndirect2x.kts | 1 + .../classCapturesFunction.jvm_abi.txt | 17 + .../classCapturesFunction.kts | 1 + .../classCapturesProperty.jvm_abi.txt | 17 + .../classCapturesProperty.kts | 1 + ...pturesPropertyInStringTemplate.jvm_abi.txt | 17 + .../classCapturesPropertyInStringTemplate.kts | 1 + .../classCapturesPropertyIndirect.jvm_abi.txt | 17 + .../classCapturesPropertyIndirect.kts | 1 + ...lassCapturesPropertyIndirect2x.jvm_abi.txt | 17 + .../classCapturesPropertyIndirect2x.kts | 1 + ...stedInnerClassCapturesProperty.jvm_abi.txt | 17 + .../nestedInnerClassCapturesProperty.kts | 1 + .../script/secondLevelFunction.jvm_abi.txt | 17 + .../codegen/script/secondLevelFunction.kts | 2 + .../secondLevelFunctionClosure.jvm_abi.txt | 17 + .../script/secondLevelFunctionClosure.kts | 2 + .../codegen/script/secondLevelVal.jvm_abi.txt | 21 + .../codegen/script/secondLevelVal.kts | 2 + .../codegen/script/simpleClass.jvm_abi.txt | 17 + .../testData/codegen/script/simpleClass.kts | 1 + .../codegen/script/string.jvm_abi.txt | 17 + compiler/testData/codegen/script/string.kts | 2 + .../script/topLevelFunction.jvm_abi.txt | 17 + .../codegen/script/topLevelFunction.kts | 2 + .../topLevelFunctionClosure.jvm_abi.txt | 17 + .../script/topLevelFunctionClosure.kts | 2 + ...topLevelLocalDelegatedProperty.jvm_abi.txt | 17 + .../script/topLevelLocalDelegatedProperty.kts | 1 + .../topLevelPropertiesWithGetSet.jvm_abi.txt | 17 + .../script/topLevelPropertiesWithGetSet.kts | 1 + .../script/topLevelProperty.jvm_abi.txt | 17 + .../codegen/script/topLevelProperty.kts | 2 + ...velPropertyWithProvideDelegate.jvm_abi.txt | 41 + .../topLevelPropertyWithProvideDelegate.kts | 1 + .../script/topLevelTypealias.jvm_abi.txt | 21 + .../codegen/script/topLevelTypealias.kts | 2 +- .../twoDestructuringDeclarations.jvm_abi.txt | 49 + .../script/twoDestructuringDeclarations.kts | 2 + compiler/tests-common-new/build.gradle.kts | 1 + .../JvmAbiConsistencyTestBoxGenerated.java | 54768 ++++++++++++++++ .../JvmAbiConsistencyTestRestGenerated.java | 16139 +++++ .../jetbrains/kotlin/test/TestSetupUtils.kt | 12 + .../BlackBoxInlinerCodegenSuppressor.kt | 13 +- .../handlers/JvmAbiConsistencyHandler.kt | 193 + .../test/backend/ir/AbiCheckerSuppressor.kt | 60 + .../backend/ir/IrBackendInputsFromK1AndK2.kt | 20 + .../backend/ir/K1AndK2JvmIrBackendFacade.kt | 32 + .../test/builders/CompilerTestDslHelpers.kt | 14 + .../test/directives/CodegenTestDirectives.kt | 18 +- .../test/frontend/K1AndK2FrontendFacade.kt | 36 + .../test/frontend/K1AndK2OutputArtifact.kt | 18 + .../test/frontend/K1AndK2ToIrConverter.kt | 38 + .../MultiplatformAnalysisConfiguration.kt | 7 +- .../kotlin/test/model/ResultingArtifacts.kt | 5 + .../kotlin/test/model/TestArtifactKinds.kt | 11 + .../runners/AbstractJvmAbiConsistencyTest.kt | 89 + .../codegen/BaseCodegenConfiguration.kt | 2 +- .../kotlin/test/services/JUnit5Assertions.kt | 23 +- .../impl/ModuleStructureExtractorImpl.kt | 2 +- .../services/impl/TestModuleStructureImpl.kt | 18 +- .../services/jvm/CompiledClassesManager.kt | 18 +- .../generators/GenerateJUnit5CompilerTests.kt | 18 + gradle/verification-metadata.xml | 6 + .../tools/abi-comparator/build.gradle.kts | 17 + .../org/jetbrains/kotlin/abicmp/JvmFlags.kt | 92 + .../abicmp/checkers/AnnotationsComparison.kt | 93 + .../abicmp/checkers/AnnotationsProperty.kt | 38 + .../kotlin/abicmp/checkers/Checker.kt | 41 + .../kotlin/abicmp/checkers/ClassChecker.kt | 67 + .../abicmp/checkers/ClassMetadataChecker.kt | 13 + .../checkers/ClassMetadataListChecker.kt | 29 + .../checkers/ClassMetadataPropertyChecker.kt | 27 + .../checkers/FieldAnnotationsChecker.kt | 22 + .../kotlin/abicmp/checkers/FieldChecker.kt | 36 + .../abicmp/checkers/FieldPropertyChecker.kt | 30 + .../abicmp/checkers/FieldsListChecker.kt | 64 + .../abicmp/checkers/GenericMetadataChecker.kt | 50 + .../checkers/InnerClassesListChecker.kt | 64 + .../checkers/MethodAnnotationsChecker.kt | 22 + .../kotlin/abicmp/checkers/MethodChecker.kt | 37 + .../MethodParameterAnnotationsChecker.kt | 35 + .../abicmp/checkers/MethodPropertyChecker.kt | 30 + .../abicmp/checkers/MethodsListChecker.kt | 66 + .../MultiFileClassFacadeMetadataChecker.kt | 17 + ...MultiFileClassFacadeMetadataListChecker.kt | 33 + .../MultiFileClassPartMetadataChecker.kt | 17 + ...ltiFileClassPartMetadataPropertyChecker.kt | 31 + .../abicmp/checkers/PackageMetadataChecker.kt | 13 + .../checkers/PackageMetadataListChecker.kt | 33 + .../checkers/SyntheticClassMetadataChecker.kt | 17 + .../SyntheticClassMetadataPropertyChecker.kt | 31 + .../kotlin/abicmp/checkers/compareLists.kt | 47 + .../kotlin/abicmp/checkers/metadataUtils.kt | 67 + .../jetbrains/kotlin/abicmp/defects/Defect.kt | 8 + .../kotlin/abicmp/defects/DefectInfo.kt | 59 + .../kotlin/abicmp/defects/Location.kt | 60 + .../kotlin/abicmp/defects/commonAttributes.kt | 17 + .../org/jetbrains/kotlin/abicmp/html.kt | 66 + .../abicmp/reports/ClassMetadataReport.kt | 96 + .../kotlin/abicmp/reports/ClassReport.kt | 222 + .../kotlin/abicmp/reports/ComparisonReport.kt | 15 + .../kotlin/abicmp/reports/DefectReport.kt | 21 + .../kotlin/abicmp/reports/DiffEntry.kt | 22 + .../kotlin/abicmp/reports/FieldReport.kt | 82 + .../kotlin/abicmp/reports/JarReport.kt | 106 + .../abicmp/reports/MetadataPropertyReport.kt | 34 + .../kotlin/abicmp/reports/MethodReport.kt | 109 + .../MultiFileClassFacadeMetadataReport.kt | 37 + .../MultiFileClassPartMetadataReport.kt | 42 + .../abicmp/reports/PackageMetadataReport.kt | 75 + .../kotlin/abicmp/reports/SummaryReport.kt | 110 + .../reports/SyntheticClassMetadataReport.kt | 38 + .../jetbrains/kotlin/abicmp/reports/css.kt | 29 + .../abicmp/reports/plainTextDumpUtils.kt | 50 + .../kotlin/abicmp/reports/reportUtils.kt | 51 + .../abicmp/tasks/CheckerConfiguration.kt | 224 + .../kotlin/abicmp/tasks/ClassMetadataTask.kt | 59 + .../kotlin/abicmp/tasks/ClassTask.kt | 152 + .../jetbrains/kotlin/abicmp/tasks/DirTask.kt | 79 + .../kotlin/abicmp/tasks/FieldTask.kt | 40 + .../abicmp/tasks/GenericMetadataTask.kt | 22 + .../jetbrains/kotlin/abicmp/tasks/JarTask.kt | 152 + .../kotlin/abicmp/tasks/MethodTask.kt | 40 + .../tasks/MultiFileClassFacadeMetadataTask.kt | 22 + .../tasks/MultiFileClassPartMetadataTask.kt | 23 + .../abicmp/tasks/PackageMetadataTask.kt | 41 + .../abicmp/tasks/SyntheticMetadataTask.kt | 33 + .../org/jetbrains/kotlin/abicmp/util.kt | 10 + .../org/jetbrains/kotlin/kotlinp/printers.kt | 40 +- .../kotlin/kotlinp/readKotlinClassHeader.kt | 6 +- settings.gradle | 2 + 1104 files changed, 88413 insertions(+), 66 deletions(-) create mode 100644 compiler/testData/codegen/box/annotations/annotatedAnnotationParameter.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/annotations/annotatedEnumEntry.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/annotations/instances/annotationInstances.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/annotations/instances/annotationToString.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/annotations/jvmAnnotationFlags.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/arrays/kt17134.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/binaryOp/eqNullableDoublesToIntWithTP.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/binaryOp/eqNullableDoublesWithTP.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/bridges/delegationComplexWithList.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/bridges/delegationProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/bridges/propertyAccessorsWithoutBody.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesYieldCase.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/Collection.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/List.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/ListIterator.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/Map.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/MapWithAllImplementations.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/SubstitutedList.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractMap.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToFakeRemoveAt.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAt.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAtInJavaDefault.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/immutableRemove.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/builtinStubMethods/mapRemove/noDefaultImpls.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorIsKFunction.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorOfImplicitKFunctionType.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/callableReference/function/getArityViaFunctionImpl.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/callableReference/genericConstructorReference.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/callableReference/property/accessorForPropertyWithPrivateSetter.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/callableReference/property/privateSetOuterClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/callableReference/property/privateSetterInsideClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/callableReference/referenceToGenericSyntheticProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/casts/genericReturnCast.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/casts/mutableCollections/mutabilityMarkerInterfaces.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/classes/inheritance.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/classes/kt2391.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/classes/kt3001.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/classes/kt9642.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/classes/overloadBinaryOperator.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/classes/overloadPlusAssign.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/classes/overloadPlusAssignReturn.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/classes/overloadUnaryOperator.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/classes/typedDelegation.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/closures/subclosuresWithinInitializers.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/collections/kt41123.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/collections/readOnlyMap.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/collections/removeAtIntOverrideInJava.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/collections/removeOverriddenInJava_Map.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/collections/specialBridgeForGet.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/javaTypeParameterBy.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/breakInConstructorArguments.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/continueInConstructorArguments.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/earlyReturnInConstructorArguments.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCall.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallEvaluationOrder.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/inlineFunInInnerClassConstructorCall.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/inlineFunInLocalClassConstructorCall.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/loopInInlineFun.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/nestedConstructorCallWithJumpOutInConstructorArguments.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/nonLocalReturnInConstructorArguments.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/possiblyPoppedUnitializedValueInArguments.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/regularConstructorCallEvaluationOrder.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/constructorCall/tryCatchInConstructorCallEvaluationOrder.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/contracts/fieldInConstructorParens.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/contracts/kt39374.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/contracts/kt45236.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/contracts/kt47168.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/contracts/kt47300.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/contracts/listAppend.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/controlStructures/forArrayList.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexThrowsCME.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/bridges/mapSuspendAbstractClear.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/bridges/mapSuspendClear.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/deserializedSuspendFunctionProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/handleException.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/kt51530.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/nestedTryCatch.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/also.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast2.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/deferredAwaitSuspendImpl.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithStateMachine.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/innerObjectRetransformation.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/interfaceDelegation.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/lambdaParameterInlining.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/returnInlineClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/simple.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIfReturnUnit.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIntrinsics.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailSuspendUnitFun.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatchTailCall.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/inline.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override4.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override6.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/unreachable.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tailCallOptimizations/whenUnit.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/defaultArguments/recursiveDefaultArguments.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegatedProperty/delegateToAnother/custom.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegatedProperty/kt37204.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrderVar.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegatedProperty/useKPropertyLater.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegation/computeIfAbsent.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegation/delegationAndInheritanceFromJava.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegation/delegationDifferentModule2.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegation/delegationToMap.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegation/genericFunctionInGenericInterface.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegation/genericProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegation/inDataClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegation/kt54654.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegation/sealedClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass2.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor1.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor2.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor3.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/innerClassInEnumEntryClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/kt44744_innerClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/kt7257_anonObjectInit.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/kt7257_anonObjectMethod.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/kt7257_boundReference1.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/enum/kt9711_2.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionLambdaIndy.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualInlineCall.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/functionalType.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51475.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52213.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53551.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt58476.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusAssign.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/extensionFunctions/kt865.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/fir/Fir2IrClassifierStorage.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/fir/JKEnumConstant.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/fir/LookupTags.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/fir/Mockito.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/fir/NameHighlighter.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/fir/TypeParameterInNestedClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/fir/TypeParameterInNestedClass2.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/fir/externalInDependency.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/fir/starProjectionLambdaNullReturn.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/fullJdk/native/nativePropertyAccessors.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/fullJdk/regressions/kt15112.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/functions/bigArity/nestedBigArityFunCalls.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/functions/invoke/kt3190.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inference/builderInference/capturedTypes.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inference/capturedTypesSubstitutionIntoAbbreviation.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inference/overrideGenericDefaultMethod.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inference/unsafeVarianceCodegen.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMutableCollectionBulkAdd.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalVarargAndDefault.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalWithCapture.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/intrinsics/kt8666.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/involvesIrInterpreter/serialization/typeAnnotation.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ir/serializationRegressions/deepGenericDelegatedProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPrivateProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReferenceFromInner.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/javaInterop/kt43217.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simpleProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_map.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvm8/kt14243_2.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvm8/kt33054.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvmName/annotationProperties.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvmName/propertyAccessorsUseSite.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvmName/propertyName.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvmOverloads/noRedundantVarargs.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvmStatic/kt31389.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvmStatic/postfixInc.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvmStatic/prefixInc.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvmStatic/privateSetter.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvmStatic/propertyAccess.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/localClasses/localClassInInitializer.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/commonInternal.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/annotations/expectAnnotationCallInLibrary.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypeParameters.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/multiModule/hmppSimple.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/multiplatform/optionalExpectationJvm.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/objects/compoundAssignmentToPropertyWithQualifier.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/objects/kt1136.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/objects/objectInLocalAnonymousObject.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/objects/objectLiteralInClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/objects/substitutionFunctionFromSuper.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/objects/useAnonymousObjectFunction.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/package/invokespecial.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/polymorphicSignature/invoke.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/accessToPrivateProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/accessToPrivateSetter.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/classObjectProperties.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/kt2331.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/kt2786.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/kt3930.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/kt4373.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/kt49203_lateinit.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/kt49203_var.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/kt8928.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/kt9603.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/lateinit/privateSetter.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/lateinit/privateSetterFromLambda.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/properties/privateAccessorOfOverriddenProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownToReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/contains/evaluationOrderForNullableArgument.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteralReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntil.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntilReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/reflection/call/protectedMembers.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/reflection/genericSignature/delegatedMembers.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/reflection/mapping/propertyAccessorsWithJvmName.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/reflection/mapping/types/allSupertypes.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/reflection/modifiers/callableVisibility.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/reflection/parameters/propertySetter.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/reflection/properties/interfaceDelegation.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/reflection/properties/localDelegated/variableOfGenericType.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/reflection/typeParameters/upperBounds.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/regressions/kt3850.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/safeCall/kt52743.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/sam/contravariantIntersectionType.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/sam/kt11519.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/sam/kt50477Enabled.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/sealed/delegatingConstructor.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/sealed/sealedInSameFile.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/specialBuiltins/bridgesJVM.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/specialBuiltins/emptyMap.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/specialBuiltins/emptyStringMap.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/specialBuiltins/entrySetSOE.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/specialBuiltins/maps.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/specialBuiltins/noSpecialBridgeInSuperClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/strings/kt3571.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/super/kt14243_2.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/super/superConstructor/objectExtendsLocalInner.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/synchronized/nonLocalReturn.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/syntheticAccessors/kt10047.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/syntheticAccessors/kt9717.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/syntheticAccessors/kt9717DifferentPackages.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_propertyRef.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/syntheticExtensions/kt57103.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/toArray/toArray.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/toArray/toArrayFromJava.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/typealias/deserializedAbbreviationWithRedundantArgument.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFTMM.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFunctionalType.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/typealias/simple.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/typealias/typeAliasInAnonymousObjectType.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/typealias/typeAliasOnTypeAlias.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/valueClasses/complex.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/valueClasses/delegating.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/valueClasses/visibility.jvm_abi.txt create mode 100644 compiler/testData/codegen/box/when/enumOptimization/kt15806.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/anonymousObject/kt29595.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/anonymousObject/kt38197.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/anonymousObject/kt51950.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/complexInitializer.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/definiteValInitialization.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/nonLocalReturn.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/propertyInitialization.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/delegatedProperty/kt48498.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/jvmName/simple.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/property/fromObject.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/simple/kt17431.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.jvm_abi.txt create mode 100644 compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/annotations/onProperties.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/immutableCollection.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/jvmStatic/kt31389.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/kt43217.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/privateDefaultSetter.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/rawTypeInSignature.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeListing/valueClasses/annotations.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeText/builtinFunctions/removeAt.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeText/constants/inlineUnsignedIntConstant.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeText/inline/finallyMarkers.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeText/intConstantSafeCall.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeText/kt3845.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeText/kt48367.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeText/kt7188.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeText/kt9603.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeText/lineNumbers/delegationToList.jvm_abi.txt create mode 100644 compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.jvm_abi.txt create mode 100644 compiler/testData/codegen/dumpDeclarations/classMembers.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/adder.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/classLiteralInsideFunction.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/destructuringDeclaration.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/destructuringDeclarationUnderscore.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/empty.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/helloWorld.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/inline.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/kt20707.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/kt22029.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/localDelegatedProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/localDelegatedPropertyInLambda.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/localFunction.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/outerCapture.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/parameter.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/parameterArray.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/parameterClosure.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/parameterLong.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/secondLevelFunction.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/secondLevelFunctionClosure.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/secondLevelVal.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/simpleClass.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/string.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/topLevelFunction.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/topLevelFunctionClosure.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/topLevelLocalDelegatedProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/topLevelPropertiesWithGetSet.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/topLevelProperty.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/topLevelTypealias.jvm_abi.txt create mode 100644 compiler/testData/codegen/script/twoDestructuringDeclarations.jvm_abi.txt create mode 100644 compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java create mode 100644 compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java create mode 100644 compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/JvmAbiConsistencyHandler.kt create mode 100644 compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/AbiCheckerSuppressor.kt create mode 100644 compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/IrBackendInputsFromK1AndK2.kt create mode 100644 compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/K1AndK2JvmIrBackendFacade.kt create mode 100644 compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2FrontendFacade.kt create mode 100644 compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2OutputArtifact.kt create mode 100644 compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2ToIrConverter.kt create mode 100644 compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractJvmAbiConsistencyTest.kt create mode 100644 libraries/tools/abi-comparator/build.gradle.kts create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/JvmFlags.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/AnnotationsComparison.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/AnnotationsProperty.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/Checker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataListChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataPropertyChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldAnnotationsChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldPropertyChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldsListChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/GenericMetadataChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/InnerClassesListChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodAnnotationsChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodParameterAnnotationsChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodPropertyChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodsListChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassFacadeMetadataChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassFacadeMetadataListChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassPartMetadataChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassPartMetadataPropertyChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/PackageMetadataChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/PackageMetadataListChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/SyntheticClassMetadataChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/SyntheticClassMetadataPropertyChecker.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/compareLists.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/metadataUtils.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/Defect.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/DefectInfo.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/Location.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/commonAttributes.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/html.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ClassMetadataReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ClassReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ComparisonReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/DefectReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/DiffEntry.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/FieldReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/JarReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MetadataPropertyReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MethodReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MultiFileClassFacadeMetadataReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MultiFileClassPartMetadataReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/PackageMetadataReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/SummaryReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/SyntheticClassMetadataReport.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/css.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/plainTextDumpUtils.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/reportUtils.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/CheckerConfiguration.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/ClassMetadataTask.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/ClassTask.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/DirTask.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/FieldTask.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/GenericMetadataTask.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/JarTask.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MethodTask.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MultiFileClassFacadeMetadataTask.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MultiFileClassPartMetadataTask.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/PackageMetadataTask.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/SyntheticMetadataTask.kt create mode 100644 libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/util.kt diff --git a/.space/CODEOWNERS b/.space/CODEOWNERS index f1930eec84b..d29af05c175 100644 --- a/.space/CODEOWNERS +++ b/.space/CODEOWNERS @@ -286,6 +286,7 @@ /libraries/stdlib/wasm/internal/ "Kotlin Wasm" /libraries/stdlib/wasm/src/generated/wasm/internal/ "Kotlin Wasm" +/libraries/tools/abi-comparator "Kotlin JVM" /libraries/tools/atomicfu/ "Kotlin Libraries" /libraries/tools/binary-compatibility-validator/ "Kotlin Libraries" /libraries/tools/dukat/ "Kotlin JS" diff --git a/compiler/testData/codegen/box/annotations/annotatedAnnotationParameter.jvm_abi.txt b/compiler/testData/codegen/box/annotations/annotatedAnnotationParameter.jvm_abi.txt new file mode 100644 index 00000000000..ebeb030724b --- /dev/null +++ b/compiler/testData/codegen/box/annotations/annotatedAnnotationParameter.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS Anno.class + CLASS METADATA + PROPERTY k()Ljava/lang/String; + Property: class.metadata.property.getterModifiers + K1 + public final + K2 + public final /* non-default */ + PROPERTY o()Ljava/lang/String; + Property: class.metadata.property.getterModifiers + K1 + public final + K2 + public final /* non-default */ diff --git a/compiler/testData/codegen/box/annotations/annotatedAnnotationParameter.kt b/compiler/testData/codegen/box/annotations/annotatedAnnotationParameter.kt index 58594a79a35..18c3bf4f8e8 100644 --- a/compiler/testData/codegen/box/annotations/annotatedAnnotationParameter.kt +++ b/compiler/testData/codegen/box/annotations/annotatedAnnotationParameter.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63843 import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/annotations/annotatedEnumEntry.jvm_abi.txt b/compiler/testData/codegen/box/annotations/annotatedEnumEntry.jvm_abi.txt new file mode 100644 index 00000000000..6f9c72280cc --- /dev/null +++ b/compiler/testData/codegen/box/annotations/annotatedEnumEntry.jvm_abi.txt @@ -0,0 +1,7 @@ +MODULE main + CLASS E$E1.class + Annotation: class.visibleAnnotations + K1 + @LFirst; + K2 + --- diff --git a/compiler/testData/codegen/box/annotations/annotatedEnumEntry.kt b/compiler/testData/codegen/box/annotations/annotatedEnumEntry.kt index 0e8fb57ada9..f172240d939 100644 --- a/compiler/testData/codegen/box/annotations/annotatedEnumEntry.kt +++ b/compiler/testData/codegen/box/annotations/annotatedEnumEntry.kt @@ -2,6 +2,7 @@ // WITH_STDLIB // KT-5665 +// JVM_ABI_K1_K2_DIFF: KT-62470 @Retention(AnnotationRetention.RUNTIME) annotation class First diff --git a/compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.jvm_abi.txt b/compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.jvm_abi.txt new file mode 100644 index 00000000000..5405ec88833 --- /dev/null +++ b/compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.jvm_abi.txt @@ -0,0 +1,77 @@ +MODULE main + CLASS PrivateProperties.class + CLASS METADATA + PROPERTY getX8()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY x2 + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY x3 + Property: class.metadata.property.setterModifiers + K1 + private final /* non-default */ + K2 + private final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + --- + PROPERTY x4 + Property: class.metadata.property.setterModifiers + K1 + private final /* non-default */ + K2 + private final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + --- + PROPERTY y0 + Property: class.metadata.property.getterModifiers + K1 + private final + K2 + private final /* non-default */ + PROPERTY y1 + Property: class.metadata.property.getterModifiers + K1 + private final + K2 + private final /* non-default */ + CLASS EffetivelyPrivate.class + CLASS METADATA + PROPERTY getX0()I + Property: class.metadata.property.getterModifiers + K1 + public final + K2 + public final /* non-default */ + PROPERTY getX1()I + Property: class.metadata.property.getterModifiers + K1 + protected final + K2 + protected final /* non-default */ + PROPERTY getX2$main()I + Property: class.metadata.property.getterModifiers + K1 + internal final + K2 + internal final /* non-default */ + CLASS Statics$Companion.class + CLASS METADATA + PROPERTY getX2()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.kt b/compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.kt index f0ba61f0872..db0603f13f8 100644 --- a/compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.kt +++ b/compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.kt @@ -1,5 +1,6 @@ // WITH_REFLECT // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63850, KT-63851, KT-63852, KT-63843, different naming of setter parameters // Please make sure that this test is consistent with the diagnostic test "annotationsTargetingNonExistentAccessor.kt" diff --git a/compiler/testData/codegen/box/annotations/instances/annotationInstances.jvm_abi.txt b/compiler/testData/codegen/box/annotations/instances/annotationInstances.jvm_abi.txt new file mode 100644 index 00000000000..2488ddf51c3 --- /dev/null +++ b/compiler/testData/codegen/box/annotations/instances/annotationInstances.jvm_abi.txt @@ -0,0 +1,26 @@ +MODULE main + CLASS AnnotationInstancesKt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + annotationInstances.kt + Kotlin + *S Kotlin + *F + + 1 annotationInstances.kt + AnnotationInstancesKt + + 2 ArrayIntrinsics.kt + kotlin/ArrayIntrinsicsKt + *L + 1#1,76:1 + 26#2:77 + *S KotlinDebug + *F + + 1 annotationInstances.kt + AnnotationInstancesKt + *L + 51#1:77 + *E + } ) + K2 + --- diff --git a/compiler/testData/codegen/box/annotations/instances/annotationInstances.kt b/compiler/testData/codegen/box/annotations/instances/annotationInstances.kt index 61339ba15a2..830ea1377bf 100644 --- a/compiler/testData/codegen/box/annotations/instances/annotationInstances.kt +++ b/compiler/testData/codegen/box/annotations/instances/annotationInstances.kt @@ -6,6 +6,8 @@ // WITH_STDLIB // !LANGUAGE: +InstantiationOfAnnotationClasses +// JVM_ABI_K1_K2_DIFF: KT-62465 + // note: taken from ../parameters.kt and ../parametersWithPrimitiveValues.kt import kotlin.reflect.KClass import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/annotations/instances/annotationToString.jvm_abi.txt b/compiler/testData/codegen/box/annotations/instances/annotationToString.jvm_abi.txt new file mode 100644 index 00000000000..54446e72b46 --- /dev/null +++ b/compiler/testData/codegen/box/annotations/instances/annotationToString.jvm_abi.txt @@ -0,0 +1,26 @@ +MODULE main + CLASS test/AnnotationToStringKt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + annotationToString.kt + Kotlin + *S Kotlin + *F + + 1 annotationToString.kt + test/AnnotationToStringKt + + 2 ArrayIntrinsics.kt + kotlin/ArrayIntrinsicsKt + *L + 1#1,62:1 + 26#2:63 + *S KotlinDebug + *F + + 1 annotationToString.kt + test/AnnotationToStringKt + *L + 51#1:63 + *E + } ) + K2 + --- diff --git a/compiler/testData/codegen/box/annotations/instances/annotationToString.kt b/compiler/testData/codegen/box/annotations/instances/annotationToString.kt index 29cdba1c1c1..151f7c88674 100644 --- a/compiler/testData/codegen/box/annotations/instances/annotationToString.kt +++ b/compiler/testData/codegen/box/annotations/instances/annotationToString.kt @@ -10,6 +10,8 @@ // WITH_STDLIB // !LANGUAGE: +InstantiationOfAnnotationClasses +// JVM_ABI_K1_K2_DIFF: KT-62465 + package test import kotlin.reflect.KClass diff --git a/compiler/testData/codegen/box/annotations/jvmAnnotationFlags.jvm_abi.txt b/compiler/testData/codegen/box/annotations/jvmAnnotationFlags.jvm_abi.txt new file mode 100644 index 00000000000..032913a4fe0 --- /dev/null +++ b/compiler/testData/codegen/box/annotations/jvmAnnotationFlags.jvm_abi.txt @@ -0,0 +1,35 @@ +MODULE main + CLASS C.class + CLASS METADATA + PROPERTY getSynth2()I + Property: class.metadata.property.getterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- + PROPERTY getSynth4()I + Property: class.metadata.property.getterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- diff --git a/compiler/testData/codegen/box/annotations/jvmAnnotationFlags.kt b/compiler/testData/codegen/box/annotations/jvmAnnotationFlags.kt index 27d1ff0b2de..3904769dfe8 100644 --- a/compiler/testData/codegen/box/annotations/jvmAnnotationFlags.kt +++ b/compiler/testData/codegen/box/annotations/jvmAnnotationFlags.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63853, KT-63854 + import java.lang.reflect.Modifier import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/arrays/kt17134.jvm_abi.txt b/compiler/testData/codegen/box/arrays/kt17134.jvm_abi.txt new file mode 100644 index 00000000000..cb4715c1f8f --- /dev/null +++ b/compiler/testData/codegen/box/arrays/kt17134.jvm_abi.txt @@ -0,0 +1,26 @@ +MODULE main + CLASS Kt17134Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt17134.kt + Kotlin + *S Kotlin + *F + + 1 kt17134.kt + Kt17134Kt + + 2 ArrayIntrinsics.kt + kotlin/ArrayIntrinsicsKt + *L + 1#1,19:1 + 26#2:20 + *S KotlinDebug + *F + + 1 kt17134.kt + Kt17134Kt + *L + 16#1:20 + *E + } ) + K2 + --- diff --git a/compiler/testData/codegen/box/arrays/kt17134.kt b/compiler/testData/codegen/box/arrays/kt17134.kt index fe885c8738f..11d7b999cd5 100644 --- a/compiler/testData/codegen/box/arrays/kt17134.kt +++ b/compiler/testData/codegen/box/arrays/kt17134.kt @@ -1,6 +1,8 @@ // WITH_STDLIB // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62465 + object A { @JvmStatic fun main(args: Array) { val b = arrayOf(arrayOf("")) diff --git a/compiler/testData/codegen/box/binaryOp/eqNullableDoublesToIntWithTP.jvm_abi.txt b/compiler/testData/codegen/box/binaryOp/eqNullableDoublesToIntWithTP.jvm_abi.txt new file mode 100644 index 00000000000..bbd12b207e8 --- /dev/null +++ b/compiler/testData/codegen/box/binaryOp/eqNullableDoublesToIntWithTP.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS EqNullableDoublesToIntWithTPKt.class + PACKAGE METADATA + FUNCTION eq_doubleN_anyN(Ljava/lang/Double;Ljava/lang/Object;)Z + Property: class.metadata.function.typeParameters + K1 + + K2 + + FUNCTION eq_double_anyN(DLjava/lang/Object;)Z + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/binaryOp/eqNullableDoublesToIntWithTP.kt b/compiler/testData/codegen/box/binaryOp/eqNullableDoublesToIntWithTP.kt index d82ac67eb9c..ceef1645a1b 100644 --- a/compiler/testData/codegen/box/binaryOp/eqNullableDoublesToIntWithTP.kt +++ b/compiler/testData/codegen/box/binaryOp/eqNullableDoublesToIntWithTP.kt @@ -4,6 +4,8 @@ // IGNORE_BACKEND: JS_IR // IGNORE_BACKEND: JS_IR_ES6 +// JVM_ABI_K1_K2_DIFF: KT-63855 + fun eq_double_any(a: A, b: B) = a == b fun eq_double_anyN(a: A, b: B) = a == b diff --git a/compiler/testData/codegen/box/binaryOp/eqNullableDoublesWithTP.jvm_abi.txt b/compiler/testData/codegen/box/binaryOp/eqNullableDoublesWithTP.jvm_abi.txt new file mode 100644 index 00000000000..4044cbf6977 --- /dev/null +++ b/compiler/testData/codegen/box/binaryOp/eqNullableDoublesWithTP.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS EqNullableDoublesWithTPKt.class + PACKAGE METADATA + FUNCTION eq_doubleN_anyN(Ljava/lang/Double;Ljava/lang/Object;)Z + Property: class.metadata.function.typeParameters + K1 + + K2 + + FUNCTION eq_double_anyN(DLjava/lang/Object;)Z + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/binaryOp/eqNullableDoublesWithTP.kt b/compiler/testData/codegen/box/binaryOp/eqNullableDoublesWithTP.kt index e6de75ac350..ccd339a5fc8 100644 --- a/compiler/testData/codegen/box/binaryOp/eqNullableDoublesWithTP.kt +++ b/compiler/testData/codegen/box/binaryOp/eqNullableDoublesWithTP.kt @@ -1,5 +1,7 @@ // !LANGUAGE: +ProperIeee754Comparisons +// JVM_ABI_K1_K2_DIFF: KT-63855 + fun eq_double_doubleN(a: A, b: B) = a == b fun eq_double_any(a: A, b: B) = a == b diff --git a/compiler/testData/codegen/box/bridges/delegationComplexWithList.jvm_abi.txt b/compiler/testData/codegen/box/bridges/delegationComplexWithList.jvm_abi.txt new file mode 100644 index 00000000000..7d95d74f876 --- /dev/null +++ b/compiler/testData/codegen/box/bridges/delegationComplexWithList.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS ContentBoxDelegate.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size diff --git a/compiler/testData/codegen/box/bridges/delegationComplexWithList.kt b/compiler/testData/codegen/box/bridges/delegationComplexWithList.kt index c27f1e3ed43..f005498eb37 100644 --- a/compiler/testData/codegen/box/bridges/delegationComplexWithList.kt +++ b/compiler/testData/codegen/box/bridges/delegationComplexWithList.kt @@ -1,5 +1,7 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63828 + open class Content() { override fun toString() = "OK" } diff --git a/compiler/testData/codegen/box/bridges/delegationProperty.jvm_abi.txt b/compiler/testData/codegen/box/bridges/delegationProperty.jvm_abi.txt new file mode 100644 index 00000000000..50db2941eff --- /dev/null +++ b/compiler/testData/codegen/box/bridges/delegationProperty.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS B.class + CLASS METADATA + K1 + getResult()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + result diff --git a/compiler/testData/codegen/box/bridges/delegationProperty.kt b/compiler/testData/codegen/box/bridges/delegationProperty.kt index 8192c4f4532..aee7360b28a 100644 --- a/compiler/testData/codegen/box/bridges/delegationProperty.kt +++ b/compiler/testData/codegen/box/bridges/delegationProperty.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 interface A { var result: T } diff --git a/compiler/testData/codegen/box/bridges/propertyAccessorsWithoutBody.jvm_abi.txt b/compiler/testData/codegen/box/bridges/propertyAccessorsWithoutBody.jvm_abi.txt new file mode 100644 index 00000000000..d8b92f3528b --- /dev/null +++ b/compiler/testData/codegen/box/bridges/propertyAccessorsWithoutBody.jvm_abi.txt @@ -0,0 +1,22 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getX()Ljava/lang/Object; + Property: class.metadata.property.getterModifiers + K1 + public open /* non-default */ + K2 + public open + CLASS B.class + CLASS METADATA + PROPERTY getX()Ljava/lang/String; + Property: class.metadata.property.setterModifiers + K1 + public open /* non-default */ + K2 + public open + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + --- diff --git a/compiler/testData/codegen/box/bridges/propertyAccessorsWithoutBody.kt b/compiler/testData/codegen/box/bridges/propertyAccessorsWithoutBody.kt index 82a9b0b930c..88ce56eaf88 100644 --- a/compiler/testData/codegen/box/bridges/propertyAccessorsWithoutBody.kt +++ b/compiler/testData/codegen/box/bridges/propertyAccessorsWithoutBody.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63850, KT-63854 + open class A { open var x: T = "Fail" as T get diff --git a/compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesYieldCase.jvm_abi.txt b/compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesYieldCase.jvm_abi.txt new file mode 100644 index 00000000000..8817f3a0681 --- /dev/null +++ b/compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesYieldCase.jvm_abi.txt @@ -0,0 +1,13 @@ +MODULE main + CLASS MutableExtensionPropertiesYieldCaseKt$testYield$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function1;Lkotlin/Unit;>; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function1;Lkotlin/Unit;>; + METHOD invoke(LBuildee;)V + Property: method.signature + K1 + (LBuildee;)V + K2 + (LBuildee;)V diff --git a/compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesYieldCase.kt b/compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesYieldCase.kt index 6336806b75b..f7a296afa26 100644 --- a/compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesYieldCase.kt +++ b/compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesYieldCase.kt @@ -1,6 +1,8 @@ // ISSUE: KT-61909 // REASON: unexpected yellow code in K1 (see corresponding diagnostic test) +// JVM_ABI_K1_K2_DIFF: KT-61909 + // IGNORE_LIGHT_ANALYSIS // REASON: unexpected red code (false-positive NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER in testYield) diff --git a/compiler/testData/codegen/box/builtinStubMethods/Collection.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/Collection.jvm_abi.txt new file mode 100644 index 00000000000..1ea15c47836 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/Collection.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS CollectionKt$box$6.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] diff --git a/compiler/testData/codegen/box/builtinStubMethods/Collection.kt b/compiler/testData/codegen/box/builtinStubMethods/Collection.kt index 906d1129d26..ecac3f62e90 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/Collection.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/Collection.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62550 class MyCollection: Collection { override val size: Int get() = 0 diff --git a/compiler/testData/codegen/box/builtinStubMethods/List.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/List.jvm_abi.txt new file mode 100644 index 00000000000..1b523edcf6a --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/List.jvm_abi.txt @@ -0,0 +1,33 @@ +MODULE main + CLASS ListKt$box$6.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] + CLASS ListKt$box$8.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] diff --git a/compiler/testData/codegen/box/builtinStubMethods/List.kt b/compiler/testData/codegen/box/builtinStubMethods/List.kt index 4a64bf05265..a9a530899c8 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/List.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/List.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62550 class MyList: List { override val size: Int get() = 0 diff --git a/compiler/testData/codegen/box/builtinStubMethods/ListIterator.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/ListIterator.jvm_abi.txt new file mode 100644 index 00000000000..2409a3f30e0 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/ListIterator.jvm_abi.txt @@ -0,0 +1,33 @@ +MODULE main + CLASS ListIteratorKt$box$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] + CLASS ListIteratorKt$box$2.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] diff --git a/compiler/testData/codegen/box/builtinStubMethods/ListIterator.kt b/compiler/testData/codegen/box/builtinStubMethods/ListIterator.kt index c3bd9a90ea8..532db84e8df 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/ListIterator.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/ListIterator.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62550 class MyListIterator : ListIterator { override fun next(): T = null!! diff --git a/compiler/testData/codegen/box/builtinStubMethods/Map.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/Map.jvm_abi.txt new file mode 100644 index 00000000000..09e2362803f --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/Map.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS MyMap.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/builtinStubMethods/Map.kt b/compiler/testData/codegen/box/builtinStubMethods/Map.kt index c0324984796..6b4d6431e26 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/Map.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/Map.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-57268 class MyMap: Map { override val size: Int get() = 0 diff --git a/compiler/testData/codegen/box/builtinStubMethods/MapWithAllImplementations.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/MapWithAllImplementations.jvm_abi.txt new file mode 100644 index 00000000000..09e2362803f --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/MapWithAllImplementations.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS MyMap.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/builtinStubMethods/MapWithAllImplementations.kt b/compiler/testData/codegen/box/builtinStubMethods/MapWithAllImplementations.kt index 879e1f929e9..807380e9f28 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/MapWithAllImplementations.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/MapWithAllImplementations.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-57268 class MyMap: Map { override val size: Int get() = 0 diff --git a/compiler/testData/codegen/box/builtinStubMethods/SubstitutedList.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/SubstitutedList.jvm_abi.txt new file mode 100644 index 00000000000..cdee5734588 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/SubstitutedList.jvm_abi.txt @@ -0,0 +1,33 @@ +MODULE main + CLASS SubstitutedListKt$box$6.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] + CLASS SubstitutedListKt$box$8.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] diff --git a/compiler/testData/codegen/box/builtinStubMethods/SubstitutedList.kt b/compiler/testData/codegen/box/builtinStubMethods/SubstitutedList.kt index 1ff2647b030..bd72fb12b65 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/SubstitutedList.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/SubstitutedList.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62550 class MyList: List { override val size: Int get() = 0 diff --git a/compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.jvm_abi.txt new file mode 100644 index 00000000000..e1e9b7ecd27 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.jvm_abi.txt @@ -0,0 +1,85 @@ +MODULE main + CLASS A.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS B.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DelegationToArrayListKt$box$7.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] + CLASS DelegationToArrayListKt$box$8.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] + CLASS DelegationToArrayListKt$box$17.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] + CLASS DelegationToArrayListKt$box$18.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] diff --git a/compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt b/compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt index b9436fab469..1104eb020a1 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62550, KT-63828 import java.util.ArrayList diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractMap.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractMap.jvm_abi.txt new file mode 100644 index 00000000000..b99bb42c571 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractMap.jvm_abi.txt @@ -0,0 +1,18 @@ +MODULE main + CLASS A.class + K1 + --- + K2 + getOrDefault(Ljava/lang/Integer;Ljava/lang/String;)Ljava/lang/String; [public, bridge] + K1 + --- + K2 + getOrDefault(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String; [public, final, bridge] + K1 + --- + K2 + remove(Ljava/lang/Integer;Ljava/lang/String;)Z [public, bridge] + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public, final, bridge] diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractMap.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractMap.kt index c8bb76a50ba..b9e71907c2e 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractMap.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractMap.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-57268 import java.util.AbstractMap import java.util.Collections diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.jvm_abi.txt new file mode 100644 index 00000000000..376e41789e3 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.jvm_abi.txt @@ -0,0 +1,18 @@ +MODULE main + CLASS A.class + K1 + --- + K2 + getOrDefault(Ljava/lang/Object;D)Ljava/lang/Double; [public, final, bridge] + K1 + --- + K2 + getOrDefault(Ljava/lang/String;D)Ljava/lang/Double; [public, bridge] + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public, final, bridge] + K1 + --- + K2 + remove(Ljava/lang/String;Ljava/lang/Double;)Z [public, bridge] diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt index c208adb7830..981491d90a0 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt @@ -2,6 +2,8 @@ // WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // DONT_TARGET_EXACT_BACKEND: NATIVE +// JVM_ABI_K1_K2_DIFF: KT-57268 + class A : HashMap() fun box(): String { diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToFakeRemoveAt.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToFakeRemoveAt.jvm_abi.txt new file mode 100644 index 00000000000..6f606feb2e3 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToFakeRemoveAt.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test.class + CLASS METADATA + FUNCTION removeAt(I)Ljava/lang/Integer; + Property: class.metadata.function.modifiers + K1 + public open + K2 + public open operator diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToFakeRemoveAt.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToFakeRemoveAt.kt index 3f6b1853d48..c18666ed283 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToFakeRemoveAt.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToFakeRemoveAt.kt @@ -3,6 +3,8 @@ // SKIP_JDK6 // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63857 + // FILE: superCallToFakeRemoveAt.kt class Test : IntArrayList() { override fun removeAt(index: Int): Int { diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAt.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAt.jvm_abi.txt new file mode 100644 index 00000000000..6f606feb2e3 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAt.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test.class + CLASS METADATA + FUNCTION removeAt(I)Ljava/lang/Integer; + Property: class.metadata.function.modifiers + K1 + public open + K2 + public open operator diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAt.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAt.kt index 17bbd9411fb..c1dffac560f 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAt.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAt.kt @@ -3,6 +3,8 @@ // SKIP_JDK6 // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63857 + // FILE: superCallToRemoveAt.kt class Test : IntArrayList() { override fun removeAt(index: Int): Int { diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAtInJavaDefault.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAtInJavaDefault.jvm_abi.txt new file mode 100644 index 00000000000..6f606feb2e3 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAtInJavaDefault.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test.class + CLASS METADATA + FUNCTION removeAt(I)Ljava/lang/Integer; + Property: class.metadata.function.modifiers + K1 + public open + K2 + public open operator diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAtInJavaDefault.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAtInJavaDefault.kt index d4330d6d943..099b515d516 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAtInJavaDefault.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAtInJavaDefault.kt @@ -3,6 +3,8 @@ // SKIP_JDK6 // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63857 + // FILE: superCallToRemoveAtInJavaDefault.kt class Test : IntArrayList() { override fun removeAt(index: Int): Int { diff --git a/compiler/testData/codegen/box/builtinStubMethods/immutableRemove.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/immutableRemove.jvm_abi.txt new file mode 100644 index 00000000000..6581c1bbfb6 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/immutableRemove.jvm_abi.txt @@ -0,0 +1,21 @@ +MODULE main + CLASS ImmutableCollection.class + CLASS METADATA + FUNCTION add(Ljava/lang/Object;)LImmutableCollection; + Property: class.metadata.function.valueParameters + K1 + (element: T#0) + K2 + (element: @kotlin/UnsafeVariance T#0) + FUNCTION addAll(Ljava/util/Collection;)LImmutableCollection; + Property: class.metadata.function.valueParameters + K1 + (elements: kotlin/collections/Collection) + K2 + (elements: kotlin/collections/Collection<@kotlin/UnsafeVariance T#0>) + FUNCTION remove(Ljava/lang/Object;)LImmutableCollection; + Property: class.metadata.function.valueParameters + K1 + (element: T#0) + K2 + (element: @kotlin/UnsafeVariance T#0) diff --git a/compiler/testData/codegen/box/builtinStubMethods/immutableRemove.kt b/compiler/testData/codegen/box/builtinStubMethods/immutableRemove.kt index 75f39d8d43c..2fa6ef19e14 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/immutableRemove.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/immutableRemove.kt @@ -3,6 +3,8 @@ // FULL_JDK // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63858 + interface ImmutableCollection : Collection { fun add(element: @UnsafeVariance E): ImmutableCollection fun addAll(elements: Collection<@UnsafeVariance E>): ImmutableCollection diff --git a/compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.jvm_abi.txt new file mode 100644 index 00000000000..f5b4a6e9e66 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS ManyTypeParametersWithUpperBoundsKt$box$6.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()V [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] diff --git a/compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt b/compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt index 9c86e1a714c..e979fb8e169 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62550 class A : Set { override val size: Int get() = 0 diff --git a/compiler/testData/codegen/box/builtinStubMethods/mapRemove/noDefaultImpls.jvm_abi.txt b/compiler/testData/codegen/box/builtinStubMethods/mapRemove/noDefaultImpls.jvm_abi.txt new file mode 100644 index 00000000000..b9804ebe5f2 --- /dev/null +++ b/compiler/testData/codegen/box/builtinStubMethods/mapRemove/noDefaultImpls.jvm_abi.txt @@ -0,0 +1,35 @@ +MODULE main + CLASS B.class + K1 + getOrDefault(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String; [public, final, bridge] + K2 + --- + K1 + getOrDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; [public, bridge] + K2 + --- + K1 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public, final, bridge] + K2 + --- + K1 + remove(Ljava/lang/String;Ljava/lang/String;)Z [public, bridge] + K2 + --- + CLASS D.class + K1 + getOrDefault(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String; [public, final, bridge] + K2 + --- + K1 + getOrDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; [public, bridge] + K2 + --- + K1 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public, final, bridge] + K2 + --- + K1 + remove(Ljava/lang/String;Ljava/lang/String;)Z [public, bridge] + K2 + --- diff --git a/compiler/testData/codegen/box/builtinStubMethods/mapRemove/noDefaultImpls.kt b/compiler/testData/codegen/box/builtinStubMethods/mapRemove/noDefaultImpls.kt index b7e3a4441b6..ec8593c34ad 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/mapRemove/noDefaultImpls.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/mapRemove/noDefaultImpls.kt @@ -4,6 +4,7 @@ // JVM_TARGET: 1.8 // WITH_STDLIB // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-57301 // There should be no DefaultImpls method for MutableMap.remove(K;V) interface A : MutableMap diff --git a/compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.jvm_abi.txt b/compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.jvm_abi.txt new file mode 100644 index 00000000000..0de9ff75729 --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS NullableReceiverInEqualsKt.class + PACKAGE METADATA + PROPERTY getA_foo()Lkotlin/reflect/KFunction; + Property: class.metadata.property.returnType + K1 + kotlin/reflect/KFunction1 + K2 + @kotlin/ExtensionFunctionType kotlin/reflect/KFunction1 diff --git a/compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.kt b/compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.kt index 461383a6eab..2f6c1081ea3 100644 --- a/compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.kt +++ b/compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.kt @@ -5,6 +5,8 @@ // TODO: investigate should it be ran for JS or not // IGNORE_BACKEND: JS +// JVM_ABI_K1_K2_DIFF: KT-63859 + // See https://youtrack.jetbrains.com/issue/KT-14938 // WITH_REFLECT diff --git a/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorIsKFunction.jvm_abi.txt b/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorIsKFunction.jvm_abi.txt new file mode 100644 index 00000000000..3cda1b65790 --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorIsKFunction.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS FunInterfaceConstructorIsKFunctionKt.class + PACKAGE METADATA + PROPERTY getKr()Lkotlin/reflect/KFunction; + Property: class.metadata.property.returnType + K1 + kotlin/reflect/KFunction1<@kotlin/ParameterName(name = "function") kotlin/Function0, KRunnable> + K2 + kotlin/reflect/KFunction1, KRunnable> diff --git a/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorIsKFunction.kt b/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorIsKFunction.kt index d8f9c32a118..a7f19cc9cea 100644 --- a/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorIsKFunction.kt +++ b/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorIsKFunction.kt @@ -6,6 +6,8 @@ // IGNORE_BACKEND: JS // ^ Failed: kr is class Function1 +// JVM_ABI_K1_K2_DIFF: KT-63861 + // WITH_REFLECT import kotlin.reflect.KFunction diff --git a/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorOfImplicitKFunctionType.jvm_abi.txt b/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorOfImplicitKFunctionType.jvm_abi.txt new file mode 100644 index 00000000000..ff4baec8f9e --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorOfImplicitKFunctionType.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS FunInterfaceConstructorOfImplicitKFunctionTypeKt.class + PACKAGE METADATA + PROPERTY getKr()Lkotlin/reflect/KFunction; + Property: class.metadata.property.returnType + K1 + kotlin/reflect/KFunction1<@kotlin/ParameterName(name = "function") kotlin/Function0, KRunnable> + K2 + kotlin/reflect/KFunction1, KRunnable> diff --git a/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorOfImplicitKFunctionType.kt b/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorOfImplicitKFunctionType.kt index ee4b554f115..64bd469c2c2 100644 --- a/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorOfImplicitKFunctionType.kt +++ b/compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorOfImplicitKFunctionType.kt @@ -3,6 +3,8 @@ // IGNORE_BACKEND: JVM // ^ unsupported in old JVM BE +// JVM_ABI_K1_K2_DIFF: KT-63861 + fun interface KRunnable { fun run() } diff --git a/compiler/testData/codegen/box/callableReference/function/getArityViaFunctionImpl.jvm_abi.txt b/compiler/testData/codegen/box/callableReference/function/getArityViaFunctionImpl.jvm_abi.txt new file mode 100644 index 00000000000..88276eda96e --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/function/getArityViaFunctionImpl.jvm_abi.txt @@ -0,0 +1,29 @@ +MODULE main + CLASS GetArityViaFunctionImplKt$box$6.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function1; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function1; + K1 + invoke(Ljava/lang/String;)Ljava/lang/Object; [public, final] + K2 + --- + K1 + --- + K2 + invoke(Ljava/lang/String;)Ljava/lang/String; [public, final] + CLASS GetArityViaFunctionImplKt$box$9.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function1; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function1; + K1 + --- + K2 + invoke(I)Ljava/lang/Integer; [public, final] + K1 + invoke(I)Ljava/lang/Object; [public, final] + K2 + --- diff --git a/compiler/testData/codegen/box/callableReference/function/getArityViaFunctionImpl.kt b/compiler/testData/codegen/box/callableReference/function/getArityViaFunctionImpl.kt index d0b4aeeb33d..3ed26741365 100644 --- a/compiler/testData/codegen/box/callableReference/function/getArityViaFunctionImpl.kt +++ b/compiler/testData/codegen/box/callableReference/function/getArityViaFunctionImpl.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62770 // LAMBDAS: CLASS import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/callableReference/genericConstructorReference.jvm_abi.txt b/compiler/testData/codegen/box/callableReference/genericConstructorReference.jvm_abi.txt new file mode 100644 index 00000000000..55f4aba0542 --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/genericConstructorReference.jvm_abi.txt @@ -0,0 +1,13 @@ +MODULE main + CLASS Outer$Inner$p$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;>; + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;>; + METHOD invoke(Ljava/lang/Object;Ljava/lang/Object;)LOuter$Inner$p$PLocal; + Property: method.signature + K1 + (TPT;TPT;)LOuter$Inner$p$PLocal; + K2 + (TPT;TPT;)LOuter$Inner$p$PLocal; diff --git a/compiler/testData/codegen/box/callableReference/genericConstructorReference.kt b/compiler/testData/codegen/box/callableReference/genericConstructorReference.kt index aa560fde43c..c2ea649f6e2 100644 --- a/compiler/testData/codegen/box/callableReference/genericConstructorReference.kt +++ b/compiler/testData/codegen/box/callableReference/genericConstructorReference.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-62584 // KT-42025 diff --git a/compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.jvm_abi.txt b/compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.jvm_abi.txt new file mode 100644 index 00000000000..fec468a870a --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.jvm_abi.txt @@ -0,0 +1,13 @@ +MODULE main + CLASS GenericLocalClassConstructorReferenceKt$p$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;>; + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;>; + METHOD invoke(Ljava/lang/Object;Ljava/lang/Object;)LGenericLocalClassConstructorReferenceKt$p$PLocal; + Property: method.signature + K1 + (TPT;TPT;)LGenericLocalClassConstructorReferenceKt$p$PLocal; + K2 + (TPT;TPT;)LGenericLocalClassConstructorReferenceKt$p$PLocal; diff --git a/compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.kt b/compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.kt index 3da01ec7497..b082b974634 100644 --- a/compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.kt +++ b/compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-62584 // KT-42025 diff --git a/compiler/testData/codegen/box/callableReference/property/accessorForPropertyWithPrivateSetter.jvm_abi.txt b/compiler/testData/codegen/box/callableReference/property/accessorForPropertyWithPrivateSetter.jvm_abi.txt new file mode 100644 index 00000000000..ec9f653a6dd --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/property/accessorForPropertyWithPrivateSetter.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS a/A.class + CLASS METADATA + PROPERTY getValue()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/callableReference/property/accessorForPropertyWithPrivateSetter.kt b/compiler/testData/codegen/box/callableReference/property/accessorForPropertyWithPrivateSetter.kt index d23fabc075c..d0f2484b66d 100644 --- a/compiler/testData/codegen/box/callableReference/property/accessorForPropertyWithPrivateSetter.kt +++ b/compiler/testData/codegen/box/callableReference/property/accessorForPropertyWithPrivateSetter.kt @@ -1,7 +1,10 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // WITH_STDLIB // FILE: b.kt import a.A + class B { fun getValue() = sequenceOf(A()).map(A::value).first() } diff --git a/compiler/testData/codegen/box/callableReference/property/privateSetOuterClass.jvm_abi.txt b/compiler/testData/codegen/box/callableReference/property/privateSetOuterClass.jvm_abi.txt new file mode 100644 index 00000000000..62a4fe11564 --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/property/privateSetOuterClass.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getValue()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + CLASS C.class + CLASS METADATA + PROPERTY getValue()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/callableReference/property/privateSetOuterClass.kt b/compiler/testData/codegen/box/callableReference/property/privateSetOuterClass.kt index 632b3d49dc5..ad1923f963b 100644 --- a/compiler/testData/codegen/box/callableReference/property/privateSetOuterClass.kt +++ b/compiler/testData/codegen/box/callableReference/property/privateSetOuterClass.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 class A { var value: String = "fail1" private set diff --git a/compiler/testData/codegen/box/callableReference/property/privateSetterInsideClass.jvm_abi.txt b/compiler/testData/codegen/box/callableReference/property/privateSetterInsideClass.jvm_abi.txt new file mode 100644 index 00000000000..0725279698f --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/property/privateSetterInsideClass.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Bar.class + CLASS METADATA + PROPERTY getFoo()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/callableReference/property/privateSetterInsideClass.kt b/compiler/testData/codegen/box/callableReference/property/privateSetterInsideClass.kt index 8674d12a3a8..65aa691d77a 100644 --- a/compiler/testData/codegen/box/callableReference/property/privateSetterInsideClass.kt +++ b/compiler/testData/codegen/box/callableReference/property/privateSetterInsideClass.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + import kotlin.reflect.KMutableProperty class Bar(name: String) { diff --git a/compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.jvm_abi.txt b/compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.jvm_abi.txt new file mode 100644 index 00000000000..0725279698f --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Bar.class + CLASS METADATA + PROPERTY getFoo()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.kt b/compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.kt index 3c8b5f8de62..0cf9108bb36 100644 --- a/compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.kt +++ b/compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.kt @@ -1,4 +1,5 @@ // See KT-12337 Reference to property with invisible setter should not be a KMutableProperty +// JVM_ABI_K1_K2_DIFF: KT-63984 import kotlin.reflect.KProperty1 import kotlin.reflect.KMutableProperty diff --git a/compiler/testData/codegen/box/callableReference/referenceToGenericSyntheticProperty.jvm_abi.txt b/compiler/testData/codegen/box/callableReference/referenceToGenericSyntheticProperty.jvm_abi.txt new file mode 100644 index 00000000000..0539f133647 --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/referenceToGenericSyntheticProperty.jvm_abi.txt @@ -0,0 +1,23 @@ +MODULE main + Missing in K2 + TestKt$box$1.class + TestKt$box$2.class + CLASS TestKt.class + Annotation: class.invisibleAnnotations + K1 + --- + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + test.kt + Kotlin + *S Kotlin + *F + + 1 test.kt + TestKt + + 2 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,28:1 + 1#2:29 + *E + } ) diff --git a/compiler/testData/codegen/box/callableReference/referenceToGenericSyntheticProperty.kt b/compiler/testData/codegen/box/callableReference/referenceToGenericSyntheticProperty.kt index eb2bc2daaae..d6350786483 100644 --- a/compiler/testData/codegen/box/callableReference/referenceToGenericSyntheticProperty.kt +++ b/compiler/testData/codegen/box/callableReference/referenceToGenericSyntheticProperty.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // !LANGUAGE: +ReferencesToSyntheticJavaProperties +// JVM_ABI_K1_K2_DIFF: KT-62849 // FILE: J.java diff --git a/compiler/testData/codegen/box/casts/genericReturnCast.jvm_abi.txt b/compiler/testData/codegen/box/casts/genericReturnCast.jvm_abi.txt new file mode 100644 index 00000000000..4e935e38331 --- /dev/null +++ b/compiler/testData/codegen/box/casts/genericReturnCast.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS GenericReturnCastKt.class + PACKAGE METADATA + FUNCTION someFunc(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/casts/genericReturnCast.kt b/compiler/testData/codegen/box/casts/genericReturnCast.kt index eb2f777c4fd..a63bddd0303 100644 --- a/compiler/testData/codegen/box/casts/genericReturnCast.kt +++ b/compiler/testData/codegen/box/casts/genericReturnCast.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63855 fun someFunc(a: T, arg: T? = null): T = arg ?: a fun box(): String { diff --git a/compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.jvm_abi.txt b/compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.jvm_abi.txt new file mode 100644 index 00000000000..164ab4f7ae1 --- /dev/null +++ b/compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.jvm_abi.txt @@ -0,0 +1,147 @@ +MODULE main + CLASS MLItr.class + CLASS METADATA + FUNCTION add(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + FUNCTION set(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + CLASS C.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MC.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS L.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS ML.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS S.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MS.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS M.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] + CLASS MM.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.kt index 0416626690f..9f295d302f1 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-57268, KT-63955, KT-63828 class Itr : Iterator by ArrayList().iterator() class MItr : MutableIterator by ArrayList().iterator() diff --git a/compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.jvm_abi.txt b/compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.jvm_abi.txt new file mode 100644 index 00000000000..164ab4f7ae1 --- /dev/null +++ b/compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.jvm_abi.txt @@ -0,0 +1,147 @@ +MODULE main + CLASS MLItr.class + CLASS METADATA + FUNCTION add(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + FUNCTION set(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + CLASS C.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MC.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS L.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS ML.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS S.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MS.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS M.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] + CLASS MM.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.kt index 7a9e4153548..f2cd3a99657 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-57268, KT-63955, KT-63828 class Itr : Iterator by ArrayList().iterator() class MItr : MutableIterator by ArrayList().iterator() diff --git a/compiler/testData/codegen/box/casts/mutableCollections/mutabilityMarkerInterfaces.jvm_abi.txt b/compiler/testData/codegen/box/casts/mutableCollections/mutabilityMarkerInterfaces.jvm_abi.txt new file mode 100644 index 00000000000..b4e884f155c --- /dev/null +++ b/compiler/testData/codegen/box/casts/mutableCollections/mutabilityMarkerInterfaces.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS M.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/casts/mutableCollections/mutabilityMarkerInterfaces.kt b/compiler/testData/codegen/box/casts/mutableCollections/mutabilityMarkerInterfaces.kt index abb9ed9e1ee..0eb635acb76 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/mutabilityMarkerInterfaces.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/mutabilityMarkerInterfaces.kt @@ -1,5 +1,5 @@ // TARGET_BACKEND: JVM - +// JVM_ABI_K1_K2_DIFF: KT-57268 // WITH_STDLIB abstract class Itr : Iterator diff --git a/compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.jvm_abi.txt b/compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.jvm_abi.txt new file mode 100644 index 00000000000..164ab4f7ae1 --- /dev/null +++ b/compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.jvm_abi.txt @@ -0,0 +1,147 @@ +MODULE main + CLASS MLItr.class + CLASS METADATA + FUNCTION add(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + FUNCTION set(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + CLASS C.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MC.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS L.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS ML.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS S.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MS.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS M.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] + CLASS MM.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt index 5ba0200ff79..54bacf1fb3c 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-57268, KT-63955, KT-63828 class Itr : Iterator by ArrayList().iterator() class MItr : MutableIterator by ArrayList().iterator() diff --git a/compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.jvm_abi.txt b/compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.jvm_abi.txt new file mode 100644 index 00000000000..164ab4f7ae1 --- /dev/null +++ b/compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.jvm_abi.txt @@ -0,0 +1,147 @@ +MODULE main + CLASS MLItr.class + CLASS METADATA + FUNCTION add(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + FUNCTION set(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + CLASS C.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MC.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS L.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS ML.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS S.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MS.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS M.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] + CLASS MM.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt index cddbd75515c..73492ea6ca4 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-57268, KT-63955, KT-63828 class Itr : Iterator by ArrayList().iterator() class MItr : MutableIterator by ArrayList().iterator() diff --git a/compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.jvm_abi.txt b/compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.jvm_abi.txt new file mode 100644 index 00000000000..164ab4f7ae1 --- /dev/null +++ b/compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.jvm_abi.txt @@ -0,0 +1,147 @@ +MODULE main + CLASS MLItr.class + CLASS METADATA + FUNCTION add(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + FUNCTION set(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + CLASS C.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MC.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS L.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS ML.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS S.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MS.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS M.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] + CLASS MM.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt index 8db29e29dbb..8a8db31fabb 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt @@ -1,5 +1,5 @@ // WITH_STDLIB - +// JVM_ABI_K1_K2_DIFF: KT-57268, KT-63955, KT-63828 class Itr : Iterator by ArrayList().iterator() class MItr : MutableIterator by ArrayList().iterator() diff --git a/compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.jvm_abi.txt b/compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.jvm_abi.txt new file mode 100644 index 00000000000..164ab4f7ae1 --- /dev/null +++ b/compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.jvm_abi.txt @@ -0,0 +1,147 @@ +MODULE main + CLASS MLItr.class + CLASS METADATA + FUNCTION add(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + FUNCTION set(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (element: kotlin/String) + K2 + (element: @kotlin/jvm/internal/EnhancedNullability kotlin/String) + CLASS C.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MC.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS L.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS ML.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS S.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS MS.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS M.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] + CLASS MM.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.kt index b5dc92b8d2b..35d92480a8d 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-57268 class Itr : Iterator by ArrayList().iterator() class MItr : MutableIterator by ArrayList().iterator() diff --git a/compiler/testData/codegen/box/classes/inheritance.jvm_abi.txt b/compiler/testData/codegen/box/classes/inheritance.jvm_abi.txt new file mode 100644 index 00000000000..65a0230a906 --- /dev/null +++ b/compiler/testData/codegen/box/classes/inheritance.jvm_abi.txt @@ -0,0 +1,41 @@ +MODULE main + CLASS P1.class + CLASS METADATA + K1 + getY()I + K2 + --- + K1 + --- + K2 + y + CLASS P2.class + CLASS METADATA + K1 + getY()I + K2 + --- + K1 + --- + K2 + y + CLASS P3.class + CLASS METADATA + K1 + getY()I + K2 + --- + K1 + --- + K2 + y + CLASS P4.class + CLASS METADATA + K1 + getY()I + K2 + --- + K1 + --- + K2 + y diff --git a/compiler/testData/codegen/box/classes/inheritance.kt b/compiler/testData/codegen/box/classes/inheritance.kt index 78d6d58fa3b..b4ec2bd8ab2 100644 --- a/compiler/testData/codegen/box/classes/inheritance.kt +++ b/compiler/testData/codegen/box/classes/inheritance.kt @@ -1,5 +1,7 @@ // Changed when traits were introduced. May not make sense any more +// JVM_ABI_K1_K2_DIFF: KT-63828 + open class X(val x : Int) {} interface Y { abstract val y : Int diff --git a/compiler/testData/codegen/box/classes/kt2391.jvm_abi.txt b/compiler/testData/codegen/box/classes/kt2391.jvm_abi.txt new file mode 100644 index 00000000000..772847c51eb --- /dev/null +++ b/compiler/testData/codegen/box/classes/kt2391.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS MyHttpServer.class + CLASS METADATA + PROPERTY getLogger()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/classes/kt2391.kt b/compiler/testData/codegen/box/classes/kt2391.kt index f3826f81a2f..2b33dc8a859 100644 --- a/compiler/testData/codegen/box/classes/kt2391.kt +++ b/compiler/testData/codegen/box/classes/kt2391.kt @@ -1,4 +1,6 @@ // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63864 + public interface LoggerAware { public val logger: StringBuilder } diff --git a/compiler/testData/codegen/box/classes/kt3001.jvm_abi.txt b/compiler/testData/codegen/box/classes/kt3001.jvm_abi.txt new file mode 100644 index 00000000000..ddbcdf0551b --- /dev/null +++ b/compiler/testData/codegen/box/classes/kt3001.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS Derived.class + CLASS METADATA + K1 + getResult()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + result diff --git a/compiler/testData/codegen/box/classes/kt3001.kt b/compiler/testData/codegen/box/classes/kt3001.kt index 0524528ca1e..3932d9ab91a 100644 --- a/compiler/testData/codegen/box/classes/kt3001.kt +++ b/compiler/testData/codegen/box/classes/kt3001.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 interface A { val result: String } diff --git a/compiler/testData/codegen/box/classes/kt9642.jvm_abi.txt b/compiler/testData/codegen/box/classes/kt9642.jvm_abi.txt new file mode 100644 index 00000000000..ebb715a4943 --- /dev/null +++ b/compiler/testData/codegen/box/classes/kt9642.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Outer$Companion.class + CLASS METADATA + PROPERTY getS()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/classes/kt9642.kt b/compiler/testData/codegen/box/classes/kt9642.kt index 414954aab60..8b51a934b4b 100644 --- a/compiler/testData/codegen/box/classes/kt9642.kt +++ b/compiler/testData/codegen/box/classes/kt9642.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + class Outer { class Nested { fun fn(): String { diff --git a/compiler/testData/codegen/box/classes/overloadBinaryOperator.jvm_abi.txt b/compiler/testData/codegen/box/classes/overloadBinaryOperator.jvm_abi.txt new file mode 100644 index 00000000000..9359e45c074 --- /dev/null +++ b/compiler/testData/codegen/box/classes/overloadBinaryOperator.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ArrayWrapper.class + CLASS METADATA + PROPERTY getContents()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/classes/overloadBinaryOperator.kt b/compiler/testData/codegen/box/classes/overloadBinaryOperator.kt index 91ec4e1c307..876e6956a52 100644 --- a/compiler/testData/codegen/box/classes/overloadBinaryOperator.kt +++ b/compiler/testData/codegen/box/classes/overloadBinaryOperator.kt @@ -1,4 +1,6 @@ // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63864 + class ArrayWrapper() { val contents = ArrayList() diff --git a/compiler/testData/codegen/box/classes/overloadPlusAssign.jvm_abi.txt b/compiler/testData/codegen/box/classes/overloadPlusAssign.jvm_abi.txt new file mode 100644 index 00000000000..9359e45c074 --- /dev/null +++ b/compiler/testData/codegen/box/classes/overloadPlusAssign.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ArrayWrapper.class + CLASS METADATA + PROPERTY getContents()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/classes/overloadPlusAssign.kt b/compiler/testData/codegen/box/classes/overloadPlusAssign.kt index 7ed86497c80..91f828ab3e9 100644 --- a/compiler/testData/codegen/box/classes/overloadPlusAssign.kt +++ b/compiler/testData/codegen/box/classes/overloadPlusAssign.kt @@ -1,4 +1,6 @@ // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63864 + class ArrayWrapper() { val contents = ArrayList() diff --git a/compiler/testData/codegen/box/classes/overloadPlusAssignReturn.jvm_abi.txt b/compiler/testData/codegen/box/classes/overloadPlusAssignReturn.jvm_abi.txt new file mode 100644 index 00000000000..9359e45c074 --- /dev/null +++ b/compiler/testData/codegen/box/classes/overloadPlusAssignReturn.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ArrayWrapper.class + CLASS METADATA + PROPERTY getContents()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/classes/overloadPlusAssignReturn.kt b/compiler/testData/codegen/box/classes/overloadPlusAssignReturn.kt index 6d0747891b8..e25dd6752a9 100644 --- a/compiler/testData/codegen/box/classes/overloadPlusAssignReturn.kt +++ b/compiler/testData/codegen/box/classes/overloadPlusAssignReturn.kt @@ -1,4 +1,5 @@ // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63864 class ArrayWrapper() { val contents = ArrayList() diff --git a/compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.jvm_abi.txt b/compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.jvm_abi.txt new file mode 100644 index 00000000000..9359e45c074 --- /dev/null +++ b/compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ArrayWrapper.class + CLASS METADATA + PROPERTY getContents()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.kt b/compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.kt index 6d0747891b8..d8464da650c 100644 --- a/compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.kt +++ b/compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.kt @@ -1,4 +1,6 @@ // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63864 + class ArrayWrapper() { val contents = ArrayList() diff --git a/compiler/testData/codegen/box/classes/overloadUnaryOperator.jvm_abi.txt b/compiler/testData/codegen/box/classes/overloadUnaryOperator.jvm_abi.txt new file mode 100644 index 00000000000..9359e45c074 --- /dev/null +++ b/compiler/testData/codegen/box/classes/overloadUnaryOperator.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ArrayWrapper.class + CLASS METADATA + PROPERTY getContents()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/classes/overloadUnaryOperator.kt b/compiler/testData/codegen/box/classes/overloadUnaryOperator.kt index 37320fc2bac..ebfee4dfe80 100644 --- a/compiler/testData/codegen/box/classes/overloadUnaryOperator.kt +++ b/compiler/testData/codegen/box/classes/overloadUnaryOperator.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 class ArrayWrapper() { val contents = ArrayList() diff --git a/compiler/testData/codegen/box/classes/typedDelegation.jvm_abi.txt b/compiler/testData/codegen/box/classes/typedDelegation.jvm_abi.txt new file mode 100644 index 00000000000..3851a3ca0b6 --- /dev/null +++ b/compiler/testData/codegen/box/classes/typedDelegation.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS X.class + CLASS METADATA + K1 + getZzzValue()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + zzzValue diff --git a/compiler/testData/codegen/box/classes/typedDelegation.kt b/compiler/testData/codegen/box/classes/typedDelegation.kt index e0b1241a6aa..6e91240736a 100644 --- a/compiler/testData/codegen/box/classes/typedDelegation.kt +++ b/compiler/testData/codegen/box/classes/typedDelegation.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 + interface A { var zzzValue : T fun zzz() : T diff --git a/compiler/testData/codegen/box/closures/subclosuresWithinInitializers.jvm_abi.txt b/compiler/testData/codegen/box/closures/subclosuresWithinInitializers.jvm_abi.txt new file mode 100644 index 00000000000..a5cd2be5457 --- /dev/null +++ b/compiler/testData/codegen/box/closures/subclosuresWithinInitializers.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Outer$foo$Local.class + CLASS METADATA + PROPERTY getObj()LOuter$foo$Local$obj$1; + Property: class.metadata.property.returnType + K1 + .Outer$foo$Local$obj$1 + K2 + .Outer$foo$Local. diff --git a/compiler/testData/codegen/box/closures/subclosuresWithinInitializers.kt b/compiler/testData/codegen/box/closures/subclosuresWithinInitializers.kt index 3f76b76193e..2e2eebcc3e6 100644 --- a/compiler/testData/codegen/box/closures/subclosuresWithinInitializers.kt +++ b/compiler/testData/codegen/box/closures/subclosuresWithinInitializers.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63868 + fun run(block: () -> R) = block() inline fun inlineRun(block: () -> R) = block() diff --git a/compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.jvm_abi.txt b/compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.jvm_abi.txt new file mode 100644 index 00000000000..e6e79bbfb77 --- /dev/null +++ b/compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.jvm_abi.txt @@ -0,0 +1,26 @@ +MODULE main + CLASS A.class + K1 + contains(I)Z [public, bridge] + K2 + --- + K1 + --- + K2 + contains(Ljava/lang/Integer;)Z [public, bridge] + K1 + indexOf(I)I [public, bridge] + K2 + --- + K1 + --- + K2 + indexOf(Ljava/lang/Integer;)I [public, bridge] + K1 + lastIndexOf(I)I [public, bridge] + K2 + --- + K1 + --- + K2 + lastIndexOf(Ljava/lang/Integer;)I [public, bridge] diff --git a/compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.kt b/compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.kt index 8062bd55722..4c13509a2c7 100644 --- a/compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.kt +++ b/compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-57300 abstract class A : AbstractMutableList() diff --git a/compiler/testData/codegen/box/collections/kt41123.jvm_abi.txt b/compiler/testData/codegen/box/collections/kt41123.jvm_abi.txt new file mode 100644 index 00000000000..8caa872c772 --- /dev/null +++ b/compiler/testData/codegen/box/collections/kt41123.jvm_abi.txt @@ -0,0 +1,18 @@ +MODULE main + CLASS A.class + K1 + --- + K2 + getOrDefault(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String; [public, final, bridge] + K1 + --- + K2 + getOrDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; [public, bridge] + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public, final, bridge] + K1 + --- + K2 + remove(Ljava/lang/String;Ljava/lang/String;)Z [public, bridge] diff --git a/compiler/testData/codegen/box/collections/kt41123.kt b/compiler/testData/codegen/box/collections/kt41123.kt index 817a4ad992f..cf1ebc3a8d0 100644 --- a/compiler/testData/codegen/box/collections/kt41123.kt +++ b/compiler/testData/codegen/box/collections/kt41123.kt @@ -2,6 +2,7 @@ // DONT_TARGET_EXACT_BACKEND: NATIVE // WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-57268 open class A : HashMap() diff --git a/compiler/testData/codegen/box/collections/readOnlyMap.jvm_abi.txt b/compiler/testData/codegen/box/collections/readOnlyMap.jvm_abi.txt new file mode 100644 index 00000000000..f7e3c803029 --- /dev/null +++ b/compiler/testData/codegen/box/collections/readOnlyMap.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS KMap.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/collections/readOnlyMap.kt b/compiler/testData/codegen/box/collections/readOnlyMap.kt index 89fd8d60c90..8165d4eb9ac 100644 --- a/compiler/testData/codegen/box/collections/readOnlyMap.kt +++ b/compiler/testData/codegen/box/collections/readOnlyMap.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-57268 // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/removeAtIntOverrideInJava.jvm_abi.txt b/compiler/testData/codegen/box/collections/removeAtIntOverrideInJava.jvm_abi.txt new file mode 100644 index 00000000000..1433de84dc7 --- /dev/null +++ b/compiler/testData/codegen/box/collections/removeAtIntOverrideInJava.jvm_abi.txt @@ -0,0 +1,41 @@ +MODULE main + CLASS B.class + CLASS METADATA + FUNCTION removeAt(I)Ljava/lang/Integer; + Property: class.metadata.function.modifiers + K1 + public open + K2 + public open operator + K1 + contains(I)Z [public, bridge] + K2 + --- + K1 + --- + K2 + contains(Ljava/lang/Integer;)Z [public, bridge] + K1 + indexOf(I)I [public, bridge] + K2 + --- + K1 + --- + K2 + indexOf(Ljava/lang/Integer;)I [public, bridge] + K1 + lastIndexOf(I)I [public, bridge] + K2 + --- + K1 + --- + K2 + lastIndexOf(Ljava/lang/Integer;)I [public, bridge] + CLASS D.class + CLASS METADATA + FUNCTION removeAt(I)Ljava/lang/Integer; + Property: class.metadata.function.modifiers + K1 + public open + K2 + public open operator diff --git a/compiler/testData/codegen/box/collections/removeAtIntOverrideInJava.kt b/compiler/testData/codegen/box/collections/removeAtIntOverrideInJava.kt index 923870e118e..24271dc3802 100644 --- a/compiler/testData/codegen/box/collections/removeAtIntOverrideInJava.kt +++ b/compiler/testData/codegen/box/collections/removeAtIntOverrideInJava.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // IGNORE_CODEGEN_WITH_IR_FAKE_OVERRIDE_GENERATION: KT-63489 +// JVM_ABI_K1_K2_DIFF: KT-57300, KT-63857 // FILE: A.java abstract public class A extends B { diff --git a/compiler/testData/codegen/box/collections/removeOverriddenInJava_Map.jvm_abi.txt b/compiler/testData/codegen/box/collections/removeOverriddenInJava_Map.jvm_abi.txt new file mode 100644 index 00000000000..d6a72d8e5b9 --- /dev/null +++ b/compiler/testData/codegen/box/collections/removeOverriddenInJava_Map.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS MapA.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/collections/removeOverriddenInJava_Map.kt b/compiler/testData/codegen/box/collections/removeOverriddenInJava_Map.kt index e651810114d..1ebab6b2c11 100644 --- a/compiler/testData/codegen/box/collections/removeOverriddenInJava_Map.kt +++ b/compiler/testData/codegen/box/collections/removeOverriddenInJava_Map.kt @@ -1,4 +1,6 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-57268 + // FILE: removeOverriddenInJava_Map.kt open class MapA : Map { diff --git a/compiler/testData/codegen/box/collections/specialBridgeForGet.jvm_abi.txt b/compiler/testData/codegen/box/collections/specialBridgeForGet.jvm_abi.txt new file mode 100644 index 00000000000..7b9c1d1e2ba --- /dev/null +++ b/compiler/testData/codegen/box/collections/specialBridgeForGet.jvm_abi.txt @@ -0,0 +1,35 @@ +MODULE main + CLASS AMap1.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/box/collections/specialBridgeForGet.kt b/compiler/testData/codegen/box/collections/specialBridgeForGet.kt index a46d7aa14fa..546de1f5e10 100644 --- a/compiler/testData/codegen/box/collections/specialBridgeForGet.kt +++ b/compiler/testData/codegen/box/collections/specialBridgeForGet.kt @@ -1,6 +1,7 @@ // TARGET_BACKEND: JVM // WITH_STDLIB // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63828 abstract class AMap1(private val m: Map) : Map by m diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.jvm_abi.txt new file mode 100644 index 00000000000..75be252a735 --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.jvm_abi.txt @@ -0,0 +1,30 @@ +MODULE lib + CLASS AKt.class + PACKAGE METADATA + TYPE ALIAS MyCMaybeFoo + Property: class.metadata.typeAlias.underlyingType + K1 + C<@Anno(value = "OK") MyMaybeFoo^> + K2 + C<@Anno(value = "OK") Foo? /* = @Anno(value = "OK") MyMaybeFoo^ */> + TYPE ALIAS MyCMyFoo + Property: class.metadata.typeAlias.underlyingType + K1 + C<@Anno(value = "OK") MyFoo^?> + K2 + C<@Anno(value = "OK") Foo? /* = @Anno(value = "OK") MyFoo^? */> +MODULE main + CLASS BKt.class + PACKAGE METADATA + FUNCTION testMyFoo(LC;)V + Property: class.metadata.function.valueParameters + K1 + (myc: C<@Anno(value = "OK") Foo? /* = MyFoo^? */> /* = MyCMyFoo^ */) + K2 + (myc: C<@Anno(value = "OK") Foo? /* = @Anno(value = "OK") MyFoo^? */> /* = MyCMyFoo^ */) + FUNCTION testMyMaybeFoo(LC;)V + Property: class.metadata.function.valueParameters + K1 + (mycmyb: C<@Anno(value = "OK") Foo? /* = MyMaybeFoo^? */> /* = MyCMaybeFoo^ */) + K2 + (mycmyb: C<@Anno(value = "OK") Foo? /* = @Anno(value = "OK") MyMaybeFoo^ */> /* = MyCMaybeFoo^ */) diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt index e32e1f0736f..c055bc7d6fd 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_REFLECT + +// JVM_ABI_K1_K2_DIFF: KT-63872 + // MODULE: lib // FILE: A.kt @Target(AnnotationTarget.TYPE) diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.jvm_abi.txt new file mode 100644 index 00000000000..b402008fde0 --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS A.class + CLASS METADATA + PROPERTY x + Property: class.metadata.property.returnType + K1 + .A$x$1 + K2 + .A. diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt index 08f1d2c7760..a1dce784cf3 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt @@ -1,7 +1,8 @@ // TARGET_BACKEND: JVM // MODULE: lib -// FILE: A.kt +// JVM_ABI_K1_K2_DIFF: KT-63868 +// FILE: A.kt abstract class A { private val x = object { fun foo() = "OK" diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/javaTypeParameterBy.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/javaTypeParameterBy.jvm_abi.txt new file mode 100644 index 00000000000..0e34ad9b0bd --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/javaTypeParameterBy.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS A.class + CLASS METADATA + FUNCTION foo()Ljava/lang/Comparable; + Property: class.metadata.function.typeParameters + K1 + !> + K2 + !> diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/javaTypeParameterBy.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/javaTypeParameterBy.kt index eba02923b30..29cdd4c1c99 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/javaTypeParameterBy.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/javaTypeParameterBy.kt @@ -2,6 +2,8 @@ // WITH_STDLIB // MODULE: lib +// JVM_ABI_K1_K2_DIFF: KT-63870 + // FILE: JavaInterface.java public interface JavaInterface { > K foo(); diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.jvm_abi.txt new file mode 100644 index 00000000000..15d752bcea8 --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE lib + CLASS Base.class + CLASS METADATA + PROPERTY getX()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + CLASS Derived.class + CLASS METADATA + PROPERTY getX()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt index 7203de8a0de..c3c038c2bf7 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // MODULE: lib // FILE: A.kt abstract class Base { diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.jvm_abi.txt new file mode 100644 index 00000000000..f334d0aaeae --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS TestClass.class + CLASS METADATA + K1 + getTest()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + test diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt index ba28ee3c59d..c16ad33de65 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt @@ -3,6 +3,8 @@ // JVM_TARGET: 1.8 // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63828, KT-63871 + // MODULE: lib // FILE: 1.kt interface Test { diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.jvm_abi.txt new file mode 100644 index 00000000000..39ada0cc7ef --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE lib + CLASS lib/Anno.class + CLASS METADATA + PROPERTY uglyJvmName()Ljava/lang/String; + Property: class.metadata.property.getterModifiers + K1 + public final + K2 + public final /* non-default */ + CLASS lib/AKt.class + PACKAGE METADATA + PROPERTY vget()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt index cb482e0d566..e93a1d83bf9 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt @@ -2,6 +2,8 @@ // WITH_STDLIB // WITH_REFLECT +// JVM_ABI_K1_K2_DIFF: KT-63843, KT-63984 + // MODULE: lib // FILE: A.kt diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.jvm_abi.txt new file mode 100644 index 00000000000..2da5f7b201a --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS test/AKt.class + PACKAGE METADATA + PROPERTY getProperty()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt index 2b90f2170a6..846c957487f 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // MODULE: lib // FILE: A.kt package test diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.jvm_abi.txt new file mode 100644 index 00000000000..3d3f9969b22 --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS lib/LibKt.class + PACKAGE METADATA + TYPE ALIAS DomainSingle + Property: class.metadata.typeAlias.underlyingType + K1 + lib/Single> + K2 + lib/Single /* = lib/DomainEither^ */> diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt index 6e10ac5153b..4f0896a6bdf 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63872 + // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.jvm_abi.txt new file mode 100644 index 00000000000..e8f4689a68b --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS lib/LibKt.class + PACKAGE METADATA + TYPE ALIAS Effect + Property: class.metadata.typeAlias.underlyingType + K1 + kotlin/Function1, kotlin/Unit> + K2 + kotlin/Function1 /* = lib/Dispatch^ */, kotlin/Unit> diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt index b4ba537726a..32a7868da77 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63872 + // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.jvm_abi.txt new file mode 100644 index 00000000000..ccb8fbd5490 --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS lib/LibKt.class + PACKAGE METADATA + TYPE ALIAS B + Property: class.metadata.typeAlias.underlyingType + K1 + lib/Inv> + K2 + lib/Inv /* = lib/A^ */> diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt index 52023fb3b80..fd9d4c83a4d 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63872 + // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.jvm_abi.txt new file mode 100644 index 00000000000..2e5c12c0324 --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS B.class + CLASS METADATA + K1 + getName()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + name diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt index 81caf1dc6bb..bf664579135 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt @@ -1,4 +1,7 @@ // TARGET_BACKEND: JVM + +// JVM_ABI_K1_K2_DIFF: KT-63828 + // MODULE: lib // FILE: A.kt package a diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.jvm_abi.txt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.jvm_abi.txt new file mode 100644 index 00000000000..29c619cf88b --- /dev/null +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS lib/AKt.class + PACKAGE METADATA + PROPERTY renamedGetFoo()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt index 1da13150cb6..88ac42ae911 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt @@ -1,6 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 + // MODULE: lib // FILE: A.kt package lib diff --git a/compiler/testData/codegen/box/constructorCall/breakInConstructorArguments.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/breakInConstructorArguments.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/breakInConstructorArguments.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/breakInConstructorArguments.kt b/compiler/testData/codegen/box/constructorCall/breakInConstructorArguments.kt index cd30daa9847..6c13dea527d 100644 --- a/compiler/testData/codegen/box/constructorCall/breakInConstructorArguments.kt +++ b/compiler/testData/codegen/box/constructorCall/breakInConstructorArguments.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { var count = 0 diff --git a/compiler/testData/codegen/box/constructorCall/continueInConstructorArguments.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/continueInConstructorArguments.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/continueInConstructorArguments.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/continueInConstructorArguments.kt b/compiler/testData/codegen/box/constructorCall/continueInConstructorArguments.kt index 17ca2f578ab..23fa1fb75a7 100644 --- a/compiler/testData/codegen/box/constructorCall/continueInConstructorArguments.kt +++ b/compiler/testData/codegen/box/constructorCall/continueInConstructorArguments.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { var count = 0 diff --git a/compiler/testData/codegen/box/constructorCall/earlyReturnInConstructorArguments.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/earlyReturnInConstructorArguments.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/earlyReturnInConstructorArguments.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/earlyReturnInConstructorArguments.kt b/compiler/testData/codegen/box/constructorCall/earlyReturnInConstructorArguments.kt index 0d0b2206ddc..9653b3c6952 100644 --- a/compiler/testData/codegen/box/constructorCall/earlyReturnInConstructorArguments.kt +++ b/compiler/testData/codegen/box/constructorCall/earlyReturnInConstructorArguments.kt @@ -1,5 +1,7 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 inline fun ok(): String { return foo(1, 1.0, 1.0f, 1L, "O", C(if (bar()) return "zap" else "K")) } diff --git a/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCall.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCall.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCall.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCall.kt b/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCall.kt index 8f9440c0d62..ff489f7c048 100644 --- a/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCall.kt +++ b/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCall.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { Foo( diff --git a/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallEvaluationOrder.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallEvaluationOrder.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallEvaluationOrder.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallEvaluationOrder.kt b/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallEvaluationOrder.kt index 8f9440c0d62..ff489f7c048 100644 --- a/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallEvaluationOrder.kt +++ b/compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallEvaluationOrder.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { Foo( diff --git a/compiler/testData/codegen/box/constructorCall/inlineFunInInnerClassConstructorCall.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/inlineFunInInnerClassConstructorCall.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/inlineFunInInnerClassConstructorCall.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/inlineFunInInnerClassConstructorCall.kt b/compiler/testData/codegen/box/constructorCall/inlineFunInInnerClassConstructorCall.kt index 712fb11ef73..c5c52c9031d 100644 --- a/compiler/testData/codegen/box/constructorCall/inlineFunInInnerClassConstructorCall.kt +++ b/compiler/testData/codegen/box/constructorCall/inlineFunInInnerClassConstructorCall.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { Outer().Inner( diff --git a/compiler/testData/codegen/box/constructorCall/inlineFunInLocalClassConstructorCall.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/inlineFunInLocalClassConstructorCall.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/inlineFunInLocalClassConstructorCall.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/inlineFunInLocalClassConstructorCall.kt b/compiler/testData/codegen/box/constructorCall/inlineFunInLocalClassConstructorCall.kt index 5da42fb6416..2597adc3fae 100644 --- a/compiler/testData/codegen/box/constructorCall/inlineFunInLocalClassConstructorCall.kt +++ b/compiler/testData/codegen/box/constructorCall/inlineFunInLocalClassConstructorCall.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { class Local(val i: Int, val j: Int) : Foo() { diff --git a/compiler/testData/codegen/box/constructorCall/loopInInlineFun.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/loopInInlineFun.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/loopInInlineFun.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/loopInInlineFun.kt b/compiler/testData/codegen/box/constructorCall/loopInInlineFun.kt index 92d562632d6..51b727d7f85 100644 --- a/compiler/testData/codegen/box/constructorCall/loopInInlineFun.kt +++ b/compiler/testData/codegen/box/constructorCall/loopInInlineFun.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { Foo( diff --git a/compiler/testData/codegen/box/constructorCall/nestedConstructorCallWithJumpOutInConstructorArguments.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/nestedConstructorCallWithJumpOutInConstructorArguments.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/nestedConstructorCallWithJumpOutInConstructorArguments.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/nestedConstructorCallWithJumpOutInConstructorArguments.kt b/compiler/testData/codegen/box/constructorCall/nestedConstructorCallWithJumpOutInConstructorArguments.kt index de4bf584da2..3d2db3774b9 100644 --- a/compiler/testData/codegen/box/constructorCall/nestedConstructorCallWithJumpOutInConstructorArguments.kt +++ b/compiler/testData/codegen/box/constructorCall/nestedConstructorCallWithJumpOutInConstructorArguments.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { for (count in 0..3) { diff --git a/compiler/testData/codegen/box/constructorCall/nonLocalReturnInConstructorArguments.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/nonLocalReturnInConstructorArguments.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/nonLocalReturnInConstructorArguments.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/nonLocalReturnInConstructorArguments.kt b/compiler/testData/codegen/box/constructorCall/nonLocalReturnInConstructorArguments.kt index d8e44853890..45f01bceab1 100644 --- a/compiler/testData/codegen/box/constructorCall/nonLocalReturnInConstructorArguments.kt +++ b/compiler/testData/codegen/box/constructorCall/nonLocalReturnInConstructorArguments.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { run L1@{ diff --git a/compiler/testData/codegen/box/constructorCall/possiblyPoppedUnitializedValueInArguments.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/possiblyPoppedUnitializedValueInArguments.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/possiblyPoppedUnitializedValueInArguments.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/possiblyPoppedUnitializedValueInArguments.kt b/compiler/testData/codegen/box/constructorCall/possiblyPoppedUnitializedValueInArguments.kt index 6faa6534fc6..4e64e567e3b 100644 --- a/compiler/testData/codegen/box/constructorCall/possiblyPoppedUnitializedValueInArguments.kt +++ b/compiler/testData/codegen/box/constructorCall/possiblyPoppedUnitializedValueInArguments.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { for (count in 0..3) { diff --git a/compiler/testData/codegen/box/constructorCall/regularConstructorCallEvaluationOrder.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/regularConstructorCallEvaluationOrder.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/regularConstructorCallEvaluationOrder.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/regularConstructorCallEvaluationOrder.kt b/compiler/testData/codegen/box/constructorCall/regularConstructorCallEvaluationOrder.kt index 7b49f73fdae..3217a409b99 100644 --- a/compiler/testData/codegen/box/constructorCall/regularConstructorCallEvaluationOrder.kt +++ b/compiler/testData/codegen/box/constructorCall/regularConstructorCallEvaluationOrder.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { Foo(logged("i", 1), logged("j", 2)) diff --git a/compiler/testData/codegen/box/constructorCall/tryCatchInConstructorCallEvaluationOrder.jvm_abi.txt b/compiler/testData/codegen/box/constructorCall/tryCatchInConstructorCallEvaluationOrder.jvm_abi.txt new file mode 100644 index 00000000000..e8dc427b418 --- /dev/null +++ b/compiler/testData/codegen/box/constructorCall/tryCatchInConstructorCallEvaluationOrder.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UtilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/constructorCall/tryCatchInConstructorCallEvaluationOrder.kt b/compiler/testData/codegen/box/constructorCall/tryCatchInConstructorCallEvaluationOrder.kt index fb55f41efb3..82bf752647b 100644 --- a/compiler/testData/codegen/box/constructorCall/tryCatchInConstructorCallEvaluationOrder.kt +++ b/compiler/testData/codegen/box/constructorCall/tryCatchInConstructorCallEvaluationOrder.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB + +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: test.kt fun box(): String { Foo( diff --git a/compiler/testData/codegen/box/contracts/fieldInConstructorParens.jvm_abi.txt b/compiler/testData/codegen/box/contracts/fieldInConstructorParens.jvm_abi.txt new file mode 100644 index 00000000000..b34fce520ff --- /dev/null +++ b/compiler/testData/codegen/box/contracts/fieldInConstructorParens.jvm_abi.txt @@ -0,0 +1,41 @@ +MODULE main + CLASS Smth.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + fieldInConstructorParens.kt + Kotlin + *S Kotlin + *F + + 1 fieldInConstructorParens.kt + Smth + *L + 1#1,28:1 + 17#1,5:29 + *S KotlinDebug + *F + + 1 fieldInConstructorParens.kt + Smth + *L + 12#1:29,5 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + fieldInConstructorParens.kt + Kotlin + *S Kotlin + *F + + 1 fieldInConstructorParens.kt + Smth + *L + 1#1,28:1 + 20#1,2:29 + *S KotlinDebug + *F + + 1 fieldInConstructorParens.kt + Smth + *L + 12#1:29,2 + *E + } ) diff --git a/compiler/testData/codegen/box/contracts/fieldInConstructorParens.kt b/compiler/testData/codegen/box/contracts/fieldInConstructorParens.kt index 4c9404f4131..fc1d83baf3f 100644 --- a/compiler/testData/codegen/box/contracts/fieldInConstructorParens.kt +++ b/compiler/testData/codegen/box/contracts/fieldInConstructorParens.kt @@ -1,6 +1,8 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62464 + import kotlin.contracts.* class Smth { diff --git a/compiler/testData/codegen/box/contracts/kt39374.jvm_abi.txt b/compiler/testData/codegen/box/contracts/kt39374.jvm_abi.txt new file mode 100644 index 00000000000..7ff874e4fad --- /dev/null +++ b/compiler/testData/codegen/box/contracts/kt39374.jvm_abi.txt @@ -0,0 +1,5 @@ +MODULE main + Missing in K1 + Kt39374Kt$runBlocking$1.class + Missing in K2 + Kt39374Kt$runBlocking$2.class diff --git a/compiler/testData/codegen/box/contracts/kt39374.kt b/compiler/testData/codegen/box/contracts/kt39374.kt index 97d5b25cee3..26cc1020728 100644 --- a/compiler/testData/codegen/box/contracts/kt39374.kt +++ b/compiler/testData/codegen/box/contracts/kt39374.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // WITH_COROUTINES +// JVM_ABI_K1_K2_DIFF: KT-62845 + import kotlin.contracts.* import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/box/contracts/kt45236.jvm_abi.txt b/compiler/testData/codegen/box/contracts/kt45236.jvm_abi.txt new file mode 100644 index 00000000000..069b8c71f74 --- /dev/null +++ b/compiler/testData/codegen/box/contracts/kt45236.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Kt45236Kt.class + PACKAGE METADATA + FUNCTION successOrThrow()V + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/contracts/kt45236.kt b/compiler/testData/codegen/box/contracts/kt45236.kt index 49c0cca5b52..4347d7f1483 100644 --- a/compiler/testData/codegen/box/contracts/kt45236.kt +++ b/compiler/testData/codegen/box/contracts/kt45236.kt @@ -1,5 +1,8 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63875 + + import kotlin.contracts.ExperimentalContracts import kotlin.contracts.contract diff --git a/compiler/testData/codegen/box/contracts/kt47168.jvm_abi.txt b/compiler/testData/codegen/box/contracts/kt47168.jvm_abi.txt new file mode 100644 index 00000000000..d4dd1441508 --- /dev/null +++ b/compiler/testData/codegen/box/contracts/kt47168.jvm_abi.txt @@ -0,0 +1,41 @@ +MODULE main + CLASS Kt47168Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt47168.kt + Kotlin + *S Kotlin + *F + + 1 kt47168.kt + Kt47168Kt + *L + 1#1,19:1 + 8#1,5:20 + *S KotlinDebug + *F + + 1 kt47168.kt + Kt47168Kt + *L + 17#1:20,5 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt47168.kt + Kotlin + *S Kotlin + *F + + 1 kt47168.kt + Kt47168Kt + *L + 1#1,19:1 + 12#1:20 + *S KotlinDebug + *F + + 1 kt47168.kt + Kt47168Kt + *L + 17#1:20 + *E + } ) diff --git a/compiler/testData/codegen/box/contracts/kt47168.kt b/compiler/testData/codegen/box/contracts/kt47168.kt index 6d433e78721..38d371cabd3 100644 --- a/compiler/testData/codegen/box/contracts/kt47168.kt +++ b/compiler/testData/codegen/box/contracts/kt47168.kt @@ -1,4 +1,7 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts + +// JVM_ABI_K1_K2_DIFF: KT-62464 + import kotlin.contracts.* inline fun foo(x: () -> String, y: () -> String): String { diff --git a/compiler/testData/codegen/box/contracts/kt47300.jvm_abi.txt b/compiler/testData/codegen/box/contracts/kt47300.jvm_abi.txt new file mode 100644 index 00000000000..630ee4cf72d --- /dev/null +++ b/compiler/testData/codegen/box/contracts/kt47300.jvm_abi.txt @@ -0,0 +1,60 @@ +MODULE main + CLASS Kt47300Kt.class + PACKAGE METADATA + FUNCTION fold(LContent;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (onContent: kotlin/Function1<@kotlin/ParameterName(name = "value") T#1, T#0>, onException: kotlin/Function1<@kotlin/ParameterName(name = "exception") java/lang/Exception /* = kotlin/Exception^ */, T#0>) + K2 + (onContent: kotlin/Function1<@kotlin/ParameterName(name = "value") T#1, T#0>, onException: kotlin/Function1<@kotlin/ParameterName(name = "exception") java/lang/Exception /* = @kotlin/ParameterName(name = "exception") kotlin/Exception^ */, T#0>) + FUNCTION getOrElse(LContent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (onException: kotlin/Function1<@kotlin/ParameterName(name = "exception") java/lang/Exception /* = kotlin/Exception^ */, T#0>) + K2 + (onException: kotlin/Function1<@kotlin/ParameterName(name = "exception") java/lang/Exception /* = @kotlin/ParameterName(name = "exception") kotlin/Exception^ */, T#0>) + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt47300.kt + Kotlin + *S Kotlin + *F + + 1 kt47300.kt + Kt47300Kt + *L + 1#1,40:1 + 25#1,5:41 + 18#1,12:46 + *S KotlinDebug + *F + + 1 kt47300.kt + Kt47300Kt + *L + 18#1:41,5 + 35#1:46,12 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt47300.kt + Kotlin + *S Kotlin + *F + + 1 kt47300.kt + Kt47300Kt + *L + 1#1,40:1 + 29#1:41 + 18#1:42 + 29#1:43 + *S KotlinDebug + *F + + 1 kt47300.kt + Kt47300Kt + *L + 18#1:41 + 35#1:42 + 35#1:43 + *E + } ) diff --git a/compiler/testData/codegen/box/contracts/kt47300.kt b/compiler/testData/codegen/box/contracts/kt47300.kt index 13d55e79f77..81b303a89a4 100644 --- a/compiler/testData/codegen/box/contracts/kt47300.kt +++ b/compiler/testData/codegen/box/contracts/kt47300.kt @@ -1,6 +1,8 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62464, KT-63971 + import kotlin.contracts.ExperimentalContracts import kotlin.contracts.InvocationKind import kotlin.contracts.contract diff --git a/compiler/testData/codegen/box/contracts/listAppend.jvm_abi.txt b/compiler/testData/codegen/box/contracts/listAppend.jvm_abi.txt new file mode 100644 index 00000000000..84d9dc29008 --- /dev/null +++ b/compiler/testData/codegen/box/contracts/listAppend.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getValue()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/contracts/listAppend.kt b/compiler/testData/codegen/box/contracts/listAppend.kt index 31139e63019..a040866c1a1 100644 --- a/compiler/testData/codegen/box/contracts/listAppend.kt +++ b/compiler/testData/codegen/box/contracts/listAppend.kt @@ -1,6 +1,8 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.contracts.* class A { diff --git a/compiler/testData/codegen/box/controlStructures/forArrayList.jvm_abi.txt b/compiler/testData/codegen/box/controlStructures/forArrayList.jvm_abi.txt new file mode 100644 index 00000000000..356e6dc98a3 --- /dev/null +++ b/compiler/testData/codegen/box/controlStructures/forArrayList.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForArrayListKt.class + PACKAGE METADATA + PROPERTY getAlist()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/controlStructures/forArrayList.kt b/compiler/testData/codegen/box/controlStructures/forArrayList.kt index b8c34cbf1a8..972b80497f2 100644 --- a/compiler/testData/codegen/box/controlStructures/forArrayList.kt +++ b/compiler/testData/codegen/box/controlStructures/forArrayList.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + val alist = arrayListOf(1, 2, 3) // : j.u.ArrayList fun box(): String { diff --git a/compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.jvm_abi.txt b/compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.jvm_abi.txt new file mode 100644 index 00000000000..8a6e774cb49 --- /dev/null +++ b/compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForArrayListMultiDeclKt.class + PACKAGE METADATA + PROPERTY getAlist()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList> /* = kotlin/collections/ArrayList^> */ + K2 + java/util/ArrayList> diff --git a/compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.kt b/compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.kt index 43bd4f08c38..e2894c84634 100644 --- a/compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.kt +++ b/compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.kt @@ -1,5 +1,6 @@ - // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + val alist = arrayListOf(1 to 2, 2 to 3, 3 to 4) fun box(): String { diff --git a/compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexThrowsCME.jvm_abi.txt b/compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexThrowsCME.jvm_abi.txt new file mode 100644 index 00000000000..eece5311679 --- /dev/null +++ b/compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexThrowsCME.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInListWithIndexThrowsCMEKt.class + PACKAGE METADATA + PROPERTY getXs()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexThrowsCME.kt b/compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexThrowsCME.kt index 6ae6e7a60db..7a2e755b4bd 100644 --- a/compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexThrowsCME.kt +++ b/compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexThrowsCME.kt @@ -2,6 +2,8 @@ // FULL_JDK // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + val xs = arrayListOf("a", "b", "c", "d") fun box(): String { diff --git a/compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.jvm_abi.txt b/compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.jvm_abi.txt new file mode 100644 index 00000000000..69ecf8778e3 --- /dev/null +++ b/compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInSequenceWithIndexThrowsCMEKt.class + PACKAGE METADATA + PROPERTY getXsl()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.kt b/compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.kt index 6f3e436ad0e..0236193429a 100644 --- a/compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.kt +++ b/compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.kt @@ -2,6 +2,8 @@ // FULL_JDK // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + val xsl = arrayListOf("a", "b", "c", "d") val xs = xsl.asSequence() diff --git a/compiler/testData/codegen/box/coroutines/bridges/mapSuspendAbstractClear.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/bridges/mapSuspendAbstractClear.jvm_abi.txt new file mode 100644 index 00000000000..c59be2d6f90 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/bridges/mapSuspendAbstractClear.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS SuspendingMutableMap.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] + CLASS MapSuspendAbstractClearKt$box$1$map$1.class + K1 + --- + K2 + getOrDefault(II)Ljava/lang/Integer; [public, bridge] + K1 + --- + K2 + getOrDefault(Ljava/lang/Object;I)Ljava/lang/Integer; [public, final, bridge] diff --git a/compiler/testData/codegen/box/coroutines/bridges/mapSuspendAbstractClear.kt b/compiler/testData/codegen/box/coroutines/bridges/mapSuspendAbstractClear.kt index 7eb8f76eb71..b98feb0ce07 100644 --- a/compiler/testData/codegen/box/coroutines/bridges/mapSuspendAbstractClear.kt +++ b/compiler/testData/codegen/box/coroutines/bridges/mapSuspendAbstractClear.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-57268 import kotlin.coroutines.* diff --git a/compiler/testData/codegen/box/coroutines/bridges/mapSuspendClear.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/bridges/mapSuspendClear.jvm_abi.txt new file mode 100644 index 00000000000..d6798471db5 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/bridges/mapSuspendClear.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS SuspendingMutableMap.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/coroutines/bridges/mapSuspendClear.kt b/compiler/testData/codegen/box/coroutines/bridges/mapSuspendClear.kt index dd673b4ba8e..dba5c70d09c 100644 --- a/compiler/testData/codegen/box/coroutines/bridges/mapSuspendClear.kt +++ b/compiler/testData/codegen/box/coroutines/bridges/mapSuspendClear.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-57268 import kotlin.coroutines.* diff --git a/compiler/testData/codegen/box/coroutines/deserializedSuspendFunctionProperty.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/deserializedSuspendFunctionProperty.jvm_abi.txt new file mode 100644 index 00000000000..a873267d4ed --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/deserializedSuspendFunctionProperty.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE m1 + CLASS GivenDSLHandler.class + CLASS METADATA + CONSTRUCTOR (Lkotlin/jvm/functions/Function2;)V + Property: class.metadata.constructor.valueParameters + K1 + (lambda: @kotlin/ExtensionFunctionType suspend kotlin/Function2, kotlin/coroutines/Continuation, kotlin/Any?> /* = ... */) + K2 + (lambda: @kotlin/ExtensionFunctionType suspend kotlin/Function2, kotlin/coroutines/Continuation<*>, kotlin/Any?> /* = @kotlin/ExtensionFunctionType suspend kotlin/Function2, kotlin/coroutines/Continuation<*>, kotlin/Any?> */ /* = ... */) + PROPERTY getLambda()Lkotlin/jvm/functions/Function2; + Property: class.metadata.property.returnType + K1 + @kotlin/ExtensionFunctionType suspend kotlin/Function2, kotlin/coroutines/Continuation, kotlin/Any?> + K2 + @kotlin/ExtensionFunctionType suspend kotlin/Function2, kotlin/coroutines/Continuation<*>, kotlin/Any?> /* = @kotlin/ExtensionFunctionType suspend kotlin/Function2, kotlin/coroutines/Continuation<*>, kotlin/Any?> */ diff --git a/compiler/testData/codegen/box/coroutines/deserializedSuspendFunctionProperty.kt b/compiler/testData/codegen/box/coroutines/deserializedSuspendFunctionProperty.kt index 45e2a2d7140..3e70f2365af 100644 --- a/compiler/testData/codegen/box/coroutines/deserializedSuspendFunctionProperty.kt +++ b/compiler/testData/codegen/box/coroutines/deserializedSuspendFunctionProperty.kt @@ -2,7 +2,7 @@ // WITH_COROUTINES // IGNORE_BACKEND_K1: JVM, JS_IR, JS_IR_ES6, WASM, NATIVE // ^Reports FUN_INTERFACE_WITH_SUSPEND_FUNCTION on K1 JVM (non-IR) and fails in backend on others - +// JVM_ABI_K1_K2_DIFF: KT-63877 // MODULE: m1 // FILE: m1.kt typealias GivenLambda = diff --git a/compiler/testData/codegen/box/coroutines/handleException.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/handleException.jvm_abi.txt new file mode 100644 index 00000000000..3aa24e57c26 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/handleException.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Controller.class + CLASS METADATA + PROPERTY getPostponedActions()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList> /* = kotlin/collections/ArrayList^> */ + K2 + java/util/ArrayList> diff --git a/compiler/testData/codegen/box/coroutines/handleException.kt b/compiler/testData/codegen/box/coroutines/handleException.kt index 3faabfbda4c..17650302b6c 100644 --- a/compiler/testData/codegen/box/coroutines/handleException.kt +++ b/compiler/testData/codegen/box/coroutines/handleException.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // WITH_COROUTINES +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.jvm_abi.txt new file mode 100644 index 00000000000..c190a84a1e7 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS InlineSuspendTypealiasKt.class + PACKAGE METADATA + FUNCTION foo(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (handler: suspend kotlin/Function2, kotlin/Any?>) + K2 + (handler: suspend kotlin/Function2, kotlin/Any?> /* = suspend kotlin/Function2, kotlin/Any?> */) diff --git a/compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.kt b/compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.kt index 67ed5afec49..aad5e39ded4 100644 --- a/compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.kt +++ b/compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63877 import kotlin.coroutines.* diff --git a/compiler/testData/codegen/box/coroutines/kt51530.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/kt51530.jvm_abi.txt new file mode 100644 index 00000000000..0f2a9219bcd --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/kt51530.jvm_abi.txt @@ -0,0 +1,1942 @@ +MODULE main + CLASS Kt51530Kt$aggregate$$inlined$mapNotNull$1$2.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt51530.kt + Kotlin + *S Kotlin + *F + + 1 kt51530.kt + Kt51530Kt$transform$1$collect$2 + + 2 kt51530.kt + Kt51530Kt + + 3 _Collections.kt + kotlin/collections/CollectionsKt___CollectionsKt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,218:1 + 27#2,7:219 + 34#2:239 + 35#2:253 + 36#2:267 + 37#2:281 + 38#2:295 + 39#2:309 + 40#2:323 + 41#2:337 + 42#2:351 + 43#2:365 + 44#2:379 + 45#2:393 + 46#2:407 + 47#2:421 + 48#2:435 + 49#2:449 + 50#2:463 + 51#2:477 + 52#2:491 + 53#2:505 + 54#2:519 + 55#2:533 + 56#2:547 + 57#2:561 + 58#2:575 + 59#2:589 + 60#2:603 + 61#2:617 + 62#2:631 + 63#2:645 + 64#2:659 + 65#2:673 + 66#2:687 + 67#2:701 + 68#2:715 + 69#2:729 + 70#2:743 + 71#2:757 + 72#2:771 + 73#2:785 + 74#2:799 + 75#2:813 + 76#2:827 + 77#2:841 + 78#2:855 + 79#2:869 + 80#2:883 + 81#2:897 + 82#2:911 + 83#2:925 + 84#2:939 + 85#2:953 + 86#2:967 + 87#2:981 + 88#2:995 + 89#2:1009 + 90#2:1023 + 91#2:1037 + 92#2:1051 + 93#2:1065 + 94#2:1079 + 95#2:1093 + 96#2:1107 + 97#2:1121 + 98#2:1135 + 99#2:1149 + 100#2:1163 + 101#2:1177 + 102#2:1191 + 103#2:1205 + 104#2:1219 + 105#2:1233 + 106#2:1247 + 107#2:1261 + 108#2:1275 + 109#2:1289 + 110#2:1303 + 111#2:1317 + 112#2:1331 + 113#2:1345 + 114#2:1359 + 115#2:1373 + 116#2:1387 + 117#2:1401 + 118#2:1415 + 1601#3,9:226 + 1853#3:235 + 1854#3:237 + 1610#3:238 + 1601#3,9:240 + 1853#3:249 + 1854#3:251 + 1610#3:252 + 1601#3,9:254 + 1853#3:263 + 1854#3:265 + 1610#3:266 + 1601#3,9:268 + 1853#3:277 + 1854#3:279 + 1610#3:280 + 1601#3,9:282 + 1853#3:291 + 1854#3:293 + 1610#3:294 + 1601#3,9:296 + 1853#3:305 + 1854#3:307 + 1610#3:308 + 1601#3,9:310 + 1853#3:319 + 1854#3:321 + 1610#3:322 + 1601#3,9:324 + 1853#3:333 + 1854#3:335 + 1610#3:336 + 1601#3,9:338 + 1853#3:347 + 1854#3:349 + 1610#3:350 + 1601#3,9:352 + 1853#3:361 + 1854#3:363 + 1610#3:364 + 1601#3,9:366 + 1853#3:375 + 1854#3:377 + 1610#3:378 + 1601#3,9:380 + 1853#3:389 + 1854#3:391 + 1610#3:392 + 1601#3,9:394 + 1853#3:403 + 1854#3:405 + 1610#3:406 + 1601#3,9:408 + 1853#3:417 + 1854#3:419 + 1610#3:420 + 1601#3,9:422 + 1853#3:431 + 1854#3:433 + 1610#3:434 + 1601#3,9:436 + 1853#3:445 + 1854#3:447 + 1610#3:448 + 1601#3,9:450 + 1853#3:459 + 1854#3:461 + 1610#3:462 + 1601#3,9:464 + 1853#3:473 + 1854#3:475 + 1610#3:476 + 1601#3,9:478 + 1853#3:487 + 1854#3:489 + 1610#3:490 + 1601#3,9:492 + 1853#3:501 + 1854#3:503 + 1610#3:504 + 1601#3,9:506 + 1853#3:515 + 1854#3:517 + 1610#3:518 + 1601#3,9:520 + 1853#3:529 + 1854#3:531 + 1610#3:532 + 1601#3,9:534 + 1853#3:543 + 1854#3:545 + 1610#3:546 + 1601#3,9:548 + 1853#3:557 + 1854#3:559 + 1610#3:560 + 1601#3,9:562 + 1853#3:571 + 1854#3:573 + 1610#3:574 + 1601#3,9:576 + 1853#3:585 + 1854#3:587 + 1610#3:588 + 1601#3,9:590 + 1853#3:599 + 1854#3:601 + 1610#3:602 + 1601#3,9:604 + 1853#3:613 + 1854#3:615 + 1610#3:616 + 1601#3,9:618 + 1853#3:627 + 1854#3:629 + 1610#3:630 + 1601#3,9:632 + 1853#3:641 + 1854#3:643 + 1610#3:644 + 1601#3,9:646 + 1853#3:655 + 1854#3:657 + 1610#3:658 + 1601#3,9:660 + 1853#3:669 + 1854#3:671 + 1610#3:672 + 1601#3,9:674 + 1853#3:683 + 1854#3:685 + 1610#3:686 + 1601#3,9:688 + 1853#3:697 + 1854#3:699 + 1610#3:700 + 1601#3,9:702 + 1853#3:711 + 1854#3:713 + 1610#3:714 + 1601#3,9:716 + 1853#3:725 + 1854#3:727 + 1610#3:728 + 1601#3,9:730 + 1853#3:739 + 1854#3:741 + 1610#3:742 + 1601#3,9:744 + 1853#3:753 + 1854#3:755 + 1610#3:756 + 1601#3,9:758 + 1853#3:767 + 1854#3:769 + 1610#3:770 + 1601#3,9:772 + 1853#3:781 + 1854#3:783 + 1610#3:784 + 1601#3,9:786 + 1853#3:795 + 1854#3:797 + 1610#3:798 + 1601#3,9:800 + 1853#3:809 + 1854#3:811 + 1610#3:812 + 1601#3,9:814 + 1853#3:823 + 1854#3:825 + 1610#3:826 + 1601#3,9:828 + 1853#3:837 + 1854#3:839 + 1610#3:840 + 1601#3,9:842 + 1853#3:851 + 1854#3:853 + 1610#3:854 + 1601#3,9:856 + 1853#3:865 + 1854#3:867 + 1610#3:868 + 1601#3,9:870 + 1853#3:879 + 1854#3:881 + 1610#3:882 + 1601#3,9:884 + 1853#3:893 + 1854#3:895 + 1610#3:896 + 1601#3,9:898 + 1853#3:907 + 1854#3:909 + 1610#3:910 + 1601#3,9:912 + 1853#3:921 + 1854#3:923 + 1610#3:924 + 1601#3,9:926 + 1853#3:935 + 1854#3:937 + 1610#3:938 + 1601#3,9:940 + 1853#3:949 + 1854#3:951 + 1610#3:952 + 1601#3,9:954 + 1853#3:963 + 1854#3:965 + 1610#3:966 + 1601#3,9:968 + 1853#3:977 + 1854#3:979 + 1610#3:980 + 1601#3,9:982 + 1853#3:991 + 1854#3:993 + 1610#3:994 + 1601#3,9:996 + 1853#3:1005 + 1854#3:1007 + 1610#3:1008 + 1601#3,9:1010 + 1853#3:1019 + 1854#3:1021 + 1610#3:1022 + 1601#3,9:1024 + 1853#3:1033 + 1854#3:1035 + 1610#3:1036 + 1601#3,9:1038 + 1853#3:1047 + 1854#3:1049 + 1610#3:1050 + 1601#3,9:1052 + 1853#3:1061 + 1854#3:1063 + 1610#3:1064 + 1601#3,9:1066 + 1853#3:1075 + 1854#3:1077 + 1610#3:1078 + 1601#3,9:1080 + 1853#3:1089 + 1854#3:1091 + 1610#3:1092 + 1601#3,9:1094 + 1853#3:1103 + 1854#3:1105 + 1610#3:1106 + 1601#3,9:1108 + 1853#3:1117 + 1854#3:1119 + 1610#3:1120 + 1601#3,9:1122 + 1853#3:1131 + 1854#3:1133 + 1610#3:1134 + 1601#3,9:1136 + 1853#3:1145 + 1854#3:1147 + 1610#3:1148 + 1601#3,9:1150 + 1853#3:1159 + 1854#3:1161 + 1610#3:1162 + 1601#3,9:1164 + 1853#3:1173 + 1854#3:1175 + 1610#3:1176 + 1601#3,9:1178 + 1853#3:1187 + 1854#3:1189 + 1610#3:1190 + 1601#3,9:1192 + 1853#3:1201 + 1854#3:1203 + 1610#3:1204 + 1601#3,9:1206 + 1853#3:1215 + 1854#3:1217 + 1610#3:1218 + 1601#3,9:1220 + 1853#3:1229 + 1854#3:1231 + 1610#3:1232 + 1601#3,9:1234 + 1853#3:1243 + 1854#3:1245 + 1610#3:1246 + 1601#3,9:1248 + 1853#3:1257 + 1854#3:1259 + 1610#3:1260 + 1601#3,9:1262 + 1853#3:1271 + 1854#3:1273 + 1610#3:1274 + 1601#3,9:1276 + 1853#3:1285 + 1854#3:1287 + 1610#3:1288 + 1601#3,9:1290 + 1853#3:1299 + 1854#3:1301 + 1610#3:1302 + 1601#3,9:1304 + 1853#3:1313 + 1854#3:1315 + 1610#3:1316 + 1601#3,9:1318 + 1853#3:1327 + 1854#3:1329 + 1610#3:1330 + 1601#3,9:1332 + 1853#3:1341 + 1854#3:1343 + 1610#3:1344 + 1601#3,9:1346 + 1853#3:1355 + 1854#3:1357 + 1610#3:1358 + 1601#3,9:1360 + 1853#3:1369 + 1854#3:1371 + 1610#3:1372 + 1601#3,9:1374 + 1853#3:1383 + 1854#3:1385 + 1610#3:1386 + 1601#3,9:1388 + 1853#3:1397 + 1854#3:1399 + 1610#3:1400 + 1601#3,9:1402 + 1853#3:1411 + 1854#3:1413 + 1610#3:1414 + 1601#3,9:1416 + 1853#3:1425 + 1854#3:1427 + 1610#3:1428 + 1#4:236 + 1#4:250 + 1#4:264 + 1#4:278 + 1#4:292 + 1#4:306 + 1#4:320 + 1#4:334 + 1#4:348 + 1#4:362 + 1#4:376 + 1#4:390 + 1#4:404 + 1#4:418 + 1#4:432 + 1#4:446 + 1#4:460 + 1#4:474 + 1#4:488 + 1#4:502 + 1#4:516 + 1#4:530 + 1#4:544 + 1#4:558 + 1#4:572 + 1#4:586 + 1#4:600 + 1#4:614 + 1#4:628 + 1#4:642 + 1#4:656 + 1#4:670 + 1#4:684 + 1#4:698 + 1#4:712 + 1#4:726 + 1#4:740 + 1#4:754 + 1#4:768 + 1#4:782 + 1#4:796 + 1#4:810 + 1#4:824 + 1#4:838 + 1#4:852 + 1#4:866 + 1#4:880 + 1#4:894 + 1#4:908 + 1#4:922 + 1#4:936 + 1#4:950 + 1#4:964 + 1#4:978 + 1#4:992 + 1#4:1006 + 1#4:1020 + 1#4:1034 + 1#4:1048 + 1#4:1062 + 1#4:1076 + 1#4:1090 + 1#4:1104 + 1#4:1118 + 1#4:1132 + 1#4:1146 + 1#4:1160 + 1#4:1174 + 1#4:1188 + 1#4:1202 + 1#4:1216 + 1#4:1230 + 1#4:1244 + 1#4:1258 + 1#4:1272 + 1#4:1286 + 1#4:1300 + 1#4:1314 + 1#4:1328 + 1#4:1342 + 1#4:1356 + 1#4:1370 + 1#4:1384 + 1#4:1398 + 1#4:1412 + 1#4:1426 + *S KotlinDebug + *F + + 1 kt51530.kt + Kt51530Kt + *L + 33#1:226,9 + 33#1:235 + 33#1:237 + 33#1:238 + 34#1:240,9 + 34#1:249 + 34#1:251 + 34#1:252 + 35#1:254,9 + 35#1:263 + 35#1:265 + 35#1:266 + 36#1:268,9 + 36#1:277 + 36#1:279 + 36#1:280 + 37#1:282,9 + 37#1:291 + 37#1:293 + 37#1:294 + 38#1:296,9 + 38#1:305 + 38#1:307 + 38#1:308 + 39#1:310,9 + 39#1:319 + 39#1:321 + 39#1:322 + 40#1:324,9 + 40#1:333 + 40#1:335 + 40#1:336 + 41#1:338,9 + 41#1:347 + 41#1:349 + 41#1:350 + 42#1:352,9 + 42#1:361 + 42#1:363 + 42#1:364 + 43#1:366,9 + 43#1:375 + 43#1:377 + 43#1:378 + 44#1:380,9 + 44#1:389 + 44#1:391 + 44#1:392 + 45#1:394,9 + 45#1:403 + 45#1:405 + 45#1:406 + 46#1:408,9 + 46#1:417 + 46#1:419 + 46#1:420 + 47#1:422,9 + 47#1:431 + 47#1:433 + 47#1:434 + 48#1:436,9 + 48#1:445 + 48#1:447 + 48#1:448 + 49#1:450,9 + 49#1:459 + 49#1:461 + 49#1:462 + 50#1:464,9 + 50#1:473 + 50#1:475 + 50#1:476 + 51#1:478,9 + 51#1:487 + 51#1:489 + 51#1:490 + 52#1:492,9 + 52#1:501 + 52#1:503 + 52#1:504 + 53#1:506,9 + 53#1:515 + 53#1:517 + 53#1:518 + 54#1:520,9 + 54#1:529 + 54#1:531 + 54#1:532 + 55#1:534,9 + 55#1:543 + 55#1:545 + 55#1:546 + 56#1:548,9 + 56#1:557 + 56#1:559 + 56#1:560 + 57#1:562,9 + 57#1:571 + 57#1:573 + 57#1:574 + 58#1:576,9 + 58#1:585 + 58#1:587 + 58#1:588 + 59#1:590,9 + 59#1:599 + 59#1:601 + 59#1:602 + 60#1:604,9 + 60#1:613 + 60#1:615 + 60#1:616 + 61#1:618,9 + 61#1:627 + 61#1:629 + 61#1:630 + 62#1:632,9 + 62#1:641 + 62#1:643 + 62#1:644 + 63#1:646,9 + 63#1:655 + 63#1:657 + 63#1:658 + 64#1:660,9 + 64#1:669 + 64#1:671 + 64#1:672 + 65#1:674,9 + 65#1:683 + 65#1:685 + 65#1:686 + 66#1:688,9 + 66#1:697 + 66#1:699 + 66#1:700 + 67#1:702,9 + 67#1:711 + 67#1:713 + 67#1:714 + 68#1:716,9 + 68#1:725 + 68#1:727 + 68#1:728 + 69#1:730,9 + 69#1:739 + 69#1:741 + 69#1:742 + 70#1:744,9 + 70#1:753 + 70#1:755 + 70#1:756 + 71#1:758,9 + 71#1:767 + 71#1:769 + 71#1:770 + 72#1:772,9 + 72#1:781 + 72#1:783 + 72#1:784 + 73#1:786,9 + 73#1:795 + 73#1:797 + 73#1:798 + 74#1:800,9 + 74#1:809 + 74#1:811 + 74#1:812 + 75#1:814,9 + 75#1:823 + 75#1:825 + 75#1:826 + 76#1:828,9 + 76#1:837 + 76#1:839 + 76#1:840 + 77#1:842,9 + 77#1:851 + 77#1:853 + 77#1:854 + 78#1:856,9 + 78#1:865 + 78#1:867 + 78#1:868 + 79#1:870,9 + 79#1:879 + 79#1:881 + 79#1:882 + 80#1:884,9 + 80#1:893 + 80#1:895 + 80#1:896 + 81#1:898,9 + 81#1:907 + 81#1:909 + 81#1:910 + 82#1:912,9 + 82#1:921 + 82#1:923 + 82#1:924 + 83#1:926,9 + 83#1:935 + 83#1:937 + 83#1:938 + 84#1:940,9 + 84#1:949 + 84#1:951 + 84#1:952 + 85#1:954,9 + 85#1:963 + 85#1:965 + 85#1:966 + 86#1:968,9 + 86#1:977 + 86#1:979 + 86#1:980 + 87#1:982,9 + 87#1:991 + 87#1:993 + 87#1:994 + 88#1:996,9 + 88#1:1005 + 88#1:1007 + 88#1:1008 + 89#1:1010,9 + 89#1:1019 + 89#1:1021 + 89#1:1022 + 90#1:1024,9 + 90#1:1033 + 90#1:1035 + 90#1:1036 + 91#1:1038,9 + 91#1:1047 + 91#1:1049 + 91#1:1050 + 92#1:1052,9 + 92#1:1061 + 92#1:1063 + 92#1:1064 + 93#1:1066,9 + 93#1:1075 + 93#1:1077 + 93#1:1078 + 94#1:1080,9 + 94#1:1089 + 94#1:1091 + 94#1:1092 + 95#1:1094,9 + 95#1:1103 + 95#1:1105 + 95#1:1106 + 96#1:1108,9 + 96#1:1117 + 96#1:1119 + 96#1:1120 + 97#1:1122,9 + 97#1:1131 + 97#1:1133 + 97#1:1134 + 98#1:1136,9 + 98#1:1145 + 98#1:1147 + 98#1:1148 + 99#1:1150,9 + 99#1:1159 + 99#1:1161 + 99#1:1162 + 100#1:1164,9 + 100#1:1173 + 100#1:1175 + 100#1:1176 + 101#1:1178,9 + 101#1:1187 + 101#1:1189 + 101#1:1190 + 102#1:1192,9 + 102#1:1201 + 102#1:1203 + 102#1:1204 + 103#1:1206,9 + 103#1:1215 + 103#1:1217 + 103#1:1218 + 104#1:1220,9 + 104#1:1229 + 104#1:1231 + 104#1:1232 + 105#1:1234,9 + 105#1:1243 + 105#1:1245 + 105#1:1246 + 106#1:1248,9 + 106#1:1257 + 106#1:1259 + 106#1:1260 + 107#1:1262,9 + 107#1:1271 + 107#1:1273 + 107#1:1274 + 108#1:1276,9 + 108#1:1285 + 108#1:1287 + 108#1:1288 + 109#1:1290,9 + 109#1:1299 + 109#1:1301 + 109#1:1302 + 110#1:1304,9 + 110#1:1313 + 110#1:1315 + 110#1:1316 + 111#1:1318,9 + 111#1:1327 + 111#1:1329 + 111#1:1330 + 112#1:1332,9 + 112#1:1341 + 112#1:1343 + 112#1:1344 + 113#1:1346,9 + 113#1:1355 + 113#1:1357 + 113#1:1358 + 114#1:1360,9 + 114#1:1369 + 114#1:1371 + 114#1:1372 + 115#1:1374,9 + 115#1:1383 + 115#1:1385 + 115#1:1386 + 116#1:1388,9 + 116#1:1397 + 116#1:1399 + 116#1:1400 + 117#1:1402,9 + 117#1:1411 + 117#1:1413 + 117#1:1414 + 118#1:1416,9 + 118#1:1425 + 118#1:1427 + 118#1:1428 + 33#1:236 + 34#1:250 + 35#1:264 + 36#1:278 + 37#1:292 + 38#1:306 + 39#1:320 + 40#1:334 + 41#1:348 + 42#1:362 + 43#1:376 + 44#1:390 + 45#1:404 + 46#1:418 + 47#1:432 + 48#1:446 + 49#1:460 + 50#1:474 + 51#1:488 + 52#1:502 + 53#1:516 + 54#1:530 + 55#1:544 + 56#1:558 + 57#1:572 + 58#1:586 + 59#1:600 + 60#1:614 + 61#1:628 + 62#1:642 + 63#1:656 + 64#1:670 + 65#1:684 + 66#1:698 + 67#1:712 + 68#1:726 + 69#1:740 + 70#1:754 + 71#1:768 + 72#1:782 + 73#1:796 + 74#1:810 + 75#1:824 + 76#1:838 + 77#1:852 + 78#1:866 + 79#1:880 + 80#1:894 + 81#1:908 + 82#1:922 + 83#1:936 + 84#1:950 + 85#1:964 + 86#1:978 + 87#1:992 + 88#1:1006 + 89#1:1020 + 90#1:1034 + 91#1:1048 + 92#1:1062 + 93#1:1076 + 94#1:1090 + 95#1:1104 + 96#1:1118 + 97#1:1132 + 98#1:1146 + 99#1:1160 + 100#1:1174 + 101#1:1188 + 102#1:1202 + 103#1:1216 + 104#1:1230 + 105#1:1244 + 106#1:1258 + 107#1:1272 + 108#1:1286 + 109#1:1300 + 110#1:1314 + 111#1:1328 + 112#1:1342 + 113#1:1356 + 114#1:1370 + 115#1:1384 + 116#1:1398 + 117#1:1412 + 118#1:1426 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt51530.kt + Kotlin + *S Kotlin + *F + + 1 kt51530.kt + Kt51530Kt$transform$1$collect$2 + + 2 kt51530.kt + Kt51530Kt + + 3 _Collections.kt + kotlin/collections/CollectionsKt___CollectionsKt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,218:1 + 27#2,7:219 + 34#2:239 + 35#2:253 + 36#2:267 + 37#2:281 + 38#2:295 + 39#2:309 + 40#2:323 + 41#2:337 + 42#2:351 + 43#2:365 + 44#2:379 + 45#2:393 + 46#2:407 + 47#2:421 + 48#2:435 + 49#2:449 + 50#2:463 + 51#2:477 + 52#2:491 + 53#2:505 + 54#2:519 + 55#2:533 + 56#2:547 + 57#2:561 + 58#2:575 + 59#2:589 + 60#2:603 + 61#2:617 + 62#2:631 + 63#2:645 + 64#2:659 + 65#2:673 + 66#2:687 + 67#2:701 + 68#2:715 + 69#2:729 + 70#2:743 + 71#2:757 + 72#2:771 + 73#2:785 + 74#2:799 + 75#2:813 + 76#2:827 + 77#2:841 + 78#2:855 + 79#2:869 + 80#2:883 + 81#2:897 + 82#2:911 + 83#2:925 + 84#2:939 + 85#2:953 + 86#2:967 + 87#2:981 + 88#2:995 + 89#2:1009 + 90#2:1023 + 91#2:1037 + 92#2:1051 + 93#2:1065 + 94#2:1079 + 95#2:1093 + 96#2:1107 + 97#2:1121 + 98#2:1135 + 99#2:1149 + 100#2:1163 + 101#2:1177 + 102#2:1191 + 103#2:1205 + 104#2:1219 + 105#2:1233 + 106#2:1247 + 107#2:1261 + 108#2:1275 + 109#2:1289 + 110#2:1303 + 111#2:1317 + 112#2:1331 + 113#2:1345 + 114#2:1359 + 115#2:1373 + 116#2:1387 + 117#2:1401 + 118#2:1415 + 119#2:1429 + 1601#3,9:226 + 1853#3:235 + 1854#3:237 + 1610#3:238 + 1601#3,9:240 + 1853#3:249 + 1854#3:251 + 1610#3:252 + 1601#3,9:254 + 1853#3:263 + 1854#3:265 + 1610#3:266 + 1601#3,9:268 + 1853#3:277 + 1854#3:279 + 1610#3:280 + 1601#3,9:282 + 1853#3:291 + 1854#3:293 + 1610#3:294 + 1601#3,9:296 + 1853#3:305 + 1854#3:307 + 1610#3:308 + 1601#3,9:310 + 1853#3:319 + 1854#3:321 + 1610#3:322 + 1601#3,9:324 + 1853#3:333 + 1854#3:335 + 1610#3:336 + 1601#3,9:338 + 1853#3:347 + 1854#3:349 + 1610#3:350 + 1601#3,9:352 + 1853#3:361 + 1854#3:363 + 1610#3:364 + 1601#3,9:366 + 1853#3:375 + 1854#3:377 + 1610#3:378 + 1601#3,9:380 + 1853#3:389 + 1854#3:391 + 1610#3:392 + 1601#3,9:394 + 1853#3:403 + 1854#3:405 + 1610#3:406 + 1601#3,9:408 + 1853#3:417 + 1854#3:419 + 1610#3:420 + 1601#3,9:422 + 1853#3:431 + 1854#3:433 + 1610#3:434 + 1601#3,9:436 + 1853#3:445 + 1854#3:447 + 1610#3:448 + 1601#3,9:450 + 1853#3:459 + 1854#3:461 + 1610#3:462 + 1601#3,9:464 + 1853#3:473 + 1854#3:475 + 1610#3:476 + 1601#3,9:478 + 1853#3:487 + 1854#3:489 + 1610#3:490 + 1601#3,9:492 + 1853#3:501 + 1854#3:503 + 1610#3:504 + 1601#3,9:506 + 1853#3:515 + 1854#3:517 + 1610#3:518 + 1601#3,9:520 + 1853#3:529 + 1854#3:531 + 1610#3:532 + 1601#3,9:534 + 1853#3:543 + 1854#3:545 + 1610#3:546 + 1601#3,9:548 + 1853#3:557 + 1854#3:559 + 1610#3:560 + 1601#3,9:562 + 1853#3:571 + 1854#3:573 + 1610#3:574 + 1601#3,9:576 + 1853#3:585 + 1854#3:587 + 1610#3:588 + 1601#3,9:590 + 1853#3:599 + 1854#3:601 + 1610#3:602 + 1601#3,9:604 + 1853#3:613 + 1854#3:615 + 1610#3:616 + 1601#3,9:618 + 1853#3:627 + 1854#3:629 + 1610#3:630 + 1601#3,9:632 + 1853#3:641 + 1854#3:643 + 1610#3:644 + 1601#3,9:646 + 1853#3:655 + 1854#3:657 + 1610#3:658 + 1601#3,9:660 + 1853#3:669 + 1854#3:671 + 1610#3:672 + 1601#3,9:674 + 1853#3:683 + 1854#3:685 + 1610#3:686 + 1601#3,9:688 + 1853#3:697 + 1854#3:699 + 1610#3:700 + 1601#3,9:702 + 1853#3:711 + 1854#3:713 + 1610#3:714 + 1601#3,9:716 + 1853#3:725 + 1854#3:727 + 1610#3:728 + 1601#3,9:730 + 1853#3:739 + 1854#3:741 + 1610#3:742 + 1601#3,9:744 + 1853#3:753 + 1854#3:755 + 1610#3:756 + 1601#3,9:758 + 1853#3:767 + 1854#3:769 + 1610#3:770 + 1601#3,9:772 + 1853#3:781 + 1854#3:783 + 1610#3:784 + 1601#3,9:786 + 1853#3:795 + 1854#3:797 + 1610#3:798 + 1601#3,9:800 + 1853#3:809 + 1854#3:811 + 1610#3:812 + 1601#3,9:814 + 1853#3:823 + 1854#3:825 + 1610#3:826 + 1601#3,9:828 + 1853#3:837 + 1854#3:839 + 1610#3:840 + 1601#3,9:842 + 1853#3:851 + 1854#3:853 + 1610#3:854 + 1601#3,9:856 + 1853#3:865 + 1854#3:867 + 1610#3:868 + 1601#3,9:870 + 1853#3:879 + 1854#3:881 + 1610#3:882 + 1601#3,9:884 + 1853#3:893 + 1854#3:895 + 1610#3:896 + 1601#3,9:898 + 1853#3:907 + 1854#3:909 + 1610#3:910 + 1601#3,9:912 + 1853#3:921 + 1854#3:923 + 1610#3:924 + 1601#3,9:926 + 1853#3:935 + 1854#3:937 + 1610#3:938 + 1601#3,9:940 + 1853#3:949 + 1854#3:951 + 1610#3:952 + 1601#3,9:954 + 1853#3:963 + 1854#3:965 + 1610#3:966 + 1601#3,9:968 + 1853#3:977 + 1854#3:979 + 1610#3:980 + 1601#3,9:982 + 1853#3:991 + 1854#3:993 + 1610#3:994 + 1601#3,9:996 + 1853#3:1005 + 1854#3:1007 + 1610#3:1008 + 1601#3,9:1010 + 1853#3:1019 + 1854#3:1021 + 1610#3:1022 + 1601#3,9:1024 + 1853#3:1033 + 1854#3:1035 + 1610#3:1036 + 1601#3,9:1038 + 1853#3:1047 + 1854#3:1049 + 1610#3:1050 + 1601#3,9:1052 + 1853#3:1061 + 1854#3:1063 + 1610#3:1064 + 1601#3,9:1066 + 1853#3:1075 + 1854#3:1077 + 1610#3:1078 + 1601#3,9:1080 + 1853#3:1089 + 1854#3:1091 + 1610#3:1092 + 1601#3,9:1094 + 1853#3:1103 + 1854#3:1105 + 1610#3:1106 + 1601#3,9:1108 + 1853#3:1117 + 1854#3:1119 + 1610#3:1120 + 1601#3,9:1122 + 1853#3:1131 + 1854#3:1133 + 1610#3:1134 + 1601#3,9:1136 + 1853#3:1145 + 1854#3:1147 + 1610#3:1148 + 1601#3,9:1150 + 1853#3:1159 + 1854#3:1161 + 1610#3:1162 + 1601#3,9:1164 + 1853#3:1173 + 1854#3:1175 + 1610#3:1176 + 1601#3,9:1178 + 1853#3:1187 + 1854#3:1189 + 1610#3:1190 + 1601#3,9:1192 + 1853#3:1201 + 1854#3:1203 + 1610#3:1204 + 1601#3,9:1206 + 1853#3:1215 + 1854#3:1217 + 1610#3:1218 + 1601#3,9:1220 + 1853#3:1229 + 1854#3:1231 + 1610#3:1232 + 1601#3,9:1234 + 1853#3:1243 + 1854#3:1245 + 1610#3:1246 + 1601#3,9:1248 + 1853#3:1257 + 1854#3:1259 + 1610#3:1260 + 1601#3,9:1262 + 1853#3:1271 + 1854#3:1273 + 1610#3:1274 + 1601#3,9:1276 + 1853#3:1285 + 1854#3:1287 + 1610#3:1288 + 1601#3,9:1290 + 1853#3:1299 + 1854#3:1301 + 1610#3:1302 + 1601#3,9:1304 + 1853#3:1313 + 1854#3:1315 + 1610#3:1316 + 1601#3,9:1318 + 1853#3:1327 + 1854#3:1329 + 1610#3:1330 + 1601#3,9:1332 + 1853#3:1341 + 1854#3:1343 + 1610#3:1344 + 1601#3,9:1346 + 1853#3:1355 + 1854#3:1357 + 1610#3:1358 + 1601#3,9:1360 + 1853#3:1369 + 1854#3:1371 + 1610#3:1372 + 1601#3,9:1374 + 1853#3:1383 + 1854#3:1385 + 1610#3:1386 + 1601#3,9:1388 + 1853#3:1397 + 1854#3:1399 + 1610#3:1400 + 1601#3,9:1402 + 1853#3:1411 + 1854#3:1413 + 1610#3:1414 + 1601#3,9:1416 + 1853#3:1425 + 1854#3:1427 + 1610#3:1428 + 1#4:236 + 1#4:250 + 1#4:264 + 1#4:278 + 1#4:292 + 1#4:306 + 1#4:320 + 1#4:334 + 1#4:348 + 1#4:362 + 1#4:376 + 1#4:390 + 1#4:404 + 1#4:418 + 1#4:432 + 1#4:446 + 1#4:460 + 1#4:474 + 1#4:488 + 1#4:502 + 1#4:516 + 1#4:530 + 1#4:544 + 1#4:558 + 1#4:572 + 1#4:586 + 1#4:600 + 1#4:614 + 1#4:628 + 1#4:642 + 1#4:656 + 1#4:670 + 1#4:684 + 1#4:698 + 1#4:712 + 1#4:726 + 1#4:740 + 1#4:754 + 1#4:768 + 1#4:782 + 1#4:796 + 1#4:810 + 1#4:824 + 1#4:838 + 1#4:852 + 1#4:866 + 1#4:880 + 1#4:894 + 1#4:908 + 1#4:922 + 1#4:936 + 1#4:950 + 1#4:964 + 1#4:978 + 1#4:992 + 1#4:1006 + 1#4:1020 + 1#4:1034 + 1#4:1048 + 1#4:1062 + 1#4:1076 + 1#4:1090 + 1#4:1104 + 1#4:1118 + 1#4:1132 + 1#4:1146 + 1#4:1160 + 1#4:1174 + 1#4:1188 + 1#4:1202 + 1#4:1216 + 1#4:1230 + 1#4:1244 + 1#4:1258 + 1#4:1272 + 1#4:1286 + 1#4:1300 + 1#4:1314 + 1#4:1328 + 1#4:1342 + 1#4:1356 + 1#4:1370 + 1#4:1384 + 1#4:1398 + 1#4:1412 + 1#4:1426 + *S KotlinDebug + *F + + 1 kt51530.kt + Kt51530Kt + *L + 33#1:226,9 + 33#1:235 + 33#1:237 + 33#1:238 + 34#1:240,9 + 34#1:249 + 34#1:251 + 34#1:252 + 35#1:254,9 + 35#1:263 + 35#1:265 + 35#1:266 + 36#1:268,9 + 36#1:277 + 36#1:279 + 36#1:280 + 37#1:282,9 + 37#1:291 + 37#1:293 + 37#1:294 + 38#1:296,9 + 38#1:305 + 38#1:307 + 38#1:308 + 39#1:310,9 + 39#1:319 + 39#1:321 + 39#1:322 + 40#1:324,9 + 40#1:333 + 40#1:335 + 40#1:336 + 41#1:338,9 + 41#1:347 + 41#1:349 + 41#1:350 + 42#1:352,9 + 42#1:361 + 42#1:363 + 42#1:364 + 43#1:366,9 + 43#1:375 + 43#1:377 + 43#1:378 + 44#1:380,9 + 44#1:389 + 44#1:391 + 44#1:392 + 45#1:394,9 + 45#1:403 + 45#1:405 + 45#1:406 + 46#1:408,9 + 46#1:417 + 46#1:419 + 46#1:420 + 47#1:422,9 + 47#1:431 + 47#1:433 + 47#1:434 + 48#1:436,9 + 48#1:445 + 48#1:447 + 48#1:448 + 49#1:450,9 + 49#1:459 + 49#1:461 + 49#1:462 + 50#1:464,9 + 50#1:473 + 50#1:475 + 50#1:476 + 51#1:478,9 + 51#1:487 + 51#1:489 + 51#1:490 + 52#1:492,9 + 52#1:501 + 52#1:503 + 52#1:504 + 53#1:506,9 + 53#1:515 + 53#1:517 + 53#1:518 + 54#1:520,9 + 54#1:529 + 54#1:531 + 54#1:532 + 55#1:534,9 + 55#1:543 + 55#1:545 + 55#1:546 + 56#1:548,9 + 56#1:557 + 56#1:559 + 56#1:560 + 57#1:562,9 + 57#1:571 + 57#1:573 + 57#1:574 + 58#1:576,9 + 58#1:585 + 58#1:587 + 58#1:588 + 59#1:590,9 + 59#1:599 + 59#1:601 + 59#1:602 + 60#1:604,9 + 60#1:613 + 60#1:615 + 60#1:616 + 61#1:618,9 + 61#1:627 + 61#1:629 + 61#1:630 + 62#1:632,9 + 62#1:641 + 62#1:643 + 62#1:644 + 63#1:646,9 + 63#1:655 + 63#1:657 + 63#1:658 + 64#1:660,9 + 64#1:669 + 64#1:671 + 64#1:672 + 65#1:674,9 + 65#1:683 + 65#1:685 + 65#1:686 + 66#1:688,9 + 66#1:697 + 66#1:699 + 66#1:700 + 67#1:702,9 + 67#1:711 + 67#1:713 + 67#1:714 + 68#1:716,9 + 68#1:725 + 68#1:727 + 68#1:728 + 69#1:730,9 + 69#1:739 + 69#1:741 + 69#1:742 + 70#1:744,9 + 70#1:753 + 70#1:755 + 70#1:756 + 71#1:758,9 + 71#1:767 + 71#1:769 + 71#1:770 + 72#1:772,9 + 72#1:781 + 72#1:783 + 72#1:784 + 73#1:786,9 + 73#1:795 + 73#1:797 + 73#1:798 + 74#1:800,9 + 74#1:809 + 74#1:811 + 74#1:812 + 75#1:814,9 + 75#1:823 + 75#1:825 + 75#1:826 + 76#1:828,9 + 76#1:837 + 76#1:839 + 76#1:840 + 77#1:842,9 + 77#1:851 + 77#1:853 + 77#1:854 + 78#1:856,9 + 78#1:865 + 78#1:867 + 78#1:868 + 79#1:870,9 + 79#1:879 + 79#1:881 + 79#1:882 + 80#1:884,9 + 80#1:893 + 80#1:895 + 80#1:896 + 81#1:898,9 + 81#1:907 + 81#1:909 + 81#1:910 + 82#1:912,9 + 82#1:921 + 82#1:923 + 82#1:924 + 83#1:926,9 + 83#1:935 + 83#1:937 + 83#1:938 + 84#1:940,9 + 84#1:949 + 84#1:951 + 84#1:952 + 85#1:954,9 + 85#1:963 + 85#1:965 + 85#1:966 + 86#1:968,9 + 86#1:977 + 86#1:979 + 86#1:980 + 87#1:982,9 + 87#1:991 + 87#1:993 + 87#1:994 + 88#1:996,9 + 88#1:1005 + 88#1:1007 + 88#1:1008 + 89#1:1010,9 + 89#1:1019 + 89#1:1021 + 89#1:1022 + 90#1:1024,9 + 90#1:1033 + 90#1:1035 + 90#1:1036 + 91#1:1038,9 + 91#1:1047 + 91#1:1049 + 91#1:1050 + 92#1:1052,9 + 92#1:1061 + 92#1:1063 + 92#1:1064 + 93#1:1066,9 + 93#1:1075 + 93#1:1077 + 93#1:1078 + 94#1:1080,9 + 94#1:1089 + 94#1:1091 + 94#1:1092 + 95#1:1094,9 + 95#1:1103 + 95#1:1105 + 95#1:1106 + 96#1:1108,9 + 96#1:1117 + 96#1:1119 + 96#1:1120 + 97#1:1122,9 + 97#1:1131 + 97#1:1133 + 97#1:1134 + 98#1:1136,9 + 98#1:1145 + 98#1:1147 + 98#1:1148 + 99#1:1150,9 + 99#1:1159 + 99#1:1161 + 99#1:1162 + 100#1:1164,9 + 100#1:1173 + 100#1:1175 + 100#1:1176 + 101#1:1178,9 + 101#1:1187 + 101#1:1189 + 101#1:1190 + 102#1:1192,9 + 102#1:1201 + 102#1:1203 + 102#1:1204 + 103#1:1206,9 + 103#1:1215 + 103#1:1217 + 103#1:1218 + 104#1:1220,9 + 104#1:1229 + 104#1:1231 + 104#1:1232 + 105#1:1234,9 + 105#1:1243 + 105#1:1245 + 105#1:1246 + 106#1:1248,9 + 106#1:1257 + 106#1:1259 + 106#1:1260 + 107#1:1262,9 + 107#1:1271 + 107#1:1273 + 107#1:1274 + 108#1:1276,9 + 108#1:1285 + 108#1:1287 + 108#1:1288 + 109#1:1290,9 + 109#1:1299 + 109#1:1301 + 109#1:1302 + 110#1:1304,9 + 110#1:1313 + 110#1:1315 + 110#1:1316 + 111#1:1318,9 + 111#1:1327 + 111#1:1329 + 111#1:1330 + 112#1:1332,9 + 112#1:1341 + 112#1:1343 + 112#1:1344 + 113#1:1346,9 + 113#1:1355 + 113#1:1357 + 113#1:1358 + 114#1:1360,9 + 114#1:1369 + 114#1:1371 + 114#1:1372 + 115#1:1374,9 + 115#1:1383 + 115#1:1385 + 115#1:1386 + 116#1:1388,9 + 116#1:1397 + 116#1:1399 + 116#1:1400 + 117#1:1402,9 + 117#1:1411 + 117#1:1413 + 117#1:1414 + 118#1:1416,9 + 118#1:1425 + 118#1:1427 + 118#1:1428 + 33#1:236 + 34#1:250 + 35#1:264 + 36#1:278 + 37#1:292 + 38#1:306 + 39#1:320 + 40#1:334 + 41#1:348 + 42#1:362 + 43#1:376 + 44#1:390 + 45#1:404 + 46#1:418 + 47#1:432 + 48#1:446 + 49#1:460 + 50#1:474 + 51#1:488 + 52#1:502 + 53#1:516 + 54#1:530 + 55#1:544 + 56#1:558 + 57#1:572 + 58#1:586 + 59#1:600 + 60#1:614 + 61#1:628 + 62#1:642 + 63#1:656 + 64#1:670 + 65#1:684 + 66#1:698 + 67#1:712 + 68#1:726 + 69#1:740 + 70#1:754 + 71#1:768 + 72#1:782 + 73#1:796 + 74#1:810 + 75#1:824 + 76#1:838 + 77#1:852 + 78#1:866 + 79#1:880 + 80#1:894 + 81#1:908 + 82#1:922 + 83#1:936 + 84#1:950 + 85#1:964 + 86#1:978 + 87#1:992 + 88#1:1006 + 89#1:1020 + 90#1:1034 + 91#1:1048 + 92#1:1062 + 93#1:1076 + 94#1:1090 + 95#1:1104 + 96#1:1118 + 97#1:1132 + 98#1:1146 + 99#1:1160 + 100#1:1174 + 101#1:1188 + 102#1:1202 + 103#1:1216 + 104#1:1230 + 105#1:1244 + 106#1:1258 + 107#1:1272 + 108#1:1286 + 109#1:1300 + 110#1:1314 + 111#1:1328 + 112#1:1342 + 113#1:1356 + 114#1:1370 + 115#1:1384 + 116#1:1398 + 117#1:1412 + 118#1:1426 + *E + } ) \ No newline at end of file diff --git a/compiler/testData/codegen/box/coroutines/kt51530.kt b/compiler/testData/codegen/box/coroutines/kt51530.kt index a5a108e1ec0..5e7d0e9b386 100644 --- a/compiler/testData/codegen/box/coroutines/kt51530.kt +++ b/compiler/testData/codegen/box/coroutines/kt51530.kt @@ -1,6 +1,8 @@ // WITH_STDLIB // IGNORE_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62464 + import kotlin.coroutines.* interface Flow { diff --git a/compiler/testData/codegen/box/coroutines/nestedTryCatch.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/nestedTryCatch.jvm_abi.txt new file mode 100644 index 00000000000..3aa24e57c26 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/nestedTryCatch.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Controller.class + CLASS METADATA + PROPERTY getPostponedActions()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList> /* = kotlin/collections/ArrayList^> */ + K2 + java/util/ArrayList> diff --git a/compiler/testData/codegen/box/coroutines/nestedTryCatch.kt b/compiler/testData/codegen/box/coroutines/nestedTryCatch.kt index e6d27594639..6903940d7e2 100644 --- a/compiler/testData/codegen/box/coroutines/nestedTryCatch.kt +++ b/compiler/testData/codegen/box/coroutines/nestedTryCatch.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // WITH_COROUTINES +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.jvm_abi.txt new file mode 100644 index 00000000000..3aa24e57c26 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Controller.class + CLASS METADATA + PROPERTY getPostponedActions()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList> /* = kotlin/collections/ArrayList^> */ + K2 + java/util/ArrayList> diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.kt index f56ed8dd6c8..b826bd145fd 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // WITH_COROUTINES +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.jvm_abi.txt new file mode 100644 index 00000000000..942c0a747f2 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS SuspendInTheMiddleOfObjectConstructionEvaluationOrderKt.class + PACKAGE METADATA + PROPERTY getLogger()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt b/compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt index a7feb912a72..d9d83d36644 100644 --- a/compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt +++ b/compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt @@ -2,6 +2,8 @@ // WASM_MUTE_REASON: NESTED_OBJECT_INIT // WITH_STDLIB // WITH_COROUTINES +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/also.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/also.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/also.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/also.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/also.kt index cfa3930d8f5..13b021f5401 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/also.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/also.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast.kt index 3c3da2fa97a..5e7293dca83 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast2.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast2.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast2.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast2.kt index 36fcd704569..4fdc4e0b11e 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast2.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast2.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/deferredAwaitSuspendImpl.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/deferredAwaitSuspendImpl.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/deferredAwaitSuspendImpl.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/deferredAwaitSuspendImpl.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/deferredAwaitSuspendImpl.kt index 8f5b0421e77..660b561aa46 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/deferredAwaitSuspendImpl.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/deferredAwaitSuspendImpl.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithStateMachine.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithStateMachine.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithStateMachine.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithStateMachine.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithStateMachine.kt index 2ec4aae7006..12f2255724b 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithStateMachine.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithStateMachine.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/innerObjectRetransformation.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/innerObjectRetransformation.jvm_abi.txt new file mode 100644 index 00000000000..29831c7f21d --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/innerObjectRetransformation.jvm_abi.txt @@ -0,0 +1,33 @@ +MODULE main + CLASS flow/InnerObjectRetransformationKt$check$$inlined$collect$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + innerObjectRetransformation.kt + Kotlin + *S Kotlin + *F + + 1 innerObjectRetransformation.kt + flow/InnerObjectRetransformationKt$collect$2 + + 2 innerObjectRetransformation.kt + flow/InnerObjectRetransformationKt + *L + 1#1,64:1 + 54#2:65 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + innerObjectRetransformation.kt + Kotlin + *S Kotlin + *F + + 1 innerObjectRetransformation.kt + flow/InnerObjectRetransformationKt$collect$2 + + 2 innerObjectRetransformation.kt + flow/InnerObjectRetransformationKt + *L + 1#1,64:1 + 55#2:65 + *E + } ) diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/innerObjectRetransformation.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/innerObjectRetransformation.kt index c5d0ee0715b..97c5fad7cf9 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/innerObjectRetransformation.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/innerObjectRetransformation.kt @@ -3,6 +3,7 @@ // WITH_COROUTINES // CHECK_BYTECODE_LISTING // FIR_IDENTICAL +// JVM_ABI_K1_K2_DIFF: KT-62464 // In this test the following transformation are occuring: // flow$1 -> flowWith$$inlined$flow$1 diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/interfaceDelegation.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/interfaceDelegation.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/interfaceDelegation.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/interfaceDelegation.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/interfaceDelegation.kt index 542d614ea96..c9255cd749b 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/interfaceDelegation.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/interfaceDelegation.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/lambdaParameterInlining.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/lambdaParameterInlining.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/lambdaParameterInlining.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/lambdaParameterInlining.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/lambdaParameterInlining.kt index a8628b880d1..f4ee69e1cad 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/lambdaParameterInlining.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/lambdaParameterInlining.kt @@ -3,6 +3,7 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 import helpers.* import kotlin.coroutines.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/returnInlineClass.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/returnInlineClass.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/returnInlineClass.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/returnInlineClass.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/returnInlineClass.kt index 773b320e5a3..7841c9cfda9 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/returnInlineClass.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/returnInlineClass.kt @@ -3,6 +3,7 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 import helpers.* import kotlin.coroutines.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/simple.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/simple.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/simple.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/simple.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/simple.kt index b2d4db492c3..e2aa0dd0408 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/simple.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/simple.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIfReturnUnit.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIfReturnUnit.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIfReturnUnit.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIfReturnUnit.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIfReturnUnit.kt index b8d772e51b0..ce58db43729 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIfReturnUnit.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIfReturnUnit.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIntrinsics.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIntrinsics.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIntrinsics.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIntrinsics.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIntrinsics.kt index 9a4403666ce..98a8fdee3cc 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIntrinsics.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIntrinsics.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailSuspendUnitFun.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailSuspendUnitFun.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailSuspendUnitFun.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailSuspendUnitFun.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailSuspendUnitFun.kt index a108cc0d6f0..22466e9e6c9 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailSuspendUnitFun.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailSuspendUnitFun.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.jvm_abi.txt new file mode 100644 index 00000000000..9190c4fb60f --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS TryCatchKt.class + PACKAGE METADATA + PROPERTY getPostponedActions()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList> /* = kotlin/collections/ArrayList^> */ + K2 + java/util/ArrayList> diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.kt index f568f7d5cbd..84696c2e75a 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // WITH_COROUTINES +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatchTailCall.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatchTailCall.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatchTailCall.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatchTailCall.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatchTailCall.kt index 3c20b8b8884..9a44048c18e 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatchTailCall.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatchTailCall.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/inline.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/inline.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/inline.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/inline.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/inline.kt index bde19aeab28..8169176e715 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/inline.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/inline.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override4.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override4.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override4.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override4.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override4.kt index 8ee2030ff94..fdcf5cf9f98 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override4.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override4.kt @@ -3,6 +3,7 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 import helpers.* import kotlin.coroutines.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override6.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override6.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override6.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override6.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override6.kt index 231c8a92a77..11dfcd38d32 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override6.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override6.kt @@ -3,6 +3,7 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 import helpers.* import kotlin.coroutines.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unreachable.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unreachable.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unreachable.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unreachable.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unreachable.kt index 15d6aad17a2..a12a6914e24 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unreachable.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/unreachable.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/whenUnit.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/whenUnit.jvm_abi.txt new file mode 100644 index 00000000000..4e934e1a023 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/whenUnit.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS helpers/TailCallOptimizationCheckerClass.class + CLASS METADATA + PROPERTY stackTrace + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/whenUnit.kt b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/whenUnit.kt index c5bdc3551b7..153f1473cb2 100644 --- a/compiler/testData/codegen/box/coroutines/tailCallOptimizations/whenUnit.kt +++ b/compiler/testData/codegen/box/coroutines/tailCallOptimizations/whenUnit.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_TAIL_CALL_OPTIMIZATION +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.jvm_abi.txt new file mode 100644 index 00000000000..3aa24e57c26 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Controller.class + CLASS METADATA + PROPERTY getPostponedActions()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList> /* = kotlin/collections/ArrayList^> */ + K2 + java/util/ArrayList> diff --git a/compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt b/compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt index 269645cd5b2..25ab8be1a65 100644 --- a/compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt +++ b/compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // WITH_COROUTINES +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.jvm_abi.txt new file mode 100644 index 00000000000..3aa24e57c26 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Controller.class + CLASS METADATA + PROPERTY getPostponedActions()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList> /* = kotlin/collections/ArrayList^> */ + K2 + java/util/ArrayList> diff --git a/compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt b/compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt index 93784038241..cde61b1230e 100644 --- a/compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt +++ b/compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // WITH_COROUTINES +// JVM_ABI_K1_K2_DIFF: KT-63864 + import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/defaultArguments/recursiveDefaultArguments.jvm_abi.txt b/compiler/testData/codegen/box/defaultArguments/recursiveDefaultArguments.jvm_abi.txt new file mode 100644 index 00000000000..a9187d4679d --- /dev/null +++ b/compiler/testData/codegen/box/defaultArguments/recursiveDefaultArguments.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS RecursiveDefaultArgumentsKt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + recursiveDefaultArguments.kt + Kotlin + *S Kotlin + *F + + 1 recursiveDefaultArguments.kt + RecursiveDefaultArgumentsKt + *L + 1#1,12:1 + 6#1:13 + 5#1,2:14 + *S KotlinDebug + *F + + 1 recursiveDefaultArguments.kt + RecursiveDefaultArgumentsKt + *L + 5#1:13 + 10#1:14,2 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + recursiveDefaultArguments.kt + Kotlin + *S Kotlin + *F + + 1 recursiveDefaultArguments.kt + RecursiveDefaultArgumentsKt + *L + 1#1,12:1 + 6#1:13 + 4#1,3:14 + *S KotlinDebug + *F + + 1 recursiveDefaultArguments.kt + RecursiveDefaultArgumentsKt + *L + 5#1:13 + 10#1:14,3 + *E + } ) diff --git a/compiler/testData/codegen/box/defaultArguments/recursiveDefaultArguments.kt b/compiler/testData/codegen/box/defaultArguments/recursiveDefaultArguments.kt index 7d4eb69d622..b86ad8ce085 100644 --- a/compiler/testData/codegen/box/defaultArguments/recursiveDefaultArguments.kt +++ b/compiler/testData/codegen/box/defaultArguments/recursiveDefaultArguments.kt @@ -1,4 +1,6 @@ // IGNORE_BACKEND: JS +// JVM_ABI_K1_K2_DIFF: KT-62464 + @Suppress("RECURSION_IN_INLINE") inline fun test(p: String = test("OK")): String { return p diff --git a/compiler/testData/codegen/box/delegatedProperty/delegateToAnother/custom.jvm_abi.txt b/compiler/testData/codegen/box/delegatedProperty/delegateToAnother/custom.jvm_abi.txt new file mode 100644 index 00000000000..93c19723d3e --- /dev/null +++ b/compiler/testData/codegen/box/delegatedProperty/delegateToAnother/custom.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS CustomKt.class + PACKAGE METADATA + PROPERTY getX()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + _: kotlin/String diff --git a/compiler/testData/codegen/box/delegatedProperty/delegateToAnother/custom.kt b/compiler/testData/codegen/box/delegatedProperty/delegateToAnother/custom.kt index 0597bad8f0b..69e12224d4a 100644 --- a/compiler/testData/codegen/box/delegatedProperty/delegateToAnother/custom.kt +++ b/compiler/testData/codegen/box/delegatedProperty/delegateToAnother/custom.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63878 + var x: String get() = throw Exception("x's getter shouldn't be called") set(_) { throw Exception("x's setter shouldn't be called") } diff --git a/compiler/testData/codegen/box/delegatedProperty/kt37204.jvm_abi.txt b/compiler/testData/codegen/box/delegatedProperty/kt37204.jvm_abi.txt new file mode 100644 index 00000000000..ead77fdb60e --- /dev/null +++ b/compiler/testData/codegen/box/delegatedProperty/kt37204.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Kt37204Kt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/delegatedProperty/kt37204.kt b/compiler/testData/codegen/box/delegatedProperty/kt37204.kt index bf6df6f2cf0..bb8e8c93229 100644 --- a/compiler/testData/codegen/box/delegatedProperty/kt37204.kt +++ b/compiler/testData/codegen/box/delegatedProperty/kt37204.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 val log = StringBuilder() diff --git a/compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrderVar.jvm_abi.txt b/compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrderVar.jvm_abi.txt new file mode 100644 index 00000000000..249f0f58e18 --- /dev/null +++ b/compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrderVar.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS EvaluationOrderVarKt.class + PACKAGE METADATA + PROPERTY getDispatcher()Ljava/util/HashMap; + Property: class.metadata.property.returnType + K1 + java/util/HashMap /* = kotlin/collections/HashMap^ */ + K2 + java/util/HashMap diff --git a/compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrderVar.kt b/compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrderVar.kt index c79aa5070ed..c96eb0937e9 100644 --- a/compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrderVar.kt +++ b/compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrderVar.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 import kotlin.test.* diff --git a/compiler/testData/codegen/box/delegatedProperty/useKPropertyLater.jvm_abi.txt b/compiler/testData/codegen/box/delegatedProperty/useKPropertyLater.jvm_abi.txt new file mode 100644 index 00000000000..8469bf4aa16 --- /dev/null +++ b/compiler/testData/codegen/box/delegatedProperty/useKPropertyLater.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS UseKPropertyLaterKt.class + PACKAGE METADATA + PROPERTY getProperties()Ljava/util/HashSet; + Property: class.metadata.property.returnType + K1 + java/util/HashSet> /* = kotlin/collections/HashSet^> */ + K2 + java/util/HashSet> diff --git a/compiler/testData/codegen/box/delegatedProperty/useKPropertyLater.kt b/compiler/testData/codegen/box/delegatedProperty/useKPropertyLater.kt index 096575f1e0a..96879ac2065 100644 --- a/compiler/testData/codegen/box/delegatedProperty/useKPropertyLater.kt +++ b/compiler/testData/codegen/box/delegatedProperty/useKPropertyLater.kt @@ -1,5 +1,6 @@ // WITH_REFLECT // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63864 import kotlin.reflect.* diff --git a/compiler/testData/codegen/box/delegation/computeIfAbsent.jvm_abi.txt b/compiler/testData/codegen/box/delegation/computeIfAbsent.jvm_abi.txt new file mode 100644 index 00000000000..bfb2e30148d --- /dev/null +++ b/compiler/testData/codegen/box/delegation/computeIfAbsent.jvm_abi.txt @@ -0,0 +1,35 @@ +MODULE main + CLASS MyMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/box/delegation/computeIfAbsent.kt b/compiler/testData/codegen/box/delegation/computeIfAbsent.kt index 18db905fa55..3af983624ce 100644 --- a/compiler/testData/codegen/box/delegation/computeIfAbsent.kt +++ b/compiler/testData/codegen/box/delegation/computeIfAbsent.kt @@ -1,6 +1,7 @@ // TARGET_BACKEND: JVM // WITH_STDLIB // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63828 class MyMap : MutableMap by hashMapOf() diff --git a/compiler/testData/codegen/box/delegation/delegationAndInheritanceFromJava.jvm_abi.txt b/compiler/testData/codegen/box/delegation/delegationAndInheritanceFromJava.jvm_abi.txt new file mode 100644 index 00000000000..0616d625bd8 --- /dev/null +++ b/compiler/testData/codegen/box/delegation/delegationAndInheritanceFromJava.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS Impl.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size diff --git a/compiler/testData/codegen/box/delegation/delegationAndInheritanceFromJava.kt b/compiler/testData/codegen/box/delegation/delegationAndInheritanceFromJava.kt index 2b361502877..b46d5e60c01 100644 --- a/compiler/testData/codegen/box/delegation/delegationAndInheritanceFromJava.kt +++ b/compiler/testData/codegen/box/delegation/delegationAndInheritanceFromJava.kt @@ -1,4 +1,6 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63828 + // MODULE: lib // FILE: Foo.java diff --git a/compiler/testData/codegen/box/delegation/delegationDifferentModule2.jvm_abi.txt b/compiler/testData/codegen/box/delegation/delegationDifferentModule2.jvm_abi.txt new file mode 100644 index 00000000000..d6ca050d655 --- /dev/null +++ b/compiler/testData/codegen/box/delegation/delegationDifferentModule2.jvm_abi.txt @@ -0,0 +1,22 @@ +MODULE lib + CLASS D1.class + CLASS METADATA + K1 + --- + K2 + bar + K1 + getBar()I + K2 + --- +MODULE main + CLASS D2.class + CLASS METADATA + K1 + --- + K2 + bar + K1 + getBar()I + K2 + --- diff --git a/compiler/testData/codegen/box/delegation/delegationDifferentModule2.kt b/compiler/testData/codegen/box/delegation/delegationDifferentModule2.kt index fcca854a90d..41535b2852f 100644 --- a/compiler/testData/codegen/box/delegation/delegationDifferentModule2.kt +++ b/compiler/testData/codegen/box/delegation/delegationDifferentModule2.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 + // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/delegation/delegationToMap.jvm_abi.txt b/compiler/testData/codegen/box/delegation/delegationToMap.jvm_abi.txt new file mode 100644 index 00000000000..50105d09990 --- /dev/null +++ b/compiler/testData/codegen/box/delegation/delegationToMap.jvm_abi.txt @@ -0,0 +1,35 @@ +MODULE main + CLASS Test.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/box/delegation/delegationToMap.kt b/compiler/testData/codegen/box/delegation/delegationToMap.kt index 0ea7c3646cf..9b0e5fc650c 100644 --- a/compiler/testData/codegen/box/delegation/delegationToMap.kt +++ b/compiler/testData/codegen/box/delegation/delegationToMap.kt @@ -2,6 +2,8 @@ // TARGET_BACKEND: JVM // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63828 + class MapWithBadDefaults : HashMap() { override fun getOrDefault(key: String, defaultValue: String): String { throw RuntimeException("Shouldn't be executed") diff --git a/compiler/testData/codegen/box/delegation/genericFunctionInGenericInterface.jvm_abi.txt b/compiler/testData/codegen/box/delegation/genericFunctionInGenericInterface.jvm_abi.txt new file mode 100644 index 00000000000..203e0af973e --- /dev/null +++ b/compiler/testData/codegen/box/delegation/genericFunctionInGenericInterface.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS GenericFunctionInGenericInterfaceKt$box$delegated$1.class + CLASS METADATA + FUNCTION fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object; + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/delegation/genericFunctionInGenericInterface.kt b/compiler/testData/codegen/box/delegation/genericFunctionInGenericInterface.kt index 964c34e97c9..533e97e84f7 100644 --- a/compiler/testData/codegen/box/delegation/genericFunctionInGenericInterface.kt +++ b/compiler/testData/codegen/box/delegation/genericFunctionInGenericInterface.kt @@ -1,4 +1,5 @@ // ISSUE: KT-64257 +// JVM_ABI_K1_K2_DIFF: KT-63855 interface Base { fun fold(initial: R, operation: (R, String) -> R): R = operation(initial, "K") diff --git a/compiler/testData/codegen/box/delegation/genericProperty.jvm_abi.txt b/compiler/testData/codegen/box/delegation/genericProperty.jvm_abi.txt new file mode 100644 index 00000000000..d64216a43d3 --- /dev/null +++ b/compiler/testData/codegen/box/delegation/genericProperty.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS A.class + CLASS METADATA + K1 + getId(Ljava/lang/Object;)Ljava/lang/Object; + K2 + --- + K1 + --- + K2 + id diff --git a/compiler/testData/codegen/box/delegation/genericProperty.kt b/compiler/testData/codegen/box/delegation/genericProperty.kt index adeb02c93c5..b1f4b55982e 100644 --- a/compiler/testData/codegen/box/delegation/genericProperty.kt +++ b/compiler/testData/codegen/box/delegation/genericProperty.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828, KT-63855, KT-63871 + interface I { val T.id: T get() = this diff --git a/compiler/testData/codegen/box/delegation/inDataClass.jvm_abi.txt b/compiler/testData/codegen/box/delegation/inDataClass.jvm_abi.txt new file mode 100644 index 00000000000..bf1ef9d664a --- /dev/null +++ b/compiler/testData/codegen/box/delegation/inDataClass.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS C.class + CLASS METADATA + K1 + --- + K2 + bar + K1 + getBar()Ljava/lang/String; + K2 + --- diff --git a/compiler/testData/codegen/box/delegation/inDataClass.kt b/compiler/testData/codegen/box/delegation/inDataClass.kt index e52b44f4565..c01809b7d30 100644 --- a/compiler/testData/codegen/box/delegation/inDataClass.kt +++ b/compiler/testData/codegen/box/delegation/inDataClass.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 + interface A { fun foo(): String val bar: String diff --git a/compiler/testData/codegen/box/delegation/kt54654.jvm_abi.txt b/compiler/testData/codegen/box/delegation/kt54654.jvm_abi.txt new file mode 100644 index 00000000000..8ef2e831545 --- /dev/null +++ b/compiler/testData/codegen/box/delegation/kt54654.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS B.class + CLASS METADATA + K1 + getProperty()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + property diff --git a/compiler/testData/codegen/box/delegation/kt54654.kt b/compiler/testData/codegen/box/delegation/kt54654.kt index 4a617f905a5..d5f39f34089 100644 --- a/compiler/testData/codegen/box/delegation/kt54654.kt +++ b/compiler/testData/codegen/box/delegation/kt54654.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM_IR // ISSUE: KT-54654 +// JVM_ABI_K1_K2_DIFF: KT-63828, KT-63871 fun accessProperty(b: B) = b.property fun accessFunction(b: B) = b.function() diff --git a/compiler/testData/codegen/box/delegation/sealedClass.jvm_abi.txt b/compiler/testData/codegen/box/delegation/sealedClass.jvm_abi.txt new file mode 100644 index 00000000000..465663c1eaa --- /dev/null +++ b/compiler/testData/codegen/box/delegation/sealedClass.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS A$B.class + CLASS METADATA + K1 + getLength()I + K2 + --- + K1 + --- + K2 + length diff --git a/compiler/testData/codegen/box/delegation/sealedClass.kt b/compiler/testData/codegen/box/delegation/sealedClass.kt index cf996b820c4..4a42cc01bb3 100644 --- a/compiler/testData/codegen/box/delegation/sealedClass.kt +++ b/compiler/testData/codegen/box/delegation/sealedClass.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM_IR // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63828 sealed class A : CharSequence { data class B(val c: CharSequence) : A(), CharSequence by c diff --git a/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.jvm_abi.txt b/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.jvm_abi.txt new file mode 100644 index 00000000000..72b9536d628 --- /dev/null +++ b/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS DeprecatedLexicalScope.class + CLASS METADATA + FUNCTION getContributedDescriptors(Ljava/lang/String;)Ljava/lang/String; + Property: class.metadata.function.valueParameters + K1 + (s: kotlin/String) + K2 + (s: kotlin/String /* = ... */) diff --git a/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.kt b/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.kt index 74834745753..520ad965f3b 100644 --- a/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.kt +++ b/compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63879 + // FILE: lib.kt interface ResolutionScope { fun getContributedDescriptors(s: String = "OK"): String diff --git a/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass.jvm_abi.txt b/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass.jvm_abi.txt new file mode 100644 index 00000000000..be7df747034 --- /dev/null +++ b/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass.jvm_abi.txt @@ -0,0 +1,16 @@ +MODULE main + CLASS A$X.class + CLASS METADATA + PROPERTY getZ()LA$X$Inner$Inner2$Inner3; + Property: class.metadata.property.returnType + K1 + A.X.Inner.Inner2.Inner3 + K2 + .A.X.Inner.Inner2.Inner3 + CLASS A$X$Inner$Inner2$Inner3.class + METHOD getY()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- diff --git a/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass.kt b/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass.kt index 4c12585119f..53a4357778b 100644 --- a/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass.kt +++ b/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62714 + enum class A { X { val x = "OK" diff --git a/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass2.jvm_abi.txt b/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass2.jvm_abi.txt new file mode 100644 index 00000000000..4cb3a848c68 --- /dev/null +++ b/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass2.jvm_abi.txt @@ -0,0 +1,19 @@ +MODULE main + CLASS A$X.class + CLASS METADATA + K1 + --- + K2 + getAnonObject()LA$X$anonObject$1; + K1 + getAnonObject()Ljava/lang/Object; + K2 + --- + K1 + --- + K2 + getAnonObject()LA$X$anonObject$1; [public, final] + K1 + getAnonObject()Ljava/lang/Object; [public, final] + K2 + --- diff --git a/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass2.kt b/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass2.kt index 958b0be830f..4fe4b5cb274 100644 --- a/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass2.kt +++ b/compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass2.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62775, KT-63880 + enum class A { X { val k = "K" diff --git a/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor1.jvm_abi.txt b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor1.jvm_abi.txt new file mode 100644 index 00000000000..cbce615a67b --- /dev/null +++ b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test$FOO.class + CLASS METADATA + PROPERTY getZ()LTest$FOO$Inner; + Property: class.metadata.property.returnType + K1 + Test.FOO.Inner + K2 + .Test.FOO.Inner diff --git a/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor1.kt b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor1.kt index 135eeffae89..6d2f52da805 100644 --- a/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor1.kt +++ b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor1.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63880 interface IFoo { fun foo(): String } diff --git a/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor2.jvm_abi.txt b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor2.jvm_abi.txt new file mode 100644 index 00000000000..38da5b8208f --- /dev/null +++ b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor2.jvm_abi.txt @@ -0,0 +1,16 @@ +MODULE main + CLASS Test$FOO.class + CLASS METADATA + PROPERTY getZ()LTest$FOO$Inner; + Property: class.metadata.property.returnType + K1 + Test.FOO.Inner + K2 + .Test.FOO.Inner + CLASS Test$FOO$Inner.class + METHOD getFooFoo()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- diff --git a/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor2.kt b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor2.kt index 7745c582462..3d50c928dc6 100644 --- a/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor2.kt +++ b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor2.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62714, KT-63880 + interface IFoo { fun foo(): String } diff --git a/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor3.jvm_abi.txt b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor3.jvm_abi.txt new file mode 100644 index 00000000000..0afe289a560 --- /dev/null +++ b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor3.jvm_abi.txt @@ -0,0 +1,16 @@ +MODULE main + CLASS Test$FOO.class + CLASS METADATA + PROPERTY getZ()LTest$FOO$Inner; + Property: class.metadata.property.returnType + K1 + Test.FOO.Inner + K2 + .Test.FOO.Inner + CLASS Test$FOO$Inner.class + METHOD foo()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- diff --git a/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor3.kt b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor3.kt index 635103b8b02..555e675b167 100644 --- a/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor3.kt +++ b/compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor3.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62714, KT-63880 + interface IFoo { fun foo(): String } diff --git a/compiler/testData/codegen/box/enum/innerClassInEnumEntryClass.jvm_abi.txt b/compiler/testData/codegen/box/enum/innerClassInEnumEntryClass.jvm_abi.txt new file mode 100644 index 00000000000..a81f1c60653 --- /dev/null +++ b/compiler/testData/codegen/box/enum/innerClassInEnumEntryClass.jvm_abi.txt @@ -0,0 +1,16 @@ +MODULE main + CLASS A$X.class + CLASS METADATA + PROPERTY getZ()LA$X$Inner; + Property: class.metadata.property.returnType + K1 + A.X.Inner + K2 + .A.X.Inner + CLASS A$X$Inner.class + METHOD getY()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- diff --git a/compiler/testData/codegen/box/enum/innerClassInEnumEntryClass.kt b/compiler/testData/codegen/box/enum/innerClassInEnumEntryClass.kt index 154e0a4539f..5772c77580a 100644 --- a/compiler/testData/codegen/box/enum/innerClassInEnumEntryClass.kt +++ b/compiler/testData/codegen/box/enum/innerClassInEnumEntryClass.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62714 + enum class A { X { val x = "OK" diff --git a/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass.jvm_abi.txt b/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass.jvm_abi.txt new file mode 100644 index 00000000000..c39c62b4759 --- /dev/null +++ b/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass.jvm_abi.txt @@ -0,0 +1,16 @@ +MODULE main + CLASS A$X.class + CLASS METADATA + PROPERTY getZ()LA$X$Inner; + Property: class.metadata.property.returnType + K1 + A.X.Inner + K2 + .A.X.Inner + CLASS A$X$Inner.class + METHOD foo()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- diff --git a/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass.kt b/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass.kt index 8e561ccd6d1..edd98d378e0 100644 --- a/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass.kt +++ b/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62714, KT-63880 + enum class A { X { val x = "OK" diff --git a/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.jvm_abi.txt b/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.jvm_abi.txt new file mode 100644 index 00000000000..c39c62b4759 --- /dev/null +++ b/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.jvm_abi.txt @@ -0,0 +1,16 @@ +MODULE main + CLASS A$X.class + CLASS METADATA + PROPERTY getZ()LA$X$Inner; + Property: class.metadata.property.returnType + K1 + A.X.Inner + K2 + .A.X.Inner + CLASS A$X$Inner.class + METHOD foo()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- diff --git a/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.kt b/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.kt index 38a1ffc04f6..d3fbf3bd69e 100644 --- a/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.kt +++ b/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62714, KT-63880 + enum class A { X { val x = "OK" diff --git a/compiler/testData/codegen/box/enum/kt44744_innerClass.jvm_abi.txt b/compiler/testData/codegen/box/enum/kt44744_innerClass.jvm_abi.txt new file mode 100644 index 00000000000..1b686442480 --- /dev/null +++ b/compiler/testData/codegen/box/enum/kt44744_innerClass.jvm_abi.txt @@ -0,0 +1,13 @@ +MODULE main + CLASS En$TEST$Nested.class + METHOD foo(LEn;)Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- + Annotation: method.parameters.invisibleParameterAnnotations.p0 + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- diff --git a/compiler/testData/codegen/box/enum/kt44744_innerClass.kt b/compiler/testData/codegen/box/enum/kt44744_innerClass.kt index 63fd4b49873..b46533d2dc4 100644 --- a/compiler/testData/codegen/box/enum/kt44744_innerClass.kt +++ b/compiler/testData/codegen/box/enum/kt44744_innerClass.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62714 + interface IFoo { fun foo(e: En): String } diff --git a/compiler/testData/codegen/box/enum/kt7257_anonObjectInit.jvm_abi.txt b/compiler/testData/codegen/box/enum/kt7257_anonObjectInit.jvm_abi.txt new file mode 100644 index 00000000000..4b2350fca93 --- /dev/null +++ b/compiler/testData/codegen/box/enum/kt7257_anonObjectInit.jvm_abi.txt @@ -0,0 +1,19 @@ +MODULE main + CLASS X$B.class + CLASS METADATA + K1 + --- + K2 + getAnonObject()LX$B$anonObject$1; + K1 + getAnonObject()Ljava/lang/Object; + K2 + --- + K1 + --- + K2 + getAnonObject()LX$B$anonObject$1; [public, final] + K1 + getAnonObject()Ljava/lang/Object; [public, final] + K2 + --- diff --git a/compiler/testData/codegen/box/enum/kt7257_anonObjectInit.kt b/compiler/testData/codegen/box/enum/kt7257_anonObjectInit.kt index 2cc9963d5c6..8f0d9a7ccb6 100644 --- a/compiler/testData/codegen/box/enum/kt7257_anonObjectInit.kt +++ b/compiler/testData/codegen/box/enum/kt7257_anonObjectInit.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62775 + enum class X { B { val value2 = "K" diff --git a/compiler/testData/codegen/box/enum/kt7257_anonObjectMethod.jvm_abi.txt b/compiler/testData/codegen/box/enum/kt7257_anonObjectMethod.jvm_abi.txt new file mode 100644 index 00000000000..4b2350fca93 --- /dev/null +++ b/compiler/testData/codegen/box/enum/kt7257_anonObjectMethod.jvm_abi.txt @@ -0,0 +1,19 @@ +MODULE main + CLASS X$B.class + CLASS METADATA + K1 + --- + K2 + getAnonObject()LX$B$anonObject$1; + K1 + getAnonObject()Ljava/lang/Object; + K2 + --- + K1 + --- + K2 + getAnonObject()LX$B$anonObject$1; [public, final] + K1 + getAnonObject()Ljava/lang/Object; [public, final] + K2 + --- diff --git a/compiler/testData/codegen/box/enum/kt7257_anonObjectMethod.kt b/compiler/testData/codegen/box/enum/kt7257_anonObjectMethod.kt index 4f5e5ce5bda..ae661034388 100644 --- a/compiler/testData/codegen/box/enum/kt7257_anonObjectMethod.kt +++ b/compiler/testData/codegen/box/enum/kt7257_anonObjectMethod.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62775 + enum class X { B { val value2 = "K" diff --git a/compiler/testData/codegen/box/enum/kt7257_boundReference1.jvm_abi.txt b/compiler/testData/codegen/box/enum/kt7257_boundReference1.jvm_abi.txt new file mode 100644 index 00000000000..860f2812a92 --- /dev/null +++ b/compiler/testData/codegen/box/enum/kt7257_boundReference1.jvm_abi.txt @@ -0,0 +1,16 @@ +MODULE main + CLASS X$B.class + CLASS METADATA + PROPERTY getInner()LX$B$Inner; + Property: class.metadata.property.returnType + K1 + X.B.Inner + K2 + .X.B.Inner + CLASS X$B$Inner.class + METHOD foo()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- diff --git a/compiler/testData/codegen/box/enum/kt7257_boundReference1.kt b/compiler/testData/codegen/box/enum/kt7257_boundReference1.kt index 071d5fef979..1c7142b1a8b 100644 --- a/compiler/testData/codegen/box/enum/kt7257_boundReference1.kt +++ b/compiler/testData/codegen/box/enum/kt7257_boundReference1.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-62714, KT-63880 enum class X { B { diff --git a/compiler/testData/codegen/box/enum/kt9711_2.jvm_abi.txt b/compiler/testData/codegen/box/enum/kt9711_2.jvm_abi.txt new file mode 100644 index 00000000000..0c9bf7086da --- /dev/null +++ b/compiler/testData/codegen/box/enum/kt9711_2.jvm_abi.txt @@ -0,0 +1,8 @@ +MODULE main + CLASS IssueState$FIXED$D.class + METHOD getK()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- diff --git a/compiler/testData/codegen/box/enum/kt9711_2.kt b/compiler/testData/codegen/box/enum/kt9711_2.kt index dcad91e092b..a209ef94d6f 100644 --- a/compiler/testData/codegen/box/enum/kt9711_2.kt +++ b/compiler/testData/codegen/box/enum/kt9711_2.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62714 + enum class IssueState { FIXED { diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionLambdaIndy.jvm_abi.txt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionLambdaIndy.jvm_abi.txt new file mode 100644 index 00000000000..d1a089db88f --- /dev/null +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionLambdaIndy.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS ContextAndExtensionLambdaIndyKt.class + PACKAGE METADATA + FUNCTION accept(Lkotlin/jvm/functions/Function3;)I + Property: class.metadata.function.valueParameters + K1 + (block: @kotlin/ExtensionFunctionType @kotlin/ContextFunctionTypeParams(count = 1) kotlin/Function3) + K2 + (block: @kotlin/ContextFunctionTypeParams(count = 1) @kotlin/ExtensionFunctionType kotlin/Function3) + PROPERTY getFoo()Lkotlin/jvm/functions/Function3; + Property: class.metadata.property.returnType + K1 + @kotlin/ExtensionFunctionType @kotlin/ContextFunctionTypeParams(count = 1) kotlin/Function3 + K2 + @kotlin/ContextFunctionTypeParams(count = 1) @kotlin/ExtensionFunctionType kotlin/Function3 diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionLambdaIndy.kt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionLambdaIndy.kt index a60e4f34528..1fa594aaa2a 100644 --- a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionLambdaIndy.kt +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionLambdaIndy.kt @@ -2,6 +2,7 @@ // TARGET_BACKEND: JVM_IR // JVM_TARGET: 1.8 // LAMBDAS: INDY +// JVM_ABI_K1_K2_DIFF: different order of function annotations class Ctx { val k = "__K__" diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualInlineCall.jvm_abi.txt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualInlineCall.jvm_abi.txt new file mode 100644 index 00000000000..000f84b1ed5 --- /dev/null +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualInlineCall.jvm_abi.txt @@ -0,0 +1,61 @@ +MODULE main + CLASS ContextualInlineCallKt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + contextualInlineCall.kt + Kotlin + *S Kotlin + *F + + 1 contextualInlineCall.kt + ContextualInlineCallKt + *L + 1#1,40:1 + 11#1:41 + 14#1:42 + 17#1:43 + 20#1:44 + 26#1:45 + 25#1,2:46 + *S KotlinDebug + *F + + 1 contextualInlineCall.kt + ContextualInlineCallKt + *L + 30#1:41 + 31#1:42 + 32#1:43 + 33#1:44 + 35#1:45 + 36#1:46,2 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + contextualInlineCall.kt + Kotlin + *S Kotlin + *F + + 1 contextualInlineCall.kt + ContextualInlineCallKt + *L + 1#1,40:1 + 11#1:41 + 14#1:42 + 17#1:43 + 20#1:44 + 26#1:45 + 24#1,3:46 + *S KotlinDebug + *F + + 1 contextualInlineCall.kt + ContextualInlineCallKt + *L + 30#1:41 + 31#1:42 + 32#1:43 + 33#1:44 + 35#1:45 + 36#1:46,3 + *E + } ) diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualInlineCall.kt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualInlineCall.kt index e974977a0ee..1e53b193bb5 100644 --- a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualInlineCall.kt +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualInlineCall.kt @@ -1,6 +1,7 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR // KT-51271 +// JVM_ABI_K1_K2_DIFF: KT-62464 class Context { fun c() = 1 diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/functionalType.jvm_abi.txt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/functionalType.jvm_abi.txt new file mode 100644 index 00000000000..921a68993d4 --- /dev/null +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/functionalType.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS FunctionalTypeKt.class + PACKAGE METADATA + FUNCTION f(LO;LK;Lkotlin/jvm/functions/Function3;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (g: @kotlin/ExtensionFunctionType @kotlin/ContextFunctionTypeParams(count = 1) kotlin/Function3) + K2 + (g: @kotlin/ContextFunctionTypeParams(count = 1) @kotlin/ExtensionFunctionType kotlin/Function3) diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/functionalType.kt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/functionalType.kt index 31534e1fac5..d06dc020946 100644 --- a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/functionalType.kt +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/functionalType.kt @@ -1,5 +1,6 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR +// JVM_ABI_K1_K2_DIFF: different order of function annotations class Param class O { diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51475.jvm_abi.txt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51475.jvm_abi.txt new file mode 100644 index 00000000000..578495cb4ff --- /dev/null +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51475.jvm_abi.txt @@ -0,0 +1,41 @@ +MODULE main + CLASS Smth.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt51475.kt + Kotlin + *S Kotlin + *F + + 1 kt51475.kt + Smth + *L + 1#1,28:1 + 18#1,4:29 + *S KotlinDebug + *F + + 1 kt51475.kt + Smth + *L + 13#1:29,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt51475.kt + Kotlin + *S Kotlin + *F + + 1 kt51475.kt + Smth + *L + 1#1,28:1 + 21#1:29 + *S KotlinDebug + *F + + 1 kt51475.kt + Smth + *L + 13#1:29 + *E + } ) diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51475.kt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51475.kt index 3ac77bd472b..c5ee6958407 100644 --- a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51475.kt +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51475.kt @@ -2,6 +2,7 @@ // TARGET_BACKEND: JVM_IR // WITH_STDLIB // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62464 import kotlin.contracts.* diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52213.jvm_abi.txt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52213.jvm_abi.txt new file mode 100644 index 00000000000..cc8cf5310df --- /dev/null +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52213.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Kt52213Kt.class + PACKAGE METADATA + FUNCTION execute(Lkotlin/jvm/functions/Function4;)V + Property: class.metadata.function.valueParameters + K1 + (block: @kotlin/ExtensionFunctionType @kotlin/ContextFunctionTypeParams(count = 1) suspend kotlin/Function4, kotlin/Any?>) + K2 + (block: @kotlin/ContextFunctionTypeParams(count = 1) @kotlin/ExtensionFunctionType suspend kotlin/Function4, kotlin/Any?>) diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52213.kt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52213.kt index 4a864a75750..9def4b25de9 100644 --- a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52213.kt +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52213.kt @@ -2,6 +2,7 @@ // TARGET_BACKEND: JVM_IR // WITH_STDLIB // WITH_COROUTINES +// JVM_ABI_K1_K2_DIFF: different order of function annotations interface Context diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53551.jvm_abi.txt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53551.jvm_abi.txt new file mode 100644 index 00000000000..ea9b1ecbe44 --- /dev/null +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53551.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Kt53551Kt.class + PACKAGE METADATA + FUNCTION withFooBar(Lkotlin/jvm/functions/Function4;)V + Property: class.metadata.function.valueParameters + K1 + (block: @kotlin/ExtensionFunctionType @kotlin/ContextFunctionTypeParams(count = 2) suspend kotlin/Function4, kotlin/Any?>) + K2 + (block: @kotlin/ContextFunctionTypeParams(count = 2) @kotlin/ExtensionFunctionType suspend kotlin/Function4, kotlin/Any?>) diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53551.kt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53551.kt index 7a122c23be5..baf17b051b9 100644 --- a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53551.kt +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53551.kt @@ -2,6 +2,7 @@ // TARGET_BACKEND: JVM_IR // WITH_STDLIB // WITH_COROUTINES +// JVM_ABI_K1_K2_DIFF: different order of function annotations import helpers.* import kotlin.coroutines.* diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt58476.jvm_abi.txt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt58476.jvm_abi.txt new file mode 100644 index 00000000000..92946b7b3c8 --- /dev/null +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt58476.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Kt58476Kt.class + PACKAGE METADATA + FUNCTION caller(Lkotlin/jvm/functions/Function3;)LMyOutput; + Property: class.metadata.function.valueParameters + K1 + (block: @kotlin/ExtensionFunctionType @kotlin/ContextFunctionTypeParams(count = 1) suspend kotlin/Function3, kotlin/Any?>) + K2 + (block: @kotlin/ContextFunctionTypeParams(count = 1) @kotlin/ExtensionFunctionType suspend kotlin/Function3, kotlin/Any?>) diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt58476.kt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt58476.kt index 244206c3c9f..e80efc6002c 100644 --- a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt58476.kt +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt58476.kt @@ -2,6 +2,7 @@ // TARGET_BACKEND: JVM_IR // WITH_STDLIB // WITH_COROUTINES +// JVM_ABI_K1_K2_DIFF: different order of function annotations class InContext class MyReciever { diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusAssign.jvm_abi.txt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusAssign.jvm_abi.txt new file mode 100644 index 00000000000..cbc04c691b6 --- /dev/null +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusAssign.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS EntityContext.class + CLASS METADATA + PROPERTY getD()[D + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/DoubleArray + K2 + value: kotlin/DoubleArray + PROPERTY getSize()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusAssign.kt b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusAssign.kt index ff0666dc988..2b4b681c972 100644 --- a/compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusAssign.kt +++ b/compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusAssign.kt @@ -1,6 +1,8 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 + @file:Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS") diff --git a/compiler/testData/codegen/box/extensionFunctions/kt865.jvm_abi.txt b/compiler/testData/codegen/box/extensionFunctions/kt865.jvm_abi.txt new file mode 100644 index 00000000000..9e78bf6cf1a --- /dev/null +++ b/compiler/testData/codegen/box/extensionFunctions/kt865.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Template.class + CLASS METADATA + PROPERTY getCollected()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/extensionFunctions/kt865.kt b/compiler/testData/codegen/box/extensionFunctions/kt865.kt index dd741dcef83..1cc43d85f2a 100644 --- a/compiler/testData/codegen/box/extensionFunctions/kt865.kt +++ b/compiler/testData/codegen/box/extensionFunctions/kt865.kt @@ -1,4 +1,5 @@ // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63864 class Template() { val collected = ArrayList() diff --git a/compiler/testData/codegen/box/fir/Fir2IrClassifierStorage.jvm_abi.txt b/compiler/testData/codegen/box/fir/Fir2IrClassifierStorage.jvm_abi.txt new file mode 100644 index 00000000000..2c9ab7f5d40 --- /dev/null +++ b/compiler/testData/codegen/box/fir/Fir2IrClassifierStorage.jvm_abi.txt @@ -0,0 +1,19 @@ +MODULE main + CLASS Fir2IrClassifierStorage.class + CLASS METADATA + K1 + --- + K2 + classifierStorage + K1 + getClassifierStorage()LFir2IrClassifierStorage; + K2 + --- + K1 + getSession()LFirSession; + K2 + --- + K1 + --- + K2 + session diff --git a/compiler/testData/codegen/box/fir/Fir2IrClassifierStorage.kt b/compiler/testData/codegen/box/fir/Fir2IrClassifierStorage.kt index 9eae51c0c5c..7a532c2e549 100644 --- a/compiler/testData/codegen/box/fir/Fir2IrClassifierStorage.kt +++ b/compiler/testData/codegen/box/fir/Fir2IrClassifierStorage.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63828 class FirSession(val name: String) diff --git a/compiler/testData/codegen/box/fir/JKEnumConstant.jvm_abi.txt b/compiler/testData/codegen/box/fir/JKEnumConstant.jvm_abi.txt new file mode 100644 index 00000000000..b84f54b6c1b --- /dev/null +++ b/compiler/testData/codegen/box/fir/JKEnumConstant.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS JKDeclaration.class + CLASS METADATA + K1 + getPsi()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + psi diff --git a/compiler/testData/codegen/box/fir/JKEnumConstant.kt b/compiler/testData/codegen/box/fir/JKEnumConstant.kt index 3e6c3f2999a..85d2937c517 100644 --- a/compiler/testData/codegen/box/fir/JKEnumConstant.kt +++ b/compiler/testData/codegen/box/fir/JKEnumConstant.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM_IR // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63828 interface PsiOwner { var psi: String? diff --git a/compiler/testData/codegen/box/fir/LookupTags.jvm_abi.txt b/compiler/testData/codegen/box/fir/LookupTags.jvm_abi.txt new file mode 100644 index 00000000000..e2fab9316b8 --- /dev/null +++ b/compiler/testData/codegen/box/fir/LookupTags.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ConeClassLikeLookupTagImpl.class + CLASS METADATA + PROPERTY getStatus()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/fir/LookupTags.kt b/compiler/testData/codegen/box/fir/LookupTags.kt index 4a22d1e8754..6f50d1932a0 100644 --- a/compiler/testData/codegen/box/fir/LookupTags.kt +++ b/compiler/testData/codegen/box/fir/LookupTags.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63984 abstract class ConeClassLikeLookupTag { abstract val status: String diff --git a/compiler/testData/codegen/box/fir/Mockito.jvm_abi.txt b/compiler/testData/codegen/box/fir/Mockito.jvm_abi.txt new file mode 100644 index 00000000000..5100f0ac5c1 --- /dev/null +++ b/compiler/testData/codegen/box/fir/Mockito.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS TestKt$inOrder$1.class + CLASS METADATA + FUNCTION verify(Ljava/lang/Object;)Ljava/lang/Object; + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/fir/Mockito.kt b/compiler/testData/codegen/box/fir/Mockito.kt index 7064770e70a..f6b793b2e16 100644 --- a/compiler/testData/codegen/box/fir/Mockito.kt +++ b/compiler/testData/codegen/box/fir/Mockito.kt @@ -2,6 +2,7 @@ // TARGET_BACKEND: JVM // WITH_STDLIB // IGNORE_INLINER: IR +// JVM_ABI_K1_K2_DIFF: KT-63855 // FILE: InOrder.java diff --git a/compiler/testData/codegen/box/fir/NameHighlighter.jvm_abi.txt b/compiler/testData/codegen/box/fir/NameHighlighter.jvm_abi.txt new file mode 100644 index 00000000000..be3f1c438da --- /dev/null +++ b/compiler/testData/codegen/box/fir/NameHighlighter.jvm_abi.txt @@ -0,0 +1,14 @@ +MODULE lib + CLASS NameHighlighter.class + CLASS METADATA + PROPERTY getNamesHighlightingEnabled()Z + Property: class.metadata.property.setterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Boolean + K2 + --- diff --git a/compiler/testData/codegen/box/fir/NameHighlighter.kt b/compiler/testData/codegen/box/fir/NameHighlighter.kt index 83a2488e240..e78ddfa45b7 100644 --- a/compiler/testData/codegen/box/fir/NameHighlighter.kt +++ b/compiler/testData/codegen/box/fir/NameHighlighter.kt @@ -1,4 +1,6 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63853, KT-63854 + // MODULE: lib // FILE: NameHighlighter.kt diff --git a/compiler/testData/codegen/box/fir/TypeParameterInNestedClass.jvm_abi.txt b/compiler/testData/codegen/box/fir/TypeParameterInNestedClass.jvm_abi.txt new file mode 100644 index 00000000000..8ee32815eec --- /dev/null +++ b/compiler/testData/codegen/box/fir/TypeParameterInNestedClass.jvm_abi.txt @@ -0,0 +1,13 @@ +MODULE main + CLASS Retry$withExponentialBackoff$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + METHOD invoke(Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + Property: method.signature + K1 + (Lkotlin/coroutines/Continuation<-TW;>;)Ljava/lang/Object; + K2 + (Lkotlin/coroutines/Continuation<-TB;>;)Ljava/lang/Object; diff --git a/compiler/testData/codegen/box/fir/TypeParameterInNestedClass.kt b/compiler/testData/codegen/box/fir/TypeParameterInNestedClass.kt index 4d6ad22de06..34d8d5ac934 100644 --- a/compiler/testData/codegen/box/fir/TypeParameterInNestedClass.kt +++ b/compiler/testData/codegen/box/fir/TypeParameterInNestedClass.kt @@ -3,6 +3,8 @@ // TARGET_BACKEND: JVM_IR // ISSUE: KT-58008 +// JVM_ABI_K1_K2_DIFF: KT-62793 + import kotlin.coroutines.* fun runBlocking(c: suspend () -> T): T { diff --git a/compiler/testData/codegen/box/fir/TypeParameterInNestedClass2.jvm_abi.txt b/compiler/testData/codegen/box/fir/TypeParameterInNestedClass2.jvm_abi.txt new file mode 100644 index 00000000000..817d04010b0 --- /dev/null +++ b/compiler/testData/codegen/box/fir/TypeParameterInNestedClass2.jvm_abi.txt @@ -0,0 +1,13 @@ +MODULE main + CLASS Owner$withExponentialBackoff$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + METHOD invoke(Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + Property: method.signature + K1 + (Lkotlin/coroutines/Continuation<-TW;>;)Ljava/lang/Object; + K2 + (Lkotlin/coroutines/Continuation<-TB;>;)Ljava/lang/Object; diff --git a/compiler/testData/codegen/box/fir/TypeParameterInNestedClass2.kt b/compiler/testData/codegen/box/fir/TypeParameterInNestedClass2.kt index 7e10603e51d..196c4a43741 100644 --- a/compiler/testData/codegen/box/fir/TypeParameterInNestedClass2.kt +++ b/compiler/testData/codegen/box/fir/TypeParameterInNestedClass2.kt @@ -3,6 +3,8 @@ // TARGET_BACKEND: JVM_IR // ISSUE: KT-58008 +// JVM_ABI_K1_K2_DIFF: KT-62793 + import kotlin.coroutines.* fun runBlocking(c: suspend () -> T): T { diff --git a/compiler/testData/codegen/box/fir/externalInDependency.jvm_abi.txt b/compiler/testData/codegen/box/fir/externalInDependency.jvm_abi.txt new file mode 100644 index 00000000000..9bcc27cd280 --- /dev/null +++ b/compiler/testData/codegen/box/fir/externalInDependency.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE m1 + CLASS O.class + CLASS METADATA + PROPERTY getProp()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/fir/externalInDependency.kt b/compiler/testData/codegen/box/fir/externalInDependency.kt index fe0cfc13a25..c2b60bd0a3f 100644 --- a/compiler/testData/codegen/box/fir/externalInDependency.kt +++ b/compiler/testData/codegen/box/fir/externalInDependency.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM_IR +// JVM_ABI_K1_K2_DIFF: KT-63984 // MODULE: m1 // FILE: f1.kt diff --git a/compiler/testData/codegen/box/fir/starProjectionLambdaNullReturn.jvm_abi.txt b/compiler/testData/codegen/box/fir/starProjectionLambdaNullReturn.jvm_abi.txt new file mode 100644 index 00000000000..4249a5f80b9 --- /dev/null +++ b/compiler/testData/codegen/box/fir/starProjectionLambdaNullReturn.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS StarProjectionLambdaNullReturnKt$foo$1.class + Property: class.signature + K1 + NULL + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0; + K1 + invoke()Ljava/lang/Void; [public, final] + K2 + --- + METHOD invoke()Ljava/lang/Object; + Property: method.access + K1 + 1000001000001 [public, bridge, synthetic] + K2 + 10001 [public, final] diff --git a/compiler/testData/codegen/box/fir/starProjectionLambdaNullReturn.kt b/compiler/testData/codegen/box/fir/starProjectionLambdaNullReturn.kt index 4bc2b4d1308..8e3ce2169e6 100644 --- a/compiler/testData/codegen/box/fir/starProjectionLambdaNullReturn.kt +++ b/compiler/testData/codegen/box/fir/starProjectionLambdaNullReturn.kt @@ -1,5 +1,6 @@ // ISSUE: KT-64261 // DUMP_IR +// JVM_ABI_K1_K2_DIFF: KT-62855, KT-62550 interface I { fun foo(func: () -> T?) } diff --git a/compiler/testData/codegen/box/fullJdk/native/nativePropertyAccessors.jvm_abi.txt b/compiler/testData/codegen/box/fullJdk/native/nativePropertyAccessors.jvm_abi.txt new file mode 100644 index 00000000000..7f28519098a --- /dev/null +++ b/compiler/testData/codegen/box/fullJdk/native/nativePropertyAccessors.jvm_abi.txt @@ -0,0 +1,25 @@ +MODULE main + CLASS C.class + CLASS METADATA + PROPERTY getDefaultSetter()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int + CLASS C$Companion.class + CLASS METADATA + PROPERTY getDefaultSetter()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int + CLASS NativePropertyAccessorsKt.class + PACKAGE METADATA + PROPERTY getDefaultSetter()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/fullJdk/native/nativePropertyAccessors.kt b/compiler/testData/codegen/box/fullJdk/native/nativePropertyAccessors.kt index a73f0b5b4dc..6963738c827 100644 --- a/compiler/testData/codegen/box/fullJdk/native/nativePropertyAccessors.kt +++ b/compiler/testData/codegen/box/fullJdk/native/nativePropertyAccessors.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // IGNORE_BACKEND: ANDROID +// JVM_ABI_K1_K2_DIFF: KT-63984 // FULL_JDK diff --git a/compiler/testData/codegen/box/fullJdk/regressions/kt15112.jvm_abi.txt b/compiler/testData/codegen/box/fullJdk/regressions/kt15112.jvm_abi.txt new file mode 100644 index 00000000000..ddd96a8d205 --- /dev/null +++ b/compiler/testData/codegen/box/fullJdk/regressions/kt15112.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Kt15112Kt.class + PACKAGE METADATA + PROPERTY getCompiledClasses()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/fullJdk/regressions/kt15112.kt b/compiler/testData/codegen/box/fullJdk/regressions/kt15112.kt index 08c3eb38569..39e5470854c 100644 --- a/compiler/testData/codegen/box/fullJdk/regressions/kt15112.kt +++ b/compiler/testData/codegen/box/fullJdk/regressions/kt15112.kt @@ -1,6 +1,7 @@ // FULL_JDK // WITH_STDLIB // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63864 import java.util.concurrent.locks.ReentrantReadWriteLock import kotlin.concurrent.read diff --git a/compiler/testData/codegen/box/functions/bigArity/nestedBigArityFunCalls.jvm_abi.txt b/compiler/testData/codegen/box/functions/bigArity/nestedBigArityFunCalls.jvm_abi.txt new file mode 100644 index 00000000000..5427c93800e --- /dev/null +++ b/compiler/testData/codegen/box/functions/bigArity/nestedBigArityFunCalls.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS NestedBigArityFunCallsKt.class + PACKAGE METADATA + FUNCTION test(Lkotlin/jvm/functions/FunctionN;)Ljava/lang/String; + Property: class.metadata.function.valueParameters + K1 + (f: kotlin/Function25, kotlin/String> /* = F^ /* = F^ */> */) + K2 + (f: kotlin/Function25 /* = F^ */, kotlin/String> /* = F^ /* = F^ */> */) diff --git a/compiler/testData/codegen/box/functions/bigArity/nestedBigArityFunCalls.kt b/compiler/testData/codegen/box/functions/bigArity/nestedBigArityFunCalls.kt index 7a80c893d32..1633b0a3f25 100644 --- a/compiler/testData/codegen/box/functions/bigArity/nestedBigArityFunCalls.kt +++ b/compiler/testData/codegen/box/functions/bigArity/nestedBigArityFunCalls.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63877 interface A object O : A diff --git a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.jvm_abi.txt b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.jvm_abi.txt new file mode 100644 index 00000000000..bc4e67343fa --- /dev/null +++ b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS MC.class + CLASS METADATA + K1 + --- + K2 + bar + K1 + getBar()Ljava/lang/String; + K2 + --- diff --git a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.kt b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.kt index d91f3278bcb..fecdd0f8b39 100644 --- a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.kt +++ b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.kt @@ -2,6 +2,8 @@ // DUMP_IR // IGNORE_CODEGEN_WITH_IR_FAKE_OVERRIDE_GENERATION: extra overridden symbols for declarations in MyMutableList. // ^ This is most likely not a problem, and IR dump can be changed once IR fake override generation is enabled by default. +// JVM_ABI_K1_K2_DIFF: KT-63828 + interface MyCollection { fun foo(): E1 diff --git a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.jvm_abi.txt b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.jvm_abi.txt new file mode 100644 index 00000000000..bc4e67343fa --- /dev/null +++ b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS MC.class + CLASS METADATA + K1 + --- + K2 + bar + K1 + getBar()Ljava/lang/String; + K2 + --- diff --git a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.kt b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.kt index e184dd53f8f..c09077d387b 100644 --- a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.kt +++ b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.kt @@ -2,6 +2,7 @@ // DUMP_IR // IGNORE_CODEGEN_WITH_IR_FAKE_OVERRIDE_GENERATION: extra overridden symbols for declarations in MyMutableList. // ^ This is most likely not a problem, and IR dump can be changed once IR fake override generation is enabled by default. +// JVM_ABI_K1_K2_DIFF: KT-63828 interface MyCollection { fun foo(): String diff --git a/compiler/testData/codegen/box/functions/invoke/kt3190.jvm_abi.txt b/compiler/testData/codegen/box/functions/invoke/kt3190.jvm_abi.txt new file mode 100644 index 00000000000..1df1f3f0e57 --- /dev/null +++ b/compiler/testData/codegen/box/functions/invoke/kt3190.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Cached.class + CLASS METADATA + PROPERTY getStore()Ljava/util/HashMap; + Property: class.metadata.property.returnType + K1 + java/util/HashMap /* = kotlin/collections/HashMap^ */ + K2 + java/util/HashMap diff --git a/compiler/testData/codegen/box/functions/invoke/kt3190.kt b/compiler/testData/codegen/box/functions/invoke/kt3190.kt index 47860503093..e19b52e0ab7 100644 --- a/compiler/testData/codegen/box/functions/invoke/kt3190.kt +++ b/compiler/testData/codegen/box/functions/invoke/kt3190.kt @@ -3,6 +3,7 @@ //KT-3190 Compiler crash if function called 'invoke' calls a closure // IGNORE_BACKEND: JS // JS backend does not allow to implement Function{N} interfaces +// JVM_ABI_K1_K2_DIFF: KT-63864 fun box(): String { val test = Cached({ it + 2 }) diff --git a/compiler/testData/codegen/box/inference/builderInference/capturedTypes.jvm_abi.txt b/compiler/testData/codegen/box/inference/builderInference/capturedTypes.jvm_abi.txt new file mode 100644 index 00000000000..83e4946bc08 --- /dev/null +++ b/compiler/testData/codegen/box/inference/builderInference/capturedTypes.jvm_abi.txt @@ -0,0 +1,13 @@ +MODULE main + CLASS MainKt$box$2.class + Property: class.signature + K1 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function1;Lkotlin/Unit;>; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function1;Lkotlin/Unit;>; + METHOD invoke(LTestInterface;)V + Property: method.signature + K1 + (LTestInterface;)V + K2 + (LTestInterface;)V diff --git a/compiler/testData/codegen/box/inference/builderInference/capturedTypes.kt b/compiler/testData/codegen/box/inference/builderInference/capturedTypes.kt index ced2a8de15f..2828212365e 100644 --- a/compiler/testData/codegen/box/inference/builderInference/capturedTypes.kt +++ b/compiler/testData/codegen/box/inference/builderInference/capturedTypes.kt @@ -1,5 +1,6 @@ // !LANGUAGE: +UnrestrictedBuilderInference // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-61909 // FILE: main.kt import kotlin.experimental.ExperimentalTypeInference diff --git a/compiler/testData/codegen/box/inference/capturedTypesSubstitutionIntoAbbreviation.jvm_abi.txt b/compiler/testData/codegen/box/inference/capturedTypesSubstitutionIntoAbbreviation.jvm_abi.txt new file mode 100644 index 00000000000..ba82092a2fc --- /dev/null +++ b/compiler/testData/codegen/box/inference/capturedTypesSubstitutionIntoAbbreviation.jvm_abi.txt @@ -0,0 +1,185 @@ +MODULE main + CLASS Tag.class + CLASS METADATA + CONSTRUCTOR (Lkotlin/jvm/functions/Function1;)V + Property: class.metadata.constructor.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */) + K2 + (action: kotlin/Function1<@kotlin/UnsafeVariance T#0, kotlin/Unit> /* = Action^ */) + FUNCTION copy(Lkotlin/jvm/functions/Function1;)LTag; + Property: class.metadata.function.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */ /* = ... */) + K2 + (action: kotlin/Function1<@kotlin/UnsafeVariance T#0, kotlin/Unit> /* = Action^ */ /* = ... */) + PROPERTY getAction()Lkotlin/jvm/functions/Function1; + Property: class.metadata.property.returnType + K1 + kotlin/Function1 /* = Action^ */ + K2 + kotlin/Function1<@kotlin/UnsafeVariance T#0, kotlin/Unit> /* = Action^ */ + CLASS Tag2.class + CLASS METADATA + CONSTRUCTOR (Lkotlin/jvm/functions/Function1;)V + Property: class.metadata.constructor.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */) + K2 + (action: kotlin/Function1 /* = Action^ */) + FUNCTION copy(Lkotlin/jvm/functions/Function1;)LTag2; + Property: class.metadata.function.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */ /* = ... */) + K2 + (action: kotlin/Function1 /* = Action^ */ /* = ... */) + PROPERTY getAction()Lkotlin/jvm/functions/Function1; + Property: class.metadata.property.returnType + K1 + kotlin/Function1 /* = Action^ */ + K2 + kotlin/Function1 /* = Action^ */ + CLASS Tag3.class + CLASS METADATA + CONSTRUCTOR (Lkotlin/jvm/functions/Function1;)V + Property: class.metadata.constructor.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */) + K2 + (action: kotlin/Function1<@kotlin/UnsafeVariance T#0, kotlin/Unit> /* = Action^ */) + FUNCTION copy(Lkotlin/jvm/functions/Function1;)LTag3; + Property: class.metadata.function.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */ /* = ... */) + K2 + (action: kotlin/Function1<@kotlin/UnsafeVariance T#0, kotlin/Unit> /* = Action^ */ /* = ... */) + PROPERTY getAction()Lkotlin/jvm/functions/Function1; + Property: class.metadata.property.returnType + K1 + kotlin/Function1 /* = Action^ */ + K2 + kotlin/Function1<@kotlin/UnsafeVariance T#0, kotlin/Unit> /* = Action^ */ + CLASS Tag4.class + CLASS METADATA + CONSTRUCTOR (Lkotlin/jvm/functions/Function1;)V + Property: class.metadata.constructor.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */) + K2 + (action: kotlin/Function1 /* = Action^ */) + FUNCTION copy(Lkotlin/jvm/functions/Function1;)LTag4; + Property: class.metadata.function.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */ /* = ... */) + K2 + (action: kotlin/Function1 /* = Action^ */ /* = ... */) + PROPERTY getAction()Lkotlin/jvm/functions/Function1; + Property: class.metadata.property.returnType + K1 + kotlin/Function1 /* = Action^ */ + K2 + kotlin/Function1 /* = Action^ */ + CLASS Tag5.class + CLASS METADATA + CONSTRUCTOR (Lkotlin/jvm/functions/Function1;)V + Property: class.metadata.constructor.valueParameters + K1 + (action: kotlin/Function1 /* = Action2^ */) + K2 + (action: kotlin/Function1<@kotlin/UnsafeVariance T#0, T#0> /* = Action2^ */) + FUNCTION copy(Lkotlin/jvm/functions/Function1;)LTag5; + Property: class.metadata.function.valueParameters + K1 + (action: kotlin/Function1 /* = Action2^ */ /* = ... */) + K2 + (action: kotlin/Function1<@kotlin/UnsafeVariance T#0, T#0> /* = Action2^ */ /* = ... */) + PROPERTY getAction()Lkotlin/jvm/functions/Function1; + Property: class.metadata.property.returnType + K1 + kotlin/Function1 /* = Action2^ */ + K2 + kotlin/Function1<@kotlin/UnsafeVariance T#0, T#0> /* = Action2^ */ + CLASS Tag6.class + CLASS METADATA + CONSTRUCTOR (Lkotlin/jvm/functions/Function1;)V + Property: class.metadata.constructor.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */) + K2 + (action: kotlin/Function1 /* = Action^ */) + FUNCTION copy(Lkotlin/jvm/functions/Function1;)LTag6; + Property: class.metadata.function.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */ /* = ... */) + K2 + (action: kotlin/Function1 /* = Action^ */ /* = ... */) + PROPERTY getAction()Lkotlin/jvm/functions/Function1; + Property: class.metadata.property.returnType + K1 + kotlin/Function1 /* = Action^ */ + K2 + kotlin/Function1 /* = Action^ */ + CLASS Tag7.class + CLASS METADATA + CONSTRUCTOR (Lkotlin/jvm/functions/Function1;)V + Property: class.metadata.constructor.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */) + K2 + (action: kotlin/Function1<@kotlin/UnsafeVariance T#0, kotlin/Unit> /* = Action^ */) + FUNCTION copy(Lkotlin/jvm/functions/Function1;)LTag7; + Property: class.metadata.function.valueParameters + K1 + (action: kotlin/Function1 /* = Action^ */ /* = ... */) + K2 + (action: kotlin/Function1<@kotlin/UnsafeVariance T#0, kotlin/Unit> /* = Action^ */ /* = ... */) + PROPERTY getAction()Lkotlin/jvm/functions/Function1; + Property: class.metadata.property.returnType + K1 + kotlin/Function1 /* = Action^ */ + K2 + kotlin/Function1<@kotlin/UnsafeVariance T#0, kotlin/Unit> /* = Action^ */ + CLASS Tag8.class + CLASS METADATA + CONSTRUCTOR (Lkotlin/jvm/functions/Function1;)V + Property: class.metadata.constructor.valueParameters + K1 + (action: kotlin/Function1 /* = Action2^ */) + K2 + (action: kotlin/Function1<@kotlin/UnsafeVariance T#0, T#0> /* = Action2^ */) + FUNCTION copy(Lkotlin/jvm/functions/Function1;)LTag8; + Property: class.metadata.function.valueParameters + K1 + (action: kotlin/Function1 /* = Action2^ */ /* = ... */) + K2 + (action: kotlin/Function1<@kotlin/UnsafeVariance T#0, T#0> /* = Action2^ */ /* = ... */) + PROPERTY getAction()Lkotlin/jvm/functions/Function1; + Property: class.metadata.property.returnType + K1 + kotlin/Function1 /* = Action2^ */ + K2 + kotlin/Function1<@kotlin/UnsafeVariance T#0, T#0> /* = Action2^ */ + CLASS CapturedTypesSubstitutionIntoAbbreviationKt.class + PACKAGE METADATA + TYPE ALIAS Action + Property: class.metadata.typeAlias.underlyingType + K1 + kotlin/Function1 + K2 + kotlin/Function1<@kotlin/UnsafeVariance T#0, kotlin/Unit> + Property: class.metadata.typeAlias.expandedType + K1 + kotlin/Function1 + K2 + kotlin/Function1<@kotlin/UnsafeVariance T#0, kotlin/Unit> + TYPE ALIAS Action2 + Property: class.metadata.typeAlias.underlyingType + K1 + kotlin/Function1 + K2 + kotlin/Function1<@kotlin/UnsafeVariance T#0, T#0> + Property: class.metadata.typeAlias.expandedType + K1 + kotlin/Function1 + K2 + kotlin/Function1<@kotlin/UnsafeVariance T#0, T#0> diff --git a/compiler/testData/codegen/box/inference/capturedTypesSubstitutionIntoAbbreviation.kt b/compiler/testData/codegen/box/inference/capturedTypesSubstitutionIntoAbbreviation.kt index 806140fd345..7221094a6cf 100644 --- a/compiler/testData/codegen/box/inference/capturedTypesSubstitutionIntoAbbreviation.kt +++ b/compiler/testData/codegen/box/inference/capturedTypesSubstitutionIntoAbbreviation.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63858 + typealias Action = (@UnsafeVariance K) -> Unit typealias Action2 = (@UnsafeVariance K) -> K diff --git a/compiler/testData/codegen/box/inference/overrideGenericDefaultMethod.jvm_abi.txt b/compiler/testData/codegen/box/inference/overrideGenericDefaultMethod.jvm_abi.txt new file mode 100644 index 00000000000..c346715b548 --- /dev/null +++ b/compiler/testData/codegen/box/inference/overrideGenericDefaultMethod.jvm_abi.txt @@ -0,0 +1,10 @@ +MODULE main + CLASS MyFinalClassI.class + K1 + --- + K2 + test(I)Ljava/lang/Integer; [public] + K1 + --- + K2 + testWithDefault(Ljava/lang/Integer;)Ljava/lang/Integer; [public] diff --git a/compiler/testData/codegen/box/inference/overrideGenericDefaultMethod.kt b/compiler/testData/codegen/box/inference/overrideGenericDefaultMethod.kt index b3639287128..7ddfa639750 100644 --- a/compiler/testData/codegen/box/inference/overrideGenericDefaultMethod.kt +++ b/compiler/testData/codegen/box/inference/overrideGenericDefaultMethod.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62781 + // MODULE: InterfaceModule // FILE: MyInterface.kt interface MyInterface { diff --git a/compiler/testData/codegen/box/inference/unsafeVarianceCodegen.jvm_abi.txt b/compiler/testData/codegen/box/inference/unsafeVarianceCodegen.jvm_abi.txt new file mode 100644 index 00000000000..2d1a8381e26 --- /dev/null +++ b/compiler/testData/codegen/box/inference/unsafeVarianceCodegen.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + FUNCTION foo(Ljava/lang/Object;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (x: T#0) + K2 + (x: @kotlin/UnsafeVariance T#0) diff --git a/compiler/testData/codegen/box/inference/unsafeVarianceCodegen.kt b/compiler/testData/codegen/box/inference/unsafeVarianceCodegen.kt index 2e415b0b9ec..be71497395c 100644 --- a/compiler/testData/codegen/box/inference/unsafeVarianceCodegen.kt +++ b/compiler/testData/codegen/box/inference/unsafeVarianceCodegen.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63858 class A { fun foo(x: @UnsafeVariance K): K = x } diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.jvm_abi.txt b/compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.jvm_abi.txt new file mode 100644 index 00000000000..1fc7f1a391b --- /dev/null +++ b/compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.jvm_abi.txt @@ -0,0 +1,60 @@ +MODULE main + CLASS ArrayDeque.class + CLASS METADATA + PROPERTY getSize()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + arrayDequeRemoveAll.kt + Kotlin + *S Kotlin + *F + + 1 arrayDequeRemoveAll.kt + ArrayDeque + + 2 ArraysJVM.kt + kotlin/collections/ArraysKt__ArraysJVMKt + + 3 ArrayIntrinsics.kt + kotlin/ArrayIntrinsicsKt + *L + 1#1,114:1 + 53#1,48:117 + 37#2,2:115 + 26#3:165 + *S KotlinDebug + *F + + 1 arrayDequeRemoveAll.kt + ArrayDeque + *L + 50#1:117,48 + 13#1:115,2 + 104#1:165 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + arrayDequeRemoveAll.kt + Kotlin + *S Kotlin + *F + + 1 arrayDequeRemoveAll.kt + ArrayDeque + + 2 ArraysJVM.kt + kotlin/collections/ArraysKt__ArraysJVMKt + *L + 1#1,114:1 + 53#1,48:117 + 37#2,2:115 + *S KotlinDebug + *F + + 1 arrayDequeRemoveAll.kt + ArrayDeque + *L + 50#1:117,48 + 13#1:115,2 + *E + } ) diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.kt b/compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.kt index 63fe26c446e..6458dd07e76 100644 --- a/compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.kt +++ b/compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62464, KT-63984 @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") class ArrayDeque : AbstractMutableList { diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.jvm_abi.txt b/compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.jvm_abi.txt new file mode 100644 index 00000000000..26a3c1c7283 --- /dev/null +++ b/compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS InlineCircularDedepencyKt.class + PACKAGE METADATA + PROPERTY getZ()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.kt b/compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.kt index 1b8d1957c8c..67b524c1f73 100644 --- a/compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.kt +++ b/compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.kt @@ -1,5 +1,6 @@ // FULL_JDK // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 val z = ArrayList() diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.jvm_abi.txt new file mode 100644 index 00000000000..f310120c8ce --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test.class + CLASS METADATA + PROPERTY getArr()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt index 250f103e4ec..bb12800e157 100644 --- a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses +// JVM_ABI_K1_K2_DIFF: KT-63864 interface IFooList { fun foo(): List diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.jvm_abi.txt new file mode 100644 index 00000000000..f310120c8ce --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test.class + CLASS METADATA + PROPERTY getArr()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt index 9343a9ec283..46cc3868250 100644 --- a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// JVM_ABI_K1_K2_DIFF: KT-63864 interface IFooList { fun foo(): List diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.jvm_abi.txt new file mode 100644 index 00000000000..97d25b59edb --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.jvm_abi.txt @@ -0,0 +1,39 @@ +MODULE main + CLASS RequestInputParameters.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt index 245a014d359..108295eeab4 100644 --- a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses +// JVM_ABI_K1_K2_DIFF: KT-57268, KT-63828 OPTIONAL_JVM_INLINE_ANNOTATION value class FieldValue(val value: String) diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.jvm_abi.txt new file mode 100644 index 00000000000..97d25b59edb --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.jvm_abi.txt @@ -0,0 +1,39 @@ +MODULE main + CLASS RequestInputParameters.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt index c2f9dec07fb..2fef4468d46 100644 --- a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// JVM_ABI_K1_K2_DIFF: KT-57268, KT-63828 OPTIONAL_JVM_INLINE_ANNOTATION value class FieldValue(val value: T) diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.jvm_abi.txt new file mode 100644 index 00000000000..75bedb84da7 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.jvm_abi.txt @@ -0,0 +1,10 @@ +MODULE main + CLASS ZArrayMap.class + K1 + --- + K2 + getOrDefault-SjU93Dg([III)I [public, static] + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt index 03a388900ad..be15499dd34 100644 --- a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses +// JVM_ABI_K1_K2_DIFF: KT-57268 OPTIONAL_JVM_INLINE_ANNOTATION value class Z(val x: Int) diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.jvm_abi.txt new file mode 100644 index 00000000000..75bedb84da7 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.jvm_abi.txt @@ -0,0 +1,10 @@ +MODULE main + CLASS ZArrayMap.class + K1 + --- + K2 + getOrDefault-SjU93Dg([III)I [public, static] + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt index 40b185120b1..a65cc668df1 100644 --- a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// JVM_ABI_K1_K2_DIFF: KT-57268 OPTIONAL_JVM_INLINE_ANNOTATION value class Z(val x: T) diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMutableCollectionBulkAdd.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMutableCollectionBulkAdd.jvm_abi.txt new file mode 100644 index 00000000000..095a6910cce --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMutableCollectionBulkAdd.jvm_abi.txt @@ -0,0 +1,53 @@ +MODULE main + CLASS IC1.class + CLASS METADATA + K1 + getSize-impl(Ljava/util/List;)I + K2 + --- + K1 + --- + K2 + size + CLASS IC3.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries-impl(Ljava/util/Map;)Ljava/util/Set; + K2 + --- + K1 + getKeys-impl(Ljava/util/Map;)Ljava/util/Set; + K2 + --- + K1 + getSize-impl(Ljava/util/Map;)I + K2 + --- + K1 + getValues-impl(Ljava/util/Map;)Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + K1 + --- + K2 + getOrDefault-impl(Ljava/util/Map;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [public, static] + K1 + --- + K2 + remove-impl(Ljava/util/Map;Ljava/lang/Object;Ljava/lang/Object;)Z [public, static] diff --git a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMutableCollectionBulkAdd.kt b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMutableCollectionBulkAdd.kt index 6cd80eefad6..b0de638385b 100644 --- a/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMutableCollectionBulkAdd.kt +++ b/compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMutableCollectionBulkAdd.kt @@ -2,6 +2,7 @@ // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses // IGNORE_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62817, KT-63828 OPTIONAL_JVM_INLINE_ANNOTATION value class IC1(val list: MutableList) : MutableList by list diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.jvm_abi.txt new file mode 100644 index 00000000000..1717634d88f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.jvm_abi.txt @@ -0,0 +1,19 @@ +MODULE main + CLASS Test.class + CLASS METADATA + K1 + getK()Ljava/lang/String; + K2 + --- + K1 + getOk()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + k + K1 + --- + K2 + ok diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt index 942ccf0ade1..6e624afe14a 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt @@ -1,7 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses - +// JVM_ABI_K1_K2_DIFF: KT-63828 interface IFoo { fun getO(): String val k: String diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.jvm_abi.txt new file mode 100644 index 00000000000..1717634d88f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.jvm_abi.txt @@ -0,0 +1,19 @@ +MODULE main + CLASS Test.class + CLASS METADATA + K1 + getK()Ljava/lang/String; + K2 + --- + K1 + getOk()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + k + K1 + --- + K2 + ok diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt index a628910c0cc..986b4f7edec 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// JVM_ABI_K1_K2_DIFF: KT-63828 interface IFoo { fun getO(): String diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.jvm_abi.txt new file mode 100644 index 00000000000..fcc51d206df --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.jvm_abi.txt @@ -0,0 +1,39 @@ +MODULE main + CLASS DMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt index b641c7871d7..405452174bf 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses +// JVM_ABI_K1_K2_DIFF: KT-57268, KT-63828 OPTIONAL_JVM_INLINE_ANNOTATION value class Wrapper(val id: Int) diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.jvm_abi.txt new file mode 100644 index 00000000000..fcc51d206df --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.jvm_abi.txt @@ -0,0 +1,39 @@ +MODULE main + CLASS DMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt index 16b9a0bfe4e..7da6993337f 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// JVM_ABI_K1_K2_DIFF: KT-57268, KT-63828 OPTIONAL_JVM_INLINE_ANNOTATION value class Wrapper(val id: T) diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.jvm_abi.txt new file mode 100644 index 00000000000..7fb1879e083 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.jvm_abi.txt @@ -0,0 +1,21 @@ +MODULE main + CLASS TestFoo.class + CLASS METADATA + K1 + --- + K2 + extVal + K1 + getExtVal-gSa4wCw(Ljava/lang/String;)Ljava/lang/String; + K2 + --- + CLASS TestGFoo.class + CLASS METADATA + K1 + --- + K2 + extVal + K1 + getExtVal-gSa4wCw(Ljava/lang/String;)Ljava/lang/String; + K2 + --- diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt index 03f9524f1a9..3a79db67098 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses +// JVM_ABI_K1_K2_DIFF: KT-63828 import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.jvm_abi.txt new file mode 100644 index 00000000000..7fb1879e083 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.jvm_abi.txt @@ -0,0 +1,21 @@ +MODULE main + CLASS TestFoo.class + CLASS METADATA + K1 + --- + K2 + extVal + K1 + getExtVal-gSa4wCw(Ljava/lang/String;)Ljava/lang/String; + K2 + --- + CLASS TestGFoo.class + CLASS METADATA + K1 + --- + K2 + extVal + K1 + getExtVal-gSa4wCw(Ljava/lang/String;)Ljava/lang/String; + K2 + --- diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt index a78e059c58a..9b00da3340f 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// JVM_ABI_K1_K2_DIFF: KT-63828 import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.jvm_abi.txt new file mode 100644 index 00000000000..8f1af036223 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.jvm_abi.txt @@ -0,0 +1,21 @@ +MODULE main + CLASS TestFoo.class + CLASS METADATA + K1 + --- + K2 + extVar + K1 + getExtVar-gSa4wCw([Ljava/lang/String;)Ljava/lang/String; + K2 + --- + CLASS TestGFoo.class + CLASS METADATA + K1 + --- + K2 + extVar + K1 + getExtVar-gSa4wCw([Ljava/lang/String;)Ljava/lang/String; + K2 + --- diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.kt index 68e56f5ec2b..7d49dca91dd 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses +// JVM_ABI_K1_K2_DIFF: KT-63828 import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.jvm_abi.txt new file mode 100644 index 00000000000..392ef47ff8f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS Test.class + CLASS METADATA + FUNCTION genericMemberExtFun--ndakOA(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; + Property: class.metadata.function.typeParameters + K1 + + K2 + + FUNCTION genericMemberFun--ndakOA(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt index ea1f810fe13..5fffd83f396 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses +// JVM_ABI_K1_K2_DIFF: KT-63855 import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.jvm_abi.txt new file mode 100644 index 00000000000..392ef47ff8f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS Test.class + CLASS METADATA + FUNCTION genericMemberExtFun--ndakOA(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; + Property: class.metadata.function.typeParameters + K1 + + K2 + + FUNCTION genericMemberFun--ndakOA(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt index 6e16bcbc674..bacde3ae27f 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// JVM_ABI_K1_K2_DIFF: KT-63855 import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.jvm_abi.txt new file mode 100644 index 00000000000..392ef47ff8f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS Test.class + CLASS METADATA + FUNCTION genericMemberExtFun--ndakOA(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; + Property: class.metadata.function.typeParameters + K1 + + K2 + + FUNCTION genericMemberFun--ndakOA(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt index 162d565508f..accb9d041af 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses +// JVM_ABI_K1_K2_DIFF: KT-63855 import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.jvm_abi.txt new file mode 100644 index 00000000000..392ef47ff8f --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS Test.class + CLASS METADATA + FUNCTION genericMemberExtFun--ndakOA(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; + Property: class.metadata.function.typeParameters + K1 + + K2 + + FUNCTION genericMemberFun--ndakOA(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt index aa6b793b610..46f5788b3ee 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// JVM_ABI_K1_K2_DIFF: KT-63855 import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.jvm_abi.txt new file mode 100644 index 00000000000..5b76eac4ac4 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.jvm_abi.txt @@ -0,0 +1,8 @@ +MODULE main + CLASS IcAny.class + CLASS METADATA + Property: class.metadata.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt b/compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt index ad881f79d69..475450fd1ec 100644 --- a/compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt +++ b/compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt @@ -2,6 +2,7 @@ // IGNORE_BACKEND: JVM // TARGET_BACKEND: JVM // WORKS_WHEN_VALUE_CLASS +// JVM_ABI_K1_K2_DIFF: KT-63855 // LANGUAGE: +ValueClasses, +GenericInlineClassParameter // FILE: JavaClass.java diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.jvm_abi.txt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.jvm_abi.txt new file mode 100644 index 00000000000..746118b9e21 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Kla1.class + CLASS METADATA + LOCAL DELEGATED PROPERTY prop + Property: class.metadata.property.typeParameters + K1 + + K2 + <> diff --git a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt index ca1ca741287..bd10629dfba 100644 --- a/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt +++ b/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses, +GenericInlineClassParameter +// JVM_ABI_K1_K2_DIFF: KT-63898 class Delegate { operator fun getValue(t: Any?, p: Any): String = "OK" diff --git a/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalVarargAndDefault.jvm_abi.txt b/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalVarargAndDefault.jvm_abi.txt new file mode 100644 index 00000000000..b1c46cd30f7 --- /dev/null +++ b/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalVarargAndDefault.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ObjectExtendsInnerOfLocalVarargAndDefaultKt$box$Local.class + CLASS METADATA + PROPERTY getObj()LObjectExtendsInnerOfLocalVarargAndDefaultKt$box$Local$obj$1; + Property: class.metadata.property.returnType + K1 + .ObjectExtendsInnerOfLocalVarargAndDefaultKt$box$Local$obj$1 + K2 + .ObjectExtendsInnerOfLocalVarargAndDefaultKt$box$Local. diff --git a/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalVarargAndDefault.kt b/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalVarargAndDefault.kt index eef3131ae2b..35ee7a067e4 100644 --- a/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalVarargAndDefault.kt +++ b/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalVarargAndDefault.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63655 fun box(): String { val capture = "oh" diff --git a/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalWithCapture.jvm_abi.txt b/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalWithCapture.jvm_abi.txt new file mode 100644 index 00000000000..f9d98a945fd --- /dev/null +++ b/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalWithCapture.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ObjectExtendsInnerOfLocalWithCaptureKt$box$Local.class + CLASS METADATA + PROPERTY getObj()LObjectExtendsInnerOfLocalWithCaptureKt$box$Local$obj$1; + Property: class.metadata.property.returnType + K1 + .ObjectExtendsInnerOfLocalWithCaptureKt$box$Local$obj$1 + K2 + .ObjectExtendsInnerOfLocalWithCaptureKt$box$Local. diff --git a/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalWithCapture.kt b/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalWithCapture.kt index b4fb7a47cee..794d1c746de 100644 --- a/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalWithCapture.kt +++ b/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalWithCapture.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63655 fun box(): String { class Local { open inner class Inner(val s: String) { diff --git a/compiler/testData/codegen/box/intrinsics/kt8666.jvm_abi.txt b/compiler/testData/codegen/box/intrinsics/kt8666.jvm_abi.txt new file mode 100644 index 00000000000..f0371a94de0 --- /dev/null +++ b/compiler/testData/codegen/box/intrinsics/kt8666.jvm_abi.txt @@ -0,0 +1,39 @@ +MODULE main + CLASS Kt8666Kt.class + PACKAGE METADATA + PROPERTY getEmptyStringNPlus()Lkotlin/reflect/KFunction; + Property: class.metadata.property.returnType + K1 + kotlin/reflect/KFunction1<@kotlin/ParameterName(name = "other") kotlin/Any?, kotlin/String> + K2 + kotlin/reflect/KFunction1 + PROPERTY getEmptyStringPlus()Lkotlin/reflect/KFunction; + Property: class.metadata.property.returnType + K1 + kotlin/reflect/KFunction1<@kotlin/ParameterName(name = "other") kotlin/Any?, kotlin/String> + K2 + kotlin/reflect/KFunction1 + PROPERTY getPrefixNPlus()Lkotlin/reflect/KFunction; + Property: class.metadata.property.returnType + K1 + kotlin/reflect/KFunction1<@kotlin/ParameterName(name = "other") kotlin/Any?, kotlin/String> + K2 + kotlin/reflect/KFunction1 + PROPERTY getPrefixPlus()Lkotlin/reflect/KFunction; + Property: class.metadata.property.returnType + K1 + kotlin/reflect/KFunction1<@kotlin/ParameterName(name = "other") kotlin/Any?, kotlin/String> + K2 + kotlin/reflect/KFunction1 + PROPERTY getStringNPlus()Lkotlin/reflect/KFunction; + Property: class.metadata.property.returnType + K1 + kotlin/reflect/KFunction2 + K2 + @kotlin/ExtensionFunctionType kotlin/reflect/KFunction2 + PROPERTY getStringPlus()Lkotlin/reflect/KFunction; + Property: class.metadata.property.returnType + K1 + kotlin/reflect/KFunction2 + K2 + kotlin/reflect/KFunction2 diff --git a/compiler/testData/codegen/box/intrinsics/kt8666.kt b/compiler/testData/codegen/box/intrinsics/kt8666.kt index 6a29c3439a5..53b4cb879de 100644 --- a/compiler/testData/codegen/box/intrinsics/kt8666.kt +++ b/compiler/testData/codegen/box/intrinsics/kt8666.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + val MAX_LONG = "9223372036854775807" val PREFIX = "max = " diff --git a/compiler/testData/codegen/box/involvesIrInterpreter/serialization/typeAnnotation.jvm_abi.txt b/compiler/testData/codegen/box/involvesIrInterpreter/serialization/typeAnnotation.jvm_abi.txt new file mode 100644 index 00000000000..c8d4b02d109 --- /dev/null +++ b/compiler/testData/codegen/box/involvesIrInterpreter/serialization/typeAnnotation.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS LibKt.class + PACKAGE METADATA + FUNCTION withVararg([B)V + Property: class.metadata.function.valueParameters + K1 + (vararg args: @TypeAnnotation(str = "ByteAnno") kotlin/Byte /* kotlin/ByteArray */) + K2 + (vararg args: kotlin/Byte /* kotlin/ByteArray */) diff --git a/compiler/testData/codegen/box/involvesIrInterpreter/serialization/typeAnnotation.kt b/compiler/testData/codegen/box/involvesIrInterpreter/serialization/typeAnnotation.kt index 6520739bbea..efe58a21b4d 100644 --- a/compiler/testData/codegen/box/involvesIrInterpreter/serialization/typeAnnotation.kt +++ b/compiler/testData/codegen/box/involvesIrInterpreter/serialization/typeAnnotation.kt @@ -1,6 +1,7 @@ // DONT_TARGET_EXACT_BACKEND: JVM // DONT_TARGET_EXACT_BACKEND: JS // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63899 // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/ir/kt29833.kt b/compiler/testData/codegen/box/ir/kt29833.kt index 96e35070f9a..d22f06bec9f 100644 --- a/compiler/testData/codegen/box/ir/kt29833.kt +++ b/compiler/testData/codegen/box/ir/kt29833.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM + // FILE: Definitions.kt import interop.* diff --git a/compiler/testData/codegen/box/ir/serializationRegressions/deepGenericDelegatedProperty.jvm_abi.txt b/compiler/testData/codegen/box/ir/serializationRegressions/deepGenericDelegatedProperty.jvm_abi.txt new file mode 100644 index 00000000000..685c1b02ac6 --- /dev/null +++ b/compiler/testData/codegen/box/ir/serializationRegressions/deepGenericDelegatedProperty.jvm_abi.txt @@ -0,0 +1,43 @@ +MODULE lib + CLASS LibKt$additionalText$2.class + Property: class.signature + K1 + Ljava/lang/Object;LIDelegate1;>;LP;>; + K2 + Ljava/lang/Object;LIDelegate1;>;LP;>; + METHOD getValue(LValue;Lkotlin/reflect/KProperty;)LP; + Property: method.signature + K1 + (LValue;>;Lkotlin/reflect/KProperty<*>;)LP; + K2 + (LValue;>;Lkotlin/reflect/KProperty<*>;)LP; + CLASS LibKt$additionalText$2$deepO$2.class + Property: class.signature + K1 + Ljava/lang/Object;LIDelegate1;>;Ljava/lang/Object;>; + K2 + Ljava/lang/Object;LIDelegate1;>;TT;>; + METHOD getValue(LValue;Lkotlin/reflect/KProperty;)Ljava/lang/Object; + Property: method.signature + K1 + (LValue;>;Lkotlin/reflect/KProperty<*>;)Ljava/lang/Object; + K2 + (LValue;>;Lkotlin/reflect/KProperty<*>;)TT; + CLASS LibKt$additionalText$2$deepK$2.class + Property: class.signature + K1 + Ljava/lang/Object;LIDelegate1;>;Ljava/lang/Object;>; + K2 + Ljava/lang/Object;LIDelegate1;>;TT;>; + METHOD getValue(LValue;Lkotlin/reflect/KProperty;)Ljava/lang/Object; + Property: method.signature + K1 + (LValue;>;Lkotlin/reflect/KProperty<*>;)Ljava/lang/Object; + K2 + (LValue;>;Lkotlin/reflect/KProperty<*>;)TT; + METHOD qux22(LIR;)Ljava/lang/Object; + Property: method.signature + K1 + ;>(TF22T;)Ljava/lang/Object; + K2 + ;>(TF22T;)TT; diff --git a/compiler/testData/codegen/box/ir/serializationRegressions/deepGenericDelegatedProperty.kt b/compiler/testData/codegen/box/ir/serializationRegressions/deepGenericDelegatedProperty.kt index 4138991bd02..5ae9570186f 100644 --- a/compiler/testData/codegen/box/ir/serializationRegressions/deepGenericDelegatedProperty.kt +++ b/compiler/testData/codegen/box/ir/serializationRegressions/deepGenericDelegatedProperty.kt @@ -2,6 +2,7 @@ // SKIP_MANGLE_VERIFICATION //For KT-6020 // KT-24643: language version in K2 is >= 1.8 +// JVM_ABI_K1_K2_DIFF: KT-62884 // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.jvm_abi.txt b/compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.jvm_abi.txt new file mode 100644 index 00000000000..6b4fdeeecad --- /dev/null +++ b/compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.jvm_abi.txt @@ -0,0 +1,16 @@ +MODULE lib + CLASS A$X.class + CLASS METADATA + PROPERTY getZ()LA$X$Inner; + Property: class.metadata.property.returnType + K1 + A.X.Inner + K2 + .A.X.Inner + CLASS A$X$Inner.class + METHOD getY()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- diff --git a/compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt b/compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt index af6389de744..928db7680bb 100644 --- a/compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt +++ b/compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-62714, KT-63880 // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPrivateProperty.jvm_abi.txt b/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPrivateProperty.jvm_abi.txt new file mode 100644 index 00000000000..a1f2a67b8d8 --- /dev/null +++ b/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPrivateProperty.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS Derived.class + METHOD x()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + --- + K2 + @Lorg/jetbrains/annotations/NotNull; + CLASS DerivedKt.class + METHOD box()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + --- + K2 + @Lorg/jetbrains/annotations/NotNull; diff --git a/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPrivateProperty.kt b/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPrivateProperty.kt index 95c432f677d..c7e07da18f0 100644 --- a/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPrivateProperty.kt +++ b/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPrivateProperty.kt @@ -2,6 +2,7 @@ // Note: works accidentally via backing field access // Field VS property: case 4.2 // More or less duplicates the case in KT-34943/KT-54393 +// JVM_ABI_K1_K2_DIFF: KT-62483 // FILE: BaseJava.java public class BaseJava { diff --git a/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReferenceFromInner.jvm_abi.txt b/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReferenceFromInner.jvm_abi.txt new file mode 100644 index 00000000000..8a5545ca4bd --- /dev/null +++ b/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReferenceFromInner.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS TestKt$box$x$1$S$foo$1.class + Property: class.superClassInternalName + K1 + kotlin/jvm/internal/MutablePropertyReference0Impl + K2 + kotlin/jvm/internal/PropertyReference0Impl + K1 + set(Ljava/lang/Object;)V [public] + K2 + --- diff --git a/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReferenceFromInner.kt b/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReferenceFromInner.kt index caedd874129..a5b3307df73 100644 --- a/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReferenceFromInner.kt +++ b/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReferenceFromInner.kt @@ -1,4 +1,6 @@ // TARGET_BACKEND: JVM_IR +// JVM_ABI_K1_K2_DIFF: KT-55017 + // FILE: base/Jaba.java package base; diff --git a/compiler/testData/codegen/box/javaInterop/kt43217.jvm_abi.txt b/compiler/testData/codegen/box/javaInterop/kt43217.jvm_abi.txt new file mode 100644 index 00000000000..aceb17bc93e --- /dev/null +++ b/compiler/testData/codegen/box/javaInterop/kt43217.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY b + Property: class.metadata.property.returnType + K1 + .A$b$1 + K2 + .A. diff --git a/compiler/testData/codegen/box/javaInterop/kt43217.kt b/compiler/testData/codegen/box/javaInterop/kt43217.kt index 942bed1bcd3..72c57555fed 100644 --- a/compiler/testData/codegen/box/javaInterop/kt43217.kt +++ b/compiler/testData/codegen/box/javaInterop/kt43217.kt @@ -1,6 +1,9 @@ // TARGET_BACKEND: JVM // JVM_TARGET: 1.8 +// JVM_ABI_K1_K2_DIFF: KT-63655 + // FILE: kt43217.kt + class A { private val b = object : DoubleExpression() { diff --git a/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.jvm_abi.txt b/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.jvm_abi.txt new file mode 100644 index 00000000000..f334d0aaeae --- /dev/null +++ b/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS TestClass.class + CLASS METADATA + K1 + getTest()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + test diff --git a/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt b/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt index 40dd5570958..8ea1673553e 100644 --- a/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt +++ b/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt @@ -2,7 +2,7 @@ // TARGET_BACKEND: JVM // JVM_TARGET: 1.8 // WITH_STDLIB - +// JVM_ABI_K1_K2_DIFF: KT-63828 interface Test { val test: String get() = "Fail" } diff --git a/compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simpleProperty.jvm_abi.txt b/compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simpleProperty.jvm_abi.txt new file mode 100644 index 00000000000..f334d0aaeae --- /dev/null +++ b/compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simpleProperty.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS TestClass.class + CLASS METADATA + K1 + getTest()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + test diff --git a/compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simpleProperty.kt b/compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simpleProperty.kt index 7d60fc44b89..665d2dd05ce 100644 --- a/compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simpleProperty.kt +++ b/compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simpleProperty.kt @@ -2,7 +2,7 @@ // TARGET_BACKEND: JVM // JVM_TARGET: 1.8 // WITH_STDLIB - +// JVM_ABI_K1_K2_DIFF: KT-63828 interface Test { val test: String get() = "Fail" } diff --git a/compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_map.jvm_abi.txt b/compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_map.jvm_abi.txt new file mode 100644 index 00000000000..c7fdf96eb11 --- /dev/null +++ b/compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_map.jvm_abi.txt @@ -0,0 +1,13 @@ +MODULE main + CLASS MyMap.class + METHOD getOrDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lkotlin/SinceKotlin;( version: 1.1 ) + K2 + --- + Annotation: method.invisibleAnnotations + K1 + @Lkotlin/internal/PlatformDependent; + K2 + --- diff --git a/compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_map.kt b/compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_map.kt index 7abc92cb357..42528c1914d 100644 --- a/compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_map.kt +++ b/compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_map.kt @@ -3,6 +3,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-62788 + // FILE: main.kt var result = "" diff --git a/compiler/testData/codegen/box/jvm8/kt14243_2.jvm_abi.txt b/compiler/testData/codegen/box/jvm8/kt14243_2.jvm_abi.txt new file mode 100644 index 00000000000..f5ec8078363 --- /dev/null +++ b/compiler/testData/codegen/box/jvm8/kt14243_2.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS ZImpl2.class + K1 + --- + K2 + test(Ljava/lang/String;)Ljava/lang/String; [public] diff --git a/compiler/testData/codegen/box/jvm8/kt14243_2.kt b/compiler/testData/codegen/box/jvm8/kt14243_2.kt index b80a5403575..3c84d97c01d 100644 --- a/compiler/testData/codegen/box/jvm8/kt14243_2.kt +++ b/compiler/testData/codegen/box/jvm8/kt14243_2.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62781 + // TARGET_BACKEND: JVM // JVM_TARGET: 1.8 diff --git a/compiler/testData/codegen/box/jvm8/kt33054.jvm_abi.txt b/compiler/testData/codegen/box/jvm8/kt33054.jvm_abi.txt new file mode 100644 index 00000000000..c6dcef1c1cb --- /dev/null +++ b/compiler/testData/codegen/box/jvm8/kt33054.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS Kt33054Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt33054.kt + Kotlin + *S Kotlin + *F + + 1 kt33054.kt + Kt33054Kt + + 2 kt33054.kt + A + *L + 1#1,20:1 + 6#2,4:21 + *S KotlinDebug + *F + + 1 kt33054.kt + Kt33054Kt + *L + 19#1:21,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt33054.kt + Kotlin + *S Kotlin + *F + + 1 kt33054.kt + Kt33054Kt + + 2 kt33054.kt + A + *L + 1#1,20:1 + 6#2:21 + *S KotlinDebug + *F + + 1 kt33054.kt + Kt33054Kt + *L + 19#1:21 + *E + } ) diff --git a/compiler/testData/codegen/box/jvm8/kt33054.kt b/compiler/testData/codegen/box/jvm8/kt33054.kt index c49ac5dc9c0..23ed7ebf965 100644 --- a/compiler/testData/codegen/box/jvm8/kt33054.kt +++ b/compiler/testData/codegen/box/jvm8/kt33054.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // JVM_TARGET: 1.8 +// JVM_ABI_K1_K2_DIFF: KT-62464 open class A(val x: String) { inline fun f() = if (this is C) this else A("O") diff --git a/compiler/testData/codegen/box/jvmField/diamond.kt b/compiler/testData/codegen/box/jvmField/diamond.kt index 034f80e9f49..5c586fc8c19 100644 --- a/compiler/testData/codegen/box/jvmField/diamond.kt +++ b/compiler/testData/codegen/box/jvmField/diamond.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM + // FILE: A.java public interface A { public String ok = "OK"; } // FILE: B.java diff --git a/compiler/testData/codegen/box/jvmName/annotationProperties.jvm_abi.txt b/compiler/testData/codegen/box/jvmName/annotationProperties.jvm_abi.txt new file mode 100644 index 00000000000..f61f59a7097 --- /dev/null +++ b/compiler/testData/codegen/box/jvmName/annotationProperties.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS test/Anno.class + CLASS METADATA + PROPERTY uglyJvmName()Ljava/lang/String; + Property: class.metadata.property.getterModifiers + K1 + public final + K2 + public final /* non-default */ diff --git a/compiler/testData/codegen/box/jvmName/annotationProperties.kt b/compiler/testData/codegen/box/jvmName/annotationProperties.kt index 8d6f4876b18..edc83e9fd9c 100644 --- a/compiler/testData/codegen/box/jvmName/annotationProperties.kt +++ b/compiler/testData/codegen/box/jvmName/annotationProperties.kt @@ -1,5 +1,7 @@ // TARGET_BACKEND: JVM // WITH_REFLECT +// JVM_ABI_K1_K2_DIFF: KT-63843 + package test import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/jvmName/propertyAccessorsUseSite.jvm_abi.txt b/compiler/testData/codegen/box/jvmName/propertyAccessorsUseSite.jvm_abi.txt new file mode 100644 index 00000000000..072585c6439 --- /dev/null +++ b/compiler/testData/codegen/box/jvmName/propertyAccessorsUseSite.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS TestIt.class + CLASS METADATA + PROPERTY getIsFries()Z + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Boolean + K2 + value: kotlin/Boolean diff --git a/compiler/testData/codegen/box/jvmName/propertyAccessorsUseSite.kt b/compiler/testData/codegen/box/jvmName/propertyAccessorsUseSite.kt index 58043ca424f..6edd71ff8aa 100644 --- a/compiler/testData/codegen/box/jvmName/propertyAccessorsUseSite.kt +++ b/compiler/testData/codegen/box/jvmName/propertyAccessorsUseSite.kt @@ -1,6 +1,6 @@ // TARGET_BACKEND: JVM - // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/jvmName/propertyName.jvm_abi.txt b/compiler/testData/codegen/box/jvmName/propertyName.jvm_abi.txt new file mode 100644 index 00000000000..fc78303b463 --- /dev/null +++ b/compiler/testData/codegen/box/jvmName/propertyName.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS PropertyNameKt.class + PACKAGE METADATA + PROPERTY vget()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/jvmName/propertyName.kt b/compiler/testData/codegen/box/jvmName/propertyName.kt index 8d1d6774e16..5348eef8123 100644 --- a/compiler/testData/codegen/box/jvmName/propertyName.kt +++ b/compiler/testData/codegen/box/jvmName/propertyName.kt @@ -1,6 +1,6 @@ // TARGET_BACKEND: JVM - // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 var v: Int = 1 @JvmName("vget") diff --git a/compiler/testData/codegen/box/jvmOverloads/noRedundantVarargs.jvm_abi.txt b/compiler/testData/codegen/box/jvmOverloads/noRedundantVarargs.jvm_abi.txt new file mode 100644 index 00000000000..48c3b50285e --- /dev/null +++ b/compiler/testData/codegen/box/jvmOverloads/noRedundantVarargs.jvm_abi.txt @@ -0,0 +1,26 @@ +MODULE main + CLASS TestKt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + test.kt + Kotlin + *S Kotlin + *F + + 1 test.kt + TestKt + + 2 ArrayIntrinsics.kt + kotlin/ArrayIntrinsicsKt + *L + 1#1,28:1 + 26#2:29 + *S KotlinDebug + *F + + 1 test.kt + TestKt + *L + 9#1:29 + *E + } ) + K2 + --- diff --git a/compiler/testData/codegen/box/jvmOverloads/noRedundantVarargs.kt b/compiler/testData/codegen/box/jvmOverloads/noRedundantVarargs.kt index 6c001689be1..0edf109fa18 100644 --- a/compiler/testData/codegen/box/jvmOverloads/noRedundantVarargs.kt +++ b/compiler/testData/codegen/box/jvmOverloads/noRedundantVarargs.kt @@ -1,6 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-62465 + // FILE: test.kt @JvmOverloads diff --git a/compiler/testData/codegen/box/jvmStatic/kt31389.jvm_abi.txt b/compiler/testData/codegen/box/jvmStatic/kt31389.jvm_abi.txt new file mode 100644 index 00000000000..c79c7cffbfb --- /dev/null +++ b/compiler/testData/codegen/box/jvmStatic/kt31389.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Annotation$Companion.class + CLASS METADATA + PROPERTY getTEST_FIELD2()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/jvmStatic/kt31389.kt b/compiler/testData/codegen/box/jvmStatic/kt31389.kt index 4abc31c3e25..e412f45358b 100644 --- a/compiler/testData/codegen/box/jvmStatic/kt31389.kt +++ b/compiler/testData/codegen/box/jvmStatic/kt31389.kt @@ -1,6 +1,8 @@ // TARGET_BACKEND: JVM // JVM_TARGET: 1.8 // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: Test.java class Test { diff --git a/compiler/testData/codegen/box/jvmStatic/postfixInc.jvm_abi.txt b/compiler/testData/codegen/box/jvmStatic/postfixInc.jvm_abi.txt new file mode 100644 index 00000000000..30f36db4106 --- /dev/null +++ b/compiler/testData/codegen/box/jvmStatic/postfixInc.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getC()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/jvmStatic/postfixInc.kt b/compiler/testData/codegen/box/jvmStatic/postfixInc.kt index 809b896819c..7d01cb87990 100644 --- a/compiler/testData/codegen/box/jvmStatic/postfixInc.kt +++ b/compiler/testData/codegen/box/jvmStatic/postfixInc.kt @@ -1,6 +1,6 @@ // TARGET_BACKEND: JVM - // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 object A { diff --git a/compiler/testData/codegen/box/jvmStatic/prefixInc.jvm_abi.txt b/compiler/testData/codegen/box/jvmStatic/prefixInc.jvm_abi.txt new file mode 100644 index 00000000000..30f36db4106 --- /dev/null +++ b/compiler/testData/codegen/box/jvmStatic/prefixInc.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getC()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/jvmStatic/prefixInc.kt b/compiler/testData/codegen/box/jvmStatic/prefixInc.kt index b70500a1d18..307ce5aa308 100644 --- a/compiler/testData/codegen/box/jvmStatic/prefixInc.kt +++ b/compiler/testData/codegen/box/jvmStatic/prefixInc.kt @@ -1,6 +1,6 @@ // TARGET_BACKEND: JVM - // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 object A { diff --git a/compiler/testData/codegen/box/jvmStatic/privateSetter.jvm_abi.txt b/compiler/testData/codegen/box/jvmStatic/privateSetter.jvm_abi.txt new file mode 100644 index 00000000000..46b692fd331 --- /dev/null +++ b/compiler/testData/codegen/box/jvmStatic/privateSetter.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS TestApp$Companion.class + CLASS METADATA + PROPERTY getValue()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/jvmStatic/privateSetter.kt b/compiler/testData/codegen/box/jvmStatic/privateSetter.kt index 2b3f2611e0e..13eb9e13629 100644 --- a/compiler/testData/codegen/box/jvmStatic/privateSetter.kt +++ b/compiler/testData/codegen/box/jvmStatic/privateSetter.kt @@ -1,6 +1,7 @@ // TARGET_BACKEND: JVM - // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: JavaClass.java class JavaClass { diff --git a/compiler/testData/codegen/box/jvmStatic/propertyAccess.jvm_abi.txt b/compiler/testData/codegen/box/jvmStatic/propertyAccess.jvm_abi.txt new file mode 100644 index 00000000000..30f36db4106 --- /dev/null +++ b/compiler/testData/codegen/box/jvmStatic/propertyAccess.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getC()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/jvmStatic/propertyAccess.kt b/compiler/testData/codegen/box/jvmStatic/propertyAccess.kt index 8047cf7dea1..50a696cdc35 100644 --- a/compiler/testData/codegen/box/jvmStatic/propertyAccess.kt +++ b/compiler/testData/codegen/box/jvmStatic/propertyAccess.kt @@ -1,6 +1,6 @@ // TARGET_BACKEND: JVM - // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 var holder = "" diff --git a/compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.jvm_abi.txt b/compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.jvm_abi.txt new file mode 100644 index 00000000000..3c0260739b7 --- /dev/null +++ b/compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS a/A$Companion.class + CLASS METADATA + PROPERTY getFoo()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.kt b/compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.kt index a3970a0bbc3..4e5e5ca3d2f 100644 --- a/compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.kt +++ b/compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.kt @@ -1,6 +1,8 @@ // TARGET_BACKEND: JVM // IGNORE_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: 1.kt package a diff --git a/compiler/testData/codegen/box/localClasses/localClassInInitializer.jvm_abi.txt b/compiler/testData/codegen/box/localClasses/localClassInInitializer.jvm_abi.txt new file mode 100644 index 00000000000..4d06b4f88ee --- /dev/null +++ b/compiler/testData/codegen/box/localClasses/localClassInInitializer.jvm_abi.txt @@ -0,0 +1,8 @@ +MODULE main + CLASS A$o$1.class + CLASS METADATA + Property: class.metadata.superTypes + K1 + [.A$B] + K2 + [.A.B] diff --git a/compiler/testData/codegen/box/localClasses/localClassInInitializer.kt b/compiler/testData/codegen/box/localClasses/localClassInInitializer.kt index 0dafae38048..36007e18872 100644 --- a/compiler/testData/codegen/box/localClasses/localClassInInitializer.kt +++ b/compiler/testData/codegen/box/localClasses/localClassInInitializer.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63901 + class A { var a: String = "Fail" diff --git a/compiler/testData/codegen/box/multiplatform/commonInternal.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/commonInternal.jvm_abi.txt new file mode 100644 index 00000000000..9697039cd57 --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/commonInternal.jvm_abi.txt @@ -0,0 +1,3 @@ +MODULE main + Missing in K2 + AnnInCommon.class diff --git a/compiler/testData/codegen/box/multiplatform/commonInternal.kt b/compiler/testData/codegen/box/multiplatform/commonInternal.kt index 168bb3656d1..c3aad9bf1e1 100644 --- a/compiler/testData/codegen/box/multiplatform/commonInternal.kt +++ b/compiler/testData/codegen/box/multiplatform/commonInternal.kt @@ -1,4 +1,6 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62908 + // MODULE: common // FILE: commonMain.kt internal annotation class AnnInCommon diff --git a/compiler/testData/codegen/box/multiplatform/k2/annotations/expectAnnotationCallInLibrary.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/k2/annotations/expectAnnotationCallInLibrary.jvm_abi.txt new file mode 100644 index 00000000000..1601c5bb06a --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/annotations/expectAnnotationCallInLibrary.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS CommonKt.class + PACKAGE METADATA + PROPERTY getOk()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/multiplatform/k2/annotations/expectAnnotationCallInLibrary.kt b/compiler/testData/codegen/box/multiplatform/k2/annotations/expectAnnotationCallInLibrary.kt index bbbd4139abf..53628054038 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/annotations/expectAnnotationCallInLibrary.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/annotations/expectAnnotationCallInLibrary.kt @@ -1,5 +1,6 @@ // LANGUAGE: +MultiPlatformProjects // ISSUE: KT-57963 +// JVM_ABI_K1_K2_DIFF: KT-63984 // MODULE: common // TARGET_PLATFORM: Common diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.jvm_abi.txt new file mode 100644 index 00000000000..bd65352253c --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.jvm_abi.txt @@ -0,0 +1,7 @@ +MODULE platform + CLASS CommonMainKt.class + PACKAGE METADATA + K1 + --- + K2 + ret()Ljava/lang/String; diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt index 730740c75f4..88d31b67efe 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt @@ -1,4 +1,5 @@ // LANGUAGE: +MultiPlatformProjects +// JVM_ABI_K1_K2_DIFF: KT-63903 // MODULE: common // TARGET_PLATFORM: Common diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.jvm_abi.txt new file mode 100644 index 00000000000..3fd38c0aa24 --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE platform + CLASS CommonKt.class + PACKAGE METADATA + K1 + --- + K2 + getChecked + K1 + --- + K2 + getChecked([ZI)Z diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt index fd7935a2bfb..e7e594cadab 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt @@ -1,4 +1,5 @@ // LANGUAGE: +MultiPlatformProjects +// JVM_ABI_K1_K2_DIFF: KT-63903 // MODULE: common // TARGET_PLATFORM: Common diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.jvm_abi.txt new file mode 100644 index 00000000000..8ecff5aade5 --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.jvm_abi.txt @@ -0,0 +1,7 @@ +MODULE platform + CLASS p1/P1Kt.class + PACKAGE METADATA + K1 + --- + K2 + f()Ljava/lang/String; diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt index a1b1507c2a8..7d624ad591a 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt @@ -1,4 +1,5 @@ // LANGUAGE: +MultiPlatformProjects +// JVM_ABI_K1_K2_DIFF: KT-63903 // MODULE: common // TARGET_PLATFORM: Common diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.jvm_abi.txt new file mode 100644 index 00000000000..de20ba5c317 --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.jvm_abi.txt @@ -0,0 +1,19 @@ +MODULE platform + CLASS Common1Kt.class + PACKAGE METADATA + K1 + --- + K2 + f1()Ljava/lang/String; + CLASS Common0Kt.class + PACKAGE METADATA + K1 + --- + K2 + f0()Z + CLASS Common2Kt.class + PACKAGE METADATA + K1 + --- + K2 + f2()Ljava/lang/String; diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt index 5958caa9f80..a01c5cf380f 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt @@ -1,4 +1,5 @@ // LANGUAGE: +MultiPlatformProjects +// JVM_ABI_K1_K2_DIFF: KT-63903 // MODULE: common0 // TARGET_PLATFORM: Common diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.jvm_abi.txt new file mode 100644 index 00000000000..d5c16b16346 --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE platform + CLASS CommonKt.class + PACKAGE METADATA + K1 + --- + K2 + func()Ljava/lang/String; + K1 + --- + K2 + prop diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt index b7270977be7..11c7186ac96 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt @@ -1,4 +1,5 @@ // LANGUAGE: +MultiPlatformProjects +// JVM_ABI_K1_K2_DIFF: KT-63903 // MODULE: common // TARGET_PLATFORM: Common diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypeParameters.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypeParameters.jvm_abi.txt new file mode 100644 index 00000000000..86b1f1b0842 --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypeParameters.jvm_abi.txt @@ -0,0 +1,7 @@ +MODULE platform + CLASS CommonKt.class + PACKAGE METADATA + K1 + --- + K2 + k diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypeParameters.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypeParameters.kt index a362f343b76..38566a59d76 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypeParameters.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypeParameters.kt @@ -1,4 +1,5 @@ // LANGUAGE: +MultiPlatformProjects +// JVM_ABI_K1_K2_DIFF: KT-63903 // MODULE: common // TARGET_PLATFORM: Common diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.jvm_abi.txt new file mode 100644 index 00000000000..1133d6007dc --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.jvm_abi.txt @@ -0,0 +1,7 @@ +MODULE platform + CLASS CommonKt.class + PACKAGE METADATA + K1 + --- + K2 + foo()Ljava/lang/String; diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt index a62c177f472..38b2f1cd40b 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt @@ -1,4 +1,5 @@ // LANGUAGE: +MultiPlatformProjects +// JVM_ABI_K1_K2_DIFF: KT-63903 // MODULE: common // TARGET_PLATFORM: Common diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.jvm_abi.txt new file mode 100644 index 00000000000..01f5778abad --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.jvm_abi.txt @@ -0,0 +1,7 @@ +MODULE platform + CLASS CommonKt.class + PACKAGE METADATA + K1 + --- + K2 + f(I)Ljava/lang/String; diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.kt index 4a8d42ca9af..5da14450abf 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.kt @@ -1,5 +1,6 @@ // LANGUAGE: +MultiPlatformProjects // ISSUE: KT-58896 +// JVM_ABI_K1_K2_DIFF: KT-63903 // MODULE: common // TARGET_PLATFORM: Common diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.jvm_abi.txt new file mode 100644 index 00000000000..323f6e5ff8e --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.jvm_abi.txt @@ -0,0 +1,7 @@ +MODULE jvm + CLASS CommonKt.class + PACKAGE METADATA + K1 + --- + K2 + foo diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt index 9baaf2d4a7a..cdca7760243 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt @@ -1,5 +1,6 @@ // LANGUAGE: +MultiPlatformProjects // ISSUE: KT-56329 +// JVM_ABI_K1_K2_DIFF: KT-63903 // MODULE: common // TARGET_PLATFORM: Common diff --git a/compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.jvm_abi.txt new file mode 100644 index 00000000000..7a299c0a111 --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.jvm_abi.txt @@ -0,0 +1,3 @@ +MODULE main + Missing in K1 + Optional.class diff --git a/compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.kt b/compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.kt index 7f5a3d761d1..26d20f233ee 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.kt @@ -2,6 +2,7 @@ // TARGET_BACKEND: NATIVE // TARGET_BACKEND: WASM // TARGET_BACKEND: JVM_IR +// JVM_ABI_K1_K2_DIFF: KT-62931 // Stdlib is needed only for JVM_IR to resolve `kotlin.OptionalExpectation // WITH_STDLIB diff --git a/compiler/testData/codegen/box/multiplatform/multiModule/hmppSimple.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/multiModule/hmppSimple.jvm_abi.txt new file mode 100644 index 00000000000..b0387620162 --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/multiModule/hmppSimple.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE jvm + CLASS CommonKt.class + PACKAGE METADATA + K1 + --- + K2 + func()Ljava/lang/String; + K1 + --- + K2 + prop diff --git a/compiler/testData/codegen/box/multiplatform/multiModule/hmppSimple.kt b/compiler/testData/codegen/box/multiplatform/multiModule/hmppSimple.kt index a447a73e340..c6e2c8f9219 100644 --- a/compiler/testData/codegen/box/multiplatform/multiModule/hmppSimple.kt +++ b/compiler/testData/codegen/box/multiplatform/multiModule/hmppSimple.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM_IR // !LANGUAGE: +MultiPlatformProjects +// JVM_ABI_K1_K2_DIFF: KT-63903 // MODULE: common // TARGET_PLATFORM: Common diff --git a/compiler/testData/codegen/box/multiplatform/optionalExpectationJvm.jvm_abi.txt b/compiler/testData/codegen/box/multiplatform/optionalExpectationJvm.jvm_abi.txt new file mode 100644 index 00000000000..f7917bd1417 --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/optionalExpectationJvm.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + Missing in K1 + Anno.class + CLASS Foo.class + CLASS METADATA + PROPERTY getX()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/multiplatform/optionalExpectationJvm.kt b/compiler/testData/codegen/box/multiplatform/optionalExpectationJvm.kt index ce23dd98056..afc831dea45 100644 --- a/compiler/testData/codegen/box/multiplatform/optionalExpectationJvm.kt +++ b/compiler/testData/codegen/box/multiplatform/optionalExpectationJvm.kt @@ -2,6 +2,8 @@ // !OPT_IN: kotlin.ExperimentalMultiplatform // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62931, KT-63984 + // FILE: common.kt @OptionalExpectation diff --git a/compiler/testData/codegen/box/objects/compoundAssignmentToPropertyWithQualifier.jvm_abi.txt b/compiler/testData/codegen/box/objects/compoundAssignmentToPropertyWithQualifier.jvm_abi.txt new file mode 100644 index 00000000000..af0acdcb799 --- /dev/null +++ b/compiler/testData/codegen/box/objects/compoundAssignmentToPropertyWithQualifier.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS CompoundAssignmentToPropertyWithQualifierKt$box$c$1.class + CLASS METADATA + PROPERTY getB()LCompoundAssignmentToPropertyWithQualifierKt$box$c$1$b$1; + Property: class.metadata.property.returnType + K1 + .CompoundAssignmentToPropertyWithQualifierKt$box$c$1$b$1 + K2 + .CompoundAssignmentToPropertyWithQualifierKt$box$c$1. diff --git a/compiler/testData/codegen/box/objects/compoundAssignmentToPropertyWithQualifier.kt b/compiler/testData/codegen/box/objects/compoundAssignmentToPropertyWithQualifier.kt index bc00799ec27..8b271f6917a 100644 --- a/compiler/testData/codegen/box/objects/compoundAssignmentToPropertyWithQualifier.kt +++ b/compiler/testData/codegen/box/objects/compoundAssignmentToPropertyWithQualifier.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63655 + var log = "" class A(p: String) { diff --git a/compiler/testData/codegen/box/objects/kt1136.jvm_abi.txt b/compiler/testData/codegen/box/objects/kt1136.jvm_abi.txt new file mode 100644 index 00000000000..0e9d3a26734 --- /dev/null +++ b/compiler/testData/codegen/box/objects/kt1136.jvm_abi.txt @@ -0,0 +1,23 @@ +MODULE main + CLASS SomeClass.class + CLASS METADATA + PROPERTY list + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList + PROPERTY workerThread + Property: class.metadata.property.returnType + K1 + .SomeClass$workerThread$1 + K2 + .SomeClass. + CLASS SomeClass$Inner.class + CLASS METADATA + PROPERTY getCopy()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/objects/kt1136.kt b/compiler/testData/codegen/box/objects/kt1136.kt index ccd749de125..22bbdc22342 100644 --- a/compiler/testData/codegen/box/objects/kt1136.kt +++ b/compiler/testData/codegen/box/objects/kt1136.kt @@ -1,5 +1,5 @@ // TARGET_BACKEND: JVM - +// JVM_ABI_K1_K2_DIFF: KT-63655, KT-63864 public object SomeObject { private val workerThread = object : Thread() { override fun run() { diff --git a/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.jvm_abi.txt b/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.jvm_abi.txt new file mode 100644 index 00000000000..0b5adaa6a04 --- /dev/null +++ b/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS O.class + CLASS METADATA + PROPERTY getMmmap()Ljava/util/HashMap; + Property: class.metadata.property.returnType + K1 + java/util/HashMap /* = kotlin/collections/HashMap^ */ + K2 + java/util/HashMap diff --git a/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt b/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt index b86b48aee52..027086fc2ed 100644 --- a/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt +++ b/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt @@ -1,4 +1,5 @@ // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63864 object O { val mmmap = HashMap(); diff --git a/compiler/testData/codegen/box/objects/objectInLocalAnonymousObject.jvm_abi.txt b/compiler/testData/codegen/box/objects/objectInLocalAnonymousObject.jvm_abi.txt new file mode 100644 index 00000000000..72e41a297f0 --- /dev/null +++ b/compiler/testData/codegen/box/objects/objectInLocalAnonymousObject.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ObjectInLocalAnonymousObjectKt$box$foo$1.class + CLASS METADATA + PROPERTY getBar()LObjectInLocalAnonymousObjectKt$box$foo$1$bar$1; + Property: class.metadata.property.returnType + K1 + .ObjectInLocalAnonymousObjectKt$box$foo$1$bar$1 + K2 + .ObjectInLocalAnonymousObjectKt$box$foo$1. diff --git a/compiler/testData/codegen/box/objects/objectInLocalAnonymousObject.kt b/compiler/testData/codegen/box/objects/objectInLocalAnonymousObject.kt index f21c93edf75..c85892c23b9 100644 --- a/compiler/testData/codegen/box/objects/objectInLocalAnonymousObject.kt +++ b/compiler/testData/codegen/box/objects/objectInLocalAnonymousObject.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63655 fun box(): String { var boo = "OK" var foo = object { diff --git a/compiler/testData/codegen/box/objects/objectLiteralInClass.jvm_abi.txt b/compiler/testData/codegen/box/objects/objectLiteralInClass.jvm_abi.txt new file mode 100644 index 00000000000..9bbc8b8e8e2 --- /dev/null +++ b/compiler/testData/codegen/box/objects/objectLiteralInClass.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS C.class + CLASS METADATA + PROPERTY localObject + Property: class.metadata.property.returnType + K1 + .C$localObject$1 + K2 + .C. diff --git a/compiler/testData/codegen/box/objects/objectLiteralInClass.kt b/compiler/testData/codegen/box/objects/objectLiteralInClass.kt index db32a1dab6a..246148d1465 100644 --- a/compiler/testData/codegen/box/objects/objectLiteralInClass.kt +++ b/compiler/testData/codegen/box/objects/objectLiteralInClass.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63655 class C { val s = "OK" diff --git a/compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.jvm_abi.txt b/compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.jvm_abi.txt new file mode 100644 index 00000000000..3082f01e0b8 --- /dev/null +++ b/compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS Cls.class + CLASS METADATA + PROPERTY getBuffer()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder + CLASS Obj.class + CLASS METADATA + PROPERTY getBuffer()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.kt b/compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.kt index 82a84f5745a..7a7a625ce1d 100644 --- a/compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.kt +++ b/compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.kt @@ -1,4 +1,5 @@ // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63864 public inline fun T.with(f: T.() -> Unit): T { this.f() return this diff --git a/compiler/testData/codegen/box/objects/substitutionFunctionFromSuper.jvm_abi.txt b/compiler/testData/codegen/box/objects/substitutionFunctionFromSuper.jvm_abi.txt new file mode 100644 index 00000000000..dc883806c5d --- /dev/null +++ b/compiler/testData/codegen/box/objects/substitutionFunctionFromSuper.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Outer.class + CLASS METADATA + PROPERTY obj + Property: class.metadata.property.returnType + K1 + .Outer$obj$1 + K2 + .Outer. diff --git a/compiler/testData/codegen/box/objects/substitutionFunctionFromSuper.kt b/compiler/testData/codegen/box/objects/substitutionFunctionFromSuper.kt index ff7785b0e0c..1e777766e0e 100644 --- a/compiler/testData/codegen/box/objects/substitutionFunctionFromSuper.kt +++ b/compiler/testData/codegen/box/objects/substitutionFunctionFromSuper.kt @@ -1,5 +1,5 @@ // KT-44054 - +// JVM_ABI_K1_K2_DIFF: KT-63655 enum class Enum { Entry1, Entry2 diff --git a/compiler/testData/codegen/box/objects/useAnonymousObjectFunction.jvm_abi.txt b/compiler/testData/codegen/box/objects/useAnonymousObjectFunction.jvm_abi.txt new file mode 100644 index 00000000000..46ecaa91095 --- /dev/null +++ b/compiler/testData/codegen/box/objects/useAnonymousObjectFunction.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS Outer.class + CLASS METADATA + PROPERTY obj1 + Property: class.metadata.property.returnType + K1 + .Outer$obj1$1 + K2 + .Outer. + PROPERTY obj2 + Property: class.metadata.property.returnType + K1 + .Outer$obj2$1 + K2 + .Outer. diff --git a/compiler/testData/codegen/box/objects/useAnonymousObjectFunction.kt b/compiler/testData/codegen/box/objects/useAnonymousObjectFunction.kt index 2a4a870eed2..03fb85f22af 100644 --- a/compiler/testData/codegen/box/objects/useAnonymousObjectFunction.kt +++ b/compiler/testData/codegen/box/objects/useAnonymousObjectFunction.kt @@ -1,4 +1,5 @@ // KT-44050 +// JVM_ABI_K1_K2_DIFF: KT-63655 enum class Enum { Entry1() { diff --git a/compiler/testData/codegen/box/package/invokespecial.jvm_abi.txt b/compiler/testData/codegen/box/package/invokespecial.jvm_abi.txt new file mode 100644 index 00000000000..da83153efbb --- /dev/null +++ b/compiler/testData/codegen/box/package/invokespecial.jvm_abi.txt @@ -0,0 +1,35 @@ +MODULE main + CLASS B.class + CLASS METADATA + PROPERTY foo + Property: class.metadata.property.getterModifiers + K1 + private final /* non-default */ + K2 + private final + CLASS C.class + CLASS METADATA + PROPERTY foo + Property: class.metadata.property.getterModifiers + K1 + private final /* non-default */ + K2 + private final + Property: class.metadata.property.setterModifiers + K1 + private final /* non-default */ + K2 + private final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- + CLASS D.class + CLASS METADATA + PROPERTY getFoo()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/package/invokespecial.kt b/compiler/testData/codegen/box/package/invokespecial.kt index 2a92f3e4090..1598c6683d0 100644 --- a/compiler/testData/codegen/box/package/invokespecial.kt +++ b/compiler/testData/codegen/box/package/invokespecial.kt @@ -3,6 +3,7 @@ // IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6 // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND: JS +// JVM_ABI_K1_K2_DIFF: KT-63850, KT-63984 // KT-2202 Wrong instruction for invoke private setter diff --git a/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.jvm_abi.txt b/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.jvm_abi.txt new file mode 100644 index 00000000000..fc8121b8004 --- /dev/null +++ b/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test.class + CLASS METADATA + PROPERTY getMessages()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt b/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt index cf189326ccd..a9423af88fe 100644 --- a/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt +++ b/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: messages/foo.kt package messages diff --git a/compiler/testData/codegen/box/polymorphicSignature/invoke.jvm_abi.txt b/compiler/testData/codegen/box/polymorphicSignature/invoke.jvm_abi.txt new file mode 100644 index 00000000000..1a09cfbd625 --- /dev/null +++ b/compiler/testData/codegen/box/polymorphicSignature/invoke.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS InvokeKt$box$o$1.class + CLASS METADATA + PROPERTY getP()LInvokeKt$box$o$1$p$1; + Property: class.metadata.property.returnType + K1 + .InvokeKt$box$o$1$p$1 + K2 + .InvokeKt$box$o$1. diff --git a/compiler/testData/codegen/box/polymorphicSignature/invoke.kt b/compiler/testData/codegen/box/polymorphicSignature/invoke.kt index 4496889de66..ded8077534b 100644 --- a/compiler/testData/codegen/box/polymorphicSignature/invoke.kt +++ b/compiler/testData/codegen/box/polymorphicSignature/invoke.kt @@ -3,6 +3,7 @@ // FULL_JDK // SKIP_JDK6 // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63655 import java.lang.invoke.MethodHandles import java.lang.invoke.MethodType diff --git a/compiler/testData/codegen/box/properties/accessToPrivateProperty.jvm_abi.txt b/compiler/testData/codegen/box/properties/accessToPrivateProperty.jvm_abi.txt new file mode 100644 index 00000000000..379c60823ac --- /dev/null +++ b/compiler/testData/codegen/box/properties/accessToPrivateProperty.jvm_abi.txt @@ -0,0 +1,27 @@ +MODULE main + CLASS B.class + CLASS METADATA + PROPERTY foo + Property: class.metadata.property.getterModifiers + K1 + private final /* non-default */ + K2 + private final + CLASS C.class + CLASS METADATA + PROPERTY foo + Property: class.metadata.property.getterModifiers + K1 + private final /* non-default */ + K2 + private final + Property: class.metadata.property.setterModifiers + K1 + private final /* non-default */ + K2 + private final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- diff --git a/compiler/testData/codegen/box/properties/accessToPrivateProperty.kt b/compiler/testData/codegen/box/properties/accessToPrivateProperty.kt index b898fa5689e..0074a238e5d 100644 --- a/compiler/testData/codegen/box/properties/accessToPrivateProperty.kt +++ b/compiler/testData/codegen/box/properties/accessToPrivateProperty.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63850, KT-63854 + class A { private var foo = 1 get() { diff --git a/compiler/testData/codegen/box/properties/accessToPrivateSetter.jvm_abi.txt b/compiler/testData/codegen/box/properties/accessToPrivateSetter.jvm_abi.txt new file mode 100644 index 00000000000..7ebd17ee767 --- /dev/null +++ b/compiler/testData/codegen/box/properties/accessToPrivateSetter.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS D.class + CLASS METADATA + PROPERTY getFoo()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/properties/accessToPrivateSetter.kt b/compiler/testData/codegen/box/properties/accessToPrivateSetter.kt index 286b527f3b2..db83510d4a3 100644 --- a/compiler/testData/codegen/box/properties/accessToPrivateSetter.kt +++ b/compiler/testData/codegen/box/properties/accessToPrivateSetter.kt @@ -3,6 +3,7 @@ // IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6 // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND: JS +// JVM_ABI_K1_K2_DIFF: KT-63984 class D { var foo = 1 diff --git a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.jvm_abi.txt b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.jvm_abi.txt new file mode 100644 index 00000000000..1f5fffcb103 --- /dev/null +++ b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS a/A.class + CLASS METADATA + PROPERTY getVk()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY getVo()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.kt b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.kt index 3e9419b57d9..1c981222de5 100644 --- a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.kt +++ b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: accessorForProtectedPropertyWithPrivateSetter.kt import a.A diff --git a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.jvm_abi.txt b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.jvm_abi.txt new file mode 100644 index 00000000000..1f5fffcb103 --- /dev/null +++ b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS a/A.class + CLASS METADATA + PROPERTY getVk()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY getVo()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt index ad4e2e2cd3c..15ad537c47d 100644 --- a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt +++ b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt import a.A diff --git a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.jvm_abi.txt b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.jvm_abi.txt new file mode 100644 index 00000000000..1f5fffcb103 --- /dev/null +++ b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS a/A.class + CLASS METADATA + PROPERTY getVk()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY getVo()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.kt b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.kt index e3fdc8a88cf..fdef03f6692 100644 --- a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.kt +++ b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: accessorForProtectedPropertyWithPrivateSetterViaSuper.kt import a.A diff --git a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.jvm_abi.txt b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.jvm_abi.txt new file mode 100644 index 00000000000..1f5fffcb103 --- /dev/null +++ b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS a/A.class + CLASS METADATA + PROPERTY getVk()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY getVo()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt index 7ae0427e810..3b6a1997ff9 100644 --- a/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt +++ b/compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt import a.A diff --git a/compiler/testData/codegen/box/properties/classObjectProperties.jvm_abi.txt b/compiler/testData/codegen/box/properties/classObjectProperties.jvm_abi.txt new file mode 100644 index 00000000000..a912774091e --- /dev/null +++ b/compiler/testData/codegen/box/properties/classObjectProperties.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test$Companion.class + CLASS METADATA + PROPERTY getProp2()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/properties/classObjectProperties.kt b/compiler/testData/codegen/box/properties/classObjectProperties.kt index 1a48f5eb5f4..4d0f3099d5d 100644 --- a/compiler/testData/codegen/box/properties/classObjectProperties.kt +++ b/compiler/testData/codegen/box/properties/classObjectProperties.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + class Test { companion object { diff --git a/compiler/testData/codegen/box/properties/kt2331.jvm_abi.txt b/compiler/testData/codegen/box/properties/kt2331.jvm_abi.txt new file mode 100644 index 00000000000..a97d274e62b --- /dev/null +++ b/compiler/testData/codegen/box/properties/kt2331.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS P.class + CLASS METADATA + PROPERTY getX()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/box/properties/kt2331.kt b/compiler/testData/codegen/box/properties/kt2331.kt index 964c7e12636..637b19bad7c 100644 --- a/compiler/testData/codegen/box/properties/kt2331.kt +++ b/compiler/testData/codegen/box/properties/kt2331.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 class P { var x : Int = 0 private set diff --git a/compiler/testData/codegen/box/properties/kt2786.jvm_abi.txt b/compiler/testData/codegen/box/properties/kt2786.jvm_abi.txt new file mode 100644 index 00000000000..e26e6ad934f --- /dev/null +++ b/compiler/testData/codegen/box/properties/kt2786.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS DelegateTest.class + CLASS METADATA + K1 + getPropertyTest()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + propertyTest diff --git a/compiler/testData/codegen/box/properties/kt2786.kt b/compiler/testData/codegen/box/properties/kt2786.kt index 003ca536275..7c61f640235 100644 --- a/compiler/testData/codegen/box/properties/kt2786.kt +++ b/compiler/testData/codegen/box/properties/kt2786.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 interface FooTrait { val propertyTest: String } diff --git a/compiler/testData/codegen/box/properties/kt3930.jvm_abi.txt b/compiler/testData/codegen/box/properties/kt3930.jvm_abi.txt new file mode 100644 index 00000000000..4b91fa7e8b3 --- /dev/null +++ b/compiler/testData/codegen/box/properties/kt3930.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Foo.class + CLASS METADATA + PROPERTY isOpen()Z + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Boolean + K2 + value: kotlin/Boolean diff --git a/compiler/testData/codegen/box/properties/kt3930.kt b/compiler/testData/codegen/box/properties/kt3930.kt index b03168b7f43..3d4876bfc8a 100644 --- a/compiler/testData/codegen/box/properties/kt3930.kt +++ b/compiler/testData/codegen/box/properties/kt3930.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 public abstract class Foo { var isOpen = true private set diff --git a/compiler/testData/codegen/box/properties/kt4373.jvm_abi.txt b/compiler/testData/codegen/box/properties/kt4373.jvm_abi.txt new file mode 100644 index 00000000000..f6d419f66e1 --- /dev/null +++ b/compiler/testData/codegen/box/properties/kt4373.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS A.class + CLASS METADATA + K1 + getProp()Ljava/lang/Integer; + K2 + --- + K1 + --- + K2 + prop diff --git a/compiler/testData/codegen/box/properties/kt4373.kt b/compiler/testData/codegen/box/properties/kt4373.kt index 41b781f2cfc..97acb1afbbf 100644 --- a/compiler/testData/codegen/box/properties/kt4373.kt +++ b/compiler/testData/codegen/box/properties/kt4373.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 interface Tr { val prop: T } diff --git a/compiler/testData/codegen/box/properties/kt49203_lateinit.jvm_abi.txt b/compiler/testData/codegen/box/properties/kt49203_lateinit.jvm_abi.txt new file mode 100644 index 00000000000..7f85e1ef74c --- /dev/null +++ b/compiler/testData/codegen/box/properties/kt49203_lateinit.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getX()LX; + Property: class.metadata.property.setterValueParameter + K1 + : X + K2 + value: X diff --git a/compiler/testData/codegen/box/properties/kt49203_lateinit.kt b/compiler/testData/codegen/box/properties/kt49203_lateinit.kt index 28f20f62c05..af690985e83 100644 --- a/compiler/testData/codegen/box/properties/kt49203_lateinit.kt +++ b/compiler/testData/codegen/box/properties/kt49203_lateinit.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 class X { var value = "" diff --git a/compiler/testData/codegen/box/properties/kt49203_var.jvm_abi.txt b/compiler/testData/codegen/box/properties/kt49203_var.jvm_abi.txt new file mode 100644 index 00000000000..7f85e1ef74c --- /dev/null +++ b/compiler/testData/codegen/box/properties/kt49203_var.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getX()LX; + Property: class.metadata.property.setterValueParameter + K1 + : X + K2 + value: X diff --git a/compiler/testData/codegen/box/properties/kt49203_var.kt b/compiler/testData/codegen/box/properties/kt49203_var.kt index b5245a6a052..399f0ffbe4b 100644 --- a/compiler/testData/codegen/box/properties/kt49203_var.kt +++ b/compiler/testData/codegen/box/properties/kt49203_var.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 class X { var value = "" diff --git a/compiler/testData/codegen/box/properties/kt8928.jvm_abi.txt b/compiler/testData/codegen/box/properties/kt8928.jvm_abi.txt new file mode 100644 index 00000000000..c91160ee833 --- /dev/null +++ b/compiler/testData/codegen/box/properties/kt8928.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS App$Companion.class + CLASS METADATA + PROPERTY getS()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/properties/kt8928.kt b/compiler/testData/codegen/box/properties/kt8928.kt index bafc93f62b3..bbfa35e387f 100644 --- a/compiler/testData/codegen/box/properties/kt8928.kt +++ b/compiler/testData/codegen/box/properties/kt8928.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 class App { fun init() { s = "OK" diff --git a/compiler/testData/codegen/box/properties/kt9603.jvm_abi.txt b/compiler/testData/codegen/box/properties/kt9603.jvm_abi.txt new file mode 100644 index 00000000000..9c8c5c93081 --- /dev/null +++ b/compiler/testData/codegen/box/properties/kt9603.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getProp()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/properties/kt9603.kt b/compiler/testData/codegen/box/properties/kt9603.kt index 0fe5ad36d88..9f96f19cb72 100644 --- a/compiler/testData/codegen/box/properties/kt9603.kt +++ b/compiler/testData/codegen/box/properties/kt9603.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 fun eval(fn: () -> T) = fn() class A { diff --git a/compiler/testData/codegen/box/properties/lateinit/privateSetter.jvm_abi.txt b/compiler/testData/codegen/box/properties/lateinit/privateSetter.jvm_abi.txt new file mode 100644 index 00000000000..e742e494ac6 --- /dev/null +++ b/compiler/testData/codegen/box/properties/lateinit/privateSetter.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS My.class + CLASS METADATA + PROPERTY getX()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/properties/lateinit/privateSetter.kt b/compiler/testData/codegen/box/properties/lateinit/privateSetter.kt index 75bdc125e64..22bbec03baa 100644 --- a/compiler/testData/codegen/box/properties/lateinit/privateSetter.kt +++ b/compiler/testData/codegen/box/properties/lateinit/privateSetter.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 class My { lateinit var x: String private set diff --git a/compiler/testData/codegen/box/properties/lateinit/privateSetterFromLambda.jvm_abi.txt b/compiler/testData/codegen/box/properties/lateinit/privateSetterFromLambda.jvm_abi.txt new file mode 100644 index 00000000000..e742e494ac6 --- /dev/null +++ b/compiler/testData/codegen/box/properties/lateinit/privateSetterFromLambda.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS My.class + CLASS METADATA + PROPERTY getX()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/properties/lateinit/privateSetterFromLambda.kt b/compiler/testData/codegen/box/properties/lateinit/privateSetterFromLambda.kt index 80baa4ec688..59ab36473ad 100644 --- a/compiler/testData/codegen/box/properties/lateinit/privateSetterFromLambda.kt +++ b/compiler/testData/codegen/box/properties/lateinit/privateSetterFromLambda.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 class My { lateinit var x: String private set diff --git a/compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.jvm_abi.txt b/compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.jvm_abi.txt new file mode 100644 index 00000000000..974e7fbe331 --- /dev/null +++ b/compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getX()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.kt b/compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.kt index be73743b028..f6740ffd534 100644 --- a/compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.kt +++ b/compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 open class A { lateinit var x: String private set diff --git a/compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.jvm_abi.txt b/compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.jvm_abi.txt new file mode 100644 index 00000000000..d36e491637a --- /dev/null +++ b/compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.jvm_abi.txt @@ -0,0 +1,14 @@ +MODULE main + CLASS App$Companion.class + CLASS METADATA + PROPERTY instance + Property: class.metadata.property.setterModifiers + K1 + private final /* non-default */ + K2 + private final + Property: class.metadata.property.setterValueParameter + K1 + : App + K2 + --- diff --git a/compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.kt b/compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.kt index c651457ace9..0c746ac0489 100644 --- a/compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.kt +++ b/compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.kt @@ -1,5 +1,6 @@ // IGNORE_BACKEND: JVM // KT-44234 +// JVM_ABI_K1_K2_DIFF: KT-63850, KT-63984 class App { val context: Context = Context() diff --git a/compiler/testData/codegen/box/properties/privateAccessorOfOverriddenProperty.jvm_abi.txt b/compiler/testData/codegen/box/properties/privateAccessorOfOverriddenProperty.jvm_abi.txt new file mode 100644 index 00000000000..6bdceb7f6e8 --- /dev/null +++ b/compiler/testData/codegen/box/properties/privateAccessorOfOverriddenProperty.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS B.class + CLASS METADATA + PROPERTY getFoo()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/properties/privateAccessorOfOverriddenProperty.kt b/compiler/testData/codegen/box/properties/privateAccessorOfOverriddenProperty.kt index 28762ed8d2b..3d8ffacc39c 100644 --- a/compiler/testData/codegen/box/properties/privateAccessorOfOverriddenProperty.kt +++ b/compiler/testData/codegen/box/properties/privateAccessorOfOverriddenProperty.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 interface A { val foo: String } diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.jvm_abi.txt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.jvm_abi.txt new file mode 100644 index 00000000000..80ef28e2c70 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS EvaluationOrderForCollectionKt.class + PACKAGE METADATA + PROPERTY getOrder()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.kt index b7d10c33fc8..a3e1a5bc218 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 var order = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.jvm_abi.txt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.jvm_abi.txt new file mode 100644 index 00000000000..e26f36a3ae2 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS EvaluationOrderForComparableRangeKt.class + PACKAGE METADATA + PROPERTY getOrder()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.kt index 5b664cc8bdb..3189f31633d 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 var order = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.jvm_abi.txt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.jvm_abi.txt new file mode 100644 index 00000000000..7656a6ef89c --- /dev/null +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS EvaluationOrderForDownToKt.class + PACKAGE METADATA + PROPERTY getOrder()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.kt index 8989613b01a..2adfb9b9492 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.kt @@ -1,5 +1,7 @@ // KJS_WITH_FULL_RUNTIME // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* var order = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownToReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownToReversed.jvm_abi.txt new file mode 100644 index 00000000000..100ed8e46cc --- /dev/null +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownToReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS EvaluationOrderForDownToReversedKt.class + PACKAGE METADATA + PROPERTY getOrder()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownToReversed.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownToReversed.kt index 7047d39f05c..5d81948722a 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownToReversed.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownToReversed.kt @@ -1,5 +1,7 @@ // KJS_WITH_FULL_RUNTIME // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* var order = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForNullableArgument.jvm_abi.txt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForNullableArgument.jvm_abi.txt new file mode 100644 index 00000000000..49aa880d6d3 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForNullableArgument.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS EvaluationOrderForNullableArgumentKt.class + PACKAGE METADATA + PROPERTY getOrder()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForNullableArgument.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForNullableArgument.kt index 1979da67527..0e3af341ca3 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForNullableArgument.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForNullableArgument.kt @@ -1,5 +1,7 @@ // KJS_WITH_FULL_RUNTIME // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* var order = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.jvm_abi.txt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.jvm_abi.txt new file mode 100644 index 00000000000..324307fcefd --- /dev/null +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS EvaluationOrderForRangeLiteralKt.class + PACKAGE METADATA + PROPERTY getOrder()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt index 0c576a0afd0..d8460b7a7b0 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt @@ -1,5 +1,7 @@ // KJS_WITH_FULL_RUNTIME // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* var order = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteralReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteralReversed.jvm_abi.txt new file mode 100644 index 00000000000..b920441f0f1 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteralReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS EvaluationOrderForRangeLiteralReversedKt.class + PACKAGE METADATA + PROPERTY getOrder()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteralReversed.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteralReversed.kt index 2ccdea99a54..7f6ee8b4ac5 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteralReversed.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteralReversed.kt @@ -1,5 +1,7 @@ // KJS_WITH_FULL_RUNTIME // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* var order = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntil.jvm_abi.txt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntil.jvm_abi.txt new file mode 100644 index 00000000000..91caed5c9f6 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntil.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS EvaluationOrderForUntilKt.class + PACKAGE METADATA + PROPERTY getOrder()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntil.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntil.kt index 015e450f841..63c8f497693 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntil.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntil.kt @@ -1,5 +1,7 @@ // KJS_WITH_FULL_RUNTIME // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* var order = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntilReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntilReversed.jvm_abi.txt new file mode 100644 index 00000000000..7408e653900 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntilReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS EvaluationOrderForUntilReversedKt.class + PACKAGE METADATA + PROPERTY getOrder()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntilReversed.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntilReversed.kt index a55e1e5cfce..fcdab259dc0 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntilReversed.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntilReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* var order = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.jvm_abi.txt new file mode 100644 index 00000000000..f0c3d4f9b05 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInDownToKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.kt index cbb314cce1e..432d2382665 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.jvm_abi.txt new file mode 100644 index 00000000000..09443d668f1 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInDownToReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.kt index 2ca1823ece1..8bbde6a0669 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.jvm_abi.txt new file mode 100644 index 00000000000..e39d406bcbb --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInDownToReversedReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.kt index e285b94e6a2..19b81ecdb99 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.jvm_abi.txt new file mode 100644 index 00000000000..f9ac3432bba --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInRangeLiteralKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.kt index 4fd27ecb4ff..30a052bc638 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.jvm_abi.txt new file mode 100644 index 00000000000..d7295c17f8d --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInRangeLiteralReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.kt index 0521bc00b3c..5d2513cbd6c 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.jvm_abi.txt new file mode 100644 index 00000000000..ba345d196aa --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInRangeLiteralReversedReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.kt index 8f19f3d53d1..f2bf8542a9e 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.jvm_abi.txt new file mode 100644 index 00000000000..c96903b60ba --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInUntilKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.kt index cf2b40ecd1a..8036ca8d564 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.jvm_abi.txt new file mode 100644 index 00000000000..de1f99fee99 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInUntilReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.kt index 2cae6fd5755..512c84e320f 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.jvm_abi.txt new file mode 100644 index 00000000000..c9c05ead0cc --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInUntilReversedReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.kt index dffdbb4b0ba..6c18ea5ef95 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.jvm_abi.txt new file mode 100644 index 00000000000..1a2c3d4f5f6 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInDownToReversedStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.kt index 133173e0083..fde0864f08f 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.jvm_abi.txt new file mode 100644 index 00000000000..22fd34e77f7 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInDownToReversedStepReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.kt index 41979f5326a..65fab98397a 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.jvm_abi.txt new file mode 100644 index 00000000000..0a98e622434 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInDownToReversedStepReversedStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.kt index 27b6b0a6911..14a9f04eac9 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.jvm_abi.txt new file mode 100644 index 00000000000..3feb433e75e --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInDownToStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.kt index 941b7a309f7..222f4832ec1 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.jvm_abi.txt new file mode 100644 index 00000000000..b3e1a95d420 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInDownToStepReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.kt index f87e33c7b14..5420cee13b0 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.jvm_abi.txt new file mode 100644 index 00000000000..c892363c0ce --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInDownToStepReversedStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.kt index 3dda0b6393d..7b9d7dd4ec8 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.jvm_abi.txt new file mode 100644 index 00000000000..110db5d163c --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInDownToStepReversedStepReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.kt index b94e4182be7..eb422e1c3cd 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.jvm_abi.txt new file mode 100644 index 00000000000..44861fc27e8 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInDownToStepStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.kt index 22e4171bfd0..aafa7d34491 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.jvm_abi.txt new file mode 100644 index 00000000000..882d843f31d --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInRangeLiteralReversedStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.kt index 8ec92218acc..d062935b360 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.jvm_abi.txt new file mode 100644 index 00000000000..a56c93b21c8 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInRangeLiteralReversedStepReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.kt index a2f2322ffc8..ab435da7c4d 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.jvm_abi.txt new file mode 100644 index 00000000000..37bb03f0838 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInRangeLiteralReversedStepReversedStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.kt index df26d347b21..e92f1b1b8bd 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.jvm_abi.txt new file mode 100644 index 00000000000..31a41d15b60 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInRangeLiteralStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.kt index 548d056fd40..0d9856bde57 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.jvm_abi.txt new file mode 100644 index 00000000000..68d4c8f3a78 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInRangeLiteralStepReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.kt index 204510a47b3..b1da037f894 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.jvm_abi.txt new file mode 100644 index 00000000000..b80c27f9e3f --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInRangeLiteralStepReversedStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.kt index 45c2382d4f5..81411a92ca1 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.jvm_abi.txt new file mode 100644 index 00000000000..e63e37ad595 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInRangeLiteralStepReversedStepReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.kt index d5af4671936..fa8f4ea32e3 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.jvm_abi.txt new file mode 100644 index 00000000000..c65146a1e94 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInRangeLiteralStepStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.kt index c8e65aa0206..5220c7a725d 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.jvm_abi.txt new file mode 100644 index 00000000000..aa4f0a21765 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInUntilReversedStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.kt index a20b42d8797..1cd196ee195 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.jvm_abi.txt new file mode 100644 index 00000000000..38d3081e67e --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInUntilReversedStepReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.kt index 2a4cdd74a1e..55e4b66f2ec 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.jvm_abi.txt new file mode 100644 index 00000000000..7d321d8e87d --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInUntilReversedStepReversedStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.kt index d915512dc92..f9c732ee4a0 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.jvm_abi.txt new file mode 100644 index 00000000000..f58cc1e0ae7 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInUntilStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.kt index 3fc77711431..626039ebddc 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.jvm_abi.txt new file mode 100644 index 00000000000..435513b74bc --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInUntilStepReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.kt index 14b459c4bda..92af015c682 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.jvm_abi.txt new file mode 100644 index 00000000000..ad4eb6183ce --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInUntilStepReversedStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.kt index 3d98bb153d2..2a4578e50eb 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.jvm_abi.txt new file mode 100644 index 00000000000..3876da1738d --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInUntilStepReversedStepReversedKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.kt index a89632d011f..6a0ed86c6e2 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.jvm_abi.txt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.jvm_abi.txt new file mode 100644 index 00000000000..28a51008f19 --- /dev/null +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInUntilStepStepKt.class + PACKAGE METADATA + PROPERTY getLog()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.kt index fb3388320a8..4c9e2a77ef1 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63864 + import kotlin.test.* val log = StringBuilder() diff --git a/compiler/testData/codegen/box/reflection/call/protectedMembers.jvm_abi.txt b/compiler/testData/codegen/box/reflection/call/protectedMembers.jvm_abi.txt new file mode 100644 index 00000000000..73e1b0df28c --- /dev/null +++ b/compiler/testData/codegen/box/reflection/call/protectedMembers.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Base.class + CLASS METADATA + PROPERTY getPublicVarProtectedSet()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/reflection/call/protectedMembers.kt b/compiler/testData/codegen/box/reflection/call/protectedMembers.kt index 6cc6f489d92..ae1710c6969 100644 --- a/compiler/testData/codegen/box/reflection/call/protectedMembers.kt +++ b/compiler/testData/codegen/box/reflection/call/protectedMembers.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // WITH_REFLECT +// JVM_ABI_K1_K2_DIFF: KT-63984 import kotlin.reflect.* import kotlin.reflect.jvm.isAccessible diff --git a/compiler/testData/codegen/box/reflection/genericSignature/delegatedMembers.jvm_abi.txt b/compiler/testData/codegen/box/reflection/genericSignature/delegatedMembers.jvm_abi.txt new file mode 100644 index 00000000000..9452077fcc6 --- /dev/null +++ b/compiler/testData/codegen/box/reflection/genericSignature/delegatedMembers.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + FUNCTION foo(Ljava/util/List;Ljava/util/Map;)Ljava/lang/Long; + Property: class.metadata.function.valueParameters + K1 + (p0: kotlin/collections/MutableList..kotlin/collections/List?, p1: kotlin/collections/MutableMap..kotlin/collections/Set?>..kotlin/collections/Map..kotlin/collections/Set?>?) + K2 + (p0: kotlin/collections/MutableList..kotlin/collections/List?, p1: kotlin/collections/MutableMap..kotlin/collections/Set?>..kotlin/collections/Map..kotlin/collections/Set?>?) diff --git a/compiler/testData/codegen/box/reflection/genericSignature/delegatedMembers.kt b/compiler/testData/codegen/box/reflection/genericSignature/delegatedMembers.kt index d31d8466b06..d71fedecd9f 100644 --- a/compiler/testData/codegen/box/reflection/genericSignature/delegatedMembers.kt +++ b/compiler/testData/codegen/box/reflection/genericSignature/delegatedMembers.kt @@ -1,5 +1,7 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63914 + // FILE: J.java import java.util.*; diff --git a/compiler/testData/codegen/box/reflection/mapping/propertyAccessorsWithJvmName.jvm_abi.txt b/compiler/testData/codegen/box/reflection/mapping/propertyAccessorsWithJvmName.jvm_abi.txt new file mode 100644 index 00000000000..d061a14388f --- /dev/null +++ b/compiler/testData/codegen/box/reflection/mapping/propertyAccessorsWithJvmName.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS PropertyAccessorsWithJvmNameKt.class + PACKAGE METADATA + PROPERTY getter()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/reflection/mapping/propertyAccessorsWithJvmName.kt b/compiler/testData/codegen/box/reflection/mapping/propertyAccessorsWithJvmName.kt index f34e60aa6e2..803b256ec6c 100644 --- a/compiler/testData/codegen/box/reflection/mapping/propertyAccessorsWithJvmName.kt +++ b/compiler/testData/codegen/box/reflection/mapping/propertyAccessorsWithJvmName.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63984 // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/mapping/types/allSupertypes.jvm_abi.txt b/compiler/testData/codegen/box/reflection/mapping/types/allSupertypes.jvm_abi.txt new file mode 100644 index 00000000000..67ecef89d12 --- /dev/null +++ b/compiler/testData/codegen/box/reflection/mapping/types/allSupertypes.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS test/A.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/reflection/mapping/types/allSupertypes.kt b/compiler/testData/codegen/box/reflection/mapping/types/allSupertypes.kt index caddfa2d311..3ca649de6ff 100644 --- a/compiler/testData/codegen/box/reflection/mapping/types/allSupertypes.kt +++ b/compiler/testData/codegen/box/reflection/mapping/types/allSupertypes.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // WITH_REFLECT +// JVM_ABI_K1_K2_DIFF: KT-57268 package test diff --git a/compiler/testData/codegen/box/reflection/modifiers/callableVisibility.jvm_abi.txt b/compiler/testData/codegen/box/reflection/modifiers/callableVisibility.jvm_abi.txt new file mode 100644 index 00000000000..1ea103398f9 --- /dev/null +++ b/compiler/testData/codegen/box/reflection/modifiers/callableVisibility.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Foo.class + CLASS METADATA + PROPERTY getPublicVarPrivateSetter()Lkotlin/Unit; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Unit + K2 + value: kotlin/Unit diff --git a/compiler/testData/codegen/box/reflection/modifiers/callableVisibility.kt b/compiler/testData/codegen/box/reflection/modifiers/callableVisibility.kt index 4f03f94251b..6d3f6721bf3 100644 --- a/compiler/testData/codegen/box/reflection/modifiers/callableVisibility.kt +++ b/compiler/testData/codegen/box/reflection/modifiers/callableVisibility.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63984 // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/parameters/propertySetter.jvm_abi.txt b/compiler/testData/codegen/box/reflection/parameters/propertySetter.jvm_abi.txt new file mode 100644 index 00000000000..7abb1395153 --- /dev/null +++ b/compiler/testData/codegen/box/reflection/parameters/propertySetter.jvm_abi.txt @@ -0,0 +1,14 @@ +MODULE main + CLASS PropertySetterKt.class + PACKAGE METADATA + PROPERTY getDefaultAnnotated()I + Property: class.metadata.property.setterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- diff --git a/compiler/testData/codegen/box/reflection/parameters/propertySetter.kt b/compiler/testData/codegen/box/reflection/parameters/propertySetter.kt index 4a41f3762c9..51bcbce94fe 100644 --- a/compiler/testData/codegen/box/reflection/parameters/propertySetter.kt +++ b/compiler/testData/codegen/box/reflection/parameters/propertySetter.kt @@ -1,6 +1,6 @@ // TARGET_BACKEND: JVM - // WITH_REFLECT +// JVM_ABI_K1_K2_DIFF: KT-63850, KT-63984 import kotlin.reflect.* import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/reflection/properties/interfaceDelegation.jvm_abi.txt b/compiler/testData/codegen/box/reflection/properties/interfaceDelegation.jvm_abi.txt new file mode 100644 index 00000000000..02fd013bd56 --- /dev/null +++ b/compiler/testData/codegen/box/reflection/properties/interfaceDelegation.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS C.class + CLASS METADATA + K1 + getMessage()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + message diff --git a/compiler/testData/codegen/box/reflection/properties/interfaceDelegation.kt b/compiler/testData/codegen/box/reflection/properties/interfaceDelegation.kt index def7637289b..3623c2c7119 100644 --- a/compiler/testData/codegen/box/reflection/properties/interfaceDelegation.kt +++ b/compiler/testData/codegen/box/reflection/properties/interfaceDelegation.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // WITH_REFLECT +// JVM_ABI_K1_K2_DIFF: KT-63828 import kotlin.reflect.* import kotlin.reflect.full.* diff --git a/compiler/testData/codegen/box/reflection/properties/localDelegated/variableOfGenericType.jvm_abi.txt b/compiler/testData/codegen/box/reflection/properties/localDelegated/variableOfGenericType.jvm_abi.txt new file mode 100644 index 00000000000..942846baa58 --- /dev/null +++ b/compiler/testData/codegen/box/reflection/properties/localDelegated/variableOfGenericType.jvm_abi.txt @@ -0,0 +1,14 @@ +MODULE main + CLASS A$B.class + CLASS METADATA + LOCAL DELEGATED PROPERTY c + Property: class.metadata.property.typeParameters + K1 + + K2 + + Property: class.metadata.property.returnType + K1 + kotlin/collections/Map, T#0> + K2 + kotlin/collections/Map, T#2> diff --git a/compiler/testData/codegen/box/reflection/properties/localDelegated/variableOfGenericType.kt b/compiler/testData/codegen/box/reflection/properties/localDelegated/variableOfGenericType.kt index 71e0440f6eb..e229a8dc4d9 100644 --- a/compiler/testData/codegen/box/reflection/properties/localDelegated/variableOfGenericType.kt +++ b/compiler/testData/codegen/box/reflection/properties/localDelegated/variableOfGenericType.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // WITH_REFLECT +// JVM_ABI_K1_K2_DIFF: KT-63875 import kotlin.reflect.* import kotlin.test.* diff --git a/compiler/testData/codegen/box/reflection/typeParameters/upperBounds.jvm_abi.txt b/compiler/testData/codegen/box/reflection/typeParameters/upperBounds.jvm_abi.txt new file mode 100644 index 00000000000..5ea8f8b6291 --- /dev/null +++ b/compiler/testData/codegen/box/reflection/typeParameters/upperBounds.jvm_abi.txt @@ -0,0 +1,8 @@ +MODULE main + CLASS NullableAnyBound.class + CLASS METADATA + Property: class.metadata.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/reflection/typeParameters/upperBounds.kt b/compiler/testData/codegen/box/reflection/typeParameters/upperBounds.kt index 1f20c71fc34..87ef7bb3b65 100644 --- a/compiler/testData/codegen/box/reflection/typeParameters/upperBounds.kt +++ b/compiler/testData/codegen/box/reflection/typeParameters/upperBounds.kt @@ -1,6 +1,7 @@ // TARGET_BACKEND: JVM - // WITH_REFLECT +// JVM_ABI_K1_K2_DIFF: KT-63855 + import kotlin.reflect.KTypeProjection import kotlin.reflect.KVariance diff --git a/compiler/testData/codegen/box/regressions/kt3850.jvm_abi.txt b/compiler/testData/codegen/box/regressions/kt3850.jvm_abi.txt new file mode 100644 index 00000000000..7f0a1d46e92 --- /dev/null +++ b/compiler/testData/codegen/box/regressions/kt3850.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS One.class + CLASS METADATA + PROPERTY getA1()[LOne$a1$1; + Property: class.metadata.property.returnType + K1 + kotlin/Array<.One$a1$1> + K2 + kotlin/Array<.One.> diff --git a/compiler/testData/codegen/box/regressions/kt3850.kt b/compiler/testData/codegen/box/regressions/kt3850.kt index 007dc26fb5e..8ed257c1c8e 100644 --- a/compiler/testData/codegen/box/regressions/kt3850.kt +++ b/compiler/testData/codegen/box/regressions/kt3850.kt @@ -2,6 +2,7 @@ // In light analysis mode, anonymous object type is approximated to the supertype, so `fy` is unresolved. // IGNORE_LIGHT_ANALYSIS +// JVM_ABI_K1_K2_DIFF: KT-63655 private class One { val a1 = arrayOf( diff --git a/compiler/testData/codegen/box/safeCall/kt52743.jvm_abi.txt b/compiler/testData/codegen/box/safeCall/kt52743.jvm_abi.txt new file mode 100644 index 00000000000..f2edccc1026 --- /dev/null +++ b/compiler/testData/codegen/box/safeCall/kt52743.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Kt52743Kt.class + PACKAGE METADATA + FUNCTION nullableFun()Ljava/lang/Object; + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/box/safeCall/kt52743.kt b/compiler/testData/codegen/box/safeCall/kt52743.kt index ea6431f0a2c..7230f620dc4 100644 --- a/compiler/testData/codegen/box/safeCall/kt52743.kt +++ b/compiler/testData/codegen/box/safeCall/kt52743.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63855 + fun nullableFun(): T { return null as T } diff --git a/compiler/testData/codegen/box/sam/contravariantIntersectionType.jvm_abi.txt b/compiler/testData/codegen/box/sam/contravariantIntersectionType.jvm_abi.txt new file mode 100644 index 00000000000..40ebb888d72 --- /dev/null +++ b/compiler/testData/codegen/box/sam/contravariantIntersectionType.jvm_abi.txt @@ -0,0 +1,3 @@ +MODULE main + Missing in K2 + TestKt$example$2.class diff --git a/compiler/testData/codegen/box/sam/contravariantIntersectionType.kt b/compiler/testData/codegen/box/sam/contravariantIntersectionType.kt index f26717dc155..c4aafbfd007 100644 --- a/compiler/testData/codegen/box/sam/contravariantIntersectionType.kt +++ b/compiler/testData/codegen/box/sam/contravariantIntersectionType.kt @@ -1,4 +1,5 @@ // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62865 // TODO support different bytecode text templates for FIR? // --CHECK_BYTECODE_TEXT diff --git a/compiler/testData/codegen/box/sam/kt11519.jvm_abi.txt b/compiler/testData/codegen/box/sam/kt11519.jvm_abi.txt new file mode 100644 index 00000000000..c11d89bde7b --- /dev/null +++ b/compiler/testData/codegen/box/sam/kt11519.jvm_abi.txt @@ -0,0 +1,31 @@ +MODULE main + Missing in K1 + _1Kt$sam$Custom_MBiConsumer$0.class + CLASS _1Kt$box$1.class + Property: class.signature + K1 + Ljava/lang/Object;LCustom$MBiConsumer; + K2 + Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function2; + Property: class.superClassInternalName + K1 + java/lang/Object + K2 + kotlin/jvm/internal/Lambda + Property: class.superInterfaces + K1 + [Custom$MBiConsumer] + K2 + [kotlin/jvm/functions/Function2] + K1 + INNER_CLASS Custom$MBiConsumer Custom MBiConsumer 11000001001 [public, static, interface, abstract] + K2 + --- + K1 + accept(Ljava/lang/String;Ljava/lang/String;)V [public, final] + K2 + --- + K1 + --- + K2 + invoke(Ljava/lang/String;Ljava/lang/String;)V [public, final] diff --git a/compiler/testData/codegen/box/sam/kt11519.kt b/compiler/testData/codegen/box/sam/kt11519.kt index e79018030a3..b36d6a236f8 100644 --- a/compiler/testData/codegen/box/sam/kt11519.kt +++ b/compiler/testData/codegen/box/sam/kt11519.kt @@ -2,6 +2,7 @@ // SKIP_JDK6 // SAM_CONVERSIONS: CLASS // ^ test checks reflection for synthetic classes +// JVM_ABI_K1_K2_DIFF: KT-62855 // MODULE: lib // FILE: Custom.java diff --git a/compiler/testData/codegen/box/sam/kt50477Enabled.jvm_abi.txt b/compiler/testData/codegen/box/sam/kt50477Enabled.jvm_abi.txt new file mode 100644 index 00000000000..7c8105a9123 --- /dev/null +++ b/compiler/testData/codegen/box/sam/kt50477Enabled.jvm_abi.txt @@ -0,0 +1,73 @@ +MODULE main + CLASS Kt50477EnabledKt$box$1.class + Property: class.signature + K1 + NULL + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + Property: class.superClassInternalName + K1 + java/lang/Object + K2 + kotlin/jvm/internal/FunctionReferenceImpl + Property: class.superInterfaces + K1 + [FI, kotlin/jvm/internal/FunctionAdapter] + K2 + [kotlin/coroutines/jvm/internal/SuspendFunction, kotlin/jvm/functions/Function1] + K1 + call(Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] + K2 + --- + K1 + equals(Ljava/lang/Object;)Z [public, final] + K2 + --- + K1 + getFunctionDelegate()Lkotlin/Function; [public, final] + K2 + --- + K1 + hashCode()I [public, final] + K2 + --- + K1 + --- + K2 + invoke(Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] + CLASS Kt50477EnabledKt$box$4.class + Property: class.signature + K1 + NULL + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + Property: class.superClassInternalName + K1 + java/lang/Object + K2 + kotlin/jvm/internal/FunctionReferenceImpl + Property: class.superInterfaces + K1 + [FI, kotlin/jvm/internal/FunctionAdapter] + K2 + [kotlin/coroutines/jvm/internal/SuspendFunction, kotlin/jvm/functions/Function1] + K1 + call(Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] + K2 + --- + K1 + equals(Ljava/lang/Object;)Z [public, final] + K2 + --- + K1 + getFunctionDelegate()Lkotlin/Function; [public, final] + K2 + --- + K1 + hashCode()I [public, final] + K2 + --- + K1 + --- + K2 + invoke(Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] diff --git a/compiler/testData/codegen/box/sam/kt50477Enabled.kt b/compiler/testData/codegen/box/sam/kt50477Enabled.kt index f16df138c0a..ac6f69d0152 100644 --- a/compiler/testData/codegen/box/sam/kt50477Enabled.kt +++ b/compiler/testData/codegen/box/sam/kt50477Enabled.kt @@ -1,5 +1,6 @@ // !LANGUAGE: +SuspendOnlySamConversions // TARGET_BACKEND: JVM_IR +// JVM_ABI_K1_K2_DIFF: KT-62855 fun interface FI { suspend fun call() // suspending now(!!!) diff --git a/compiler/testData/codegen/box/sealed/delegatingConstructor.jvm_abi.txt b/compiler/testData/codegen/box/sealed/delegatingConstructor.jvm_abi.txt new file mode 100644 index 00000000000..2ee2fcfbf6d --- /dev/null +++ b/compiler/testData/codegen/box/sealed/delegatingConstructor.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Sealed.class + CLASS METADATA + CONSTRUCTOR ()V + Property: class.metadata.constructor.modifiers + K1 + protected /* secondary */ + K2 + private /* secondary */ diff --git a/compiler/testData/codegen/box/sealed/delegatingConstructor.kt b/compiler/testData/codegen/box/sealed/delegatingConstructor.kt index 8ad9684fe1f..04a54343059 100644 --- a/compiler/testData/codegen/box/sealed/delegatingConstructor.kt +++ b/compiler/testData/codegen/box/sealed/delegatingConstructor.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63920 + sealed class Sealed(val value: String) { constructor() : this("OK") } diff --git a/compiler/testData/codegen/box/sealed/sealedInSameFile.jvm_abi.txt b/compiler/testData/codegen/box/sealed/sealedInSameFile.jvm_abi.txt new file mode 100644 index 00000000000..df2a9cabe9d --- /dev/null +++ b/compiler/testData/codegen/box/sealed/sealedInSameFile.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + CONSTRUCTOR (I)V + Property: class.metadata.constructor.modifiers + K1 + protected /* secondary */ + K2 + private /* secondary */ diff --git a/compiler/testData/codegen/box/sealed/sealedInSameFile.kt b/compiler/testData/codegen/box/sealed/sealedInSameFile.kt index 673afef28ef..60093062354 100644 --- a/compiler/testData/codegen/box/sealed/sealedInSameFile.kt +++ b/compiler/testData/codegen/box/sealed/sealedInSameFile.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63920 + class B : A() sealed class A() { diff --git a/compiler/testData/codegen/box/specialBuiltins/bridgesJVM.jvm_abi.txt b/compiler/testData/codegen/box/specialBuiltins/bridgesJVM.jvm_abi.txt new file mode 100644 index 00000000000..b346a3e8eee --- /dev/null +++ b/compiler/testData/codegen/box/specialBuiltins/bridgesJVM.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS BridgesJVMKt.class + PACKAGE METADATA + PROPERTY getList()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/specialBuiltins/bridgesJVM.kt b/compiler/testData/codegen/box/specialBuiltins/bridgesJVM.kt index 1f7f7bbf1f1..4408376c1d7 100644 --- a/compiler/testData/codegen/box/specialBuiltins/bridgesJVM.kt +++ b/compiler/testData/codegen/box/specialBuiltins/bridgesJVM.kt @@ -1,6 +1,7 @@ // TARGET_BACKEND: JVM // TARGET_BACKEND: JVM_IR // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63864 val list = ArrayList() diff --git a/compiler/testData/codegen/box/specialBuiltins/emptyMap.jvm_abi.txt b/compiler/testData/codegen/box/specialBuiltins/emptyMap.jvm_abi.txt new file mode 100644 index 00000000000..8c7178170d9 --- /dev/null +++ b/compiler/testData/codegen/box/specialBuiltins/emptyMap.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS EmptyMap.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/specialBuiltins/emptyMap.kt b/compiler/testData/codegen/box/specialBuiltins/emptyMap.kt index c0770bd6b2a..de2be9911f9 100644 --- a/compiler/testData/codegen/box/specialBuiltins/emptyMap.kt +++ b/compiler/testData/codegen/box/specialBuiltins/emptyMap.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-57268 + private object EmptyMap : Map { override val size: Int get() = 0 override fun isEmpty(): Boolean = true diff --git a/compiler/testData/codegen/box/specialBuiltins/emptyStringMap.jvm_abi.txt b/compiler/testData/codegen/box/specialBuiltins/emptyStringMap.jvm_abi.txt new file mode 100644 index 00000000000..78c82bb20f4 --- /dev/null +++ b/compiler/testData/codegen/box/specialBuiltins/emptyStringMap.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS EmptyStringMap.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/specialBuiltins/emptyStringMap.kt b/compiler/testData/codegen/box/specialBuiltins/emptyStringMap.kt index fd4953af8ec..e93eb8c09b2 100644 --- a/compiler/testData/codegen/box/specialBuiltins/emptyStringMap.kt +++ b/compiler/testData/codegen/box/specialBuiltins/emptyStringMap.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-57268 + private object EmptyStringMap : Map { override val size: Int get() = 0 override fun isEmpty(): Boolean = true diff --git a/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.jvm_abi.txt b/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.jvm_abi.txt new file mode 100644 index 00000000000..d1c999845de --- /dev/null +++ b/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.jvm_abi.txt @@ -0,0 +1,18 @@ +MODULE main + CLASS Map1.class + K1 + --- + K2 + getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [public, final, bridge] + K1 + --- + K2 + getOrDefault(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object; [public, bridge] + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public, final, bridge] + K1 + --- + K2 + remove(Ljava/lang/String;Ljava/lang/Object;)Z [public, bridge] diff --git a/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt b/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt index 294ad219d43..8f75d229a68 100644 --- a/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt +++ b/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt @@ -2,6 +2,7 @@ // WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // DONT_TARGET_EXACT_BACKEND: NATIVE +// JVM_ABI_K1_K2_DIFF: KT-57268 open class Map1 : HashMap() class Map2 : Map1() diff --git a/compiler/testData/codegen/box/specialBuiltins/maps.jvm_abi.txt b/compiler/testData/codegen/box/specialBuiltins/maps.jvm_abi.txt new file mode 100644 index 00000000000..6935dc0dfa3 --- /dev/null +++ b/compiler/testData/codegen/box/specialBuiltins/maps.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS A.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] diff --git a/compiler/testData/codegen/box/specialBuiltins/maps.kt b/compiler/testData/codegen/box/specialBuiltins/maps.kt index d3dedeef878..eaecd627eef 100644 --- a/compiler/testData/codegen/box/specialBuiltins/maps.kt +++ b/compiler/testData/codegen/box/specialBuiltins/maps.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-57268 + class A : Map { override val size: Int get() = 56 diff --git a/compiler/testData/codegen/box/specialBuiltins/noSpecialBridgeInSuperClass.jvm_abi.txt b/compiler/testData/codegen/box/specialBuiltins/noSpecialBridgeInSuperClass.jvm_abi.txt new file mode 100644 index 00000000000..d6fc322265b --- /dev/null +++ b/compiler/testData/codegen/box/specialBuiltins/noSpecialBridgeInSuperClass.jvm_abi.txt @@ -0,0 +1,24 @@ +MODULE main + CLASS AbstractFoo.class + K1 + --- + K2 + remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public] + CLASS StringFoo.class + K1 + --- + K2 + getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [public, final, bridge] + K1 + --- + K2 + getOrDefault(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object; [public, bridge] + CLASS IntFoo.class + K1 + --- + K2 + getOrDefault(ILjava/lang/Object;)Ljava/lang/Object; [public, bridge] + K1 + --- + K2 + getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [public, final, bridge] diff --git a/compiler/testData/codegen/box/specialBuiltins/noSpecialBridgeInSuperClass.kt b/compiler/testData/codegen/box/specialBuiltins/noSpecialBridgeInSuperClass.kt index df49fe5a5cb..7b826353981 100644 --- a/compiler/testData/codegen/box/specialBuiltins/noSpecialBridgeInSuperClass.kt +++ b/compiler/testData/codegen/box/specialBuiltins/noSpecialBridgeInSuperClass.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-57268 + var result = "" public abstract class AbstractFoo : Map { diff --git a/compiler/testData/codegen/box/strings/kt3571.jvm_abi.txt b/compiler/testData/codegen/box/strings/kt3571.jvm_abi.txt new file mode 100644 index 00000000000..edce0dd255e --- /dev/null +++ b/compiler/testData/codegen/box/strings/kt3571.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS Thing.class + CLASS METADATA + K1 + getLength()I + K2 + --- + K1 + --- + K2 + length diff --git a/compiler/testData/codegen/box/strings/kt3571.kt b/compiler/testData/codegen/box/strings/kt3571.kt index 960a37656a0..411403f3143 100644 --- a/compiler/testData/codegen/box/strings/kt3571.kt +++ b/compiler/testData/codegen/box/strings/kt3571.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 + class Thing(delegate: CharSequence) : CharSequence by delegate fun box(): String { diff --git a/compiler/testData/codegen/box/super/kt14243_2.jvm_abi.txt b/compiler/testData/codegen/box/super/kt14243_2.jvm_abi.txt new file mode 100644 index 00000000000..f5ec8078363 --- /dev/null +++ b/compiler/testData/codegen/box/super/kt14243_2.jvm_abi.txt @@ -0,0 +1,6 @@ +MODULE main + CLASS ZImpl2.class + K1 + --- + K2 + test(Ljava/lang/String;)Ljava/lang/String; [public] diff --git a/compiler/testData/codegen/box/super/kt14243_2.kt b/compiler/testData/codegen/box/super/kt14243_2.kt index b72bf3dac7c..0e03d38a5eb 100644 --- a/compiler/testData/codegen/box/super/kt14243_2.kt +++ b/compiler/testData/codegen/box/super/kt14243_2.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62781 + interface Z { fun test(p: T): T { return p diff --git a/compiler/testData/codegen/box/super/superConstructor/objectExtendsLocalInner.jvm_abi.txt b/compiler/testData/codegen/box/super/superConstructor/objectExtendsLocalInner.jvm_abi.txt new file mode 100644 index 00000000000..c8e9f9e0d92 --- /dev/null +++ b/compiler/testData/codegen/box/super/superConstructor/objectExtendsLocalInner.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ObjectExtendsLocalInnerKt$box$Local.class + CLASS METADATA + PROPERTY getObj()LObjectExtendsLocalInnerKt$box$Local$obj$1; + Property: class.metadata.property.returnType + K1 + .ObjectExtendsLocalInnerKt$box$Local$obj$1 + K2 + .ObjectExtendsLocalInnerKt$box$Local. diff --git a/compiler/testData/codegen/box/super/superConstructor/objectExtendsLocalInner.kt b/compiler/testData/codegen/box/super/superConstructor/objectExtendsLocalInner.kt index ab3c695f278..d4a49596050 100644 --- a/compiler/testData/codegen/box/super/superConstructor/objectExtendsLocalInner.kt +++ b/compiler/testData/codegen/box/super/superConstructor/objectExtendsLocalInner.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63655 fun box(): String { val capture = "O" diff --git a/compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.jvm_abi.txt b/compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.jvm_abi.txt new file mode 100644 index 00000000000..1289958eb42 --- /dev/null +++ b/compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.jvm_abi.txt @@ -0,0 +1,81 @@ +MODULE main + CLASS BasicSuspendConversionGenericsKt$test$a01$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K1 + invoke(LC;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] + K2 + --- + K1 + --- + K2 + invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] + CLASS BasicSuspendConversionGenericsKt$test$a11$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + METHOD invoke(Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + Property: method.signature + K1 + (Lkotlin/coroutines/Continuation<-Ljava/lang/String;>;)Ljava/lang/Object; + K2 + (Lkotlin/coroutines/Continuation<-TT;>;)Ljava/lang/Object; + CLASS BasicSuspendConversionGenericsKt$test$a21$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K1 + invoke(LC;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] + K2 + --- + K1 + --- + K2 + invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] + CLASS BasicSuspendConversionGenericsKt$test$a31$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K1 + invoke(LC;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] + K2 + --- + K1 + --- + K2 + invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] + CLASS BasicSuspendConversionGenericsKt$test$a41$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + METHOD invoke(Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + Property: method.signature + K1 + (Lkotlin/coroutines/Continuation<-Ljava/lang/String;>;)Ljava/lang/Object; + K2 + (Lkotlin/coroutines/Continuation<-TT;>;)Ljava/lang/Object; + CLASS BasicSuspendConversionGenericsKt$test$a51$1.class + Property: class.signature + K1 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function2;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + K1 + invoke(LC;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] + K2 + --- + K1 + --- + K2 + invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; [public, final] diff --git a/compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.kt b/compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.kt index b18ed39a215..dbe009b15b4 100644 --- a/compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.kt +++ b/compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.kt @@ -6,6 +6,8 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62793 + class C class Inv2 diff --git a/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.jvm_abi.txt b/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.jvm_abi.txt new file mode 100644 index 00000000000..eed46d241d9 --- /dev/null +++ b/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.jvm_abi.txt @@ -0,0 +1,31 @@ +MODULE main + Missing in K1 + ChainedFunSuspendConversionForSimpleExpressionKt$sam$SuspendRunnable$0.class + CLASS ChainedFunSuspendConversionForSimpleExpressionKt$test$2.class + Property: class.signature + K1 + NULL + K2 + Lkotlin/jvm/internal/FunctionReferenceImpl;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;>;Lkotlin/coroutines/jvm/internal/SuspendFunction; + Property: class.superClassInternalName + K1 + java/lang/Object + K2 + kotlin/jvm/internal/FunctionReferenceImpl + Property: class.superInterfaces + K1 + [SuspendRunnable, kotlin/jvm/internal/FunctionAdapter] + K2 + [kotlin/coroutines/jvm/internal/SuspendFunction, kotlin/jvm/functions/Function1] + K1 + equals(Ljava/lang/Object;)Z [public, final] + K2 + --- + K1 + getFunctionDelegate()Lkotlin/Function; [public, final] + K2 + --- + K1 + hashCode()I [public, final] + K2 + --- diff --git a/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt b/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt index e44ea4e6b3f..d69383d3709 100644 --- a/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt +++ b/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt @@ -1,5 +1,6 @@ // !LANGUAGE: +SuspendConversion // IGNORE_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62855 fun interface SuspendRunnable { suspend fun invoke() diff --git a/compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.jvm_abi.txt b/compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.jvm_abi.txt new file mode 100644 index 00000000000..fd1850dd96e --- /dev/null +++ b/compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.jvm_abi.txt @@ -0,0 +1,7 @@ +MODULE main + Missing in K1 + Test1$Scope$bar$1.class + Test2$Scope$bar$1.class + SuspendAndFunConversionInDisabledModeKt$sam$SuspendRunnable$0.class + Missing in K2 + SuspendAndFunConversionInDisabledModeKt$sam$Runnable$0.class diff --git a/compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.kt b/compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.kt index 53172dfd006..c4ebdb68238 100644 --- a/compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.kt +++ b/compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.kt @@ -1,6 +1,7 @@ // !LANGUAGE: +SuspendConversion // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION // IGNORE_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62904 fun interface Runnable { fun run() diff --git a/compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.jvm_abi.txt b/compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.jvm_abi.txt new file mode 100644 index 00000000000..f28450246d5 --- /dev/null +++ b/compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.jvm_abi.txt @@ -0,0 +1,3 @@ +MODULE main + Missing in K1 + Test1$Scope$test$1.class diff --git a/compiler/testData/codegen/box/synchronized/nonLocalReturn.jvm_abi.txt b/compiler/testData/codegen/box/synchronized/nonLocalReturn.jvm_abi.txt new file mode 100644 index 00000000000..c660f14e243 --- /dev/null +++ b/compiler/testData/codegen/box/synchronized/nonLocalReturn.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS NonLocalReturnKt.class + PACKAGE METADATA + PROPERTY getResults()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/box/synchronized/nonLocalReturn.kt b/compiler/testData/codegen/box/synchronized/nonLocalReturn.kt index d1d9224d041..75327088e79 100644 --- a/compiler/testData/codegen/box/synchronized/nonLocalReturn.kt +++ b/compiler/testData/codegen/box/synchronized/nonLocalReturn.kt @@ -1,7 +1,7 @@ // TARGET_BACKEND: JVM - // WITH_STDLIB // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63864 import java.util.concurrent.CountDownLatch import java.util.concurrent.TimeUnit diff --git a/compiler/testData/codegen/box/syntheticAccessors/kt10047.jvm_abi.txt b/compiler/testData/codegen/box/syntheticAccessors/kt10047.jvm_abi.txt new file mode 100644 index 00000000000..198e7c41682 --- /dev/null +++ b/compiler/testData/codegen/box/syntheticAccessors/kt10047.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS test/O2dScriptAction.class + CLASS METADATA + PROPERTY getOwner()Ltest/Actor; + Property: class.metadata.property.setterValueParameter + K1 + : T#0? + K2 + value: T#0? diff --git a/compiler/testData/codegen/box/syntheticAccessors/kt10047.kt b/compiler/testData/codegen/box/syntheticAccessors/kt10047.kt index f579850e0d1..9f3f8d7a2e6 100644 --- a/compiler/testData/codegen/box/syntheticAccessors/kt10047.kt +++ b/compiler/testData/codegen/box/syntheticAccessors/kt10047.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: a.kt package test2 diff --git a/compiler/testData/codegen/box/syntheticAccessors/kt9717.jvm_abi.txt b/compiler/testData/codegen/box/syntheticAccessors/kt9717.jvm_abi.txt new file mode 100644 index 00000000000..d6e744ca53c --- /dev/null +++ b/compiler/testData/codegen/box/syntheticAccessors/kt9717.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS VarsKt.class + PACKAGE METADATA + PROPERTY getOK()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/syntheticAccessors/kt9717.kt b/compiler/testData/codegen/box/syntheticAccessors/kt9717.kt index f2438b5a591..e2eb3d24406 100644 --- a/compiler/testData/codegen/box/syntheticAccessors/kt9717.kt +++ b/compiler/testData/codegen/box/syntheticAccessors/kt9717.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: box.kt object Test { diff --git a/compiler/testData/codegen/box/syntheticAccessors/kt9717DifferentPackages.jvm_abi.txt b/compiler/testData/codegen/box/syntheticAccessors/kt9717DifferentPackages.jvm_abi.txt new file mode 100644 index 00000000000..8763ba264df --- /dev/null +++ b/compiler/testData/codegen/box/syntheticAccessors/kt9717DifferentPackages.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS b/B.class + CLASS METADATA + PROPERTY getOK()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/box/syntheticAccessors/kt9717DifferentPackages.kt b/compiler/testData/codegen/box/syntheticAccessors/kt9717DifferentPackages.kt index d201d7c2a39..1fecdfea51b 100644 --- a/compiler/testData/codegen/box/syntheticAccessors/kt9717DifferentPackages.kt +++ b/compiler/testData/codegen/box/syntheticAccessors/kt9717DifferentPackages.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: a.kt package a diff --git a/compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_propertyRef.jvm_abi.txt b/compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_propertyRef.jvm_abi.txt new file mode 100644 index 00000000000..b5623392bad --- /dev/null +++ b/compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_propertyRef.jvm_abi.txt @@ -0,0 +1,29 @@ +MODULE main + CLASS Derived.class + CLASS METADATA + K1 + --- + K2 + getRef()Lkotlin/reflect/KMutableProperty0; + K1 + getRef()Lkotlin/reflect/KProperty0; + K2 + --- + K1 + --- + K2 + getRef()Lkotlin/reflect/KMutableProperty0; [public, final] + K1 + getRef()Lkotlin/reflect/KProperty0; [public, final] + K2 + --- + CLASS Derived$ref$1.class + Property: class.superClassInternalName + K1 + kotlin/jvm/internal/PropertyReference0Impl + K2 + kotlin/jvm/internal/MutablePropertyReference0Impl + K1 + --- + K2 + set(Ljava/lang/Object;)V [public] diff --git a/compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_propertyRef.kt b/compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_propertyRef.kt index 809c55527b7..252dfc9323f 100644 --- a/compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_propertyRef.kt +++ b/compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_propertyRef.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62516 // FILE: kt46578_kotlin_propertyRef.kt import p.* diff --git a/compiler/testData/codegen/box/syntheticExtensions/kt57103.jvm_abi.txt b/compiler/testData/codegen/box/syntheticExtensions/kt57103.jvm_abi.txt new file mode 100644 index 00000000000..b7cc3a1edab --- /dev/null +++ b/compiler/testData/codegen/box/syntheticExtensions/kt57103.jvm_abi.txt @@ -0,0 +1,22 @@ +MODULE main + Missing in K2 + TestKt$box$1.class + CLASS TestKt.class + Annotation: class.invisibleAnnotations + K1 + --- + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + test.kt + Kotlin + *S Kotlin + *F + + 1 test.kt + TestKt + + 2 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,27:1 + 1#2:28 + *E + } ) diff --git a/compiler/testData/codegen/box/syntheticExtensions/kt57103.kt b/compiler/testData/codegen/box/syntheticExtensions/kt57103.kt index 91fcc3a88c1..d37db93f2eb 100644 --- a/compiler/testData/codegen/box/syntheticExtensions/kt57103.kt +++ b/compiler/testData/codegen/box/syntheticExtensions/kt57103.kt @@ -1,5 +1,6 @@ // !LANGUAGE: +ReferencesToSyntheticJavaProperties // TARGET_BACKEND: JVM_IR +// JVM_ABI_K1_K2_DIFF: KT-62849 // FILE: J.java diff --git a/compiler/testData/codegen/box/toArray/toArray.jvm_abi.txt b/compiler/testData/codegen/box/toArray/toArray.jvm_abi.txt new file mode 100644 index 00000000000..a9596f77e41 --- /dev/null +++ b/compiler/testData/codegen/box/toArray/toArray.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS MyCollection.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size diff --git a/compiler/testData/codegen/box/toArray/toArray.kt b/compiler/testData/codegen/box/toArray/toArray.kt index dad827dbede..ab2680588ed 100644 --- a/compiler/testData/codegen/box/toArray/toArray.kt +++ b/compiler/testData/codegen/box/toArray/toArray.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63828 class MyCollection(val delegate: Collection): Collection by delegate diff --git a/compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.jvm_abi.txt b/compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.jvm_abi.txt new file mode 100644 index 00000000000..a9596f77e41 --- /dev/null +++ b/compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS MyCollection.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size diff --git a/compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt b/compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt index 3191e9a4b60..0a924423946 100644 --- a/compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt +++ b/compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt @@ -1,5 +1,6 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63828 import java.util.Arrays diff --git a/compiler/testData/codegen/box/toArray/toArrayFromJava.jvm_abi.txt b/compiler/testData/codegen/box/toArray/toArrayFromJava.jvm_abi.txt new file mode 100644 index 00000000000..d1ed3b4c4dc --- /dev/null +++ b/compiler/testData/codegen/box/toArray/toArrayFromJava.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS MyCollectionWithCustomIntToArray.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size diff --git a/compiler/testData/codegen/box/toArray/toArrayFromJava.kt b/compiler/testData/codegen/box/toArray/toArrayFromJava.kt index 881cd35300b..cbd76a8b2ef 100644 --- a/compiler/testData/codegen/box/toArray/toArrayFromJava.kt +++ b/compiler/testData/codegen/box/toArray/toArrayFromJava.kt @@ -1,5 +1,7 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63828 + // FILE: MyListWithCustomToArray.java public abstract class MyListWithCustomToArray extends java.util.AbstractList { diff --git a/compiler/testData/codegen/box/typealias/deserializedAbbreviationWithRedundantArgument.jvm_abi.txt b/compiler/testData/codegen/box/typealias/deserializedAbbreviationWithRedundantArgument.jvm_abi.txt new file mode 100644 index 00000000000..3cb84b21c26 --- /dev/null +++ b/compiler/testData/codegen/box/typealias/deserializedAbbreviationWithRedundantArgument.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE b + CLASS BKt.class + PACKAGE METADATA + PROPERTY getBar()Ljava/util/List; + Property: class.metadata.property.returnType + K1 + kotlin/collections/List? /* = Foo^? */ + K2 + kotlin/collections/List? diff --git a/compiler/testData/codegen/box/typealias/deserializedAbbreviationWithRedundantArgument.kt b/compiler/testData/codegen/box/typealias/deserializedAbbreviationWithRedundantArgument.kt index 8b811920829..0ffdb63f34d 100644 --- a/compiler/testData/codegen/box/typealias/deserializedAbbreviationWithRedundantArgument.kt +++ b/compiler/testData/codegen/box/typealias/deserializedAbbreviationWithRedundantArgument.kt @@ -1,4 +1,6 @@ // FIR_DUMP +// JVM_ABI_K1_K2_DIFF: KT-63864 + // MODULE: a // FILE: a.kt typealias Foo = List diff --git a/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFTMM.jvm_abi.txt b/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFTMM.jvm_abi.txt new file mode 100644 index 00000000000..a9322471a4d --- /dev/null +++ b/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFTMM.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS LibKt.class + PACKAGE METADATA + FUNCTION foo(Lkotlin/jvm/functions/Function3;)V + Property: class.metadata.function.valueParameters + K1 + (function: suspend kotlin/Function3, kotlin/Any?>) + K2 + (function: suspend kotlin/Function3, kotlin/Any?> /* = suspend kotlin/Function3, kotlin/Any?> */) diff --git a/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFTMM.kt b/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFTMM.kt index bc09d4bba75..171c8bba148 100644 --- a/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFTMM.kt +++ b/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFTMM.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63877 // ISSUE: KT-50997 (multi-module variant) // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFunctionalType.jvm_abi.txt b/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFunctionalType.jvm_abi.txt new file mode 100644 index 00000000000..d7a8f4fa274 --- /dev/null +++ b/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFunctionalType.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS IncorrectTypeOfTypealiasForSuspendFunctionalTypeKt.class + PACKAGE METADATA + FUNCTION foo(Lkotlin/jvm/functions/Function2;)V + Property: class.metadata.function.valueParameters + K1 + (function: suspend kotlin/Function2, kotlin/Any?>) + K2 + (function: suspend kotlin/Function2, kotlin/Any?> /* = suspend kotlin/Function2, kotlin/Any?> */) diff --git a/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFunctionalType.kt b/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFunctionalType.kt index efc713463d5..328be5b1527 100644 --- a/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFunctionalType.kt +++ b/compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFunctionalType.kt @@ -1,4 +1,5 @@ // ISSUE: KT-50997 +// JVM_ABI_K1_K2_DIFF: KT-63877 typealias MySuspendFunction = suspend (String) -> Unit fun foo(function: MySuspendFunction) {} diff --git a/compiler/testData/codegen/box/typealias/simple.jvm_abi.txt b/compiler/testData/codegen/box/typealias/simple.jvm_abi.txt new file mode 100644 index 00000000000..211cc1e9ca8 --- /dev/null +++ b/compiler/testData/codegen/box/typealias/simple.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS SimpleKt.class + PACKAGE METADATA + TYPE ALIAS SF + Property: class.metadata.typeAlias.underlyingType + K1 + kotlin/Function1 + K2 + kotlin/Function1 diff --git a/compiler/testData/codegen/box/typealias/simple.kt b/compiler/testData/codegen/box/typealias/simple.kt index a5cd67b9ad7..52d8090ad2f 100644 --- a/compiler/testData/codegen/box/typealias/simple.kt +++ b/compiler/testData/codegen/box/typealias/simple.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63872 + typealias S = String typealias SF = (T) -> S diff --git a/compiler/testData/codegen/box/typealias/typeAliasInAnonymousObjectType.jvm_abi.txt b/compiler/testData/codegen/box/typealias/typeAliasInAnonymousObjectType.jvm_abi.txt new file mode 100644 index 00000000000..a53986234ba --- /dev/null +++ b/compiler/testData/codegen/box/typealias/typeAliasInAnonymousObjectType.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS TypeAliasInAnonymousObjectTypeKt.class + PACKAGE METADATA + PROPERTY getTest()LFoo; + Property: class.metadata.property.returnType + K1 + Foo /* = FooStr^ */ + K2 + Foo diff --git a/compiler/testData/codegen/box/typealias/typeAliasInAnonymousObjectType.kt b/compiler/testData/codegen/box/typealias/typeAliasInAnonymousObjectType.kt index ba3a87abaec..b9e2d8544bd 100644 --- a/compiler/testData/codegen/box/typealias/typeAliasInAnonymousObjectType.kt +++ b/compiler/testData/codegen/box/typealias/typeAliasInAnonymousObjectType.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63864 open class Foo(val x: T) typealias FooStr = Foo diff --git a/compiler/testData/codegen/box/typealias/typeAliasOnTypeAlias.jvm_abi.txt b/compiler/testData/codegen/box/typealias/typeAliasOnTypeAlias.jvm_abi.txt new file mode 100644 index 00000000000..176cf4e4923 --- /dev/null +++ b/compiler/testData/codegen/box/typealias/typeAliasOnTypeAlias.jvm_abi.txt @@ -0,0 +1,14 @@ +MODULE main + CLASS TypeAliasOnTypeAliasKt.class + PACKAGE METADATA + TYPE ALIAS OtherOtherA + Property: class.metadata.typeAlias.underlyingType + K1 + OtherA^ + K2 + A /* = OtherA^ */ + Property: class.metadata.typeAlias.expandedType + K1 + A /* = OtherA^ */ + K2 + A diff --git a/compiler/testData/codegen/box/typealias/typeAliasOnTypeAlias.kt b/compiler/testData/codegen/box/typealias/typeAliasOnTypeAlias.kt index 32ce6e4f29a..0d9b50d75f0 100644 --- a/compiler/testData/codegen/box/typealias/typeAliasOnTypeAlias.kt +++ b/compiler/testData/codegen/box/typealias/typeAliasOnTypeAlias.kt @@ -1,4 +1,5 @@ // ISSUE: KT-60639 +// JVM_ABI_K1_K2_DIFF: KT-63921 import kotlin.reflect.KClass diff --git a/compiler/testData/codegen/box/valueClasses/complex.jvm_abi.txt b/compiler/testData/codegen/box/valueClasses/complex.jvm_abi.txt new file mode 100644 index 00000000000..e55f6fa8fa8 --- /dev/null +++ b/compiler/testData/codegen/box/valueClasses/complex.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS E.class + CLASS METADATA + PROPERTY getWithNonTrivialSetters-impl(IILjava/lang/String;)LD; + Property: class.metadata.property.setterValueParameter + K1 + : D + K2 + _: D + CLASS NotInlined.class + CLASS METADATA + PROPERTY getWithNonTrivialSetters()LR; + Property: class.metadata.property.setterValueParameter + K1 + : R> + K2 + _: R> diff --git a/compiler/testData/codegen/box/valueClasses/complex.kt b/compiler/testData/codegen/box/valueClasses/complex.kt index f4ad77671cc..c6a6a2b414b 100644 --- a/compiler/testData/codegen/box/valueClasses/complex.kt +++ b/compiler/testData/codegen/box/valueClasses/complex.kt @@ -3,6 +3,7 @@ // TARGET_BACKEND: JVM_IR // IGNORE_BACKEND: ANDROID, ANDROID_IR // LANGUAGE: +ValueClasses, +ValueClassesSecondaryConstructorWithBody +// JVM_ABI_K1_K2_DIFF: KT-62582 @JvmInline value class A(val x: List) diff --git a/compiler/testData/codegen/box/valueClasses/delegating.jvm_abi.txt b/compiler/testData/codegen/box/valueClasses/delegating.jvm_abi.txt new file mode 100644 index 00000000000..402763fff4b --- /dev/null +++ b/compiler/testData/codegen/box/valueClasses/delegating.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS C.class + CLASS METADATA + K1 + getX()I + K2 + --- + K1 + --- + K2 + x diff --git a/compiler/testData/codegen/box/valueClasses/delegating.kt b/compiler/testData/codegen/box/valueClasses/delegating.kt index c4bf53d78ce..3ebbf339f3d 100644 --- a/compiler/testData/codegen/box/valueClasses/delegating.kt +++ b/compiler/testData/codegen/box/valueClasses/delegating.kt @@ -2,6 +2,7 @@ // WITH_STDLIB // TARGET_BACKEND: JVM_IR // CHECK_BYTECODE_LISTING +// JVM_ABI_K1_K2_DIFF: KT-63828 import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/valueClasses/visibility.jvm_abi.txt b/compiler/testData/codegen/box/valueClasses/visibility.jvm_abi.txt new file mode 100644 index 00000000000..cd3d3702093 --- /dev/null +++ b/compiler/testData/codegen/box/valueClasses/visibility.jvm_abi.txt @@ -0,0 +1,167 @@ +MODULE main + CLASS Regular.class + CLASS METADATA + PROPERTY getX4()LPublic; + Property: class.metadata.property.setterValueParameter + K1 + : Public + K2 + value: Public + PROPERTY getX5$main()LPublic; + Property: class.metadata.property.setterValueParameter + K1 + : Public + K2 + value: Public + PROPERTY getX6()LPublic; + Property: class.metadata.property.setterValueParameter + K1 + : Public + K2 + value: Public + PROPERTY getY4()LInternal; + Property: class.metadata.property.setterValueParameter + K1 + : Internal + K2 + value: Internal + PROPERTY getY5$main()LInternal; + Property: class.metadata.property.setterValueParameter + K1 + : Internal + K2 + value: Internal + PROPERTY getY6()LInternal; + Property: class.metadata.property.setterValueParameter + K1 + : Internal + K2 + value: Internal + PROPERTY getZ4()LPrivate; + Property: class.metadata.property.setterValueParameter + K1 + : Private + K2 + value: Private + PROPERTY getZ5$main()LPrivate; + Property: class.metadata.property.setterValueParameter + K1 + : Private + K2 + value: Private + PROPERTY getZ6()LPrivate; + Property: class.metadata.property.setterValueParameter + K1 + : Private + K2 + value: Private + CLASS Regular$Companion.class + CLASS METADATA + PROPERTY getJvmStaticX4()LPublic; + Property: class.metadata.property.setterValueParameter + K1 + : Public + K2 + value: Public + PROPERTY getJvmStaticX5$main()LPublic; + Property: class.metadata.property.setterValueParameter + K1 + : Public + K2 + value: Public + PROPERTY getJvmStaticX6()LPublic; + Property: class.metadata.property.setterValueParameter + K1 + : Public + K2 + value: Public + PROPERTY getJvmStaticY4()LInternal; + Property: class.metadata.property.setterValueParameter + K1 + : Internal + K2 + value: Internal + PROPERTY getJvmStaticY5$main()LInternal; + Property: class.metadata.property.setterValueParameter + K1 + : Internal + K2 + value: Internal + PROPERTY getJvmStaticY6()LInternal; + Property: class.metadata.property.setterValueParameter + K1 + : Internal + K2 + value: Internal + PROPERTY getJvmStaticZ4()LPrivate; + Property: class.metadata.property.setterValueParameter + K1 + : Private + K2 + value: Private + PROPERTY getJvmStaticZ5$main()LPrivate; + Property: class.metadata.property.setterValueParameter + K1 + : Private + K2 + value: Private + PROPERTY getJvmStaticZ6()LPrivate; + Property: class.metadata.property.setterValueParameter + K1 + : Private + K2 + value: Private + PROPERTY getStaticX4()LPublic; + Property: class.metadata.property.setterValueParameter + K1 + : Public + K2 + value: Public + PROPERTY getStaticX5$main()LPublic; + Property: class.metadata.property.setterValueParameter + K1 + : Public + K2 + value: Public + PROPERTY getStaticX6()LPublic; + Property: class.metadata.property.setterValueParameter + K1 + : Public + K2 + value: Public + PROPERTY getStaticY4()LInternal; + Property: class.metadata.property.setterValueParameter + K1 + : Internal + K2 + value: Internal + PROPERTY getStaticY5$main()LInternal; + Property: class.metadata.property.setterValueParameter + K1 + : Internal + K2 + value: Internal + PROPERTY getStaticY6()LInternal; + Property: class.metadata.property.setterValueParameter + K1 + : Internal + K2 + value: Internal + PROPERTY getStaticZ4()LPrivate; + Property: class.metadata.property.setterValueParameter + K1 + : Private + K2 + value: Private + PROPERTY getStaticZ5$main()LPrivate; + Property: class.metadata.property.setterValueParameter + K1 + : Private + K2 + value: Private + PROPERTY getStaticZ6()LPrivate; + Property: class.metadata.property.setterValueParameter + K1 + : Private + K2 + value: Private diff --git a/compiler/testData/codegen/box/valueClasses/visibility.kt b/compiler/testData/codegen/box/valueClasses/visibility.kt index ecf260c0b31..c122cc81bb0 100644 --- a/compiler/testData/codegen/box/valueClasses/visibility.kt +++ b/compiler/testData/codegen/box/valueClasses/visibility.kt @@ -3,6 +3,7 @@ // WITH_STDLIB // TARGET_BACKEND: JVM_IR // LANGUAGE: +ValueClasses +// JVM_ABI_K1_K2_DIFF: KT-63984 // MODULE: dependency // FILE: dependency.kt diff --git a/compiler/testData/codegen/box/when/enumOptimization/kt15806.jvm_abi.txt b/compiler/testData/codegen/box/when/enumOptimization/kt15806.jvm_abi.txt new file mode 100644 index 00000000000..11a62d8e81a --- /dev/null +++ b/compiler/testData/codegen/box/when/enumOptimization/kt15806.jvm_abi.txt @@ -0,0 +1,3 @@ +MODULE main + Missing in K1 + Kt15806Kt$WhenMappings.class diff --git a/compiler/testData/codegen/box/when/enumOptimization/kt15806.kt b/compiler/testData/codegen/box/when/enumOptimization/kt15806.kt index 0474cfaba75..71d00ee1d91 100644 --- a/compiler/testData/codegen/box/when/enumOptimization/kt15806.kt +++ b/compiler/testData/codegen/box/when/enumOptimization/kt15806.kt @@ -1,4 +1,5 @@ // IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6 +// JVM_ABI_K1_K2_DIFF: KT-62903 // CHECK_CASES_COUNT: function=doTheThing count=2 TARGET_BACKENDS=JS // CHECK_CASES_COUNT: function=doTheThing count=0 IGNORED_BACKENDS=JS // CHECK_IF_COUNT: function=doTheThing count=2 TARGET_BACKENDS=JS diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt29595.jvm_abi.txt b/compiler/testData/codegen/boxInline/anonymousObject/kt29595.jvm_abi.txt new file mode 100644 index 00000000000..44da0183335 --- /dev/null +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt29595.jvm_abi.txt @@ -0,0 +1,33 @@ +MODULE main + CLASS _2Kt$box$$inlined$foo$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$foo$1 + + 2 2.kt + _2Kt + *L + 1#1,26:1 + 33#2:27 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$foo$1 + + 2 2.kt + _2Kt + *L + 1#1,26:1 + 33#2,5:27 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt index f71c460d6f3..eaf33f2c563 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt @@ -3,6 +3,8 @@ // WITH_STDLIB // IGNORE_BACKEND: JVM // IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt38197.jvm_abi.txt b/compiler/testData/codegen/boxInline/anonymousObject/kt38197.jvm_abi.txt new file mode 100644 index 00000000000..f0698820d08 --- /dev/null +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt38197.jvm_abi.txt @@ -0,0 +1,85 @@ +MODULE main + CLASS TestKt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + test.kt + Kotlin + *S Kotlin + *F + + 1 test.kt + TestKt + *L + 1#1,44:1 + 23#1,9:45 + *S KotlinDebug + *F + + 1 test.kt + TestKt + *L + 14#1:45,9 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + test.kt + Kotlin + *S Kotlin + *F + + 1 test.kt + TestKt + *L + 1#1,44:1 + 23#1,18:45 + *S KotlinDebug + *F + + 1 test.kt + TestKt + *L + 14#1:45,18 + *E + } ) + CLASS BoxKt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + box.kt + Kotlin + *S Kotlin + *F + + 1 box.kt + BoxKt + + 2 test.kt + TestKt + *L + 1#1,56:1 + 14#2,18:57 + *S KotlinDebug + *F + + 1 box.kt + BoxKt + *L + 51#1:57,18 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + box.kt + Kotlin + *S Kotlin + *F + + 1 box.kt + BoxKt + + 2 test.kt + TestKt + *L + 1#1,56:1 + 14#2,27:57 + *S KotlinDebug + *F + + 1 box.kt + BoxKt + *L + 51#1:57,27 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt index 3a6e04096a4..30749ef04ce 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt @@ -1,5 +1,7 @@ // WITH_COROUTINES // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: test.kt var result = "Fail" diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt51950.jvm_abi.txt b/compiler/testData/codegen/boxInline/anonymousObject/kt51950.jvm_abi.txt new file mode 100644 index 00000000000..d01c43c3c32 --- /dev/null +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt51950.jvm_abi.txt @@ -0,0 +1,65 @@ +MODULE main + CLASS _1Kt$transformMessage$$inlined$decorate$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + _1Kt$decorate$1 + + 2 1.kt + _1Kt + *L + 1#1,19:1 + 13#2:20 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + _1Kt$decorate$1 + + 2 1.kt + _1Kt + *L + 1#1,19:1 + 13#2,4:20 + *E + } ) + CLASS _2Kt$append$$inlined$transformMessage$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + _1Kt$decorate$1 + + 2 1.kt + _1Kt + *L + 1#1,19:1 + 13#2:20 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + _1Kt$decorate$1 + + 2 1.kt + _1Kt + *L + 1#1,19:1 + 13#2,4:20 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt51950.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt51950.kt index 190dc1dac16..4ba06519b5a 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt51950.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt51950.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt interface Service { fun send(message: String): String diff --git a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.jvm_abi.txt b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.jvm_abi.txt new file mode 100644 index 00000000000..cfe84278ad1 --- /dev/null +++ b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.jvm_abi.txt @@ -0,0 +1,60 @@ +MODULE main + CLASS _2Kt$box$$inlined$switchMapOnce$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$switchMapOnce$2 + + 2 2.kt + _2Kt + + 3 1.kt + test/_1Kt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,17:1 + 24#2:18 + 15#3:19 + 1#4:20 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:19 + 24#1:20 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$switchMapOnce$2 + + 2 2.kt + _2Kt + + 3 1.kt + test/_1Kt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,17:1 + 24#2:18 + 26#2:21 + 15#3:19 + 1#4:20 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:19 + 24#1:20 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt index 434619d37bf..ec817f8eaa6 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt @@ -1,5 +1,7 @@ // FULL_JDK // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.jvm_abi.txt new file mode 100644 index 00000000000..79ecd61823b --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,39:1 + 11#2,4:40 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 27#1:40,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,39:1 + 14#2:40 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 27#1:40 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt b/compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt index 160bfece06a..8ee225f2ace 100644 --- a/compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt +++ b/compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt @@ -1,4 +1,5 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/complexInitializer.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/complexInitializer.jvm_abi.txt new file mode 100644 index 00000000000..2a80678113e --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/complexInitializer.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,31:1 + 11#2,4:32 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 26#1:32,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,31:1 + 14#2:32 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 26#1:32 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/complexInitializer.kt b/compiler/testData/codegen/boxInline/contracts/complexInitializer.kt index 36286e05de5..91521b7f2d3 100644 --- a/compiler/testData/codegen/boxInline/contracts/complexInitializer.kt +++ b/compiler/testData/codegen/boxInline/contracts/complexInitializer.kt @@ -1,4 +1,5 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.jvm_abi.txt new file mode 100644 index 00000000000..ebcf29be501 --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,30:1 + 11#2,4:31 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 25#1:31,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,30:1 + 14#2:31 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 25#1:31 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt b/compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt index 190cc848392..ab2486e1e77 100644 --- a/compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt +++ b/compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt @@ -1,4 +1,5 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.jvm_abi.txt new file mode 100644 index 00000000000..20ae9c2b2d4 --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.jvm_abi.txt @@ -0,0 +1,109 @@ +MODULE main + Missing in K1 + test/_1Kt$vBox$1.class + Missing in K2 + test/_1Kt$vBox$2.class + CLASS test/OutputWorkScreenView.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/OutputWorkScreenView + + 2 1.kt + test/_1Kt + + 3 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,32:1 + 22#2,4:33 + 1#3:37 + *S KotlinDebug + *F + + 1 1.kt + test/OutputWorkScreenView + *L + 16#1:33,4 + 16#1:37 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/OutputWorkScreenView + + 2 1.kt + test/_1Kt + + 3 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,32:1 + 25#2:33 + 1#3:34 + *S KotlinDebug + *F + + 1 1.kt + test/OutputWorkScreenView + *L + 16#1:33 + 16#1:34 + *E + } ) + CLASS test/OutputWorkScreenView$special$$inlined$vBox$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$vBox$2 + + 2 1.kt + test/OutputWorkScreenView + + 3 1.kt + test/_1Kt + *L + 1#1,32:1 + 17#2:33 + 18#2:36 + 29#3,2:34 + *S KotlinDebug + *F + + 1 1.kt + test/OutputWorkScreenView + *L + 17#1:34,2 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$vBox$1 + + 2 1.kt + test/OutputWorkScreenView + + 3 1.kt + test/_1Kt + *L + 1#1,32:1 + 17#2:33 + 18#2:36 + 29#3,2:34 + *S KotlinDebug + *F + + 1 1.kt + test/OutputWorkScreenView + *L + 17#1:34,2 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt b/compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt index f7de855fd74..c78a3fdde6c 100644 --- a/compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt +++ b/compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt @@ -1,5 +1,7 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts // NO_CHECK_LAMBDA_INLINING +// JVM_ABI_K1_K2_DIFF: KT-62845 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.jvm_abi.txt new file mode 100644 index 00000000000..e9cee0611d5 --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,28:1 + 11#2,4:29 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 23#1:29,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,28:1 + 14#2:29 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 23#1:29 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt b/compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt index b1abc2cbbcd..63f8341b2c2 100644 --- a/compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt +++ b/compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt @@ -1,4 +1,5 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.jvm_abi.txt new file mode 100644 index 00000000000..f4f232ab643 --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.jvm_abi.txt @@ -0,0 +1,49 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,30:1 + 11#2,4:31 + 11#2,4:35 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 23#1:31,4 + 24#1:35,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,30:1 + 14#2:31 + 14#2:32 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 23#1:31 + 24#1:32 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt b/compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt index 68fe0025f53..dba942af7a2 100644 --- a/compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt +++ b/compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt @@ -1,4 +1,5 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.jvm_abi.txt new file mode 100644 index 00000000000..497b695df2c --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS A.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + A + + 2 1.kt + test/_1Kt + *L + 1#1,38:1 + 12#2,4:39 + *S KotlinDebug + *F + + 1 2.kt + A + *L + 31#1:39,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + A + + 2 1.kt + test/_1Kt + *L + 1#1,38:1 + 15#2:39 + *S KotlinDebug + *F + + 1 2.kt + A + *L + 31#1:39 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt b/compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt index 739023108ca..d50c2bb94b4 100644 --- a/compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt +++ b/compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt @@ -1,5 +1,6 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts // NO_CHECK_LAMBDA_INLINING +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/definiteValInitialization.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/definiteValInitialization.jvm_abi.txt new file mode 100644 index 00000000000..e9cee0611d5 --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/definiteValInitialization.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,28:1 + 11#2,4:29 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 23#1:29,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,28:1 + 14#2:29 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 23#1:29 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt b/compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt index 1542d914a71..5cdd4e45291 100644 --- a/compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt +++ b/compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt @@ -1,4 +1,5 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.jvm_abi.txt new file mode 100644 index 00000000000..d3f36065b1e --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,29:1 + 11#2,6:30 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:30,6 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,29:1 + 14#2,3:30 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:30,3 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt b/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt index 1a36ab05666..7de32857fc9 100644 --- a/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt +++ b/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt @@ -1,4 +1,5 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.jvm_abi.txt new file mode 100644 index 00000000000..8c3411cc77e --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.jvm_abi.txt @@ -0,0 +1,147 @@ +MODULE main + Missing in K1 + test/_1Kt$baz$1.class + Missing in K2 + test/_1Kt$baz$2.class + CLASS test/A.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/A + + 2 1.kt + test/_1Kt + + 3 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,33:1 + 19#1:34 + 22#1:42 + 26#2,5:35 + 31#2:41 + 26#2,5:43 + 31#2:49 + 1#3:40 + 1#3:48 + *S KotlinDebug + *F + + 1 1.kt + test/A + *L + 13#1:34 + 13#1:42 + 13#1:35,5 + 13#1:41 + 19#1:43,5 + 19#1:49 + 13#1:40 + 19#1:48 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/A + + 2 1.kt + test/_1Kt + + 3 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,33:1 + 19#1:34 + 22#1:38 + 30#2:35 + 31#2:37 + 30#2:39 + 31#2:41 + 1#3:36 + 1#3:40 + *S KotlinDebug + *F + + 1 1.kt + test/A + *L + 13#1:34 + 13#1:38 + 13#1:35 + 13#1:37 + 19#1:39 + 19#1:41 + 13#1:36 + 19#1:40 + *E + } ) + CLASS test/A$bar$$inlined$baz$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$baz$2 + + 2 1.kt + test/A + *L + 1#1,33:1 + 20#2,2:34 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$baz$1 + + 2 1.kt + test/A + *L + 1#1,33:1 + 20#2,2:34 + *E + } ) + CLASS test/A$foo$$inlined$bar$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$baz$2 + + 2 1.kt + test/A + *L + 1#1,33:1 + 20#2:34 + 14#2,8:35 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$baz$1 + + 2 1.kt + test/A + *L + 1#1,33:1 + 20#2:34 + 14#2,8:35 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt b/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt index 1e09ade9996..73f72ddba09 100644 --- a/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt +++ b/compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt @@ -1,4 +1,5 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62845 // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.jvm_abi.txt new file mode 100644 index 00000000000..8224b8c4738 --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,29:1 + 12#2,5:30 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:30,5 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,29:1 + 15#2,2:30 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:30,2 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt b/compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt index e0ed7c4eb8d..07080066011 100644 --- a/compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt +++ b/compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt @@ -1,5 +1,6 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts // NO_CHECK_LAMBDA_INLINING +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/nonLocalReturn.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/nonLocalReturn.jvm_abi.txt new file mode 100644 index 00000000000..4f6b4da9660 --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/nonLocalReturn.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,29:1 + 11#2,4:30 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 23#1:30,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,29:1 + 14#2:30 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 23#1:30 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt b/compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt index 36a58b018db..4919e6c3ca8 100644 --- a/compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt +++ b/compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt @@ -1,4 +1,5 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.jvm_abi.txt new file mode 100644 index 00000000000..326fc895f1e --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.jvm_abi.txt @@ -0,0 +1,49 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,43:1 + 13#2,4:44 + 13#2,4:48 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 26#1:44,4 + 29#1:48,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,43:1 + 16#2:44 + 16#2:45 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 26#1:44 + 29#1:45 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt b/compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt index 26446696830..72ab957b04d 100644 --- a/compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt +++ b/compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt @@ -1,6 +1,7 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts // WITH_STDLIB // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/propertyInitialization.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/propertyInitialization.jvm_abi.txt new file mode 100644 index 00000000000..1b3a1eaacc3 --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/propertyInitialization.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS A.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + A + + 2 1.kt + test/_1Kt + *L + 1#1,33:1 + 11#2,4:34 + *S KotlinDebug + *F + + 1 2.kt + A + *L + 24#1:34,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + A + + 2 1.kt + test/_1Kt + *L + 1#1,33:1 + 14#2:34 + *S KotlinDebug + *F + + 1 2.kt + A + *L + 24#1:34 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt b/compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt index efff6ab0b80..5809afc0bde 100644 --- a/compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt +++ b/compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt @@ -1,4 +1,5 @@ // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.jvm_abi.txt b/compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.jvm_abi.txt new file mode 100644 index 00000000000..530cda4f564 --- /dev/null +++ b/compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.jvm_abi.txt @@ -0,0 +1,51 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + + 3 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,32:1 + 12#2,4:33 + 1#3:37 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:33,4 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + + 3 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,32:1 + 15#2:33 + 1#3:34 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:33 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt b/compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt index dd3bd53d438..29b7622ae43 100644 --- a/compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt +++ b/compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt @@ -1,5 +1,6 @@ // NO_CHECK_LAMBDA_INLINING // !OPT_IN: kotlin.contracts.ExperimentalContracts +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.jvm_abi.txt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.jvm_abi.txt new file mode 100644 index 00000000000..44c38688c6b --- /dev/null +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.jvm_abi.txt @@ -0,0 +1,101 @@ +MODULE main + CLASS test/_1Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt + + 2 1.kt + test/_1Kt$test$1 + *L + 1#1,19:1 + 11#1,5:20 + 12#2:25 + *S KotlinDebug + *F + + 1 1.kt + test/_1Kt + *L + 17#1:20,5 + 17#1:25 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt + + 2 1.kt + test/_1Kt$test$1 + *L + 1#1,19:1 + 11#1,5:20 + 12#2,3:25 + *S KotlinDebug + *F + + 1 1.kt + test/_1Kt + *L + 17#1:20,5 + 17#1:25,3 + *E + } ) + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + + 3 1.kt + test/_1Kt$test$1 + *L + 1#1,27:1 + 11#2,5:28 + 12#3:33 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:28,5 + 24#1:33 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + + 3 1.kt + test/_1Kt$test$1 + *L + 1#1,27:1 + 11#2,5:28 + 12#3,3:33 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:28,5 + 24#1:33,3 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt index dbf8785c928..19785ae3067 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt @@ -1,4 +1,6 @@ // NO_CHECK_LAMBDA_INLINING +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.jvm_abi.txt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.jvm_abi.txt new file mode 100644 index 00000000000..0e634b881f7 --- /dev/null +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.jvm_abi.txt @@ -0,0 +1,101 @@ +MODULE main + CLASS test/_1Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt + + 2 1.kt + test/_1Kt$test$1 + *L + 1#1,19:1 + 11#1,5:20 + 12#2:25 + *S KotlinDebug + *F + + 1 1.kt + test/_1Kt + *L + 17#1:20,5 + 17#1:25 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt + + 2 1.kt + test/_1Kt$test$1 + *L + 1#1,19:1 + 11#1,5:20 + 12#2,3:25 + *S KotlinDebug + *F + + 1 1.kt + test/_1Kt + *L + 17#1:20,5 + 17#1:25,3 + *E + } ) + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + + 3 1.kt + test/_1Kt$test$1 + *L + 1#1,28:1 + 11#2,5:29 + 12#3:34 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:29,5 + 24#1:34 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + + 3 1.kt + test/_1Kt$test$1 + *L + 1#1,28:1 + 11#2,5:29 + 12#3,3:34 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 24#1:29,5 + 24#1:34,3 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt index 15317f1e893..a3bb7ef2b4f 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt @@ -1,4 +1,6 @@ // NO_CHECK_LAMBDA_INLINING +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.jvm_abi.txt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.jvm_abi.txt new file mode 100644 index 00000000000..0add6130b3e --- /dev/null +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.jvm_abi.txt @@ -0,0 +1,53 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/X + + 3 1.kt + test/X$inlineFun$1 + *L + 1#1,24:1 + 12#2,2:25 + 12#3:27 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 22#1:25,2 + 22#1:27 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/X + + 3 1.kt + test/X$inlineFun$1 + *L + 1#1,24:1 + 11#2,3:25 + 12#3:28 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 22#1:25,3 + 22#1:28 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt index ea14352b953..f6a20134139 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt @@ -1,7 +1,10 @@ // SKIP_INLINE_CHECK_IN: inlineFun$default // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt // TARGET_BACKEND: JVM + package test object X { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.jvm_abi.txt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.jvm_abi.txt new file mode 100644 index 00000000000..ce6908b82cf --- /dev/null +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.jvm_abi.txt @@ -0,0 +1,53 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + + 3 1.kt + test/_1Kt$test$1 + *L + 1#1,23:1 + 11#2,5:24 + 12#3:29 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 21#1:24,5 + 21#1:29 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + + 3 1.kt + test/_1Kt$test$1 + *L + 1#1,23:1 + 11#2,5:24 + 12#3,3:29 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 21#1:24,5 + 21#1:29,3 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt index ead76228865..5a7a6a33222 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt @@ -1,4 +1,6 @@ // NO_CHECK_LAMBDA_INLINING +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.jvm_abi.txt b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.jvm_abi.txt new file mode 100644 index 00000000000..a8527ce8ddd --- /dev/null +++ b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,23:1 + 7#2,5:24 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 19#1:24,5 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,23:1 + 6#2,6:24 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 19#1:24,6 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt index 43bdfcbf558..f38a699093e 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/delegatedProperty/kt48498.jvm_abi.txt b/compiler/testData/codegen/boxInline/delegatedProperty/kt48498.jvm_abi.txt new file mode 100644 index 00000000000..0daa384a4e4 --- /dev/null +++ b/compiler/testData/codegen/boxInline/delegatedProperty/kt48498.jvm_abi.txt @@ -0,0 +1,49 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + x/_1Kt + *L + 1#1,21:1 + 12#2:22 + 1#2:23 + 13#2:24 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 20#1:22 + 20#1:23 + 20#1:24 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + x/_1Kt + *L + 1#1,21:1 + 12#2,2:22 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 20#1:22,2 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt b/compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt index ee801c9a74f..31d949d8f62 100644 --- a/compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt +++ b/compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package x diff --git a/compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.jvm_abi.txt b/compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.jvm_abi.txt new file mode 100644 index 00000000000..dde6b7a044b --- /dev/null +++ b/compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.jvm_abi.txt @@ -0,0 +1,60 @@ +MODULE main + CLASS _2Kt$box$$inlined$call$2.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$call$1 + + 2 2.kt + _2Kt + + 3 1.kt + test/_1Kt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,13:1 + 27#2:14 + 9#3:15 + 1#4:16 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 27#1:15 + 27#1:16 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$call$1 + + 2 2.kt + _2Kt + + 3 1.kt + test/_1Kt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,13:1 + 27#2:14 + 29#2:17 + 9#3:15 + 1#4:16 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 27#1:15 + 27#1:16 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt b/compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt index a50afda6b44..432700e72dc 100644 --- a/compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt +++ b/compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt @@ -1,5 +1,7 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/jvmName/simple.jvm_abi.txt b/compiler/testData/codegen/boxInline/jvmName/simple.jvm_abi.txt new file mode 100644 index 00000000000..3745eeb6d50 --- /dev/null +++ b/compiler/testData/codegen/boxInline/jvmName/simple.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,14:1 + 9#2:15 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 13#1:15 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/_1Kt + *L + 1#1,14:1 + 8#2,2:15 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 13#1:15,2 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/jvmName/simple.kt b/compiler/testData/codegen/boxInline/jvmName/simple.kt index 454d41be534..c6aded8399b 100644 --- a/compiler/testData/codegen/boxInline/jvmName/simple.kt +++ b/compiler/testData/codegen/boxInline/jvmName/simple.kt @@ -1,5 +1,7 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.jvm_abi.txt new file mode 100644 index 00000000000..efa2929e147 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall2(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/Object;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0) + FUNCTION doCall2_1(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Ltest/Holder;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, res: T#0, h: test/Holder) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, res: T#0, h: test/Holder) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt index a57aa8087e6..7bad02c304b 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.jvm_abi.txt new file mode 100644 index 00000000000..04f79cea040 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall2(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/Object;Ltest/Holder;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0, h: test/Holder) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0, h: test/Holder) + FUNCTION doCall2_1(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Ltest/Holder;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, res: T#0, h: test/Holder) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, res: T#0, h: test/Holder) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt index 7baefdcce3b..87ffa7a49c3 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.jvm_abi.txt new file mode 100644 index 00000000000..04f79cea040 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall2(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/Object;Ltest/Holder;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0, h: test/Holder) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0, h: test/Holder) + FUNCTION doCall2_1(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Ltest/Holder;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, res: T#0, h: test/Holder) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, res: T#0, h: test/Holder) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt index 5f930d23e92..9f31753afac 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.jvm_abi.txt new file mode 100644 index 00000000000..04f79cea040 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall2(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/Object;Ltest/Holder;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0, h: test/Holder) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0, h: test/Holder) + FUNCTION doCall2_1(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Ltest/Holder;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, res: T#0, h: test/Holder) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, res: T#0, h: test/Holder) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt index 90cfc9e8785..eb86d63cd97 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.jvm_abi.txt new file mode 100644 index 00000000000..04f79cea040 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall2(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/Object;Ltest/Holder;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0, h: test/Holder) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0, h: test/Holder) + FUNCTION doCall2_1(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Ltest/Holder;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, res: T#0, h: test/Holder) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, res: T#0, h: test/Holder) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt index 3b507b537bd..a69bd62494c 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.jvm_abi.txt new file mode 100644 index 00000000000..8e259d85d51 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;I)I + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: kotlin/Int /* = ... */) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: kotlin/Int /* = ... */) + FUNCTION doCall2(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/Object;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt index 08e00e74ef2..6c21d6d8b1e 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.jvm_abi.txt new file mode 100644 index 00000000000..3ed824243ca --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ltest/Holder;I)I + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, h: test/Holder, res: kotlin/Int /* = ... */) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, h: test/Holder, res: kotlin/Int /* = ... */) + FUNCTION doCall2(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/Object;Ltest/Holder;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0, h: test/Holder) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0, h: test/Holder) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt index 4392856e92c..8fe78821218 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.jvm_abi.txt new file mode 100644 index 00000000000..1cf044e05e0 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;J)J + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: kotlin/Long /* = ... */) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: kotlin/Long /* = ... */) + FUNCTION doCall2(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/Object;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt index eabc5ffccfc..eda89c48e71 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.jvm_abi.txt new file mode 100644 index 00000000000..712e6b2083e --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/String;)Ljava/lang/String; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, exception2: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: kotlin/String /* = ... */) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, exception2: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: kotlin/String /* = ... */) + FUNCTION doCall2(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt index 1458ab657d3..7099c8f78a0 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.jvm_abi.txt new file mode 100644 index 00000000000..d0679085535 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/String;)Ljava/lang/String; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception1: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, exception2: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, exception3: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, exception4: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock2: kotlin/Function0, res: kotlin/String /* = ... */) + K2 + (block: kotlin/Function0, exception1: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, exception2: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, exception3: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, exception4: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock2: kotlin/Function0, res: kotlin/String /* = ... */) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt index e97c1169949..43ff6a94c75 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.jvm_abi.txt new file mode 100644 index 00000000000..7748abda508 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/String;)Ljava/lang/String; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: kotlin/String /* = ... */) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: kotlin/String /* = ... */) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt index 61ba24ab136..6f7173e69ba 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.jvm_abi.txt new file mode 100644 index 00000000000..d0679085535 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/String;)Ljava/lang/String; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception1: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, exception2: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, exception3: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, exception4: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock2: kotlin/Function0, res: kotlin/String /* = ... */) + K2 + (block: kotlin/Function0, exception1: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, exception2: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, exception3: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, exception4: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock2: kotlin/Function0, res: kotlin/String /* = ... */) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt index e6278519e69..9a8d53cdf64 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.jvm_abi.txt new file mode 100644 index 00000000000..56d4d14ade5 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/String;)Ljava/lang/String; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception1: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, exception3: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock2: kotlin/Function0, res: kotlin/String /* = ... */) + K2 + (block: kotlin/Function0, exception1: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, exception3: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock2: kotlin/Function0, res: kotlin/String /* = ... */) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt index 6539f8bc4bc..4fcb9738d2a 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.jvm_abi.txt new file mode 100644 index 00000000000..d05548d9a0f --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;)Ljava/lang/String; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt index 81b70d478dd..0eb97af3369 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.jvm_abi.txt new file mode 100644 index 00000000000..712e6b2083e --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/String;)Ljava/lang/String; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, exception2: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: kotlin/String /* = ... */) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, exception2: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: kotlin/String /* = ... */) + FUNCTION doCall2(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt index ab9be4bd138..1c623915f59 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.jvm_abi.txt new file mode 100644 index 00000000000..0b285c67354 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Ljava/lang/Object;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0, res: T#0) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt index c0c910216b8..ef8602b67c1 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.jvm_abi.txt new file mode 100644 index 00000000000..1afa766bbb2 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION doCall(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0) + FUNCTION doCall2(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0) + K2 + (block: kotlin/Function0, exception: kotlin/Function1<@kotlin/ParameterName(name = "e") java/lang/Exception /* = @kotlin/ParameterName(name = "e") kotlin/Exception^ */, kotlin/Unit>, finallyBlock: kotlin/Function0) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt index 5ec79bdf657..2b860033f3a 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.jvm_abi.txt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.jvm_abi.txt new file mode 100644 index 00000000000..6df23e9e755 --- /dev/null +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.jvm_abi.txt @@ -0,0 +1,57 @@ +MODULE main + CLASS test/A.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/A + *L + 1#1,34:1 + 12#1,2:35 + 21#1,2:37 + 16#1:39 + 23#1,2:40 + 14#1,2:42 + *S KotlinDebug + *F + + 1 1.kt + test/A + *L + 26#1:35,2 + 28#1:37,2 + 26#1:39 + 28#1:40,2 + 26#1:42,2 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/A + *L + 1#1,34:1 + 12#1,2:35 + 21#1,2:37 + 16#1:39 + 23#1,2:40 + 14#1:42 + *S KotlinDebug + *F + + 1 1.kt + test/A + *L + 26#1:35,2 + 28#1:37,2 + 26#1:39 + 28#1:40,2 + 26#1:42 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt index 59ed142bef9..c764a4d186d 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt @@ -1,5 +1,7 @@ // NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +ProperFinally +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/property/fromObject.jvm_abi.txt b/compiler/testData/codegen/boxInline/property/fromObject.jvm_abi.txt new file mode 100644 index 00000000000..86372cde9fd --- /dev/null +++ b/compiler/testData/codegen/boxInline/property/fromObject.jvm_abi.txt @@ -0,0 +1,34 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + test/A + + 3 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,29:1 + 12#2:30 + 13#2:32 + 10#2:33 + 1#3:31 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 25#1:30 + 25#1:32 + 27#1:33 + 25#1:31 + *E + } ) + K2 + --- diff --git a/compiler/testData/codegen/boxInline/property/fromObject.kt b/compiler/testData/codegen/boxInline/property/fromObject.kt index 5c28222b796..5b53840eeeb 100644 --- a/compiler/testData/codegen/boxInline/property/fromObject.kt +++ b/compiler/testData/codegen/boxInline/property/fromObject.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62465 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.jvm_abi.txt b/compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.jvm_abi.txt new file mode 100644 index 00000000000..49197493cf8 --- /dev/null +++ b/compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS test/_1Kt.class + PACKAGE METADATA + FUNCTION copyOfRange1([Ljava/lang/Object;Lkotlin/jvm/functions/Function0;)Ltest/F; + Property: class.metadata.function.typeParameters + K1 + + K2 + diff --git a/compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt b/compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt index c59db9712ed..ba4d9b9e75f 100644 --- a/compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt +++ b/compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt @@ -1,6 +1,8 @@ // WITH_REFLECT // NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63855 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/simple/kt17431.jvm_abi.txt b/compiler/testData/codegen/boxInline/simple/kt17431.jvm_abi.txt new file mode 100644 index 00000000000..d7ff7fd6c4a --- /dev/null +++ b/compiler/testData/codegen/boxInline/simple/kt17431.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS LabelHolder.class + CLASS METADATA + PROPERTY labels + Property: class.metadata.property.returnType + K1 + java/util/HashMap> /* = kotlin/collections/HashMap^> */ + K2 + java/util/HashMap> diff --git a/compiler/testData/codegen/boxInline/simple/kt17431.kt b/compiler/testData/codegen/boxInline/simple/kt17431.kt index 100f0d7f7e6..877ecfec1d3 100644 --- a/compiler/testData/codegen/boxInline/simple/kt17431.kt +++ b/compiler/testData/codegen/boxInline/simple/kt17431.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63864 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.jvm_abi.txt b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.jvm_abi.txt new file mode 100644 index 00000000000..5b53b11f8f8 --- /dev/null +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.jvm_abi.txt @@ -0,0 +1,33 @@ +MODULE main + CLASS BoxKt$check$$inlined$collect$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + inline.kt + Kotlin + *S Kotlin + *F + + 1 inline.kt + flow/InlineKt$collect$2 + + 2 box.kt + BoxKt + *L + 1#1,48:1 + 66#2:49 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + inline.kt + Kotlin + *S Kotlin + *F + + 1 inline.kt + flow/InlineKt$collect$2 + + 2 box.kt + BoxKt + *L + 1#1,48:1 + 67#2:49 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt index ed1a211d28b..96e262739c1 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // WITH_COROUTINES // CHECK_STATE_MACHINE +// JVM_ABI_K1_K2_DIFF: KT-62464 // In this test the following transformation are occuring: // flow$1 -> flowWith$$inlined$flow$1 diff --git a/compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.jvm_abi.txt b/compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.jvm_abi.txt new file mode 100644 index 00000000000..586a3b214bb --- /dev/null +++ b/compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.jvm_abi.txt @@ -0,0 +1,45 @@ +MODULE main + CLASS InlineSiteKt$abc$$inlined$map$1$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + inlined.kt + Kotlin + *S Kotlin + *F + + 1 inlined.kt + InlinedKt$collect$2 + + 2 inlined.kt + InlinedKt$transform$1 + + 3 inlined.kt + InlinedKt + + 4 inlineSite.kt + InlineSiteKt + *L + 1#1,41:1 + 25#2:42 + 30#3:43 + 46#4,4:44 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + inlined.kt + Kotlin + *S Kotlin + *F + + 1 inlined.kt + InlinedKt$collect$2 + + 2 inlined.kt + InlinedKt$transform$1 + + 3 inlined.kt + InlinedKt + + 4 inlineSite.kt + InlineSiteKt + *L + 1#1,41:1 + 25#2:42 + 30#3:43 + 46#4,5:44 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt b/compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt index 80571672932..24b6be68b61 100644 --- a/compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt +++ b/compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt @@ -1,6 +1,8 @@ // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: inlined.kt interface Flow { diff --git a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.jvm_abi.txt b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.jvm_abi.txt new file mode 100644 index 00000000000..907d9436fa5 --- /dev/null +++ b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.jvm_abi.txt @@ -0,0 +1,64 @@ +MODULE main + CLASS A$test2$$inlined$call$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$call$1 + + 2 2.kt + A + + 3 1.kt + test/_1Kt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,14:1 + 31#2:15 + 11#3:16 + 9#3:18 + 1#4:17 + *S KotlinDebug + *F + + 1 2.kt + A + *L + 31#1:16 + 31#1:18 + 31#1:17 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$call$1 + + 2 2.kt + A + + 3 1.kt + test/_1Kt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,14:1 + 31#2:15 + 33#2:19 + 11#3:16 + 9#3:18 + 1#4:17 + *S KotlinDebug + *F + + 1 2.kt + A + *L + 31#1:16 + 31#1:18 + 31#1:17 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt index 8edebf54683..e62e426e75f 100644 --- a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt +++ b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt @@ -1,4 +1,6 @@ // NO_CHECK_LAMBDA_INLINING +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.jvm_abi.txt b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.jvm_abi.txt new file mode 100644 index 00000000000..10202a37c64 --- /dev/null +++ b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.jvm_abi.txt @@ -0,0 +1,64 @@ +MODULE main + CLASS A$test2$$inlined$call$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$call$1 + + 2 2.kt + A + + 3 1.kt + test/_1Kt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,20:1 + 37#2:21 + 10#3:22 + 8#3:24 + 1#4:23 + *S KotlinDebug + *F + + 1 2.kt + A + *L + 37#1:22 + 37#1:24 + 37#1:23 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$call$1 + + 2 2.kt + A + + 3 1.kt + test/_1Kt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,20:1 + 37#2:21 + 39#2:25 + 10#3:22 + 8#3:24 + 1#4:23 + *S KotlinDebug + *F + + 1 2.kt + A + *L + 37#1:22 + 37#1:24 + 37#1:23 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt index 4c827d658de..af415fd4d58 100644 --- a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt +++ b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt @@ -1,4 +1,5 @@ // NO_CHECK_LAMBDA_INLINING +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.jvm_abi.txt b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.jvm_abi.txt new file mode 100644 index 00000000000..87f10ef1b87 --- /dev/null +++ b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS _1Kt.class + PACKAGE METADATA + FUNCTION performWithFail2(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (job: kotlin/Function1, failJob: kotlin/Function2<@kotlin/ParameterName(name = "e") java/lang/RuntimeException /* = kotlin/RuntimeException^ */, T#0, T#1>) + K2 + (job: kotlin/Function1, failJob: kotlin/Function2<@kotlin/ParameterName(name = "e") java/lang/RuntimeException /* = @kotlin/ParameterName(name = "e") kotlin/RuntimeException^ */, T#0, T#1>) diff --git a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt index bdc999e1ba9..15cc7bb6593 100644 --- a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt +++ b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt @@ -1,7 +1,8 @@ // WITH_STDLIB // KJS_WITH_FULL_RUNTIME -// FILE: 1.kt +// JVM_ABI_K1_K2_DIFF: KT-63861 +// FILE: 1.kt class My(val value: Int) inline fun T.performWithFail(job: (T)-> R, failJob : (T) -> R) : R { diff --git a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.jvm_abi.txt b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.jvm_abi.txt new file mode 100644 index 00000000000..4db21e50fb5 --- /dev/null +++ b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS _1Kt.class + PACKAGE METADATA + FUNCTION performWithFailFinally(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (job: kotlin/Function1, failJob: kotlin/Function2<@kotlin/ParameterName(name = "e") java/lang/RuntimeException /* = kotlin/RuntimeException^ */, T#0, T#1>, finally: kotlin/Function1) + K2 + (job: kotlin/Function1, failJob: kotlin/Function2<@kotlin/ParameterName(name = "e") java/lang/RuntimeException /* = @kotlin/ParameterName(name = "e") kotlin/RuntimeException^ */, T#0, T#1>, finally: kotlin/Function1) diff --git a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt index 9eab2984ce0..d2192e03823 100644 --- a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt +++ b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // KJS_WITH_FULL_RUNTIME +// JVM_ABI_K1_K2_DIFF: KT-63861 + // FILE: 1.kt class My(val value: Int) diff --git a/compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.jvm_abi.txt b/compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.jvm_abi.txt new file mode 100644 index 00000000000..5b150605c24 --- /dev/null +++ b/compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.jvm_abi.txt @@ -0,0 +1,47 @@ +MODULE main + CLASS _2Kt.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + _1Kt + *L + 1#1,18:1 + 8#2,2:19 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 16#1:19,2 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 2.kt + Kotlin + *S Kotlin + *F + + 1 2.kt + _2Kt + + 2 1.kt + _1Kt + *L + 1#1,18:1 + 8#2:19 + 7#2,3:20 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 16#1:19 + 16#1:20,3 + *E + } ) diff --git a/compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt b/compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt index adc37a32ddb..f948ecd1b9d 100644 --- a/compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt +++ b/compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt @@ -1,5 +1,6 @@ // IGNORE_INLINER: IR // IGNORE_BACKEND: WASM +// JVM_ABI_K1_K2_DIFF: KT-62464 // FILE: 1.kt inline fun unchecked(any: Any): Any { diff --git a/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.jvm_abi.txt new file mode 100644 index 00000000000..1f5fffcb103 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS a/A.class + CLASS METADATA + PROPERTY getVk()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY getVo()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.kt b/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.kt index 130fcfd3b53..f4f991d73e8 100644 --- a/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.kt +++ b/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: accessorForProtectedPropertyWithPrivateSetter.kt import a.A diff --git a/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.jvm_abi.txt new file mode 100644 index 00000000000..1f5fffcb103 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.jvm_abi.txt @@ -0,0 +1,15 @@ +MODULE main + CLASS a/A.class + CLASS METADATA + PROPERTY getVk()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY getVo()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt b/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt index 16aa7439be7..8a818ae5066 100644 --- a/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt +++ b/compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt import a.A diff --git a/compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.jvm_abi.txt new file mode 100644 index 00000000000..83c5d68989e --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.jvm_abi.txt @@ -0,0 +1,35 @@ +MODULE main + CLASS Example.class + CLASS METADATA + PROPERTY getProp2()I + Property: class.metadata.property.getterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- + PROPERTY getUseSite2()I + Property: class.metadata.property.getterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- diff --git a/compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.kt b/compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.kt index 2df07cac38d..49702f30856 100644 --- a/compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.kt +++ b/compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63853 class Example { @JvmSynthetic diff --git a/compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.jvm_abi.txt new file mode 100644 index 00000000000..b4b34226029 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.jvm_abi.txt @@ -0,0 +1,19 @@ +MODULE main + CLASS DFoo.class + CLASS METADATA + K1 + getTestExtVal(Ljava/lang/String;)Ljava/lang/String; + K2 + --- + K1 + getTestVal()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + testExtVal + K1 + --- + K2 + testVal diff --git a/compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt b/compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt index b0f44d19f44..286fc7c1b91 100644 --- a/compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt +++ b/compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 + annotation class Ann interface IFoo { diff --git a/compiler/testData/codegen/bytecodeListing/annotations/onProperties.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/annotations/onProperties.jvm_abi.txt new file mode 100644 index 00000000000..17f0fa8051c --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/annotations/onProperties.jvm_abi.txt @@ -0,0 +1,25 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getP()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int + PROPERTY getY()I + Property: class.metadata.property.getterModifiers + K1 + public final + K2 + public final /* non-default */ + Property: class.metadata.property.setterModifiers + K1 + public final + K2 + public final /* non-default */ + Property: class.metadata.property.setterValueParameter + K1 + --- + K2 + value: kotlin/Int diff --git a/compiler/testData/codegen/bytecodeListing/annotations/onProperties.kt b/compiler/testData/codegen/bytecodeListing/annotations/onProperties.kt index 0f135bf929c..ae4c6591fec 100644 --- a/compiler/testData/codegen/bytecodeListing/annotations/onProperties.kt +++ b/compiler/testData/codegen/bytecodeListing/annotations/onProperties.kt @@ -1,4 +1,5 @@ // !LANGUAGE: +UseGetterNameForPropertyAnnotationsMethodOnJvm +// JVM_ABI_K1_K2_DIFF: KT-63843, KT-63984 import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.jvm_abi.txt new file mode 100644 index 00000000000..b1979d11435 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.jvm_abi.txt @@ -0,0 +1,27 @@ +MODULE main + CLASS ListSet.class + CLASS METADATA + FUNCTION contains(Ljava/lang/Object;)Z + Property: class.metadata.function.valueParameters + K1 + (element: T#0) + K2 + (element: @kotlin/UnsafeVariance T#0) + FUNCTION containsAll(Ljava/util/Collection;)Z + Property: class.metadata.function.valueParameters + K1 + (elements: kotlin/collections/Collection) + K2 + (elements: kotlin/collections/Collection<@kotlin/UnsafeVariance T#0>) + FUNCTION indexOf(Ljava/lang/Object;)I + Property: class.metadata.function.valueParameters + K1 + (element: T#0) + K2 + (element: @kotlin/UnsafeVariance T#0) + FUNCTION lastIndexOf(Ljava/lang/Object;)I + Property: class.metadata.function.valueParameters + K1 + (element: T#0) + K2 + (element: @kotlin/UnsafeVariance T#0) diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt index b2c1f1bbe3e..34163dbae98 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt @@ -1,6 +1,8 @@ // WITH_STDLIB // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63858 + import java.util.* class ListSet : List, Set { diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.jvm_abi.txt new file mode 100644 index 00000000000..d0c57f582bf --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.jvm_abi.txt @@ -0,0 +1,103 @@ +MODULE main + CLASS DStringCollection.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DStringSet.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DStringList.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DStringMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + CLASS DStringMapEntry.class + CLASS METADATA + K1 + getKey()Ljava/lang/String; + K2 + --- + K1 + getValue()Ljava/lang/Number; + K2 + --- + K1 + --- + K2 + key + K1 + --- + K2 + value + CLASS DStringCollectionBySet.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DStringCollectionByList.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt index 23f09563f4a..e2121f1d784 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt @@ -1,5 +1,5 @@ // FULL_JDK - +// JVM_ABI_K1_K2_DIFF: KT-63828 class DStringIterator(d: Iterator) : Iterator by d class DStringListIterator(d: ListIterator) : ListIterator by d diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.jvm_abi.txt new file mode 100644 index 00000000000..4d1458fcca2 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.jvm_abi.txt @@ -0,0 +1,103 @@ +MODULE main + CLASS DIntCollection.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DIntSet.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DIntList.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DIntMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + CLASS DIntMapEntry.class + CLASS METADATA + K1 + getKey()Ljava/lang/Integer; + K2 + --- + K1 + getValue()Ljava/lang/Double; + K2 + --- + K1 + --- + K2 + key + K1 + --- + K2 + value + CLASS DIntCollectionBySet.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DIntCollectionByList.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt index 2f456adaec0..9f465a82ef6 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt @@ -1,5 +1,6 @@ // FULL_JDK // See also: https://youtrack.jetbrains.com/issue/KT-42330 +// JVM_ABI_K1_K2_DIFF: KT-63828 class DIntIterator(d: Iterator) : Iterator by d diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.jvm_abi.txt new file mode 100644 index 00000000000..4c0416bfde2 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.jvm_abi.txt @@ -0,0 +1,103 @@ +MODULE main + CLASS DGenericCollection.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DGenericSet.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DGenericList.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DGenericMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + CLASS DGenericMapEntry.class + CLASS METADATA + K1 + getKey()Ljava/lang/Object; + K2 + --- + K1 + getValue()Ljava/lang/Object; + K2 + --- + K1 + --- + K2 + key + K1 + --- + K2 + value + CLASS DGenericCollectionBySet.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS DGenericCollectionByList.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt index 2defb72814e..7a22ee8420b 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt @@ -1,4 +1,5 @@ // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63828 class DGenericIterator(d: Iterator) : Iterator by d diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.jvm_abi.txt new file mode 100644 index 00000000000..f1c2035d44f --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS MyList.class + CLASS METADATA + PROPERTY getElements()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.kt index 1ec634b51d7..2352e01f565 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.kt @@ -1,5 +1,8 @@ // Ensure the proper collection stubs are added, in // particular *not* when specialized implementations are provided. + +// JVM_ABI_K1_K2_DIFF: KT-63864 + class MyList : List { val elements = ArrayList() diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.jvm_abi.txt new file mode 100644 index 00000000000..f1c2035d44f --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS MyList.class + CLASS METADATA + PROPERTY getElements()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.kt index 534d8acd94e..449c6cb5f48 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.kt @@ -1,5 +1,7 @@ // Ensure the proper collection stubs are added, in // particular *not* when specialized implementations are provided. + +// JVM_ABI_K1_K2_DIFF: KT-63864 class MyList : MutableList { val elements = ArrayList() diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.jvm_abi.txt new file mode 100644 index 00000000000..80cc77a7338 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.jvm_abi.txt @@ -0,0 +1,31 @@ +MODULE main + CLASS InternalToArray.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS PrivateToArray.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size + CLASS PublicToArray.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.kt index 5d8a3ceea98..487b9681f03 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 class InternalToArray(d: Collection): Collection by d { internal fun toArray(): Array = null!! } diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.jvm_abi.txt new file mode 100644 index 00000000000..db1141529a8 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS InternalGenericToArray.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.kt index f6229852e82..e184db083e9 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 class InternalGenericToArray(d: Collection): Collection by d { internal fun toArray(arr: Array): Array = null!! } \ No newline at end of file diff --git a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.jvm_abi.txt new file mode 100644 index 00000000000..921a68993d4 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS FunctionalTypeKt.class + PACKAGE METADATA + FUNCTION f(LO;LK;Lkotlin/jvm/functions/Function3;)Ljava/lang/Object; + Property: class.metadata.function.valueParameters + K1 + (g: @kotlin/ExtensionFunctionType @kotlin/ContextFunctionTypeParams(count = 1) kotlin/Function3) + K2 + (g: @kotlin/ContextFunctionTypeParams(count = 1) @kotlin/ExtensionFunctionType kotlin/Function3) diff --git a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.kt b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.kt index ae1b55fa4db..b5f80345ca6 100644 --- a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.kt +++ b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.kt @@ -1,5 +1,6 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR +// JVM_ABI_K1_K2_DIFF: different order of function annotations class Param class O { diff --git a/compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.jvm_abi.txt new file mode 100644 index 00000000000..f316918604b --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS C.class + CLASS METADATA + FUNCTION jg1(Ljava/util/Collection;)V + Property: class.metadata.function.valueParameters + K1 + (c: kotlin/collections/MutableCollection..kotlin/collections/Collection?) + K2 + (c: kotlin/collections/MutableCollection..kotlin/collections/Collection?) diff --git a/compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt b/compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt index 6f5175ea00c..02016204e25 100644 --- a/compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt +++ b/compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt @@ -1,4 +1,6 @@ // WITH_SIGNATURES +// JVM_ABI_K1_K2_DIFF: KT-63914 + // FILE: delegationToJavaInterfaceWithWildcardType.kt interface K { fun kf1(): Collection diff --git a/compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.jvm_abi.txt new file mode 100644 index 00000000000..960539bc460 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.jvm_abi.txt @@ -0,0 +1,42 @@ +MODULE main + CLASS DeprecatedPropertyKt.class + PACKAGE METADATA + PROPERTY getTestValWithExplicitDefaultGet()I + Property: class.metadata.property.getterModifiers + K1 + public final /* non-default */ + K2 + public final + PROPERTY getTestVarWithExplicitDefaultGet()I + Property: class.metadata.property.getterModifiers + K1 + public final /* non-default */ + K2 + public final + PROPERTY getTestVarWithExplicitDefaultGetSet()I + Property: class.metadata.property.getterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- + PROPERTY getTestVarWithExplicitDefaultSet()I + Property: class.metadata.property.setterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- diff --git a/compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.kt b/compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.kt index 1167e2ab082..1abc9ba6ba1 100644 --- a/compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.kt +++ b/compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63850, KT-63854 + @Deprecated("") val testVal = 1 diff --git a/compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.jvm_abi.txt new file mode 100644 index 00000000000..c152075f2cf --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.jvm_abi.txt @@ -0,0 +1,37 @@ +MODULE main + CLASS Delegated.class + CLASS METADATA + K1 + --- + K2 + extProp + K1 + getExtProp(Ljava/lang/String;)Ljava/lang/String; + K2 + --- + K1 + getProp()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + prop + CLASS Delegated2.class + CLASS METADATA + K1 + --- + K2 + extProp + K1 + getExtProp(Ljava/lang/String;)Ljava/lang/String; + K2 + --- + K1 + getProp()Ljava/lang/String; + K2 + --- + K1 + --- + K2 + prop diff --git a/compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt b/compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt index 1c817044b1b..a2b60675bf5 100644 --- a/compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt +++ b/compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 + interface IFoo { @Deprecated("") val prop: String get() = "" diff --git a/compiler/testData/codegen/bytecodeListing/immutableCollection.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/immutableCollection.jvm_abi.txt new file mode 100644 index 00000000000..6581c1bbfb6 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/immutableCollection.jvm_abi.txt @@ -0,0 +1,21 @@ +MODULE main + CLASS ImmutableCollection.class + CLASS METADATA + FUNCTION add(Ljava/lang/Object;)LImmutableCollection; + Property: class.metadata.function.valueParameters + K1 + (element: T#0) + K2 + (element: @kotlin/UnsafeVariance T#0) + FUNCTION addAll(Ljava/util/Collection;)LImmutableCollection; + Property: class.metadata.function.valueParameters + K1 + (elements: kotlin/collections/Collection) + K2 + (elements: kotlin/collections/Collection<@kotlin/UnsafeVariance T#0>) + FUNCTION remove(Ljava/lang/Object;)LImmutableCollection; + Property: class.metadata.function.valueParameters + K1 + (element: T#0) + K2 + (element: @kotlin/UnsafeVariance T#0) diff --git a/compiler/testData/codegen/bytecodeListing/immutableCollection.kt b/compiler/testData/codegen/bytecodeListing/immutableCollection.kt index f5905464a97..a3230498678 100644 --- a/compiler/testData/codegen/bytecodeListing/immutableCollection.kt +++ b/compiler/testData/codegen/bytecodeListing/immutableCollection.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63858 + interface ImmutableCollection : Collection { fun add(element: @UnsafeVariance E): ImmutableCollection fun addAll(elements: Collection<@UnsafeVariance E>): ImmutableCollection diff --git a/compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.jvm_abi.txt new file mode 100644 index 00000000000..cc254f7a314 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.jvm_abi.txt @@ -0,0 +1,60 @@ +MODULE main + CLASS _2Kt$box$$inlined$call$2.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$call$1 + + 2 2.kt + _2Kt + + 3 1.kt + test/_1Kt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,11:1 + 21#2:12 + 7#3:13 + 1#4:14 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 21#1:13 + 21#1:14 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + 1.kt + Kotlin + *S Kotlin + *F + + 1 1.kt + test/_1Kt$call$1 + + 2 2.kt + _2Kt + + 3 1.kt + test/_1Kt + + 4 fake.kt + kotlin/jvm/internal/FakeKt + *L + 1#1,11:1 + 21#2:12 + 23#2:15 + 7#3:13 + 1#4:14 + *S KotlinDebug + *F + + 1 2.kt + _2Kt + *L + 21#1:13 + 21#1:14 + *E + } ) diff --git a/compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.kt b/compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.kt index b84bca2c578..7ba54b4b821 100644 --- a/compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.kt +++ b/compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62464 + // FILE: 1.kt package test diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.jvm_abi.txt new file mode 100644 index 00000000000..548ab1cb0c7 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Z.class + CLASS METADATA + PROPERTY getX()I + Property: class.metadata.property.getterModifiers + K1 + public final + K2 + public final /* non-default */ diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.kt b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.kt index 2ba27ac39ed..29293d3b10a 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.kt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.kt @@ -1,4 +1,5 @@ // !LANGUAGE: +InlineClasses +UseGetterNameForPropertyAnnotationsMethodOnJvm +// JVM_ABI_K1_K2_DIFF: KT-63843 interface IFoo { fun overridingFun() diff --git a/compiler/testData/codegen/bytecodeListing/jvmStatic/kt31389.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/jvmStatic/kt31389.jvm_abi.txt new file mode 100644 index 00000000000..c79c7cffbfb --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/jvmStatic/kt31389.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Annotation$Companion.class + CLASS METADATA + PROPERTY getTEST_FIELD2()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/bytecodeListing/jvmStatic/kt31389.kt b/compiler/testData/codegen/bytecodeListing/jvmStatic/kt31389.kt index 52a7fc161f2..b26c3669c14 100644 --- a/compiler/testData/codegen/bytecodeListing/jvmStatic/kt31389.kt +++ b/compiler/testData/codegen/bytecodeListing/jvmStatic/kt31389.kt @@ -1,5 +1,6 @@ // JVM_TARGET: 1.8 // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 annotation class Annotation { companion object { diff --git a/compiler/testData/codegen/bytecodeListing/kt43217.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/kt43217.jvm_abi.txt new file mode 100644 index 00000000000..aceb17bc93e --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/kt43217.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY b + Property: class.metadata.property.returnType + K1 + .A$b$1 + K2 + .A. diff --git a/compiler/testData/codegen/bytecodeListing/kt43217.kt b/compiler/testData/codegen/bytecodeListing/kt43217.kt index 339423beaea..74605128b39 100644 --- a/compiler/testData/codegen/bytecodeListing/kt43217.kt +++ b/compiler/testData/codegen/bytecodeListing/kt43217.kt @@ -1,4 +1,6 @@ // JVM_TARGET: 1.8 +// JVM_ABI_K1_K2_DIFF: KT-63655 + // FILE: kt43217.kt class A { private val b = diff --git a/compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.jvm_abi.txt new file mode 100644 index 00000000000..ba5c270ad8b --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS JImpl.class + CLASS METADATA + FUNCTION takeNotNull(Ljava/lang/String;)V + Property: class.metadata.function.valueParameters + K1 + (x: kotlin/String) + K2 + (x: @kotlin/jvm/internal/EnhancedNullability kotlin/String) diff --git a/compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.kt b/compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.kt index d3a8dfa6cb3..2eba7240dab 100644 --- a/compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.kt +++ b/compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63955 + // FILE: nullabilityAnnotationsOnDelegatedMembers.kt class JImpl(j: J) : J by j diff --git a/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.jvm_abi.txt new file mode 100644 index 00000000000..b55c50e7f9b --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.jvm_abi.txt @@ -0,0 +1,21 @@ +MODULE main + CLASS Test.class + CLASS METADATA + PROPERTY getInternalProperty$main()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY getProtectedProperty()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY getPublicProperty()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.kt b/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.kt index 98b0087deaf..eec2806648d 100644 --- a/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.kt +++ b/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 open class Test { var publicProperty: String = "" private set diff --git a/compiler/testData/codegen/bytecodeListing/rawTypeInSignature.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/rawTypeInSignature.jvm_abi.txt new file mode 100644 index 00000000000..0be7f104702 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/rawTypeInSignature.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS KRaw.class + CLASS METADATA + FUNCTION takesRawGenericIn(LGenericIn;)V + Property: class.metadata.function.valueParameters + K1 + (g: /* raw */ GenericIn../* raw */ GenericIn?) + K2 + (g: /* raw */ GenericIn../* raw */ GenericIn<*>?) diff --git a/compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt b/compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt index a9d693d5957..8245868908a 100644 --- a/compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt +++ b/compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt @@ -1,4 +1,6 @@ // WITH_SIGNATURES +// JVM_ABI_K1_K2_DIFF: KT-63957 + // FILE: rawTypeInSignature.kt class GenericInv diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.jvm_abi.txt new file mode 100644 index 00000000000..d366d27850b --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.jvm_abi.txt @@ -0,0 +1,69 @@ +MODULE main + CLASS GenericMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + CLASS AbstractGenericMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.kt b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.kt index 1eb2dbc6c7b..43f7e8817a8 100644 --- a/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.kt +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63828 // WITH_SIGNATURES class GenericMap : MutableMap by HashMap() diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.jvm_abi.txt new file mode 100644 index 00000000000..3d52a17d31e --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.jvm_abi.txt @@ -0,0 +1,69 @@ +MODULE main + CLASS StringStringMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + CLASS AbstractStringStringMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.kt b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.kt index f3e9b359f42..00539d556bb 100644 --- a/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.kt +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.kt @@ -1,6 +1,8 @@ // WITH_SIGNATURES // Test expectations differ between JVM and JVM IR backends, because of KT-40277. This should be revisited once KT-40277 is resolved. +// JVM_ABI_K1_K2_DIFF: KT-63828 + class StringStringMap : MutableMap by HashMap() abstract class AbstractStringStringMap : MutableMap by HashMap() diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.jvm_abi.txt new file mode 100644 index 00000000000..e04e8a9838e --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.jvm_abi.txt @@ -0,0 +1,69 @@ +MODULE main + CLASS StringMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values + CLASS AbstractStringMap.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.kt b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.kt index bf66888a0d1..11105789536 100644 --- a/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.kt +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.kt @@ -1,6 +1,7 @@ // WITH_SIGNATURES // Test expectations differ between JVM and JVM IR backends, because of KT-40277. This should be revisited once KT-40277 is resolved. +// JVM_ABI_K1_K2_DIFF: KT-63828 class StringMap : MutableMap by HashMap() abstract class AbstractStringMap : MutableMap by HashMap() diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.jvm_abi.txt new file mode 100644 index 00000000000..7b9c1d1e2ba --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.jvm_abi.txt @@ -0,0 +1,35 @@ +MODULE main + CLASS AMap1.class + CLASS METADATA + K1 + --- + K2 + entries + K1 + getEntries()Ljava/util/Set; + K2 + --- + K1 + getKeys()Ljava/util/Set; + K2 + --- + K1 + getSize()I + K2 + --- + K1 + getValues()Ljava/util/Collection; + K2 + --- + K1 + --- + K2 + keys + K1 + --- + K2 + size + K1 + --- + K2 + values diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.kt b/compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.kt index a8ce4efac64..3545de65774 100644 --- a/compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.kt +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.kt @@ -1,6 +1,8 @@ // TARGET_BACKEND: JVM // WITH_STDLIB // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63828 + abstract class AMap1(private val m: Map) : Map by m diff --git a/compiler/testData/codegen/bytecodeListing/valueClasses/annotations.jvm_abi.txt b/compiler/testData/codegen/bytecodeListing/valueClasses/annotations.jvm_abi.txt new file mode 100644 index 00000000000..3641223c42c --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/valueClasses/annotations.jvm_abi.txt @@ -0,0 +1,66 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getX()I + Property: class.metadata.property.getterModifiers + K1 + public final + K2 + public final /* non-default */ + PROPERTY getY()I + Property: class.metadata.property.getterModifiers + K1 + public final + K2 + public final /* non-default */ + CLASS B.class + CLASS METADATA + PROPERTY getY()LA; + Property: class.metadata.property.getterModifiers + K1 + public final + K2 + public final /* non-default */ + CLASS C.class + CLASS METADATA + PROPERTY getX()LA; + Property: class.metadata.property.setterModifiers + K1 + public final + K2 + public final /* non-default */ + Property: class.metadata.property.setterValueParameter + K1 + --- + K2 + value: A + PROPERTY getY()LA; + Property: class.metadata.property.getterModifiers + K1 + public final + K2 + public final /* non-default */ + Property: class.metadata.property.setterModifiers + K1 + public final + K2 + public final /* non-default */ + Property: class.metadata.property.setterValueParameter + K1 + --- + K2 + value: A? + CLASS AnnotationsKt.class + PACKAGE METADATA + PROPERTY getT(LC;)LA; + Property: class.metadata.property.setterValueParameter + K1 + : A + K2 + _: A + PROPERTY getT-iUtXLc0(II)LA; + Property: class.metadata.property.setterValueParameter + K1 + : A + K2 + _: A diff --git a/compiler/testData/codegen/bytecodeListing/valueClasses/annotations.kt b/compiler/testData/codegen/bytecodeListing/valueClasses/annotations.kt index 482f777ea0d..5e0d71ba1b5 100644 --- a/compiler/testData/codegen/bytecodeListing/valueClasses/annotations.kt +++ b/compiler/testData/codegen/bytecodeListing/valueClasses/annotations.kt @@ -2,6 +2,8 @@ // WITH_STDLIB // FIR_IDENTICAL // TARGET_BACKEND: JVM_IR +// JVM_ABI_K1_K2_DIFF: KT-63843, KT-62582 + import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/bytecodeText/builtinFunctions/removeAt.jvm_abi.txt b/compiler/testData/codegen/bytecodeText/builtinFunctions/removeAt.jvm_abi.txt new file mode 100644 index 00000000000..0c3cf1145fc --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/builtinFunctions/removeAt.jvm_abi.txt @@ -0,0 +1,33 @@ +MODULE main + CLASS A3.class + CLASS METADATA + FUNCTION removeAt(I)Ljava/lang/String; + Property: class.metadata.function.modifiers + K1 + public open + K2 + public open operator + CLASS A4.class + CLASS METADATA + FUNCTION removeAt(I)Ljava/lang/String; + Property: class.metadata.function.modifiers + K1 + public abstract + K2 + public abstract operator + CLASS A5.class + CLASS METADATA + FUNCTION removeAt(I)Ljava/lang/String; + Property: class.metadata.function.modifiers + K1 + public open + K2 + public open operator + CLASS A6.class + CLASS METADATA + FUNCTION removeAt(I)Ljava/lang/String; + Property: class.metadata.function.modifiers + K1 + public abstract + K2 + public abstract operator diff --git a/compiler/testData/codegen/bytecodeText/builtinFunctions/removeAt.kt b/compiler/testData/codegen/bytecodeText/builtinFunctions/removeAt.kt index 46a7a958730..5824363af49 100644 --- a/compiler/testData/codegen/bytecodeText/builtinFunctions/removeAt.kt +++ b/compiler/testData/codegen/bytecodeText/builtinFunctions/removeAt.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63857 + abstract class A1 : MutableList { override fun remove(x: T): Boolean = true override fun removeAt(index: Int): T = null!! diff --git a/compiler/testData/codegen/bytecodeText/constants/inlineUnsignedIntConstant.jvm_abi.txt b/compiler/testData/codegen/bytecodeText/constants/inlineUnsignedIntConstant.jvm_abi.txt new file mode 100644 index 00000000000..825738fe29b --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/constants/inlineUnsignedIntConstant.jvm_abi.txt @@ -0,0 +1,13 @@ +MODULE main + CLASS kotlin/UInt.class + METHOD constructor-impl(I)I + Annotation: method.visibleAnnotations + K1 + --- + K2 + @Lkotlin/internal/IntrinsicConstEvaluation; + Annotation: method.invisibleAnnotations + K1 + @Lkotlin/internal/IntrinsicConstEvaluation; + K2 + --- diff --git a/compiler/testData/codegen/bytecodeText/constants/inlineUnsignedIntConstant.kt b/compiler/testData/codegen/bytecodeText/constants/inlineUnsignedIntConstant.kt index 9726c68cbb6..db6c41ecd92 100644 --- a/compiler/testData/codegen/bytecodeText/constants/inlineUnsignedIntConstant.kt +++ b/compiler/testData/codegen/bytecodeText/constants/inlineUnsignedIntConstant.kt @@ -1,5 +1,6 @@ // !LANGUAGE: +InlineClasses // ALLOW_KOTLIN_PACKAGE +// JVM_ABI_K1_K2_DIFF: KT-62750 // FILE: uint.kt @file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER") diff --git a/compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.jvm_abi.txt b/compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.jvm_abi.txt new file mode 100644 index 00000000000..69ecf8778e3 --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ForInSequenceWithIndexThrowsCMEKt.class + PACKAGE METADATA + PROPERTY getXsl()Ljava/util/ArrayList; + Property: class.metadata.property.returnType + K1 + java/util/ArrayList /* = kotlin/collections/ArrayList^ */ + K2 + java/util/ArrayList diff --git a/compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.kt b/compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.kt index 65ae207ae52..74074c1983e 100644 --- a/compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.kt +++ b/compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.kt @@ -1,4 +1,5 @@ // FULL_JDK +// JVM_ABI_K1_K2_DIFF: KT-63864 // IMPORTANT! // Please, when your changes cause failures in bytecodeText tests for 'for' loops, diff --git a/compiler/testData/codegen/bytecodeText/inline/finallyMarkers.jvm_abi.txt b/compiler/testData/codegen/bytecodeText/inline/finallyMarkers.jvm_abi.txt new file mode 100644 index 00000000000..6f9c21fbbd5 --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/inline/finallyMarkers.jvm_abi.txt @@ -0,0 +1,65 @@ +MODULE main + CLASS FinallyMarkersKt$box$$inlined$test$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + finallyMarkers.kt + Kotlin + *S Kotlin + *F + + 1 finallyMarkers.kt + FinallyMarkersKt$test$1 + + 2 finallyMarkers.kt + FinallyMarkersKt + *L + 1#1,28:1 + 17#2,3:29 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + finallyMarkers.kt + Kotlin + *S Kotlin + *F + + 1 finallyMarkers.kt + FinallyMarkersKt$test$1 + + 2 finallyMarkers.kt + FinallyMarkersKt + *L + 1#1,28:1 + 17#2,4:29 + *E + } ) + CLASS FinallyMarkersKt$box$$inlined$test$2.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + finallyMarkers.kt + Kotlin + *S Kotlin + *F + + 1 finallyMarkers.kt + FinallyMarkersKt$test$3 + + 2 finallyMarkers.kt + FinallyMarkersKt + *L + 1#1,28:1 + 17#2,3:29 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + finallyMarkers.kt + Kotlin + *S Kotlin + *F + + 1 finallyMarkers.kt + FinallyMarkersKt$test$3 + + 2 finallyMarkers.kt + FinallyMarkersKt + *L + 1#1,28:1 + 17#2,4:29 + *E + } ) diff --git a/compiler/testData/codegen/bytecodeText/inline/finallyMarkers.kt b/compiler/testData/codegen/bytecodeText/inline/finallyMarkers.kt index f3706355218..151d9238f31 100644 --- a/compiler/testData/codegen/bytecodeText/inline/finallyMarkers.kt +++ b/compiler/testData/codegen/bytecodeText/inline/finallyMarkers.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62464 + inline fun test(crossinline l: () -> String) { { l() diff --git a/compiler/testData/codegen/bytecodeText/intConstantSafeCall.jvm_abi.txt b/compiler/testData/codegen/bytecodeText/intConstantSafeCall.jvm_abi.txt new file mode 100644 index 00000000000..f0d29984563 --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/intConstantSafeCall.jvm_abi.txt @@ -0,0 +1,13 @@ +MODULE main + CLASS IntConstantSafeCallKt.class + METHOD foo()Ljava/lang/String; + Annotation: method.invisibleAnnotations + K1 + @Lorg/jetbrains/annotations/NotNull; + K2 + --- + Annotation: method.invisibleAnnotations + K1 + --- + K2 + @Lorg/jetbrains/annotations/Nullable; diff --git a/compiler/testData/codegen/bytecodeText/intConstantSafeCall.kt b/compiler/testData/codegen/bytecodeText/intConstantSafeCall.kt index b9db525dd0e..c354b2d82c8 100644 --- a/compiler/testData/codegen/bytecodeText/intConstantSafeCall.kt +++ b/compiler/testData/codegen/bytecodeText/intConstantSafeCall.kt @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-62485 fun foo() = 10?.toString() // 0 IFNULL diff --git a/compiler/testData/codegen/bytecodeText/kt3845.jvm_abi.txt b/compiler/testData/codegen/bytecodeText/kt3845.jvm_abi.txt new file mode 100644 index 00000000000..34b0370913d --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/kt3845.jvm_abi.txt @@ -0,0 +1,48 @@ +MODULE main + CLASS Example.class + CLASS METADATA + PROPERTY b5 + Property: class.metadata.property.setterModifiers + K1 + private final /* non-default */ + K2 + private final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- + PROPERTY getB1()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int + PROPERTY getB2()I + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + value: kotlin/Int + PROPERTY getB3()I + Property: class.metadata.property.setterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- + PROPERTY getB4()I + Property: class.metadata.property.setterModifiers + K1 + public final /* non-default */ + K2 + public final + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/Int + K2 + --- diff --git a/compiler/testData/codegen/bytecodeText/kt3845.kt b/compiler/testData/codegen/bytecodeText/kt3845.kt index 38979ba1f75..5dc7635ee3b 100644 --- a/compiler/testData/codegen/bytecodeText/kt3845.kt +++ b/compiler/testData/codegen/bytecodeText/kt3845.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63850, KT-63854 + class Example { var a1 = 0 diff --git a/compiler/testData/codegen/bytecodeText/kt48367.jvm_abi.txt b/compiler/testData/codegen/bytecodeText/kt48367.jvm_abi.txt new file mode 100644 index 00000000000..1ece59d98f8 --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/kt48367.jvm_abi.txt @@ -0,0 +1,33 @@ +MODULE main + CLASS Kt48367Kt$flaf$$inlined$bar$1.class + Annotation: class.invisibleAnnotations + K1 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt48367.kt + Kotlin + *S Kotlin + *F + + 1 kt48367.kt + Kt48367Kt$bar$1 + + 2 kt48367.kt + Kt48367Kt + *L + 1#1,23:1 + 9#2,2:24 + *E + } ) + K2 + @Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP + kt48367.kt + Kotlin + *S Kotlin + *F + + 1 kt48367.kt + Kt48367Kt$bar$1 + + 2 kt48367.kt + Kt48367Kt + *L + 1#1,23:1 + 9#2,3:24 + *E + } ) diff --git a/compiler/testData/codegen/bytecodeText/kt48367.kt b/compiler/testData/codegen/bytecodeText/kt48367.kt index 709dbbadefe..0aabad02511 100644 --- a/compiler/testData/codegen/bytecodeText/kt48367.kt +++ b/compiler/testData/codegen/bytecodeText/kt48367.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-62464 + fun foo(block: () -> String): String = block() inline fun bar(crossinline f: () -> String) = foo { f() } diff --git a/compiler/testData/codegen/bytecodeText/kt7188.jvm_abi.txt b/compiler/testData/codegen/bytecodeText/kt7188.jvm_abi.txt new file mode 100644 index 00000000000..83b9e219a6b --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/kt7188.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS TestAccessor$Companion.class + CLASS METADATA + PROPERTY getProp()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/bytecodeText/kt7188.kt b/compiler/testData/codegen/bytecodeText/kt7188.kt index 262fc87e3e5..a6a1ec441b2 100644 --- a/compiler/testData/codegen/bytecodeText/kt7188.kt +++ b/compiler/testData/codegen/bytecodeText/kt7188.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63984 + // FILE: Dummy.kt // Empty body to trigger multifile test mode diff --git a/compiler/testData/codegen/bytecodeText/kt9603.jvm_abi.txt b/compiler/testData/codegen/bytecodeText/kt9603.jvm_abi.txt new file mode 100644 index 00000000000..9c8c5c93081 --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/kt9603.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS A.class + CLASS METADATA + PROPERTY getProp()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/bytecodeText/kt9603.kt b/compiler/testData/codegen/bytecodeText/kt9603.kt index f14e4b5e2e8..b7526603a9c 100644 --- a/compiler/testData/codegen/bytecodeText/kt9603.kt +++ b/compiler/testData/codegen/bytecodeText/kt9603.kt @@ -1,5 +1,5 @@ // LAMBDAS: CLASS - +// JVM_ABI_K1_K2_DIFF: KT-63984 class A { public var prop = "O" private set diff --git a/compiler/testData/codegen/bytecodeText/lineNumbers/delegationToList.jvm_abi.txt b/compiler/testData/codegen/bytecodeText/lineNumbers/delegationToList.jvm_abi.txt new file mode 100644 index 00000000000..13a53a26858 --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/lineNumbers/delegationToList.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS DelegatedList.class + CLASS METADATA + K1 + getSize()I + K2 + --- + K1 + --- + K2 + size diff --git a/compiler/testData/codegen/bytecodeText/lineNumbers/delegationToList.kt b/compiler/testData/codegen/bytecodeText/lineNumbers/delegationToList.kt index e8481276351..a52ffa822af 100644 --- a/compiler/testData/codegen/bytecodeText/lineNumbers/delegationToList.kt +++ b/compiler/testData/codegen/bytecodeText/lineNumbers/delegationToList.kt @@ -1,5 +1,5 @@ // IGNORE_BACKEND: JVM - +// JVM_ABI_K1_K2_DIFF: KT-63828 class DelegatedList : List by ArrayList() diff --git a/compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall_1_4.kt b/compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall_1_4.kt index ef51f4c5f3e..7229963a817 100644 --- a/compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall_1_4.kt +++ b/compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall_1_4.kt @@ -1,6 +1,6 @@ // !LANGUAGE: -SafeCallsAreAlwaysNullable // IGNORE_BACKEND_K2: JVM_IR -// Status: Feature is always on in K2 +// Status: Feature is always on in K2. See KT-62930 fun test(s: String) = s?.length diff --git a/compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.jvm_abi.txt b/compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.jvm_abi.txt new file mode 100644 index 00000000000..c8121282bef --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS DSegment.class + CLASS METADATA + PROPERTY getNotImplemented()LDPoint; + Property: class.metadata.property.setterValueParameter + K1 + : DPoint + K2 + _: DPoint diff --git a/compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.kt b/compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.kt index 0111a6180f2..1a09ae3c4ca 100644 --- a/compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.kt +++ b/compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.kt @@ -3,6 +3,7 @@ // WITH_STDLIB // TARGET_BACKEND: JVM_IR // LANGUAGE: +ValueClasses +// JVM_ABI_K1_K2_DIFF: KT-62582 @JvmInline value class DPoint(val x: Double, val y: Double) { diff --git a/compiler/testData/codegen/dumpDeclarations/classMembers.jvm_abi.txt b/compiler/testData/codegen/dumpDeclarations/classMembers.jvm_abi.txt new file mode 100644 index 00000000000..c5922540834 --- /dev/null +++ b/compiler/testData/codegen/dumpDeclarations/classMembers.jvm_abi.txt @@ -0,0 +1,21 @@ +MODULE main + CLASS ClassWithLateinit.class + CLASS METADATA + PROPERTY getInternalVarPrivateSet$main()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY getProtectedVarPrivateSet()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String + PROPERTY getPublicVarInternalSet()Ljava/lang/String; + Property: class.metadata.property.setterValueParameter + K1 + : kotlin/String + K2 + value: kotlin/String diff --git a/compiler/testData/codegen/dumpDeclarations/classMembers.kt b/compiler/testData/codegen/dumpDeclarations/classMembers.kt index b8bc25ed832..b3142ca56d8 100644 --- a/compiler/testData/codegen/dumpDeclarations/classMembers.kt +++ b/compiler/testData/codegen/dumpDeclarations/classMembers.kt @@ -1,4 +1,5 @@ // WITH_STDLIB +// JVM_ABI_K1_K2_DIFF: KT-63984 public class ClassWithProperties { public val publicVal: Int = 1 diff --git a/compiler/testData/codegen/script/adder.jvm_abi.txt b/compiler/testData/codegen/script/adder.jvm_abi.txt new file mode 100644 index 00000000000..705c858cbfc --- /dev/null +++ b/compiler/testData/codegen/script/adder.jvm_abi.txt @@ -0,0 +1,21 @@ +MODULE main + CLASS Adder.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + K1 + --- + K2 + get$$result()I + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/adder.kts b/compiler/testData/codegen/script/adder.kts index 0b1ae95f498..ecab487e229 100644 --- a/compiler/testData/codegen/script/adder.kts +++ b/compiler/testData/codegen/script/adder.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63961, KT-63963 + var x = 0 x++ x++ diff --git a/compiler/testData/codegen/script/classLiteralInsideFunction.jvm_abi.txt b/compiler/testData/codegen/script/classLiteralInsideFunction.jvm_abi.txt new file mode 100644 index 00000000000..9ddf0e188d0 --- /dev/null +++ b/compiler/testData/codegen/script/classLiteralInsideFunction.jvm_abi.txt @@ -0,0 +1,37 @@ +MODULE main + CLASS script/long/name/inside/packag/ClassLiteralInsideFunction.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + PROPERTY getRv()Lscript/long/name/inside/packag/ClassLiteralInsideFunction$I; + Property: class.metadata.property.returnType + K1 + script/long/name/inside/packag/ClassLiteralInsideFunction.I + K2 + script/long/name/inside/packag/I + CLASS script/long/name/inside/packag/ClassLiteralInsideFunction$f$1.class + CLASS METADATA + Property: class.metadata.superTypes + K1 + [script/long/name/inside/packag/ClassLiteralInsideFunction.I] + K2 + [script/long/name/inside/packag/I] + CLASS script/long/name/inside/packag/ClassLiteralInsideFunction$f$1$g$1.class + CLASS METADATA + Property: class.metadata.superTypes + K1 + [script/long/name/inside/packag/ClassLiteralInsideFunction.I] + K2 + [script/long/name/inside/packag/I] diff --git a/compiler/testData/codegen/script/classLiteralInsideFunction.kts b/compiler/testData/codegen/script/classLiteralInsideFunction.kts index 33c01699e6b..d77235c3d6a 100644 --- a/compiler/testData/codegen/script/classLiteralInsideFunction.kts +++ b/compiler/testData/codegen/script/classLiteralInsideFunction.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964 package script.long.name.inside.packag diff --git a/compiler/testData/codegen/script/destructuringDeclaration.jvm_abi.txt b/compiler/testData/codegen/script/destructuringDeclaration.jvm_abi.txt new file mode 100644 index 00000000000..bf803a31945 --- /dev/null +++ b/compiler/testData/codegen/script/destructuringDeclaration.jvm_abi.txt @@ -0,0 +1,33 @@ +MODULE main + CLASS DestructuringDeclaration.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + K1 + --- + K2 + abc + K1 + --- + K2 + def + K1 + getAbc()I + K2 + --- + K1 + getDef()I + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/destructuringDeclaration.kts b/compiler/testData/codegen/script/destructuringDeclaration.kts index 5c873604e46..c27a490d24c 100644 --- a/compiler/testData/codegen/script/destructuringDeclaration.kts +++ b/compiler/testData/codegen/script/destructuringDeclaration.kts @@ -1,4 +1,5 @@ // DUMP_IR +// JVM_ABI_K1_K2_DIFF: KT-63960,, KT-63967 val (abc, def) = A() diff --git a/compiler/testData/codegen/script/destructuringDeclarationUnderscore.jvm_abi.txt b/compiler/testData/codegen/script/destructuringDeclarationUnderscore.jvm_abi.txt new file mode 100644 index 00000000000..4e7dd9bfc58 --- /dev/null +++ b/compiler/testData/codegen/script/destructuringDeclarationUnderscore.jvm_abi.txt @@ -0,0 +1,29 @@ +MODULE main + CLASS DestructuringDeclarationUnderscore.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + K1 + --- + K2 + + K1 + --- + K2 + b + K1 + getB()I + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts b/compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts index eea2cb6fb3e..6c9569c85de 100644 --- a/compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts +++ b/compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63968, KT-63967, KT-63963 val (_, b, _) = A() diff --git a/compiler/testData/codegen/script/empty.jvm_abi.txt b/compiler/testData/codegen/script/empty.jvm_abi.txt new file mode 100644 index 00000000000..2c4f87e00a6 --- /dev/null +++ b/compiler/testData/codegen/script/empty.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS Empty.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/empty.kts b/compiler/testData/codegen/script/empty.kts index 0ab9f98a841..2d703ec6595 100644 --- a/compiler/testData/codegen/script/empty.kts +++ b/compiler/testData/codegen/script/empty.kts @@ -1 +1,3 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, T-63963 + // expected: rv: diff --git a/compiler/testData/codegen/script/helloWorld.jvm_abi.txt b/compiler/testData/codegen/script/helloWorld.jvm_abi.txt new file mode 100644 index 00000000000..8123c357d0e --- /dev/null +++ b/compiler/testData/codegen/script/helloWorld.jvm_abi.txt @@ -0,0 +1,21 @@ +MODULE main + CLASS HelloWorld.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + K1 + --- + K2 + $$result + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/helloWorld.kts b/compiler/testData/codegen/script/helloWorld.kts index 0be3522e03c..12fb1f4d2be 100644 --- a/compiler/testData/codegen/script/helloWorld.kts +++ b/compiler/testData/codegen/script/helloWorld.kts @@ -1,2 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63969, KT-63963 + // expected: rv: System.out!!.println("hello world") \ No newline at end of file diff --git a/compiler/testData/codegen/script/inline.jvm_abi.txt b/compiler/testData/codegen/script/inline.jvm_abi.txt new file mode 100644 index 00000000000..b443b99e5fe --- /dev/null +++ b/compiler/testData/codegen/script/inline.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS Inline.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/inline.kts b/compiler/testData/codegen/script/inline.kts index 036cdf8514c..9972b5431e8 100644 --- a/compiler/testData/codegen/script/inline.kts +++ b/compiler/testData/codegen/script/inline.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 // expected: rv: 2 inline fun foo(l: (Int) -> Int ): Int { diff --git a/compiler/testData/codegen/script/kt20707.jvm_abi.txt b/compiler/testData/codegen/script/kt20707.jvm_abi.txt new file mode 100644 index 00000000000..5256f4d81a1 --- /dev/null +++ b/compiler/testData/codegen/script/kt20707.jvm_abi.txt @@ -0,0 +1,30 @@ +MODULE main + CLASS Kt20707.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + FUNCTION applySomething(LKt20707$Build;)Ljava/lang/String; + Property: class.metadata.function.valueParameters + K1 + (build: Kt20707.Build) + K2 + (build: Build) + CLASS Kt20707$Build.class + CLASS METADATA + Property: class.metadata.superTypes + K1 + [kotlin/Enum] + K2 + [kotlin/Enum] diff --git a/compiler/testData/codegen/script/kt20707.kts b/compiler/testData/codegen/script/kt20707.kts index 619090f4849..41eb346ccae 100644 --- a/compiler/testData/codegen/script/kt20707.kts +++ b/compiler/testData/codegen/script/kt20707.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964 enum class Build { Debug, Release } diff --git a/compiler/testData/codegen/script/kt22029.jvm_abi.txt b/compiler/testData/codegen/script/kt22029.jvm_abi.txt new file mode 100644 index 00000000000..5676b1add80 --- /dev/null +++ b/compiler/testData/codegen/script/kt22029.jvm_abi.txt @@ -0,0 +1,33 @@ +MODULE main + CLASS Kt22029.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + K1 + --- + K2 + fst + K1 + getFst()I + K2 + --- + K1 + getSnd()I + K2 + --- + K1 + --- + K2 + snd + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/kt22029.kts b/compiler/testData/codegen/script/kt22029.kts index 564b35ec0dc..2b9e95b897e 100644 --- a/compiler/testData/codegen/script/kt22029.kts +++ b/compiler/testData/codegen/script/kt22029.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63967, KT-63963 data class Pair(val first: Int, val second: Int) diff --git a/compiler/testData/codegen/script/localDelegatedProperty.jvm_abi.txt b/compiler/testData/codegen/script/localDelegatedProperty.jvm_abi.txt new file mode 100644 index 00000000000..190b7f96680 --- /dev/null +++ b/compiler/testData/codegen/script/localDelegatedProperty.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS LocalDelegatedProperty.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/localDelegatedProperty.kts b/compiler/testData/codegen/script/localDelegatedProperty.kts index 80f8e07f277..e20b747e8c8 100644 --- a/compiler/testData/codegen/script/localDelegatedProperty.kts +++ b/compiler/testData/codegen/script/localDelegatedProperty.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/script/localDelegatedPropertyInLambda.jvm_abi.txt b/compiler/testData/codegen/script/localDelegatedPropertyInLambda.jvm_abi.txt new file mode 100644 index 00000000000..3263ba95f31 --- /dev/null +++ b/compiler/testData/codegen/script/localDelegatedPropertyInLambda.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS LocalDelegatedPropertyInLambda.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/localDelegatedPropertyInLambda.kts b/compiler/testData/codegen/script/localDelegatedPropertyInLambda.kts index 1453eed0595..d4ccfdc3b68 100644 --- a/compiler/testData/codegen/script/localDelegatedPropertyInLambda.kts +++ b/compiler/testData/codegen/script/localDelegatedPropertyInLambda.kts @@ -1,4 +1,5 @@ // WITH_REFLECT +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.jvm_abi.txt b/compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.jvm_abi.txt new file mode 100644 index 00000000000..0825988dccb --- /dev/null +++ b/compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS LocalDelegatedPropertyNoExplicitType.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts b/compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts index b0fed5ffeb3..4b1240b7c16 100644 --- a/compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts +++ b/compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/script/localFunction.jvm_abi.txt b/compiler/testData/codegen/script/localFunction.jvm_abi.txt new file mode 100644 index 00000000000..20e730a5c4c --- /dev/null +++ b/compiler/testData/codegen/script/localFunction.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS script/LocalFunction.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/localFunction.kts b/compiler/testData/codegen/script/localFunction.kts index 3e4d2043283..ff5c7e59149 100644 --- a/compiler/testData/codegen/script/localFunction.kts +++ b/compiler/testData/codegen/script/localFunction.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 + package script fun f(j: Int): Int { diff --git a/compiler/testData/codegen/script/outerCapture.jvm_abi.txt b/compiler/testData/codegen/script/outerCapture.jvm_abi.txt new file mode 100644 index 00000000000..a3f7c1b6d22 --- /dev/null +++ b/compiler/testData/codegen/script/outerCapture.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS OuterCapture.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/outerCapture.kts b/compiler/testData/codegen/script/outerCapture.kts index 3e24f798e5a..3c297300f36 100644 --- a/compiler/testData/codegen/script/outerCapture.kts +++ b/compiler/testData/codegen/script/outerCapture.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 + // expected: rv: 2 fun foo(l: (Int) -> Int ): Int { return l(1) diff --git a/compiler/testData/codegen/script/parameter.jvm_abi.txt b/compiler/testData/codegen/script/parameter.jvm_abi.txt new file mode 100644 index 00000000000..83afcf9baea --- /dev/null +++ b/compiler/testData/codegen/script/parameter.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS Parameter.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/parameter.kts b/compiler/testData/codegen/script/parameter.kts index 22b73ec57ea..a5f9d75d168 100644 --- a/compiler/testData/codegen/script/parameter.kts +++ b/compiler/testData/codegen/script/parameter.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 + // expected: rv: sky color is blue // param: sky blue diff --git a/compiler/testData/codegen/script/parameterArray.jvm_abi.txt b/compiler/testData/codegen/script/parameterArray.jvm_abi.txt new file mode 100644 index 00000000000..129be314a24 --- /dev/null +++ b/compiler/testData/codegen/script/parameterArray.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS ParameterArray.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/parameterArray.kts b/compiler/testData/codegen/script/parameterArray.kts index 17c6fdded5a..e5370dcd876 100644 --- a/compiler/testData/codegen/script/parameterArray.kts +++ b/compiler/testData/codegen/script/parameterArray.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 + // param: three little words // expected: rv: little diff --git a/compiler/testData/codegen/script/parameterClosure.jvm_abi.txt b/compiler/testData/codegen/script/parameterClosure.jvm_abi.txt new file mode 100644 index 00000000000..037c3fde85a --- /dev/null +++ b/compiler/testData/codegen/script/parameterClosure.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS ParameterClosure.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/parameterClosure.kts b/compiler/testData/codegen/script/parameterClosure.kts index 3bd48dd6ef2..7a481b1f55e 100644 --- a/compiler/testData/codegen/script/parameterClosure.kts +++ b/compiler/testData/codegen/script/parameterClosure.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 // param: 10 diff --git a/compiler/testData/codegen/script/parameterLong.jvm_abi.txt b/compiler/testData/codegen/script/parameterLong.jvm_abi.txt new file mode 100644 index 00000000000..d6a362f94da --- /dev/null +++ b/compiler/testData/codegen/script/parameterLong.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS ParameterLong.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/parameterLong.kts b/compiler/testData/codegen/script/parameterLong.kts index 44d68da50c6..3c7abc25db5 100644 --- a/compiler/testData/codegen/script/parameterLong.kts +++ b/compiler/testData/codegen/script/parameterLong.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 + // expected: rv: 19 // param: 17 2 diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.jvm_abi.txt b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.jvm_abi.txt new file mode 100644 index 00000000000..459cb04b099 --- /dev/null +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.jvm_abi.txt @@ -0,0 +1,29 @@ +MODULE main + CLASS ClassCapturesExtensionIndirect.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + FUNCTION ext(LClassCapturesExtensionIndirect$A;)V + Property: class.metadata.function.receiverParameterType + K1 + ClassCapturesExtensionIndirect.A + K2 + A + PROPERTY getB()LClassCapturesExtensionIndirect$B; + Property: class.metadata.property.returnType + K1 + ClassCapturesExtensionIndirect.B + K2 + B diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.kts b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.kts index a06ed8bb425..1d71f9838e5 100644 --- a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.kts +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.kts @@ -1,5 +1,6 @@ // IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM // IGNORE_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964 // expected: rv: kotlin.Unit diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.jvm_abi.txt b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.jvm_abi.txt new file mode 100644 index 00000000000..e799ef24c81 --- /dev/null +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.jvm_abi.txt @@ -0,0 +1,23 @@ +MODULE main + CLASS ClassCapturesExtensionIndirect2x.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + FUNCTION ext(LClassCapturesExtensionIndirect2x$A;)V + Property: class.metadata.function.receiverParameterType + K1 + ClassCapturesExtensionIndirect2x.A + K2 + A diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.kts b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.kts index e6daecd4dc6..c2008633915 100644 --- a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.kts +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.kts @@ -1,5 +1,6 @@ // IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM // IGNORE_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964 // expected: rv: kotlin.Unit diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.jvm_abi.txt b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.jvm_abi.txt new file mode 100644 index 00000000000..d548a62fb15 --- /dev/null +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS ClassCapturesFunction.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts index c84d218bf1e..a85bd362b4d 100644 --- a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts @@ -1,4 +1,5 @@ // IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 // expected: rv: 42 diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.jvm_abi.txt b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.jvm_abi.txt new file mode 100644 index 00000000000..e3fc3821dab --- /dev/null +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS ClassCapturesProperty.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts index 41fcc7f6306..aa2725b0c59 100644 --- a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts @@ -1,4 +1,5 @@ // IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 // expected: rv: abc diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.jvm_abi.txt b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.jvm_abi.txt new file mode 100644 index 00000000000..4ba5ccf6606 --- /dev/null +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS ClassCapturesPropertyInStringTemplate.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.kts b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.kts index 83d782778ed..8165d3f950c 100644 --- a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.kts +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.kts @@ -1,5 +1,6 @@ // IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM // IGNORE_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 // expected: rv: 42 diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.jvm_abi.txt b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.jvm_abi.txt new file mode 100644 index 00000000000..5a08204a292 --- /dev/null +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS ClassCapturesPropertyIndirect.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.kts b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.kts index 96e9786a6cd..54fbb47c55b 100644 --- a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.kts +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.kts @@ -1,5 +1,6 @@ // IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM // IGNORE_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 // expected: rv: 42 diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.jvm_abi.txt b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.jvm_abi.txt new file mode 100644 index 00000000000..327fd94534b --- /dev/null +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS ClassCapturesPropertyIndirect2x.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.kts b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.kts index 0d556b0115a..10404f251ac 100644 --- a/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.kts +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.kts @@ -1,5 +1,6 @@ // IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM // IGNORE_BACKEND: JVM +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 // expected: rv: 42 diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.jvm_abi.txt b/compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.jvm_abi.txt new file mode 100644 index 00000000000..ab72edddadd --- /dev/null +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS NestedInnerClassCapturesProperty.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.kts b/compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.kts index c7a465afa91..b836408688f 100644 --- a/compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.kts +++ b/compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.kts @@ -1,4 +1,5 @@ // IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 // expected: rv: abc! diff --git a/compiler/testData/codegen/script/secondLevelFunction.jvm_abi.txt b/compiler/testData/codegen/script/secondLevelFunction.jvm_abi.txt new file mode 100644 index 00000000000..f17e47975ce --- /dev/null +++ b/compiler/testData/codegen/script/secondLevelFunction.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS SecondLevelFunction.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/secondLevelFunction.kts b/compiler/testData/codegen/script/secondLevelFunction.kts index 03bf7f821a1..9dfecebe63d 100644 --- a/compiler/testData/codegen/script/secondLevelFunction.kts +++ b/compiler/testData/codegen/script/secondLevelFunction.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 + var x: Int = 0 if (true) { diff --git a/compiler/testData/codegen/script/secondLevelFunctionClosure.jvm_abi.txt b/compiler/testData/codegen/script/secondLevelFunctionClosure.jvm_abi.txt new file mode 100644 index 00000000000..b9623738533 --- /dev/null +++ b/compiler/testData/codegen/script/secondLevelFunctionClosure.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS SecondLevelFunctionClosure.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/secondLevelFunctionClosure.kts b/compiler/testData/codegen/script/secondLevelFunctionClosure.kts index a6257b8219e..ccb2cadd590 100644 --- a/compiler/testData/codegen/script/secondLevelFunctionClosure.kts +++ b/compiler/testData/codegen/script/secondLevelFunctionClosure.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 + val z = 30 var x: Int = 0 diff --git a/compiler/testData/codegen/script/secondLevelVal.jvm_abi.txt b/compiler/testData/codegen/script/secondLevelVal.jvm_abi.txt new file mode 100644 index 00000000000..f48b0c42180 --- /dev/null +++ b/compiler/testData/codegen/script/secondLevelVal.jvm_abi.txt @@ -0,0 +1,21 @@ +MODULE main + CLASS SecondLevelVal.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + K1 + --- + K2 + $$result + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/secondLevelVal.kts b/compiler/testData/codegen/script/secondLevelVal.kts index b334c7f5d52..ba3de4e9ef7 100644 --- a/compiler/testData/codegen/script/secondLevelVal.kts +++ b/compiler/testData/codegen/script/secondLevelVal.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63969 + if (true) { val archenemy = "Jim Moriarty" } diff --git a/compiler/testData/codegen/script/simpleClass.jvm_abi.txt b/compiler/testData/codegen/script/simpleClass.jvm_abi.txt new file mode 100644 index 00000000000..3d270616d7b --- /dev/null +++ b/compiler/testData/codegen/script/simpleClass.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS SimpleClass.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/simpleClass.kts b/compiler/testData/codegen/script/simpleClass.kts index 252dca39708..7f5fc1346f1 100644 --- a/compiler/testData/codegen/script/simpleClass.kts +++ b/compiler/testData/codegen/script/simpleClass.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 class SimpleClass(val s: String) { fun foo() = s diff --git a/compiler/testData/codegen/script/string.jvm_abi.txt b/compiler/testData/codegen/script/string.jvm_abi.txt new file mode 100644 index 00000000000..d7d13f50a8d --- /dev/null +++ b/compiler/testData/codegen/script/string.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS String.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/string.kts b/compiler/testData/codegen/script/string.kts index 6aa62dcfd93..975754067bb 100644 --- a/compiler/testData/codegen/script/string.kts +++ b/compiler/testData/codegen/script/string.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 + val rv = "O" + "K" // expected: rv: OK diff --git a/compiler/testData/codegen/script/topLevelFunction.jvm_abi.txt b/compiler/testData/codegen/script/topLevelFunction.jvm_abi.txt new file mode 100644 index 00000000000..e5a382e72ee --- /dev/null +++ b/compiler/testData/codegen/script/topLevelFunction.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS TopLevelFunction.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/topLevelFunction.kts b/compiler/testData/codegen/script/topLevelFunction.kts index 1592b7f22b5..4b13ebc558a 100644 --- a/compiler/testData/codegen/script/topLevelFunction.kts +++ b/compiler/testData/codegen/script/topLevelFunction.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 + // expected: rv: 3628800 fun factorial(n: Int): Int { diff --git a/compiler/testData/codegen/script/topLevelFunctionClosure.jvm_abi.txt b/compiler/testData/codegen/script/topLevelFunctionClosure.jvm_abi.txt new file mode 100644 index 00000000000..13d7775103e --- /dev/null +++ b/compiler/testData/codegen/script/topLevelFunctionClosure.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS TopLevelFunctionClosure.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/topLevelFunctionClosure.kts b/compiler/testData/codegen/script/topLevelFunctionClosure.kts index c1cf39206ef..341eec9a386 100644 --- a/compiler/testData/codegen/script/topLevelFunctionClosure.kts +++ b/compiler/testData/codegen/script/topLevelFunctionClosure.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 + val x = 12 fun foo(y: Int) = x + y diff --git a/compiler/testData/codegen/script/topLevelLocalDelegatedProperty.jvm_abi.txt b/compiler/testData/codegen/script/topLevelLocalDelegatedProperty.jvm_abi.txt new file mode 100644 index 00000000000..6a45a1ce9ae --- /dev/null +++ b/compiler/testData/codegen/script/topLevelLocalDelegatedProperty.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS TopLevelLocalDelegatedProperty.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts b/compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts index 8f6346b851b..a0e6ed346b9 100644 --- a/compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts +++ b/compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/script/topLevelPropertiesWithGetSet.jvm_abi.txt b/compiler/testData/codegen/script/topLevelPropertiesWithGetSet.jvm_abi.txt new file mode 100644 index 00000000000..6d9cac47503 --- /dev/null +++ b/compiler/testData/codegen/script/topLevelPropertiesWithGetSet.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS TopLevelPropertiesWithGetSet.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts b/compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts index d4778c213ab..7ee591fb628 100644 --- a/compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts +++ b/compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 var log = "begin" fun append(msg: String) { diff --git a/compiler/testData/codegen/script/topLevelProperty.jvm_abi.txt b/compiler/testData/codegen/script/topLevelProperty.jvm_abi.txt new file mode 100644 index 00000000000..d863ab92b63 --- /dev/null +++ b/compiler/testData/codegen/script/topLevelProperty.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS TopLevelProperty.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/topLevelProperty.kts b/compiler/testData/codegen/script/topLevelProperty.kts index a720246de04..e43cd0ccdc6 100644 --- a/compiler/testData/codegen/script/topLevelProperty.kts +++ b/compiler/testData/codegen/script/topLevelProperty.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 + val x = 12 // expected: x: 12 diff --git a/compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.jvm_abi.txt b/compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.jvm_abi.txt new file mode 100644 index 00000000000..a677ea6ae61 --- /dev/null +++ b/compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.jvm_abi.txt @@ -0,0 +1,41 @@ +MODULE main + CLASS TopLevelPropertyWithProvideDelegate.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + CLASS TopLevelPropertyWithProvideDelegate$Delegate.class + CLASS METADATA + FUNCTION getValue(LTopLevelPropertyWithProvideDelegate$Test;Lkotlin/reflect/KProperty;)Ljava/lang/String; + Property: class.metadata.function.valueParameters + K1 + (thisRef: TopLevelPropertyWithProvideDelegate.Test, property: kotlin/reflect/KProperty<*>) + K2 + (thisRef: Test, property: kotlin/reflect/KProperty<*>) + CLASS TopLevelPropertyWithProvideDelegate$Provider.class + CLASS METADATA + FUNCTION provideDelegate(LTopLevelPropertyWithProvideDelegate$Test;Lkotlin/reflect/KProperty;)LTopLevelPropertyWithProvideDelegate$Delegate; + Property: class.metadata.function.valueParameters + K1 + (thisRef: TopLevelPropertyWithProvideDelegate.Test, property: kotlin/reflect/KProperty<*>) + K2 + (thisRef: Test, property: kotlin/reflect/KProperty<*>) + CLASS TopLevelPropertyWithProvideDelegate$Test$Companion.class + CLASS METADATA + PROPERTY getInstance()LTopLevelPropertyWithProvideDelegate$Test; + Property: class.metadata.property.returnType + K1 + TopLevelPropertyWithProvideDelegate.Test + K2 + Test diff --git a/compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts b/compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts index a18f402ce63..17ef468a4cd 100644 --- a/compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts +++ b/compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts @@ -1,3 +1,4 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964 import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/script/topLevelTypealias.jvm_abi.txt b/compiler/testData/codegen/script/topLevelTypealias.jvm_abi.txt new file mode 100644 index 00000000000..2ce48c97420 --- /dev/null +++ b/compiler/testData/codegen/script/topLevelTypealias.jvm_abi.txt @@ -0,0 +1,21 @@ +MODULE main + CLASS TopLevelTypealias.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + K1 + Test + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/topLevelTypealias.kts b/compiler/testData/codegen/script/topLevelTypealias.kts index 0bfa4c10a2f..bde5547de38 100644 --- a/compiler/testData/codegen/script/topLevelTypealias.kts +++ b/compiler/testData/codegen/script/topLevelTypealias.kts @@ -1,4 +1,4 @@ - +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963 class SimpleClass(val s: String) { fun foo() = s } diff --git a/compiler/testData/codegen/script/twoDestructuringDeclarations.jvm_abi.txt b/compiler/testData/codegen/script/twoDestructuringDeclarations.jvm_abi.txt new file mode 100644 index 00000000000..abb1f8446f8 --- /dev/null +++ b/compiler/testData/codegen/script/twoDestructuringDeclarations.jvm_abi.txt @@ -0,0 +1,49 @@ +MODULE main + CLASS TwoDestructuringDeclarations.class + CLASS METADATA + K1 + ([Ljava/lang/String;)V + K2 + --- + K1 + --- + K2 + a + K1 + --- + K2 + b + K1 + --- + K2 + c + K1 + --- + K2 + d + K1 + getA()I + K2 + --- + K1 + getB()I + K2 + --- + K1 + getC()I + K2 + --- + K1 + getD()I + K2 + --- + Property: class.metadata.superTypes + K1 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] + K2 + [] + Property: class.metadata.contextReceiverTypes + K1 + [] + K2 + [kotlin/script/templates/standard/ScriptTemplateWithArgs] diff --git a/compiler/testData/codegen/script/twoDestructuringDeclarations.kts b/compiler/testData/codegen/script/twoDestructuringDeclarations.kts index 9c65a7242a6..ae6ce4dd111 100644 --- a/compiler/testData/codegen/script/twoDestructuringDeclarations.kts +++ b/compiler/testData/codegen/script/twoDestructuringDeclarations.kts @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63961 + val (a, b) = A() val (c, d) = B() diff --git a/compiler/tests-common-new/build.gradle.kts b/compiler/tests-common-new/build.gradle.kts index 6bee3d2686f..8c9697d27d7 100644 --- a/compiler/tests-common-new/build.gradle.kts +++ b/compiler/tests-common-new/build.gradle.kts @@ -25,6 +25,7 @@ dependencies { testApi(projectTests(":compiler:test-infrastructure")) testApi(projectTests(":compiler:test-infrastructure-utils")) testApi(projectTests(":compiler:tests-compiler-utils")) + testApi(project(":libraries:tools:abi-comparator")) /* * Actually those dependencies are needed only at runtime, but they diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java new file mode 100644 index 00000000000..3cd4ae71bc2 --- /dev/null +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java @@ -0,0 +1,54768 @@ +/* + * Copyright 2010-2023 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.test.runners; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.utils.TransformersFunctions; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +@TestMetadata("compiler/testData/codegen/box") +@TestDataPath("$PROJECT_ROOT") +public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistencyTest { + @Test + public void testAllFilesPresentInBox() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "multiplatform/k2"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("allowedTargets.kt") + public void testAllowedTargets() throws Exception { + runTest("compiler/testData/codegen/box/annotations/allowedTargets.kt"); + } + + @Test + @TestMetadata("annotatedAnnotationParameter.kt") + public void testAnnotatedAnnotationParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotatedAnnotationParameter.kt"); + } + + @Test + @TestMetadata("annotatedEnumEntry.kt") + public void testAnnotatedEnumEntry() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotatedEnumEntry.kt"); + } + + @Test + @TestMetadata("annotatedObjectLiteral.kt") + public void testAnnotatedObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotatedObjectLiteral.kt"); + } + + @Test + @TestMetadata("annotationDefaultValueOfUnsigned.kt") + public void testAnnotationDefaultValueOfUnsigned() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationDefaultValueOfUnsigned.kt"); + } + + @Test + @TestMetadata("annotationOnWhen.kt") + public void testAnnotationOnWhen() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationOnWhen.kt"); + } + + @Test + @TestMetadata("annotationProperty.kt") + public void testAnnotationProperty() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationProperty.kt"); + } + + @Test + @TestMetadata("annotationTargets.kt") + public void testAnnotationTargets() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationTargets.kt"); + } + + @Test + @TestMetadata("annotationWithDefaultArgInDifferentModule.kt") + public void testAnnotationWithDefaultArgInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt"); + } + + @Test + @TestMetadata("annotationWithKotlinProperty.kt") + public void testAnnotationWithKotlinProperty() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationWithKotlinProperty.kt"); + } + + @Test + @TestMetadata("annotationWithKotlinPropertyFromInterfaceCompanion.kt") + public void testAnnotationWithKotlinPropertyFromInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationWithKotlinPropertyFromInterfaceCompanion.kt"); + } + + @Test + @TestMetadata("annotationWithVarargAsDefaultValue.kt") + public void testAnnotationWithVarargAsDefaultValue() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.kt"); + } + + @Test + @TestMetadata("annotationsOnDefault.kt") + public void testAnnotationsOnDefault() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationsOnDefault.kt"); + } + + @Test + @TestMetadata("annotationsOnLateinitAccessors.kt") + public void testAnnotationsOnLateinitAccessors() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationsOnLateinitAccessors.kt"); + } + + @Test + @TestMetadata("annotationsOnLateinitFields.kt") + public void testAnnotationsOnLateinitFields() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationsOnLateinitFields.kt"); + } + + @Test + @TestMetadata("annotationsOnNonExistentAccessors.kt") + public void testAnnotationsOnNonExistentAccessors() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.kt"); + } + + @Test + @TestMetadata("annotationsOnTypeAliases.kt") + public void testAnnotationsOnTypeAliases() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotationsOnTypeAliases.kt"); + } + + @Test + @TestMetadata("constValInAnnotation.kt") + public void testConstValInAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/constValInAnnotation.kt"); + } + + @Test + @TestMetadata("correctTypeForClassReferenceExpressionInAnnotation.kt") + public void testCorrectTypeForClassReferenceExpressionInAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/correctTypeForClassReferenceExpressionInAnnotation.kt"); + } + + @Test + @TestMetadata("defaultParameterValues.kt") + public void testDefaultParameterValues() throws Exception { + runTest("compiler/testData/codegen/box/annotations/defaultParameterValues.kt"); + } + + @Test + @TestMetadata("delegatedPropertySetter.kt") + public void testDelegatedPropertySetter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/delegatedPropertySetter.kt"); + } + + @Test + @TestMetadata("deserializationOfNestedAnnotationOnType_1.kt") + public void testDeserializationOfNestedAnnotationOnType_1() throws Exception { + runTest("compiler/testData/codegen/box/annotations/deserializationOfNestedAnnotationOnType_1.kt"); + } + + @Test + @TestMetadata("deserializationOfNestedAnnotationOnType_2.kt") + public void testDeserializationOfNestedAnnotationOnType_2() throws Exception { + runTest("compiler/testData/codegen/box/annotations/deserializationOfNestedAnnotationOnType_2.kt"); + } + + @Test + @TestMetadata("divisionByZeroInJava.kt") + public void testDivisionByZeroInJava() throws Exception { + runTest("compiler/testData/codegen/box/annotations/divisionByZeroInJava.kt"); + } + + @Test + @TestMetadata("fileClassWithFileAnnotation.kt") + public void testFileClassWithFileAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/fileClassWithFileAnnotation.kt"); + } + + @Test + @TestMetadata("genericAnnotations.kt") + public void testGenericAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt"); + } + + @Test + @TestMetadata("invisibleFunctionWithReceiverWithSuppress.kt") + public void testInvisibleFunctionWithReceiverWithSuppress() throws Exception { + runTest("compiler/testData/codegen/box/annotations/invisibleFunctionWithReceiverWithSuppress.kt"); + } + + @Test + @TestMetadata("javaAnnotationArrayValueDefault.kt") + public void testJavaAnnotationArrayValueDefault() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaAnnotationArrayValueDefault.kt"); + } + + @Test + @TestMetadata("javaAnnotationArrayValueNoDefault.kt") + public void testJavaAnnotationArrayValueNoDefault() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaAnnotationArrayValueNoDefault.kt"); + } + + @Test + @TestMetadata("javaAnnotationCall.kt") + public void testJavaAnnotationCall() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaAnnotationCall.kt"); + } + + @Test + @TestMetadata("javaAnnotationDefault.kt") + public void testJavaAnnotationDefault() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaAnnotationDefault.kt"); + } + + @Test + @TestMetadata("javaAnnotationOnProperty.kt") + public void testJavaAnnotationOnProperty() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaAnnotationOnProperty.kt"); + } + + @Test + @TestMetadata("javaAnnotationOnSecondaryConstructorOfLocalClass.kt") + public void testJavaAnnotationOnSecondaryConstructorOfLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaAnnotationOnSecondaryConstructorOfLocalClass.kt"); + } + + @Test + @TestMetadata("javaAnnotationWithSingleArrayArgument.kt") + public void testJavaAnnotationWithSingleArrayArgument() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaAnnotationWithSingleArrayArgument.kt"); + } + + @Test + @TestMetadata("javaConstAnnotationArguments.kt") + public void testJavaConstAnnotationArguments() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaConstAnnotationArguments.kt"); + } + + @Test + @TestMetadata("javaNegativePropertyAsAnnotationParameter.kt") + public void testJavaNegativePropertyAsAnnotationParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaNegativePropertyAsAnnotationParameter.kt"); + } + + @Test + @TestMetadata("javaPropertyAsAnnotationParameter.kt") + public void testJavaPropertyAsAnnotationParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaPropertyAsAnnotationParameter.kt"); + } + + @Test + @TestMetadata("javaPropertyWithIntInitializer.kt") + public void testJavaPropertyWithIntInitializer() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaPropertyWithIntInitializer.kt"); + } + + @Test + @TestMetadata("javaTargetOnPrimaryCtorParameter.kt") + public void testJavaTargetOnPrimaryCtorParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.kt"); + } + + @Test + @TestMetadata("jvmAnnotationFlags.kt") + public void testJvmAnnotationFlags() throws Exception { + runTest("compiler/testData/codegen/box/annotations/jvmAnnotationFlags.kt"); + } + + @Test + @TestMetadata("kotlinPropertyFromClassObjectAsParameter.kt") + public void testKotlinPropertyFromClassObjectAsParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/kotlinPropertyFromClassObjectAsParameter.kt"); + } + + @Test + @TestMetadata("kotlinTopLevelPropertyAsParameter.kt") + public void testKotlinTopLevelPropertyAsParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/kotlinTopLevelPropertyAsParameter.kt"); + } + + @Test + @TestMetadata("kt10136.kt") + public void testKt10136() throws Exception { + runTest("compiler/testData/codegen/box/annotations/kt10136.kt"); + } + + @Test + @TestMetadata("kt25489.kt") + public void testKt25489() throws Exception { + runTest("compiler/testData/codegen/box/annotations/kt25489.kt"); + } + + @Test + @TestMetadata("mustBeDocumented.kt") + public void testMustBeDocumented() throws Exception { + runTest("compiler/testData/codegen/box/annotations/mustBeDocumented.kt"); + } + + @Test + @TestMetadata("nestedAnnotation.kt") + public void testNestedAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/nestedAnnotation.kt"); + } + + @Test + @TestMetadata("nestedClassPropertyAsParameter.kt") + public void testNestedClassPropertyAsParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/nestedClassPropertyAsParameter.kt"); + } + + @Test + @TestMetadata("nestedClassesInAnnotations.kt") + public void testNestedClassesInAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt"); + } + + @Test + @TestMetadata("noTypeUseIfDependOnJvm6.kt") + public void testNoTypeUseIfDependOnJvm6() throws Exception { + runTest("compiler/testData/codegen/box/annotations/noTypeUseIfDependOnJvm6.kt"); + } + + @Test + @TestMetadata("noTypeUseIfFlagIsSpecified.kt") + public void testNoTypeUseIfFlagIsSpecified() throws Exception { + runTest("compiler/testData/codegen/box/annotations/noTypeUseIfFlagIsSpecified.kt"); + } + + @Test + @TestMetadata("parameterAnnotationInDefaultImpls.kt") + public void testParameterAnnotationInDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/box/annotations/parameterAnnotationInDefaultImpls.kt"); + } + + @Test + @TestMetadata("parameterWithPrimitiveType.kt") + public void testParameterWithPrimitiveType() throws Exception { + runTest("compiler/testData/codegen/box/annotations/parameterWithPrimitiveType.kt"); + } + + @Test + @TestMetadata("parameters.kt") + public void testParameters() throws Exception { + runTest("compiler/testData/codegen/box/annotations/parameters.kt"); + } + + @Test + @TestMetadata("platformDependent.kt") + public void testPlatformDependent() throws Exception { + runTest("compiler/testData/codegen/box/annotations/platformDependent.kt"); + } + + @Test + @TestMetadata("propertyWithPropertyInInitializerAsParameter.kt") + public void testPropertyWithPropertyInInitializerAsParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/propertyWithPropertyInInitializerAsParameter.kt"); + } + + @Test + @TestMetadata("resolveWithLowPriorityAnnotation.kt") + public void testResolveWithLowPriorityAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/resolveWithLowPriorityAnnotation.kt"); + } + + @Test + @TestMetadata("resolvedReturnTypeForJavaEnumEntryAfterDeserialization.kt") + public void testResolvedReturnTypeForJavaEnumEntryAfterDeserialization() throws Exception { + runTest("compiler/testData/codegen/box/annotations/resolvedReturnTypeForJavaEnumEntryAfterDeserialization.kt"); + } + + @Test + @TestMetadata("retentionInJava.kt") + public void testRetentionInJava() throws Exception { + runTest("compiler/testData/codegen/box/annotations/retentionInJava.kt"); + } + + @Test + @TestMetadata("selfReferentialAnnotation.kt") + public void testSelfReferentialAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/selfReferentialAnnotation.kt"); + } + + @Test + @TestMetadata("singleAssignmentToVarargInAnnotation.kt") + public void testSingleAssignmentToVarargInAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/singleAssignmentToVarargInAnnotation.kt"); + } + + @Test + @TestMetadata("suppressInvisibleMember.kt") + public void testSuppressInvisibleMember() throws Exception { + runTest("compiler/testData/codegen/box/annotations/suppressInvisibleMember.kt"); + } + + @Test + @TestMetadata("syntheticMethodForJvmStaticProperty.kt") + public void testSyntheticMethodForJvmStaticProperty() throws Exception { + runTest("compiler/testData/codegen/box/annotations/syntheticMethodForJvmStaticProperty.kt"); + } + + @Test + @TestMetadata("syntheticMethodForProperty.kt") + public void testSyntheticMethodForProperty() throws Exception { + runTest("compiler/testData/codegen/box/annotations/syntheticMethodForProperty.kt"); + } + + @Test + @TestMetadata("targetOnPrimaryCtorParameter.kt") + public void testTargetOnPrimaryCtorParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.kt"); + } + + @Test + @TestMetadata("targetOnPrimaryCtorParameterMultiModule.kt") + public void testTargetOnPrimaryCtorParameterMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameterMultiModule.kt"); + } + + @Test + @TestMetadata("useTypeParameterAnnotationFromJava.kt") + public void testUseTypeParameterAnnotationFromJava() throws Exception { + runTest("compiler/testData/codegen/box/annotations/useTypeParameterAnnotationFromJava.kt"); + } + + @Test + @TestMetadata("useTypeUseAnnotationFromJava.kt") + public void testUseTypeUseAnnotationFromJava() throws Exception { + runTest("compiler/testData/codegen/box/annotations/useTypeUseAnnotationFromJava.kt"); + } + + @Test + @TestMetadata("varargInAnnotationParameter.kt") + public void testVarargInAnnotationParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/varargInAnnotationParameter.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/annotations/annotatedLambda") + @TestDataPath("$PROJECT_ROOT") + public class AnnotatedLambda { + @Test + public void testAllFilesPresentInAnnotatedLambda() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/annotatedLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("funExpression.kt") + public void testFunExpression() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotatedLambda/funExpression.kt"); + } + + @Test + @TestMetadata("lambda.kt") + public void testLambda() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotatedLambda/lambda.kt"); + } + + @Test + @TestMetadata("samFunExpression.kt") + public void testSamFunExpression() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotatedLambda/samFunExpression.kt"); + } + + @Test + @TestMetadata("samFunReference.kt") + public void testSamFunReference() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotatedLambda/samFunReference.kt"); + } + + @Test + @TestMetadata("samLambda.kt") + public void testSamLambda() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotatedLambda/samLambda.kt"); + } + + @Test + @TestMetadata("suspendLambda.kt") + public void testSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/box/annotations/annotatedLambda/suspendLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/annotations/instances") + @TestDataPath("$PROJECT_ROOT") + public class Instances { + @Test + public void testAllFilesPresentInInstances() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/instances"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationEnclosingName.kt") + public void testAnnotationEnclosingName() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationEnclosingName.kt"); + } + + @Test + @TestMetadata("annotationEqHc.kt") + public void testAnnotationEqHc() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationEqHc.kt"); + } + + @Test + @TestMetadata("annotationFromStdlib.kt") + public void testAnnotationFromStdlib() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationFromStdlib.kt"); + } + + @Test + @TestMetadata("annotationInstances.kt") + public void testAnnotationInstances() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationInstances.kt"); + } + + @Test + @TestMetadata("annotationInstancesEmptyDefault.kt") + public void testAnnotationInstancesEmptyDefault() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationInstancesEmptyDefault.kt"); + } + + @Test + @TestMetadata("annotationInstancesEmptyDefaultLowered.kt") + public void testAnnotationInstancesEmptyDefaultLowered() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationInstancesEmptyDefaultLowered.kt"); + } + + @Test + @TestMetadata("AnnotationInstantiationWithArray.kt") + public void testAnnotationInstantiationWithArray() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/AnnotationInstantiationWithArray.kt"); + } + + @Test + @TestMetadata("annotationJvmHashCode.kt") + public void testAnnotationJvmHashCode() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationJvmHashCode.kt"); + } + + @Test + @TestMetadata("annotationToString.kt") + public void testAnnotationToString() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationToString.kt"); + } + + @Test + @TestMetadata("annotationType.kt") + public void testAnnotationType() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationType.kt"); + } + + @Test + @TestMetadata("annotationWithTypeParameters.kt") + public void testAnnotationWithTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationWithTypeParameters.kt"); + } + + @Test + @TestMetadata("annotationWithTypeParametersJvm.kt") + public void testAnnotationWithTypeParametersJvm() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationWithTypeParametersJvm.kt"); + } + + @Test + @TestMetadata("annotationsUnsignedTypes.kt") + public void testAnnotationsUnsignedTypes() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/annotationsUnsignedTypes.kt"); + } + + @Test + @TestMetadata("inInlineFunction.kt") + public void testInInlineFunction() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/inInlineFunction.kt"); + } + + @Test + @TestMetadata("innerAnnotationInstantiation.kt") + public void testInnerAnnotationInstantiation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/innerAnnotationInstantiation.kt"); + } + + @Test + @TestMetadata("javaAnnotation.kt") + public void testJavaAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/javaAnnotation.kt"); + } + + @Test + @TestMetadata("javaAnnotationDefault.kt") + public void testJavaAnnotationDefault() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/javaAnnotationDefault.kt"); + } + + @Test + @TestMetadata("javaExistingAnnotation.kt") + public void testJavaExistingAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/javaExistingAnnotation.kt"); + } + + @Test + @TestMetadata("kotlinExistingAnnotation.kt") + public void testKotlinExistingAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/kotlinExistingAnnotation.kt"); + } + + @Test + @TestMetadata("multifileEqHc.kt") + public void testMultifileEqHc() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/multifileEqHc.kt"); + } + + @Test + @TestMetadata("multimoduleCreation.kt") + public void testMultimoduleCreation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/multimoduleCreation.kt"); + } + + @Test + @TestMetadata("multimoduleInlining.kt") + public void testMultimoduleInlining() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/multimoduleInlining.kt"); + } + + @Test + @TestMetadata("multimoduleTypeParams.kt") + public void testMultimoduleTypeParams() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/multimoduleTypeParams.kt"); + } + + @Test + @TestMetadata("multiplatformInstantiation.kt") + public void testMultiplatformInstantiation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/multiplatformInstantiation.kt"); + } + + @Test + @TestMetadata("nestedAnnotationInstances.kt") + public void testNestedAnnotationInstances() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/nestedAnnotationInstances.kt"); + } + + @Test + @TestMetadata("varargInAnnotationParameterInstantiation.kt") + public void testVarargInAnnotationParameterInstantiation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/instances/varargInAnnotationParameterInstantiation.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/annotations/kClassMapping") + @TestDataPath("$PROJECT_ROOT") + public class KClassMapping { + @Test + public void testAllFilesPresentInKClassMapping() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/kClassMapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayClassParameter.kt") + public void testArrayClassParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/kClassMapping/arrayClassParameter.kt"); + } + + @Test + @TestMetadata("arrayClassParameterOnJavaClass.kt") + public void testArrayClassParameterOnJavaClass() throws Exception { + runTest("compiler/testData/codegen/box/annotations/kClassMapping/arrayClassParameterOnJavaClass.kt"); + } + + @Test + @TestMetadata("classParameter.kt") + public void testClassParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/kClassMapping/classParameter.kt"); + } + + @Test + @TestMetadata("classParameterOnJavaClass.kt") + public void testClassParameterOnJavaClass() throws Exception { + runTest("compiler/testData/codegen/box/annotations/kClassMapping/classParameterOnJavaClass.kt"); + } + + @Test + @TestMetadata("varargClassParameter.kt") + public void testVarargClassParameter() throws Exception { + runTest("compiler/testData/codegen/box/annotations/kClassMapping/varargClassParameter.kt"); + } + + @Test + @TestMetadata("varargClassParameterOnJavaClass.kt") + public void testVarargClassParameterOnJavaClass() throws Exception { + runTest("compiler/testData/codegen/box/annotations/kClassMapping/varargClassParameterOnJavaClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/annotations/repeatable") + @TestDataPath("$PROJECT_ROOT") + public class Repeatable { + @Test + public void testAllFilesPresentInRepeatable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaAnnotation.kt") + public void testJavaAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/repeatable/javaAnnotation.kt"); + } + + @Test + @TestMetadata("jvmRepeatableKotlinAnnotation.kt") + public void testJvmRepeatableKotlinAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/repeatable/jvmRepeatableKotlinAnnotation.kt"); + } + + @Test + @TestMetadata("kotlinAnnotation.kt") + public void testKotlinAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/repeatable/kotlinAnnotation.kt"); + } + + @Test + @TestMetadata("kotlinAnnotationInJava.kt") + public void testKotlinAnnotationInJava() throws Exception { + runTest("compiler/testData/codegen/box/annotations/repeatable/kotlinAnnotationInJava.kt"); + } + + @Test + @TestMetadata("kotlinAnnotationWithBothRepeatables.kt") + public void testKotlinAnnotationWithBothRepeatables() throws Exception { + runTest("compiler/testData/codegen/box/annotations/repeatable/kotlinAnnotationWithBothRepeatables.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/annotations/typeAnnotations") + @TestDataPath("$PROJECT_ROOT") + public class TypeAnnotations { + @Test + public void testAllFilesPresentInTypeAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationWithTypeParameterOnReturnType.kt") + public void testAnnotationWithTypeParameterOnReturnType() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/annotationWithTypeParameterOnReturnType.kt"); + } + + @Test + @TestMetadata("checkingNotincorporatedInputTypes.kt") + public void testCheckingNotincorporatedInputTypes() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/checkingNotincorporatedInputTypes.kt"); + } + + @Test + @TestMetadata("classTypeParameterBound.kt") + public void testClassTypeParameterBound() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/classTypeParameterBound.kt"); + } + + @Test + @TestMetadata("classTypeParameterBoundsJava.kt") + public void testClassTypeParameterBoundsJava() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/classTypeParameterBoundsJava.kt"); + } + + @Test + @TestMetadata("functionTypeParameterBound.kt") + public void testFunctionTypeParameterBound() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/functionTypeParameterBound.kt"); + } + + @Test + @TestMetadata("implicitReturn.kt") + public void testImplicitReturn() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/implicitReturn.kt"); + } + + @Test + @TestMetadata("implicitReturnAgainstCompiled.kt") + public void testImplicitReturnAgainstCompiled() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/implicitReturnAgainstCompiled.kt"); + } + + @Test + @TestMetadata("kt41484.kt") + public void testKt41484() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/kt41484.kt"); + } + + @Test + @TestMetadata("methodParameters.kt") + public void testMethodParameters() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/methodParameters.kt"); + } + + @Test + @TestMetadata("methodTypeParameters.kt") + public void testMethodTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/methodTypeParameters.kt"); + } + + @Test + @TestMetadata("typeAnnotationTarget6.kt") + public void testTypeAnnotationTarget6() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/typeAnnotationTarget6.kt"); + } + + @Test + @TestMetadata("typeUseAnnotation.kt") + public void testTypeUseAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/typeAnnotations/typeUseAnnotation.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/argumentOrder") + @TestDataPath("$PROJECT_ROOT") + public class ArgumentOrder { + @Test + public void testAllFilesPresentInArgumentOrder() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("argumentOrderInObjectSuperCall.kt") + public void testArgumentOrderInObjectSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/argumentOrderInObjectSuperCall.kt"); + } + + @Test + @TestMetadata("argumentOrderInObjectSuperCallWithPlatformType.kt") + public void testArgumentOrderInObjectSuperCallWithPlatformType() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/argumentOrderInObjectSuperCallWithPlatformType.kt"); + } + + @Test + @TestMetadata("argumentOrderInSuperCall.kt") + public void testArgumentOrderInSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/argumentOrderInSuperCall.kt"); + } + + @Test + @TestMetadata("arguments.kt") + public void testArguments() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/arguments.kt"); + } + + @Test + @TestMetadata("captured.kt") + public void testCaptured() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/captured.kt"); + } + + @Test + @TestMetadata("capturedInExtension.kt") + public void testCapturedInExtension() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/capturedInExtension.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/defaults.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/extension.kt"); + } + + @Test + @TestMetadata("extensionInClass.kt") + public void testExtensionInClass() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/extensionInClass.kt"); + } + + @Test + @TestMetadata("kt17691.kt") + public void testKt17691() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/kt17691.kt"); + } + + @Test + @TestMetadata("kt17691WithEnabledFeature.kt") + public void testKt17691WithEnabledFeature() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/kt17691WithEnabledFeature.kt"); + } + + @Test + @TestMetadata("kt9277.kt") + public void testKt9277() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/kt9277.kt"); + } + + @Test + @TestMetadata("lambdaMigration.kt") + public void testLambdaMigration() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/lambdaMigration.kt"); + } + + @Test + @TestMetadata("lambdaMigrationInClass.kt") + public void testLambdaMigrationInClass() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/lambdaMigrationInClass.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/simple.kt"); + } + + @Test + @TestMetadata("simpleInClass.kt") + public void testSimpleInClass() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/simpleInClass.kt"); + } + + @Test + @TestMetadata("singleSideEffect.kt") + public void testSingleSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/singleSideEffect.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/arrays") + @TestDataPath("$PROJECT_ROOT") + public class Arrays { + @Test + public void testAllFilesPresentInArrays() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayConstructorWithNonInlineLambda.kt") + public void testArrayConstructorWithNonInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayConstructorWithNonInlineLambda.kt"); + } + + @Test + @TestMetadata("arrayConstructorsSimple.kt") + public void testArrayConstructorsSimple() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayConstructorsSimple.kt"); + } + + @Test + @TestMetadata("arrayGetAssignMultiIndex.kt") + public void testArrayGetAssignMultiIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayGetAssignMultiIndex.kt"); + } + + @Test + @TestMetadata("arrayGetMultiIndex.kt") + public void testArrayGetMultiIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayGetMultiIndex.kt"); + } + + @Test + @TestMetadata("arrayInstanceOf.kt") + public void testArrayInstanceOf() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayInstanceOf.kt"); + } + + @Test + @TestMetadata("arrayPlusAssign.kt") + public void testArrayPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); + } + + @Test + @TestMetadata("arraysAreCloneable.kt") + public void testArraysAreCloneable() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); + } + + @Test + @TestMetadata("cloneArray.kt") + public void testCloneArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); + } + + @Test + @TestMetadata("clonePrimitiveArrays.kt") + public void testClonePrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); + } + + @Test + @TestMetadata("collectionAssignGetMultiIndex.kt") + public void testCollectionAssignGetMultiIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/collectionAssignGetMultiIndex.kt"); + } + + @Test + @TestMetadata("collectionGetMultiIndex.kt") + public void testCollectionGetMultiIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/collectionGetMultiIndex.kt"); + } + + @Test + @TestMetadata("constantArrayOfAny.kt") + public void testConstantArrayOfAny() throws Exception { + runTest("compiler/testData/codegen/box/arrays/constantArrayOfAny.kt"); + } + + @Test + @TestMetadata("forEachBooleanArray.kt") + public void testForEachBooleanArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachBooleanArray.kt"); + } + + @Test + @TestMetadata("forEachByteArray.kt") + public void testForEachByteArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachByteArray.kt"); + } + + @Test + @TestMetadata("forEachCharArray.kt") + public void testForEachCharArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachCharArray.kt"); + } + + @Test + @TestMetadata("forEachDoubleArray.kt") + public void testForEachDoubleArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachDoubleArray.kt"); + } + + @Test + @TestMetadata("forEachFloatArray.kt") + public void testForEachFloatArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachFloatArray.kt"); + } + + @Test + @TestMetadata("forEachIntArray.kt") + public void testForEachIntArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachIntArray.kt"); + } + + @Test + @TestMetadata("forEachLongArray.kt") + public void testForEachLongArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachLongArray.kt"); + } + + @Test + @TestMetadata("forEachShortArray.kt") + public void testForEachShortArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachShortArray.kt"); + } + + @Test + @TestMetadata("genericArrayInObjectLiteralConstructor.kt") + public void testGenericArrayInObjectLiteralConstructor() throws Exception { + runTest("compiler/testData/codegen/box/arrays/genericArrayInObjectLiteralConstructor.kt"); + } + + @Test + @TestMetadata("hashMap.kt") + public void testHashMap() throws Exception { + runTest("compiler/testData/codegen/box/arrays/hashMap.kt"); + } + + @Test + @TestMetadata("inProjectionAsParameter.kt") + public void testInProjectionAsParameter() throws Exception { + runTest("compiler/testData/codegen/box/arrays/inProjectionAsParameter.kt"); + } + + @Test + @TestMetadata("inProjectionOfArray.kt") + public void testInProjectionOfArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/inProjectionOfArray.kt"); + } + + @Test + @TestMetadata("inProjectionOfList.kt") + public void testInProjectionOfList() throws Exception { + runTest("compiler/testData/codegen/box/arrays/inProjectionOfList.kt"); + } + + @Test + @TestMetadata("indices.kt") + public void testIndices() throws Exception { + runTest("compiler/testData/codegen/box/arrays/indices.kt"); + } + + @Test + @TestMetadata("indicesChar.kt") + public void testIndicesChar() throws Exception { + runTest("compiler/testData/codegen/box/arrays/indicesChar.kt"); + } + + @Test + @TestMetadata("inlineInitializer.kt") + public void testInlineInitializer() throws Exception { + runTest("compiler/testData/codegen/box/arrays/inlineInitializer.kt"); + } + + @Test + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iterator.kt"); + } + + @Test + @TestMetadata("iteratorBooleanArray.kt") + public void testIteratorBooleanArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorBooleanArray.kt"); + } + + @Test + @TestMetadata("iteratorByteArray.kt") + public void testIteratorByteArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorByteArray.kt"); + } + + @Test + @TestMetadata("iteratorByteArrayNextByte.kt") + public void testIteratorByteArrayNextByte() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorByteArrayNextByte.kt"); + } + + @Test + @TestMetadata("iteratorCharArray.kt") + public void testIteratorCharArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorCharArray.kt"); + } + + @Test + @TestMetadata("iteratorDoubleArray.kt") + public void testIteratorDoubleArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorDoubleArray.kt"); + } + + @Test + @TestMetadata("iteratorFloatArray.kt") + public void testIteratorFloatArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorFloatArray.kt"); + } + + @Test + @TestMetadata("iteratorIntArray.kt") + public void testIteratorIntArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorIntArray.kt"); + } + + @Test + @TestMetadata("iteratorLongArray.kt") + public void testIteratorLongArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorLongArray.kt"); + } + + @Test + @TestMetadata("iteratorLongArrayNextLong.kt") + public void testIteratorLongArrayNextLong() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorLongArrayNextLong.kt"); + } + + @Test + @TestMetadata("iteratorShortArray.kt") + public void testIteratorShortArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorShortArray.kt"); + } + + @Test + @TestMetadata("kt1291.kt") + public void testKt1291() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt1291.kt"); + } + + @Test + @TestMetadata("kt17134.kt") + public void testKt17134() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt17134.kt"); + } + + @Test + @TestMetadata("kt238.kt") + public void testKt238() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt238.kt"); + } + + @Test + @TestMetadata("kt2997.kt") + public void testKt2997() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt2997.kt"); + } + + @Test + @TestMetadata("kt33.kt") + public void testKt33() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt33.kt"); + } + + @Test + @TestMetadata("kt34291_16dimensions.kt") + public void testKt34291_16dimensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt"); + } + + @Test + @TestMetadata("kt3771.kt") + public void testKt3771() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt3771.kt"); + } + + @Test + @TestMetadata("kt4118.kt") + public void testKt4118() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt4118.kt"); + } + + @Test + @TestMetadata("kt42932.kt") + public void testKt42932() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt42932.kt"); + } + + @Test + @TestMetadata("kt4348.kt") + public void testKt4348() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt4348.kt"); + } + + @Test + @TestMetadata("kt4357.kt") + public void testKt4357() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt4357.kt"); + } + + @Test + @TestMetadata("kt45410.kt") + public void testKt45410() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt45410.kt"); + } + + @Test + @TestMetadata("kt47483.kt") + public void testKt47483() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt47483.kt"); + } + + @Test + @TestMetadata("kt47499.kt") + public void testKt47499() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt47499.kt"); + } + + @Test + @TestMetadata("kt503.kt") + public void testKt503() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt503.kt"); + } + + @Test + @TestMetadata("kt55984.kt") + public void testKt55984() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt55984.kt"); + } + + @Test + @TestMetadata("kt594.kt") + public void testKt594() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt594.kt"); + } + + @Test + @TestMetadata("kt602.kt") + public void testKt602() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt602.kt"); + } + + @Test + @TestMetadata("kt7009.kt") + public void testKt7009() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt7009.kt"); + } + + @Test + @TestMetadata("kt7288.kt") + public void testKt7288() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt7288.kt"); + } + + @Test + @TestMetadata("kt7338.kt") + public void testKt7338() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt7338.kt"); + } + + @Test + @TestMetadata("kt779.kt") + public void testKt779() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt779.kt"); + } + + @Test + @TestMetadata("kt945.kt") + public void testKt945() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt945.kt"); + } + + @Test + @TestMetadata("kt950.kt") + public void testKt950() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt950.kt"); + } + + @Test + @TestMetadata("longAsIndex.kt") + public void testLongAsIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/longAsIndex.kt"); + } + + @Test + @TestMetadata("multiArrayConstructors.kt") + public void testMultiArrayConstructors() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiArrayConstructors.kt"); + } + + @Test + @TestMetadata("nonLocalReturnArrayConstructor.kt") + public void testNonLocalReturnArrayConstructor() throws Exception { + runTest("compiler/testData/codegen/box/arrays/nonLocalReturnArrayConstructor.kt"); + } + + @Test + @TestMetadata("nonNullArray.kt") + public void testNonNullArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/nonNullArray.kt"); + } + + @Test + @TestMetadata("primitiveArrays.kt") + public void testPrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/arrays/primitiveArrays.kt"); + } + + @Test + @TestMetadata("stdlib.kt") + public void testStdlib() throws Exception { + runTest("compiler/testData/codegen/box/arrays/stdlib.kt"); + } + + @Test + @TestMetadata("varargsWithJava.kt") + public void testVarargsWithJava() throws Exception { + runTest("compiler/testData/codegen/box/arrays/varargsWithJava.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/arrays/arraysOfInlineClass") + @TestDataPath("$PROJECT_ROOT") + public class ArraysOfInlineClass { + @Test + @TestMetadata("accessArrayOfInlineClass.kt") + public void testAccessArrayOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arraysOfInlineClass/accessArrayOfInlineClass.kt"); + } + + @Test + @TestMetadata("accessArrayOfUnsigned.kt") + public void testAccessArrayOfUnsigned() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arraysOfInlineClass/accessArrayOfUnsigned.kt"); + } + + @Test + public void testAllFilesPresentInArraysOfInlineClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/arraysOfInlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayOfInlineClassOfArrayOfInlineClass.kt") + public void testArrayOfInlineClassOfArrayOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arraysOfInlineClass/arrayOfInlineClassOfArrayOfInlineClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/arrays/forInReversed") + @TestDataPath("$PROJECT_ROOT") + public class ForInReversed { + @Test + public void testAllFilesPresentInForInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInReversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedArray.kt") + public void testReversedArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedArray.kt"); + } + + @Test + @TestMetadata("reversedArrayOriginalUpdatedInLoopBody.kt") + public void testReversedArrayOriginalUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedArrayOriginalUpdatedInLoopBody.kt"); + } + + @Test + @TestMetadata("reversedArrayReversedArrayOriginalUpdatedInLoopBody.kt") + public void testReversedArrayReversedArrayOriginalUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedArrayReversedArrayOriginalUpdatedInLoopBody.kt"); + } + + @Test + @TestMetadata("reversedOriginalUpdatedInLoopBody.kt") + public void testReversedOriginalUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedOriginalUpdatedInLoopBody.kt"); + } + + @Test + @TestMetadata("reversedReversedOriginalUpdatedInLoopBody.kt") + public void testReversedReversedOriginalUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedReversedOriginalUpdatedInLoopBody.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/arrays/forInUnsignedArray") + @TestDataPath("$PROJECT_ROOT") + public class ForInUnsignedArray { + @Test + public void testAllFilesPresentInForInUnsignedArray() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInUnsignedArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInUnsignedArray.kt") + public void testForInUnsignedArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArray.kt"); + } + + @Test + @TestMetadata("forInUnsignedArrayIndices.kt") + public void testForInUnsignedArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndices.kt"); + } + + @Test + @TestMetadata("forInUnsignedArrayIndicesReversed.kt") + public void testForInUnsignedArrayIndicesReversed() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndicesReversed.kt"); + } + + @Test + @TestMetadata("forInUnsignedArrayReversed.kt") + public void testForInUnsignedArrayReversed() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayReversed.kt"); + } + + @Test + @TestMetadata("forInUnsignedArrayWithIndex.kt") + public void testForInUnsignedArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInUnsignedArrayWithIndexNoElementVar.kt") + public void testForInUnsignedArrayWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoElementVar.kt"); + } + + @Test + @TestMetadata("forInUnsignedArrayWithIndexNoIndexVar.kt") + public void testForInUnsignedArrayWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoIndexVar.kt"); + } + + @Test + @TestMetadata("forInUnsignedArrayWithIndexReversed.kt") + public void testForInUnsignedArrayWithIndexReversed() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexReversed.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/arrays/multiDecl") + @TestDataPath("$PROJECT_ROOT") + public class MultiDecl { + @Test + public void testAllFilesPresentInMultiDecl() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/multiDecl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt15560.kt") + public void testKt15560() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/kt15560.kt"); + } + + @Test + @TestMetadata("kt15568.kt") + public void testKt15568() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/kt15568.kt"); + } + + @Test + @TestMetadata("kt15575.kt") + public void testKt15575() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/kt15575.kt"); + } + + @Test + @TestMetadata("MultiDeclFor.kt") + public void testMultiDeclFor() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/MultiDeclFor.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + + @Test + @TestMetadata("MultiDeclForValCaptured.kt") + public void testMultiDeclForValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/MultiDeclForValCaptured.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/arrays/multiDecl/int") + @TestDataPath("$PROJECT_ROOT") + public class Int { + @Test + public void testAllFilesPresentInInt() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/multiDecl/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/int/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/int/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/int/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/int/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/arrays/multiDecl/long") + @TestDataPath("$PROJECT_ROOT") + public class Long { + @Test + public void testAllFilesPresentInLong() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/multiDecl/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/long/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/long/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/long/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/long/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/assert") + @TestDataPath("$PROJECT_ROOT") + public class Assert { + @Test + public void testAllFilesPresentInAssert() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("alwaysDisable.kt") + public void testAlwaysDisable() throws Exception { + runTest("compiler/testData/codegen/box/assert/alwaysDisable.kt"); + } + + @Test + @TestMetadata("alwaysEnable.kt") + public void testAlwaysEnable() throws Exception { + runTest("compiler/testData/codegen/box/assert/alwaysEnable.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/assert/jvm") + @TestDataPath("$PROJECT_ROOT") + public class Jvm { + @Test + public void testAllFilesPresentInJvm() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/assert/jvm"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("assertionsEnabledBeforeClassInitializers.kt") + public void testAssertionsEnabledBeforeClassInitializers() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/assertionsEnabledBeforeClassInitializers.kt"); + } + + @Test + @TestMetadata("classAssertions.kt") + public void testClassAssertions() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/classAssertions.kt"); + } + + @Test + @TestMetadata("classAssertionsForCompanion.kt") + public void testClassAssertionsForCompanion() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/classAssertionsForCompanion.kt"); + } + + @Test + @TestMetadata("classAssertionsForInnerClasses.kt") + public void testClassAssertionsForInnerClasses() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/classAssertionsForInnerClasses.kt"); + } + + @Test + @TestMetadata("classAssertionsForLocalClasses.kt") + public void testClassAssertionsForLocalClasses() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/classAssertionsForLocalClasses.kt"); + } + + @Test + @TestMetadata("classAssertionsForNestedClasses.kt") + public void testClassAssertionsForNestedClasses() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/classAssertionsForNestedClasses.kt"); + } + + @Test + @TestMetadata("interfaceAssertionsDisabled.kt") + public void testInterfaceAssertionsDisabled() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/interfaceAssertionsDisabled.kt"); + } + + @Test + @TestMetadata("interfaceAssertionsEnabled.kt") + public void testInterfaceAssertionsEnabled() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/interfaceAssertionsEnabled.kt"); + } + + @Test + @TestMetadata("lambdaNotEvaluated.kt") + public void testLambdaNotEvaluated() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/lambdaNotEvaluated.kt"); + } + + @Test + @TestMetadata("localAnonymousFunction.kt") + public void testLocalAnonymousFunction() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/localAnonymousFunction.kt"); + } + + @Test + @TestMetadata("localClass.kt") + public void testLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/localClass.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/localFunction.kt"); + } + + @Test + @TestMetadata("localLambda.kt") + public void testLocalLambda() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/localLambda.kt"); + } + + @Test + @TestMetadata("localObject.kt") + public void testLocalObject() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/localObject.kt"); + } + + @Test + @TestMetadata("noUnnecessaryClassInitialization.kt") + public void testNoUnnecessaryClassInitialization() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/noUnnecessaryClassInitialization.kt"); + } + + @Test + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/nonLocalReturn.kt"); + } + + @Test + @TestMetadata("ordinary.kt") + public void testOrdinary() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/ordinary.kt"); + } + + @Test + @TestMetadata("superClassInitializer.kt") + public void testSuperClassInitializer() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/superClassInitializer.kt"); + } + + @Test + @TestMetadata("suspendFunctionAssertionDisabled.kt") + public void testSuspendFunctionAssertionDisabled() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/suspendFunctionAssertionDisabled.kt"); + } + + @Test + @TestMetadata("suspendFunctionAssertionsEnabled.kt") + public void testSuspendFunctionAssertionsEnabled() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/suspendFunctionAssertionsEnabled.kt"); + } + + @Test + @TestMetadata("suspendLambdaAssertionsDisabled.kt") + public void testSuspendLambdaAssertionsDisabled() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/suspendLambdaAssertionsDisabled.kt"); + } + + @Test + @TestMetadata("suspendLambdaAssertionsEnabled.kt") + public void testSuspendLambdaAssertionsEnabled() throws Exception { + runTest("compiler/testData/codegen/box/assert/jvm/suspendLambdaAssertionsEnabled.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/binaryOp") + @TestDataPath("$PROJECT_ROOT") + public class BinaryOp { + @Test + public void testAllFilesPresentInBinaryOp() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/binaryOp"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bitwiseOp.kt") + public void testBitwiseOp() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/bitwiseOp.kt"); + } + + @Test + @TestMetadata("bitwiseOpAny.kt") + public void testBitwiseOpAny() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/bitwiseOpAny.kt"); + } + + @Test + @TestMetadata("bitwiseOpNullable.kt") + public void testBitwiseOpNullable() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/bitwiseOpNullable.kt"); + } + + @Test + @TestMetadata("boxingOfLiteralReceiverWithIntegerValueType.kt") + public void testBoxingOfLiteralReceiverWithIntegerValueType() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/boxingOfLiteralReceiverWithIntegerValueType.kt"); + } + + @Test + @TestMetadata("call.kt") + public void testCall() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/call.kt"); + } + + @Test + @TestMetadata("callAny.kt") + public void testCallAny() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/callAny.kt"); + } + + @Test + @TestMetadata("callNullable.kt") + public void testCallNullable() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/callNullable.kt"); + } + + @Test + @TestMetadata("compareBoxedChars.kt") + public void testCompareBoxedChars() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/compareBoxedChars.kt"); + } + + @Test + @TestMetadata("compareWithBoxedDouble.kt") + public void testCompareWithBoxedDouble() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/compareWithBoxedDouble.kt"); + } + + @Test + @TestMetadata("compareWithBoxedLong.kt") + public void testCompareWithBoxedLong() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/compareWithBoxedLong.kt"); + } + + @Test + @TestMetadata("compareWithBoxedNotNullDouble.kt") + public void testCompareWithBoxedNotNullDouble() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/compareWithBoxedNotNullDouble.kt"); + } + + @Test + @TestMetadata("compareWithBoxedNotNullLong.kt") + public void testCompareWithBoxedNotNullLong() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/compareWithBoxedNotNullLong.kt"); + } + + @Test + @TestMetadata("divisionByZero.kt") + public void testDivisionByZero() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/divisionByZero.kt"); + } + + @Test + @TestMetadata("eqNullableDoubles.kt") + public void testEqNullableDoubles() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/eqNullableDoubles.kt"); + } + + @Test + @TestMetadata("eqNullableDoublesToInt.kt") + public void testEqNullableDoublesToInt() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/eqNullableDoublesToInt.kt"); + } + + @Test + @TestMetadata("eqNullableDoublesToIntWithTP.kt") + public void testEqNullableDoublesToIntWithTP() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/eqNullableDoublesToIntWithTP.kt"); + } + + @Test + @TestMetadata("eqNullableDoublesWithTP.kt") + public void testEqNullableDoublesWithTP() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/eqNullableDoublesWithTP.kt"); + } + + @Test + @TestMetadata("eqNullableShortToShort.kt") + public void testEqNullableShortToShort() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/eqNullableShortToShort.kt"); + } + + @Test + @TestMetadata("eqNullableToPrimitiveWithSideEffects.kt") + public void testEqNullableToPrimitiveWithSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/eqNullableToPrimitiveWithSideEffects.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/intrinsic.kt"); + } + + @Test + @TestMetadata("intrinsicAny.kt") + public void testIntrinsicAny() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/intrinsicAny.kt"); + } + + @Test + @TestMetadata("intrinsicNullable.kt") + public void testIntrinsicNullable() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/intrinsicNullable.kt"); + } + + @Test + @TestMetadata("kt11163.kt") + public void testKt11163() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/kt11163.kt"); + } + + @Test + @TestMetadata("kt11163_properIeee754comparisons.kt") + public void testKt11163_properIeee754comparisons() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/kt11163_properIeee754comparisons.kt"); + } + + @Test + @TestMetadata("kt23030_properIeee754comparisons.kt") + public void testKt23030_properIeee754comparisons() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/kt23030_properIeee754comparisons.kt"); + } + + @Test + @TestMetadata("kt44402.kt") + public void testKt44402() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/kt44402.kt"); + } + + @Test + @TestMetadata("kt6747_identityEquals.kt") + public void testKt6747_identityEquals() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/kt6747_identityEquals.kt"); + } + + @Test + @TestMetadata("overflowChar.kt") + public void testOverflowChar() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/overflowChar.kt"); + } + + @Test + @TestMetadata("overflowInt.kt") + public void testOverflowInt() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/overflowInt.kt"); + } + + @Test + @TestMetadata("overflowLong.kt") + public void testOverflowLong() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/overflowLong.kt"); + } + + @Test + @TestMetadata("primitiveEqualsSafeCall.kt") + public void testPrimitiveEqualsSafeCall() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/primitiveEqualsSafeCall.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/boxingOptimization") + @TestDataPath("$PROJECT_ROOT") + public class BoxingOptimization { + @Test + public void testAllFilesPresentInBoxingOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxedIntegersCmp.kt") + public void testBoxedIntegersCmp() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/boxedIntegersCmp.kt"); + } + + @Test + @TestMetadata("boxedPrimitivesAreEqual.kt") + public void testBoxedPrimitivesAreEqual() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/boxedPrimitivesAreEqual.kt"); + } + + @Test + @TestMetadata("boxedRealsCmp.kt") + public void testBoxedRealsCmp() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/boxedRealsCmp.kt"); + } + + @Test + @TestMetadata("casts.kt") + public void testCasts() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/casts.kt"); + } + + @Test + @TestMetadata("checkcastAndInstanceOf.kt") + public void testCheckcastAndInstanceOf() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); + } + + @Test + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); + } + + @Test + @TestMetadata("explicitEqualsOnDouble.kt") + public void testExplicitEqualsOnDouble() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/explicitEqualsOnDouble.kt"); + } + + @Test + @TestMetadata("fold.kt") + public void testFold() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/fold.kt"); + } + + @Test + @TestMetadata("foldRange.kt") + public void testFoldRange() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/foldRange.kt"); + } + + @Test + @TestMetadata("intCompareTo.kt") + public void testIntCompareTo() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/intCompareTo.kt"); + } + + @Test + @TestMetadata("kClassEquals.kt") + public void testKClassEquals() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kClassEquals.kt"); + } + + @Test + @TestMetadata("kt15871.kt") + public void testKt15871() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt15871.kt"); + } + + @Test + @TestMetadata("kt17748.kt") + public void testKt17748() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt17748.kt"); + } + + @Test + @TestMetadata("kt19767.kt") + public void testKt19767() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt19767.kt"); + } + + @Test + @TestMetadata("kt19767_2.kt") + public void testKt19767_2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt19767_2.kt"); + } + + @Test + @TestMetadata("kt19767_3.kt") + public void testKt19767_3() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt19767_3.kt"); + } + + @Test + @TestMetadata("kt19767_chain.kt") + public void testKt19767_chain() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt19767_chain.kt"); + } + + @Test + @TestMetadata("kt46859.kt") + public void testKt46859() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt46859.kt"); + } + + @Test + @TestMetadata("kt48394.kt") + public void testKt48394() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt48394.kt"); + } + + @Test + @TestMetadata("kt49092a.kt") + public void testKt49092a() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt49092a.kt"); + } + + @Test + @TestMetadata("kt49092b.kt") + public void testKt49092b() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt49092b.kt"); + } + + @Test + @TestMetadata("kt49092c.kt") + public void testKt49092c() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt49092c.kt"); + } + + @Test + @TestMetadata("kt49092d.kt") + public void testKt49092d() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt49092d.kt"); + } + + @Test + @TestMetadata("kt49092e.kt") + public void testKt49092e() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt49092e.kt"); + } + + @Test + @TestMetadata("kt49092f.kt") + public void testKt49092f() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt49092f.kt"); + } + + @Test + @TestMetadata("kt49548.kt") + public void testKt49548() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt49548.kt"); + } + + @Test + @TestMetadata("kt49548a.kt") + public void testKt49548a() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt49548a.kt"); + } + + @Test + @TestMetadata("kt5493.kt") + public void testKt5493() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt5493.kt"); + } + + @Test + @TestMetadata("kt5588.kt") + public void testKt5588() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt5588.kt"); + } + + @Test + @TestMetadata("kt5844.kt") + public void testKt5844() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt5844.kt"); + } + + @Test + @TestMetadata("kt6047.kt") + public void testKt6047() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt6047.kt"); + } + + @Test + @TestMetadata("kt6842.kt") + public void testKt6842() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt6842.kt"); + } + + @Test + @TestMetadata("maxMinByOrNull.kt") + public void testMaxMinByOrNull() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/maxMinByOrNull.kt"); + } + + @Test + @TestMetadata("nullCheck.kt") + public void testNullCheck() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/nullCheck.kt"); + } + + @Test + @TestMetadata("progressions.kt") + public void testProgressions() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/progressions.kt"); + } + + @Test + @TestMetadata("safeCallWithElvis.kt") + public void testSafeCallWithElvis() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/safeCallWithElvis.kt"); + } + + @Test + @TestMetadata("safeCallWithElvisAndEnhancedNullability.kt") + public void testSafeCallWithElvisAndEnhancedNullability() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/safeCallWithElvisAndEnhancedNullability.kt"); + } + + @Test + @TestMetadata("safeCallWithElvisMultipleFiles.kt") + public void testSafeCallWithElvisMultipleFiles() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/safeCallWithElvisMultipleFiles.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/simple.kt"); + } + + @Test + @TestMetadata("simpleUninitializedMerge.kt") + public void testSimpleUninitializedMerge() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/simpleUninitializedMerge.kt"); + } + + @Test + @TestMetadata("taintedValues.kt") + public void testTaintedValues() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/taintedValues.kt"); + } + + @Test + @TestMetadata("taintedValuesBox.kt") + public void testTaintedValuesBox() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/taintedValuesBox.kt"); + } + + @Test + @TestMetadata("unsafeRemoving.kt") + public void testUnsafeRemoving() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/unsafeRemoving.kt"); + } + + @Test + @TestMetadata("unsignedArrayForEach.kt") + public void testUnsignedArrayForEach() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/unsignedArrayForEach.kt"); + } + + @Test + @TestMetadata("variables.kt") + public void testVariables() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/variables.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bridges") + @TestDataPath("$PROJECT_ROOT") + public class Bridges { + @Test + @TestMetadata("abstractOverrideBridge.kt") + public void testAbstractOverrideBridge() throws Exception { + runTest("compiler/testData/codegen/box/bridges/abstractOverrideBridge.kt"); + } + + @Test + public void testAllFilesPresentInBridges() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bridgeInInterface.kt") + public void testBridgeInInterface() throws Exception { + runTest("compiler/testData/codegen/box/bridges/bridgeInInterface.kt"); + } + + @Test + @TestMetadata("bridgeInInterfaceWithProperties.kt") + public void testBridgeInInterfaceWithProperties() throws Exception { + runTest("compiler/testData/codegen/box/bridges/bridgeInInterfaceWithProperties.kt"); + } + + @Test + @TestMetadata("complexMultiInheritance.kt") + public void testComplexMultiInheritance() throws Exception { + runTest("compiler/testData/codegen/box/bridges/complexMultiInheritance.kt"); + } + + @Test + @TestMetadata("complexTraitImpl.kt") + public void testComplexTraitImpl() throws Exception { + runTest("compiler/testData/codegen/box/bridges/complexTraitImpl.kt"); + } + + @Test + @TestMetadata("covariantGenericDiamond.kt") + public void testCovariantGenericDiamond() throws Exception { + runTest("compiler/testData/codegen/box/bridges/covariantGenericDiamond.kt"); + } + + @Test + @TestMetadata("delegation.kt") + public void testDelegation() throws Exception { + runTest("compiler/testData/codegen/box/bridges/delegation.kt"); + } + + @Test + @TestMetadata("delegationComplex.kt") + public void testDelegationComplex() throws Exception { + runTest("compiler/testData/codegen/box/bridges/delegationComplex.kt"); + } + + @Test + @TestMetadata("delegationComplexWithList.kt") + public void testDelegationComplexWithList() throws Exception { + runTest("compiler/testData/codegen/box/bridges/delegationComplexWithList.kt"); + } + + @Test + @TestMetadata("delegationProperty.kt") + public void testDelegationProperty() throws Exception { + runTest("compiler/testData/codegen/box/bridges/delegationProperty.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() throws Exception { + runTest("compiler/testData/codegen/box/bridges/diamond.kt"); + } + + @Test + @TestMetadata("fakeCovariantOverride.kt") + public void testFakeCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeCovariantOverride.kt"); + } + + @Test + @TestMetadata("fakeGenericCovariantOverride.kt") + public void testFakeGenericCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeGenericCovariantOverride.kt"); + } + + @Test + @TestMetadata("fakeGenericCovariantOverrideWithDelegation.kt") + public void testFakeGenericCovariantOverrideWithDelegation() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeGenericCovariantOverrideWithDelegation.kt"); + } + + @Test + @TestMetadata("fakeOverrideFromInterfaceThroughIntermediateClass.kt") + public void testFakeOverrideFromInterfaceThroughIntermediateClass() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideFromInterfaceThroughIntermediateClass.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiFile.kt") + public void testFakeOverrideMultiFile() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideMultiFile.kt"); + } + + @Test + @TestMetadata("fakeOverrideOfTraitImpl.kt") + public void testFakeOverrideOfTraitImpl() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideOfTraitImpl.kt"); + } + + @Test + @TestMetadata("fakeOverrideThroughGenericSuperclass.kt") + public void testFakeOverrideThroughGenericSuperclass() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideThroughGenericSuperclass.kt"); + } + + @Test + @TestMetadata("fakeOverrideWithSeveralSuperDeclarations.kt") + public void testFakeOverrideWithSeveralSuperDeclarations() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideWithSeveralSuperDeclarations.kt"); + } + + @Test + @TestMetadata("fakeOverrideWithSynthesizedImplementation.kt") + public void testFakeOverrideWithSynthesizedImplementation() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideWithSynthesizedImplementation.kt"); + } + + @Test + @TestMetadata("genericProperty.kt") + public void testGenericProperty() throws Exception { + runTest("compiler/testData/codegen/box/bridges/genericProperty.kt"); + } + + @Test + @TestMetadata("innerClassTypeParameters.kt") + public void testInnerClassTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/bridges/innerClassTypeParameters.kt"); + } + + @Test + @TestMetadata("internalMethodOverrideInFriendModule.kt") + public void testInternalMethodOverrideInFriendModule() throws Exception { + runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInFriendModule.kt"); + } + + @Test + @TestMetadata("internalMethodOverrideInOtherModule.kt") + public void testInternalMethodOverrideInOtherModule() throws Exception { + runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInOtherModule.kt"); + } + + @Test + @TestMetadata("internalMethodOverrideMultipleInheritance.kt") + public void testInternalMethodOverrideMultipleInheritance() throws Exception { + runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideMultipleInheritance.kt"); + } + + @Test + @TestMetadata("internalMethodOverridePublishedApi.kt") + public void testInternalMethodOverridePublishedApi() throws Exception { + runTest("compiler/testData/codegen/box/bridges/internalMethodOverridePublishedApi.kt"); + } + + @Test + @TestMetadata("kt12416.kt") + public void testKt12416() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt12416.kt"); + } + + @Test + @TestMetadata("kt1939.kt") + public void testKt1939() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt1939.kt"); + } + + @Test + @TestMetadata("kt1959.kt") + public void testKt1959() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt1959.kt"); + } + + @Test + @TestMetadata("kt24193.kt") + public void testKt24193() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt24193.kt"); + } + + @Test + @TestMetadata("kt2498.kt") + public void testKt2498() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt2498.kt"); + } + + @Test + @TestMetadata("kt2702.kt") + public void testKt2702() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt2702.kt"); + } + + @Test + @TestMetadata("kt2833.kt") + public void testKt2833() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt2833.kt"); + } + + @Test + @TestMetadata("kt2920.kt") + public void testKt2920() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt2920.kt"); + } + + @Test + @TestMetadata("kt318.kt") + public void testKt318() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt318.kt"); + } + + @Test + @TestMetadata("kt42137.kt") + public void testKt42137() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt42137.kt"); + } + + @Test + @TestMetadata("kt46389.kt") + public void testKt46389() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt46389.kt"); + } + + @Test + @TestMetadata("kt46389_jvmDefault.kt") + public void testKt46389_jvmDefault() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt46389_jvmDefault.kt"); + } + + @Test + @TestMetadata("longChainOneBridge.kt") + public void testLongChainOneBridge() throws Exception { + runTest("compiler/testData/codegen/box/bridges/longChainOneBridge.kt"); + } + + @Test + @TestMetadata("manyTypeArgumentsSubstitutedSuccessively.kt") + public void testManyTypeArgumentsSubstitutedSuccessively() throws Exception { + runTest("compiler/testData/codegen/box/bridges/manyTypeArgumentsSubstitutedSuccessively.kt"); + } + + @Test + @TestMetadata("methodFromTrait.kt") + public void testMethodFromTrait() throws Exception { + runTest("compiler/testData/codegen/box/bridges/methodFromTrait.kt"); + } + + @Test + @TestMetadata("methodWithDefaultParameter.kt") + public void testMethodWithDefaultParameter() throws Exception { + runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); + } + + @Test + @TestMetadata("nestedClassTypeParameters.kt") + public void testNestedClassTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/bridges/nestedClassTypeParameters.kt"); + } + + @Test + @TestMetadata("noBridgeOnMutableCollectionInheritance.kt") + public void testNoBridgeOnMutableCollectionInheritance() throws Exception { + runTest("compiler/testData/codegen/box/bridges/noBridgeOnMutableCollectionInheritance.kt"); + } + + @Test + @TestMetadata("objectClone.kt") + public void testObjectClone() throws Exception { + runTest("compiler/testData/codegen/box/bridges/objectClone.kt"); + } + + @Test + @TestMetadata("overrideAbstractProperty.kt") + public void testOverrideAbstractProperty() throws Exception { + runTest("compiler/testData/codegen/box/bridges/overrideAbstractProperty.kt"); + } + + @Test + @TestMetadata("overrideReturnType.kt") + public void testOverrideReturnType() throws Exception { + runTest("compiler/testData/codegen/box/bridges/overrideReturnType.kt"); + } + + @Test + @TestMetadata("overrideWithValueClassReturn.kt") + public void testOverrideWithValueClassReturn() throws Exception { + runTest("compiler/testData/codegen/box/bridges/overrideWithValueClassReturn.kt"); + } + + @Test + @TestMetadata("propertyAccessorsWithoutBody.kt") + public void testPropertyAccessorsWithoutBody() throws Exception { + runTest("compiler/testData/codegen/box/bridges/propertyAccessorsWithoutBody.kt"); + } + + @Test + @TestMetadata("propertyDiamond.kt") + public void testPropertyDiamond() throws Exception { + runTest("compiler/testData/codegen/box/bridges/propertyDiamond.kt"); + } + + @Test + @TestMetadata("propertyDiamondFakeOverride.kt") + public void testPropertyDiamondFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/bridges/propertyDiamondFakeOverride.kt"); + } + + @Test + @TestMetadata("propertyInConstructor.kt") + public void testPropertyInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/bridges/propertyInConstructor.kt"); + } + + @Test + @TestMetadata("propertySetter.kt") + public void testPropertySetter() throws Exception { + runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simple.kt"); + } + + @Test + @TestMetadata("simpleEnum.kt") + public void testSimpleEnum() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleEnum.kt"); + } + + @Test + @TestMetadata("simpleGenericMethod.kt") + public void testSimpleGenericMethod() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleGenericMethod.kt"); + } + + @Test + @TestMetadata("simpleObject.kt") + public void testSimpleObject() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleObject.kt"); + } + + @Test + @TestMetadata("simpleReturnType.kt") + public void testSimpleReturnType() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleReturnType.kt"); + } + + @Test + @TestMetadata("simpleTraitImpl.kt") + public void testSimpleTraitImpl() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleTraitImpl.kt"); + } + + @Test + @TestMetadata("simpleUpperBound.kt") + public void testSimpleUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); + } + + @Test + @TestMetadata("strListContains.kt") + public void testStrListContains() throws Exception { + runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); + } + + @Test + @TestMetadata("strListRemove.kt") + public void testStrListRemove() throws Exception { + runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); + } + + @Test + @TestMetadata("traitImplInheritsTraitImpl.kt") + public void testTraitImplInheritsTraitImpl() throws Exception { + runTest("compiler/testData/codegen/box/bridges/traitImplInheritsTraitImpl.kt"); + } + + @Test + @TestMetadata("twoParentsWithDifferentMethodsTwoBridges.kt") + public void testTwoParentsWithDifferentMethodsTwoBridges() throws Exception { + runTest("compiler/testData/codegen/box/bridges/twoParentsWithDifferentMethodsTwoBridges.kt"); + } + + @Test + @TestMetadata("twoParentsWithDifferentMethodsTwoBridges2.kt") + public void testTwoParentsWithDifferentMethodsTwoBridges2() throws Exception { + runTest("compiler/testData/codegen/box/bridges/twoParentsWithDifferentMethodsTwoBridges2.kt"); + } + + @Test + @TestMetadata("twoParentsWithTheSameMethodOneBridge.kt") + public void testTwoParentsWithTheSameMethodOneBridge() throws Exception { + runTest("compiler/testData/codegen/box/bridges/twoParentsWithTheSameMethodOneBridge.kt"); + } + + @Test + @TestMetadata("typeParameterInExtensionReceiver.kt") + public void testTypeParameterInExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/bridges/typeParameterInExtensionReceiver.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bridges/substitutionInSuperClass") + @TestDataPath("$PROJECT_ROOT") + public class SubstitutionInSuperClass { + @Test + @TestMetadata("abstractFun.kt") + public void testAbstractFun() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/abstractFun.kt"); + } + + @Test + public void testAllFilesPresentInSubstitutionInSuperClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bridges/substitutionInSuperClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boundedTypeArguments.kt") + public void testBoundedTypeArguments() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/boundedTypeArguments.kt"); + } + + @Test + @TestMetadata("delegation.kt") + public void testDelegation() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/delegation.kt"); + } + + @Test + @TestMetadata("differentErasureInSuperClass.kt") + public void testDifferentErasureInSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/differentErasureInSuperClass.kt"); + } + + @Test + @TestMetadata("differentErasureInSuperClassComplex.kt") + public void testDifferentErasureInSuperClassComplex() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/differentErasureInSuperClassComplex.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/enum.kt"); + } + + @Test + @TestMetadata("genericMethod.kt") + public void testGenericMethod() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/genericMethod.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/object.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/property.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/simple.kt"); + } + + @Test + @TestMetadata("upperBound.kt") + public void testUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/upperBound.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builderInference") + @TestDataPath("$PROJECT_ROOT") + public class BuilderInference { + @Test + public void testAllFilesPresentInBuilderInference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builderInference/issues") + @TestDataPath("$PROJECT_ROOT") + public class Issues { + @Test + public void testAllFilesPresentInIssues() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/issues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt43710.kt") + public void testKt43710() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt43710.kt"); + } + + @Test + @TestMetadata("kt47989a.kt") + public void testKt47989a() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt47989a.kt"); + } + + @Test + @TestMetadata("kt47989b.kt") + public void testKt47989b() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt47989b.kt"); + } + + @Test + @TestMetadata("kt49160a.kt") + public void testKt49160a() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt49160a.kt"); + } + + @Test + @TestMetadata("kt49160b.kt") + public void testKt49160b() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt49160b.kt"); + } + + @Test + @TestMetadata("kt49160c.kt") + public void testKt49160c() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt49160c.kt"); + } + + @Test + @TestMetadata("kt49160d.kt") + public void testKt49160d() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt49160d.kt"); + } + + @Test + @TestMetadata("kt49160e.kt") + public void testKt49160e() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt49160e.kt"); + } + + @Test + @TestMetadata("kt49263.kt") + public void testKt49263() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt49263.kt"); + } + + @Test + @TestMetadata("kt50453.kt") + public void testKt50453() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt50453.kt"); + } + + @Test + @TestMetadata("kt50827a.kt") + public void testKt50827a() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt50827a.kt"); + } + + @Test + @TestMetadata("kt50827b.kt") + public void testKt50827b() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt50827b.kt"); + } + + @Test + @TestMetadata("kt52757.kt") + public void testKt52757() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt52757.kt"); + } + + @Test + @TestMetadata("kt52838a.kt") + public void testKt52838a() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt52838a.kt"); + } + + @Test + @TestMetadata("kt52838b.kt") + public void testKt52838b() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt52838b.kt"); + } + + @Test + @TestMetadata("kt52838c.kt") + public void testKt52838c() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt52838c.kt"); + } + + @Test + @TestMetadata("kt53109.kt") + public void testKt53109() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt53109.kt"); + } + + @Test + @TestMetadata("kt53422a.kt") + public void testKt53422a() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt53422a.kt"); + } + + @Test + @TestMetadata("kt53422b.kt") + public void testKt53422b() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt53422b.kt"); + } + + @Test + @TestMetadata("kt53553.kt") + public void testKt53553() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt53553.kt"); + } + + @Test + @TestMetadata("kt53639.kt") + public void testKt53639() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt53639.kt"); + } + + @Test + @TestMetadata("kt53740a.kt") + public void testKt53740a() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt53740a.kt"); + } + + @Test + @TestMetadata("kt53740b.kt") + public void testKt53740b() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt53740b.kt"); + } + + @Test + @TestMetadata("kt54400a.kt") + public void testKt54400a() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt54400a.kt"); + } + + @Test + @TestMetadata("kt54400b.kt") + public void testKt54400b() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt54400b.kt"); + } + + @Test + @TestMetadata("kt54400c.kt") + public void testKt54400c() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt54400c.kt"); + } + + @Test + @TestMetadata("kt54664.kt") + public void testKt54664() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt54664.kt"); + } + + @Test + @TestMetadata("kt54767a.kt") + public void testKt54767a() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt54767a.kt"); + } + + @Test + @TestMetadata("kt54767b.kt") + public void testKt54767b() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt54767b.kt"); + } + + @Test + @TestMetadata("kt55056.kt") + public void testKt55056() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt55056.kt"); + } + + @Test + @TestMetadata("kt55252.kt") + public void testKt55252() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt55252.kt"); + } + + @Test + @TestMetadata("kt55281.kt") + public void testKt55281() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt55281.kt"); + } + + @Test + @TestMetadata("kt56949.kt") + public void testKt56949() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt56949.kt"); + } + + @Test + @TestMetadata("kt57707.kt") + public void testKt57707() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt57707.kt"); + } + + @Test + @TestMetadata("kt57709.kt") + public void testKt57709() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt57709.kt"); + } + + @Test + @TestMetadata("kt57834.kt") + public void testKt57834() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt57834.kt"); + } + + @Test + @TestMetadata("kt59426.kt") + public void testKt59426() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt59426.kt"); + } + + @Test + @TestMetadata("kt59798.kt") + public void testKt59798() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt59798.kt"); + } + + @Test + @TestMetadata("kt60291a.kt") + public void testKt60291a() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt60291a.kt"); + } + + @Test + @TestMetadata("kt60291b.kt") + public void testKt60291b() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt60291b.kt"); + } + + @Test + @TestMetadata("kt60291c.kt") + public void testKt60291c() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt60291c.kt"); + } + + @Test + @TestMetadata("kt60447a.kt") + public void testKt60447a() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt60447a.kt"); + } + + @Test + @TestMetadata("kt60447b.kt") + public void testKt60447b() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt60447b.kt"); + } + + @Test + @TestMetadata("kt61310.kt") + public void testKt61310() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt61310.kt"); + } + + @Test + @TestMetadata("kt63733.kt") + public void testKt63733() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt63733.kt"); + } + + @Test + @TestMetadata("kt63840a.kt") + public void testKt63840a() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt63840a.kt"); + } + + @Test + @TestMetadata("kt63840b.kt") + public void testKt63840b() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt63840b.kt"); + } + + @Test + @TestMetadata("kt63840c.kt") + public void testKt63840c() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/issues/kt63840c.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter") + @TestDataPath("$PROJECT_ROOT") + public class OneParameter { + @Test + public void testAllFilesPresentInOneParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable") + @TestDataPath("$PROJECT_ROOT") + public class OneTypeVariable { + @Test + public void testAllFilesPresentInOneTypeVariable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin") + @TestDataPath("$PROJECT_ROOT") + public class OneTypeInfoOrigin { + @Test + public void testAllFilesPresentInOneTypeInfoOrigin() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("AnonymousFunctionArgumentAndBuildeeParameter.kt") + public void testAnonymousFunctionArgumentAndBuildeeParameter() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/AnonymousFunctionArgumentAndBuildeeParameter.kt"); + } + + @Test + @TestMetadata("AnonymousFunctionArgumentAndBuildeeReceiver.kt") + public void testAnonymousFunctionArgumentAndBuildeeReceiver() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/AnonymousFunctionArgumentAndBuildeeReceiver.kt"); + } + + @Test + @TestMetadata("LambdaArgumentAndBuildeeParameter.kt") + public void testLambdaArgumentAndBuildeeParameter() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/LambdaArgumentAndBuildeeParameter.kt"); + } + + @Test + @TestMetadata("LambdaArgumentAndBuildeeReceiver.kt") + public void testLambdaArgumentAndBuildeeReceiver() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/LambdaArgumentAndBuildeeReceiver.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts") + @TestDataPath("$PROJECT_ROOT") + public class SourceSinkFeedContexts { + @Test + public void testAllFilesPresentInSourceSinkFeedContexts() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ByAssignmentToALocalVariableMaterializeCase.kt") + public void testByAssignmentToALocalVariableMaterializeCase() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ByAssignmentToALocalVariableMaterializeCase.kt"); + } + + @Test + @TestMetadata("ByAssignmentToALocalVariableYieldCase.kt") + public void testByAssignmentToALocalVariableYieldCase() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ByAssignmentToALocalVariableYieldCase.kt"); + } + + @Test + @TestMetadata("InsideAnonymousObject.kt") + public void testInsideAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideAnonymousObject.kt"); + } + + @Test + @TestMetadata("InsideLocalClass.kt") + public void testInsideLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideLocalClass.kt"); + } + + @Test + @TestMetadata("InsideNestedLambda.kt") + public void testInsideNestedLambda() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideNestedLambda.kt"); + } + + @Test + @TestMetadata("ThroughDelegatedLocalVariableMaterializeCase.kt") + public void testThroughDelegatedLocalVariableMaterializeCase() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ThroughDelegatedLocalVariableMaterializeCase.kt"); + } + + @Test + @TestMetadata("ThroughDelegatedLocalVariableYieldCase.kt") + public void testThroughDelegatedLocalVariableYieldCase() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ThroughDelegatedLocalVariableYieldCase.kt"); + } + + @Test + @TestMetadata("ThroughGenericFunctionCall.kt") + public void testThroughGenericFunctionCall() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ThroughGenericFunctionCall.kt"); + } + + @Test + @TestMetadata("ThroughLocalVariable.kt") + public void testThroughLocalVariable() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ThroughLocalVariable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes") + @TestDataPath("$PROJECT_ROOT") + public class TargetTypes { + @Test + public void testAllFilesPresentInTargetTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("AnonymousObject.kt") + public void testAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/AnonymousObject.kt"); + } + + @Test + @TestMetadata("DefinitelyNonNullableTypeParameter.kt") + public void testDefinitelyNonNullableTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/DefinitelyNonNullableTypeParameter.kt"); + } + + @Test + @TestMetadata("EnclosingClass.kt") + public void testEnclosingClass() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingClass.kt"); + } + + @Test + @TestMetadata("EnclosingEnumerationEntryType.kt") + public void testEnclosingEnumerationEntryType() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingEnumerationEntryType.kt"); + } + + @Test + @TestMetadata("EnclosingEnumerationType.kt") + public void testEnclosingEnumerationType() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingEnumerationType.kt"); + } + + @Test + @TestMetadata("EnclosingExplicitlyGenericInnerClass.kt") + public void testEnclosingExplicitlyGenericInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingExplicitlyGenericInnerClass.kt"); + } + + @Test + @TestMetadata("EnclosingGenericClass.kt") + public void testEnclosingGenericClass() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingGenericClass.kt"); + } + + @Test + @TestMetadata("EnclosingImplicitlyGenericInnerClass.kt") + public void testEnclosingImplicitlyGenericInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingImplicitlyGenericInnerClass.kt"); + } + + @Test + @TestMetadata("EnclosingInnerClass.kt") + public void testEnclosingInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingInnerClass.kt"); + } + + @Test + @TestMetadata("EnumerationType.kt") + public void testEnumerationType() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnumerationType.kt"); + } + + @Test + @TestMetadata("ExplicitlyGenericInnerClass.kt") + public void testExplicitlyGenericInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/ExplicitlyGenericInnerClass.kt"); + } + + @Test + @TestMetadata("FunctionWithParameterToUnit.kt") + public void testFunctionWithParameterToUnit() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/FunctionWithParameterToUnit.kt"); + } + + @Test + @TestMetadata("FunctionWithReceiverToUnit.kt") + public void testFunctionWithReceiverToUnit() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/FunctionWithReceiverToUnit.kt"); + } + + @Test + @TestMetadata("GenericLocalClass.kt") + public void testGenericLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericLocalClass.kt"); + } + + @Test + @TestMetadata("GenericLocalClassWithLeakingTypeParameter.kt") + public void testGenericLocalClassWithLeakingTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericLocalClassWithLeakingTypeParameter.kt"); + } + + @Test + @TestMetadata("GenericWithContravariantTypeParameter.kt") + public void testGenericWithContravariantTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithContravariantTypeParameter.kt"); + } + + @Test + @TestMetadata("GenericWithCovariantTypeParameter.kt") + public void testGenericWithCovariantTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithCovariantTypeParameter.kt"); + } + + @Test + @TestMetadata("GenericWithInProjectedTypeArgument.kt") + public void testGenericWithInProjectedTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithInProjectedTypeArgument.kt"); + } + + @Test + @TestMetadata("GenericWithInvariantTypeParameter.kt") + public void testGenericWithInvariantTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithInvariantTypeParameter.kt"); + } + + @Test + @TestMetadata("GenericWithOutProjectedTypeArgument.kt") + public void testGenericWithOutProjectedTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithOutProjectedTypeArgument.kt"); + } + + @Test + @TestMetadata("GenericWithStarProjectedTypeArgument.kt") + public void testGenericWithStarProjectedTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithStarProjectedTypeArgument.kt"); + } + + @Test + @TestMetadata("ImplicitlyGenericInnerClass.kt") + public void testImplicitlyGenericInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/ImplicitlyGenericInnerClass.kt"); + } + + @Test + @TestMetadata("InnerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/InnerClass.kt"); + } + + @Test + @TestMetadata("Int.kt") + public void testInt() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/Int.kt"); + } + + @Test + @TestMetadata("IntersectionType.kt") + public void testIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/IntersectionType.kt"); + } + + @Test + @TestMetadata("LocalClass.kt") + public void testLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/LocalClass.kt"); + } + + @Test + @TestMetadata("NothingYieldCase.kt") + public void testNothingYieldCase() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NothingYieldCase.kt"); + } + + @Test + @TestMetadata("NullableNothing.kt") + public void testNullableNothing() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullableNothing.kt"); + } + + @Test + @TestMetadata("NullableNothingNullLiteralYieldCase.kt") + public void testNullableNothingNullLiteralYieldCase() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullableNothingNullLiteralYieldCase.kt"); + } + + @Test + @TestMetadata("NullableType.kt") + public void testNullableType() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullableType.kt"); + } + + @Test + @TestMetadata("NullableTypeParameter.kt") + public void testNullableTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullableTypeParameter.kt"); + } + + @Test + @TestMetadata("NullaryFunctionToUnit.kt") + public void testNullaryFunctionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullaryFunctionToUnit.kt"); + } + + @Test + @TestMetadata("NullaryFunctionWithReturnValue.kt") + public void testNullaryFunctionWithReturnValue() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullaryFunctionWithReturnValue.kt"); + } + + @Test + @TestMetadata("String.kt") + public void testString() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/String.kt"); + } + + @Test + @TestMetadata("SuspendingFunction.kt") + public void testSuspendingFunction() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/SuspendingFunction.kt"); + } + + @Test + @TestMetadata("TypeParameter.kt") + public void testTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/TypeParameter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks") + @TestDataPath("$PROJECT_ROOT") + public class TypeInfoSinks { + @Test + public void testAllFilesPresentInTypeInfoSinks() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ExtensionFunctions.kt") + public void testExtensionFunctions() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/ExtensionFunctions.kt"); + } + + @Test + @TestMetadata("ImmutableExtensionProperties.kt") + public void testImmutableExtensionProperties() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/ImmutableExtensionProperties.kt"); + } + + @Test + @TestMetadata("ImmutableProperties.kt") + public void testImmutableProperties() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/ImmutableProperties.kt"); + } + + @Test + @TestMetadata("MutableExtensionPropertiesMaterializeCase.kt") + public void testMutableExtensionPropertiesMaterializeCase() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesMaterializeCase.kt"); + } + + @Test + @TestMetadata("MutableExtensionPropertiesYieldCase.kt") + public void testMutableExtensionPropertiesYieldCase() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesYieldCase.kt"); + } + + @Test + @TestMetadata("MutablePropertiesMaterializeCase.kt") + public void testMutablePropertiesMaterializeCase() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutablePropertiesMaterializeCase.kt"); + } + + @Test + @TestMetadata("MutablePropertiesYieldCase.kt") + public void testMutablePropertiesYieldCase() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutablePropertiesYieldCase.kt"); + } + + @Test + @TestMetadata("ParametersOfBuilderArguments.kt") + public void testParametersOfBuilderArguments() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/ParametersOfBuilderArguments.kt"); + } + + @Test + @TestMetadata("ReceiversOfBuilderArguments.kt") + public void testReceiversOfBuilderArguments() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/ReceiversOfBuilderArguments.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources") + @TestDataPath("$PROJECT_ROOT") + public class TypeInfoSources { + @Test + public void testAllFilesPresentInTypeInfoSources() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ExtensionFunctions.kt") + public void testExtensionFunctions() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/ExtensionFunctions.kt"); + } + + @Test + @TestMetadata("ExtensionProperties.kt") + public void testExtensionProperties() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/ExtensionProperties.kt"); + } + + @Test + @TestMetadata("ParametersOfBuilderArguments.kt") + public void testParametersOfBuilderArguments() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/ParametersOfBuilderArguments.kt"); + } + + @Test + @TestMetadata("ReceiversOfBuilderArguments.kt") + public void testReceiversOfBuilderArguments() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/ReceiversOfBuilderArguments.kt"); + } + + @Test + @TestMetadata("ReturnTypesOfBuilderParameters.kt") + public void testReturnTypesOfBuilderParameters() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/ReturnTypesOfBuilderParameters.kt"); + } + + @Test + @TestMetadata("UnitReturnTypeOfBuilderParametersExplicitReturnCase.kt") + public void testUnitReturnTypeOfBuilderParametersExplicitReturnCase() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/UnitReturnTypeOfBuilderParametersExplicitReturnCase.kt"); + } + } + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builtinStubMethods") + @TestDataPath("$PROJECT_ROOT") + public class BuiltinStubMethods { + @Test + @TestMetadata("abstractMember.kt") + public void testAbstractMember() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/abstractMember.kt"); + } + + @Test + public void testAllFilesPresentInBuiltinStubMethods() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("Collection.kt") + public void testCollection() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/Collection.kt"); + } + + @Test + @TestMetadata("customReadOnlyIterator.kt") + public void testCustomReadOnlyIterator() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/customReadOnlyIterator.kt"); + } + + @Test + @TestMetadata("delegationToArrayList.kt") + public void testDelegationToArrayList() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt"); + } + + @Test + @TestMetadata("immutableRemove.kt") + public void testImmutableRemove() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/immutableRemove.kt"); + } + + @Test + @TestMetadata("implementationInTrait.kt") + public void testImplementationInTrait() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/implementationInTrait.kt"); + } + + @Test + @TestMetadata("inheritedImplementations.kt") + public void testInheritedImplementations() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/inheritedImplementations.kt"); + } + + @Test + @TestMetadata("int2IntMap.kt") + public void testInt2IntMap() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/int2IntMap.kt"); + } + + @Test + @TestMetadata("Iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/Iterator.kt"); + } + + @Test + @TestMetadata("IteratorWithRemove.kt") + public void testIteratorWithRemove() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/IteratorWithRemove.kt"); + } + + @Test + @TestMetadata("List.kt") + public void testList() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/List.kt"); + } + + @Test + @TestMetadata("ListIterator.kt") + public void testListIterator() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/ListIterator.kt"); + } + + @Test + @TestMetadata("ListWithAllImplementations.kt") + public void testListWithAllImplementations() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/ListWithAllImplementations.kt"); + } + + @Test + @TestMetadata("ListWithAllInheritedImplementations.kt") + public void testListWithAllInheritedImplementations() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/ListWithAllInheritedImplementations.kt"); + } + + @Test + @TestMetadata("manyTypeParametersWithUpperBounds.kt") + public void testManyTypeParametersWithUpperBounds() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt"); + } + + @Test + @TestMetadata("Map.kt") + public void testMap() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/Map.kt"); + } + + @Test + @TestMetadata("MapEntry.kt") + public void testMapEntry() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/MapEntry.kt"); + } + + @Test + @TestMetadata("MapEntryWithSetValue.kt") + public void testMapEntryWithSetValue() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/MapEntryWithSetValue.kt"); + } + + @Test + @TestMetadata("MapWithAllImplementations.kt") + public void testMapWithAllImplementations() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/MapWithAllImplementations.kt"); + } + + @Test + @TestMetadata("nonTrivialSubstitution.kt") + public void testNonTrivialSubstitution() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/nonTrivialSubstitution.kt"); + } + + @Test + @TestMetadata("nonTrivialUpperBound.kt") + public void testNonTrivialUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/nonTrivialUpperBound.kt"); + } + + @Test + @TestMetadata("substitutedIterable.kt") + public void testSubstitutedIterable() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/substitutedIterable.kt"); + } + + @Test + @TestMetadata("SubstitutedList.kt") + public void testSubstitutedList() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/SubstitutedList.kt"); + } + + @Test + @TestMetadata("substitutedListWithExtraSuperInterface.kt") + public void testSubstitutedListWithExtraSuperInterface() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/substitutedListWithExtraSuperInterface.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs") + @TestDataPath("$PROJECT_ROOT") + public class BridgesForStubs { + @Test + public void testAllFilesPresentInBridgesForStubs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("derivedEmptyListAdd.kt") + public void testDerivedEmptyListAdd() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/derivedEmptyListAdd.kt"); + } + + @Test + @TestMetadata("derivedEmptyListSeveralModulesAdd.kt") + public void testDerivedEmptyListSeveralModulesAdd() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/derivedEmptyListSeveralModulesAdd.kt"); + } + + @Test + @TestMetadata("derivedEmptyStringListAdd.kt") + public void testDerivedEmptyStringListAdd() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/derivedEmptyStringListAdd.kt"); + } + + @Test + @TestMetadata("emptyListAdd.kt") + public void testEmptyListAdd() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/emptyListAdd.kt"); + } + + @Test + @TestMetadata("emptyListAddWithIndex.kt") + public void testEmptyListAddWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/emptyListAddWithIndex.kt"); + } + + @Test + @TestMetadata("emptyListSet.kt") + public void testEmptyListSet() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/emptyListSet.kt"); + } + + @Test + @TestMetadata("emptyStringListAdd.kt") + public void testEmptyStringListAdd() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/emptyStringListAdd.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses") + @TestDataPath("$PROJECT_ROOT") + public class ExtendJavaClasses { + @Test + @TestMetadata("abstractList.kt") + public void testAbstractList() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractList.kt"); + } + + @Test + @TestMetadata("abstractMap.kt") + public void testAbstractMap() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractMap.kt"); + } + + @Test + @TestMetadata("abstractSet.kt") + public void testAbstractSet() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt"); + } + + @Test + public void testAllFilesPresentInExtendJavaClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayList.kt") + public void testArrayList() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt"); + } + + @Test + @TestMetadata("charSequenceGetOverriddenInJavaSuperClass.kt") + public void testCharSequenceGetOverriddenInJavaSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/charSequenceGetOverriddenInJavaSuperClass.kt"); + } + + @Test + @TestMetadata("extendArrayListThroughKotlin.kt") + public void testExtendArrayListThroughKotlin() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt"); + } + + @Test + @TestMetadata("hashMap.kt") + public void testHashMap() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt"); + } + + @Test + @TestMetadata("hashSet.kt") + public void testHashSet() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt"); + } + + @Test + @TestMetadata("kt61548.kt") + public void testKt61548() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/kt61548.kt"); + } + + @Test + @TestMetadata("mapEntry.kt") + public void testMapEntry() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/mapEntry.kt"); + } + + @Test + @TestMetadata("numberMixedHierarchy.kt") + public void testNumberMixedHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/numberMixedHierarchy.kt"); + } + + @Test + @TestMetadata("overrideAbstractSetMethod.kt") + public void testOverrideAbstractSetMethod() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/overrideAbstractSetMethod.kt"); + } + + @Test + @TestMetadata("removeAtBridgeToJavaClass.kt") + public void testRemoveAtBridgeToJavaClass() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/removeAtBridgeToJavaClass.kt"); + } + + @Test + @TestMetadata("removeAtBridgeToJavaDefault.kt") + public void testRemoveAtBridgeToJavaDefault() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/removeAtBridgeToJavaDefault.kt"); + } + + @Test + @TestMetadata("removeAtBridgeToJavaSuperClass.kt") + public void testRemoveAtBridgeToJavaSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/removeAtBridgeToJavaSuperClass.kt"); + } + + @Test + @TestMetadata("superCallToFakeRemoveAt.kt") + public void testSuperCallToFakeRemoveAt() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToFakeRemoveAt.kt"); + } + + @Test + @TestMetadata("superCallToRemoveAt.kt") + public void testSuperCallToRemoveAt() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAt.kt"); + } + + @Test + @TestMetadata("superCallToRemoveAtInJavaDefault.kt") + public void testSuperCallToRemoveAtInJavaDefault() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAtInJavaDefault.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault") + @TestDataPath("$PROJECT_ROOT") + public class MapGetOrDefault { + @Test + public void testAllFilesPresentInMapGetOrDefault() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("noTypeSafeBridge.kt") + public void testNoTypeSafeBridge() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault/noTypeSafeBridge.kt"); + } + + @Test + @TestMetadata("typeSafeBridge.kt") + public void testTypeSafeBridge() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault/typeSafeBridge.kt"); + } + + @Test + @TestMetadata("typeSafeBridgeNotNullAny.kt") + public void testTypeSafeBridgeNotNullAny() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault/typeSafeBridgeNotNullAny.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/builtinStubMethods/mapRemove") + @TestDataPath("$PROJECT_ROOT") + public class MapRemove { + @Test + public void testAllFilesPresentInMapRemove() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/mapRemove"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("noDefaultImpls.kt") + public void testNoDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/mapRemove/noDefaultImpls.kt"); + } + + @Test + @TestMetadata("readOnlyMap.kt") + public void testReadOnlyMap() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/mapRemove/readOnlyMap.kt"); + } + + @Test + @TestMetadata("typeSafeBridge.kt") + public void testTypeSafeBridge() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/mapRemove/typeSafeBridge.kt"); + } + + @Test + @TestMetadata("typeSafeBridgeNotNullAny.kt") + public void testTypeSafeBridgeNotNullAny() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/mapRemove/typeSafeBridgeNotNullAny.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/callableReference") + @TestDataPath("$PROJECT_ROOT") + public class CallableReference { + @Test + public void testAllFilesPresentInCallableReference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayConstructor.kt") + public void testArrayConstructor() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/arrayConstructor.kt"); + } + + @Test + @TestMetadata("arrayConstructorArgument.kt") + public void testArrayConstructorArgument() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/arrayConstructorArgument.kt"); + } + + @Test + @TestMetadata("arrayOf.kt") + public void testArrayOf() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/arrayOf.kt"); + } + + @Test + @TestMetadata("arrayOfNulls.kt") + public void testArrayOfNulls() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/arrayOfNulls.kt"); + } + + @Test + @TestMetadata("builtinFunctionReferenceOwner.kt") + public void testBuiltinFunctionReferenceOwner() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/builtinFunctionReferenceOwner.kt"); + } + + @Test + @TestMetadata("callableReferenceOfCompanionConst.kt") + public void testCallableReferenceOfCompanionConst() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfCompanionConst.kt"); + } + + @Test + @TestMetadata("callableReferenceOfCompanionMethod.kt") + public void testCallableReferenceOfCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfCompanionMethod.kt"); + } + + @Test + @TestMetadata("callableReferenceOfCompanionProperty.kt") + public void testCallableReferenceOfCompanionProperty() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfCompanionProperty.kt"); + } + + @Test + @TestMetadata("callableReferenceOfJavaNestedClass.kt") + public void testCallableReferenceOfJavaNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfJavaNestedClass.kt"); + } + + @Test + @TestMetadata("callableReferenceOfKotlinNestedClass.kt") + public void testCallableReferenceOfKotlinNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfKotlinNestedClass.kt"); + } + + @Test + @TestMetadata("callableReferenceOfNestedClass.kt") + public void testCallableReferenceOfNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfNestedClass.kt"); + } + + @Test + @TestMetadata("callableReferenceOfObjectMethod.kt") + public void testCallableReferenceOfObjectMethod() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfObjectMethod.kt"); + } + + @Test + @TestMetadata("callableReferenceOfStaticField.kt") + public void testCallableReferenceOfStaticField() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfStaticField.kt"); + } + + @Test + @TestMetadata("callableReferenceOfStaticMethod.kt") + public void testCallableReferenceOfStaticMethod() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfStaticMethod.kt"); + } + + @Test + @TestMetadata("charArrayOf.kt") + public void testCharArrayOf() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/charArrayOf.kt"); + } + + @Test + @TestMetadata("classesAreSynthetic.kt") + public void testClassesAreSynthetic() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/classesAreSynthetic.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/constructor.kt"); + } + + @Test + @TestMetadata("genericConstructorReference.kt") + public void testGenericConstructorReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt"); + } + + @Test + @TestMetadata("genericLocalClassConstructorReference.kt") + public void testGenericLocalClassConstructorReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.kt"); + } + + @Test + @TestMetadata("inlineArrayConstructors.kt") + public void testInlineArrayConstructors() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/inlineArrayConstructors.kt"); + } + + @Test + @TestMetadata("javaField.kt") + public void testJavaField() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/javaField.kt"); + } + + @Test + @TestMetadata("kt16412.kt") + public void testKt16412() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt16412.kt"); + } + + @Test + @TestMetadata("kt16752.kt") + public void testKt16752() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt16752.kt"); + } + + @Test + @TestMetadata("kt21014.kt") + public void testKt21014() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt21014.kt"); + } + + @Test + @TestMetadata("kt21092a.kt") + public void testKt21092a() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt21092a.kt"); + } + + @Test + @TestMetadata("kt21092b.kt") + public void testKt21092b() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt21092b.kt"); + } + + @Test + @TestMetadata("kt37604.kt") + public void testKt37604() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt37604.kt"); + } + + @Test + @TestMetadata("kt44483.kt") + public void testKt44483() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt44483.kt"); + } + + @Test + @TestMetadata("kt46902.kt") + public void testKt46902() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt46902.kt"); + } + + @Test + @TestMetadata("kt47988.kt") + public void testKt47988() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt47988.kt"); + } + + @Test + @TestMetadata("kt49526.kt") + public void testKt49526() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt49526.kt"); + } + + @Test + @TestMetadata("kt49526_sam.kt") + public void testKt49526_sam() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt49526_sam.kt"); + } + + @Test + @TestMetadata("kt49526a.kt") + public void testKt49526a() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt49526a.kt"); + } + + @Test + @TestMetadata("kt49526b.kt") + public void testKt49526b() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt49526b.kt"); + } + + @Test + @TestMetadata("kt50172.kt") + public void testKt50172() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt50172.kt"); + } + + @Test + @TestMetadata("kt51844.kt") + public void testKt51844() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt51844.kt"); + } + + @Test + @TestMetadata("kt52270.kt") + public void testKt52270() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt52270.kt"); + } + + @Test + @TestMetadata("kt55138.kt") + public void testKt55138() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt55138.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/nested.kt"); + } + + @Test + @TestMetadata("optimizedSuperclasses_after.kt") + public void testOptimizedSuperclasses_after() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/optimizedSuperclasses_after.kt"); + } + + @Test + @TestMetadata("optimizedSuperclasses_before.kt") + public void testOptimizedSuperclasses_before() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/optimizedSuperclasses_before.kt"); + } + + @Test + @TestMetadata("publicFinalField.kt") + public void testPublicFinalField() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/publicFinalField.kt"); + } + + @Test + @TestMetadata("publicMutableField.kt") + public void testPublicMutableField() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/publicMutableField.kt"); + } + + @Test + @TestMetadata("referenceToGenericSyntheticProperty.kt") + public void testReferenceToGenericSyntheticProperty() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/referenceToGenericSyntheticProperty.kt"); + } + + @Test + @TestMetadata("referenceToTypealiasConstructorInLet.kt") + public void testReferenceToTypealiasConstructorInLet() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/referenceToTypealiasConstructorInLet.kt"); + } + + @Test + @TestMetadata("staticMethod.kt") + public void testStaticMethod() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/staticMethod.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/callableReference/adaptedReferences") + @TestDataPath("$PROJECT_ROOT") + public class AdaptedReferences { + @Test + @TestMetadata("adaptedArrayOf.kt") + public void testAdaptedArrayOf() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/adaptedArrayOf.kt"); + } + + @Test + @TestMetadata("adaptedVarargFunImportedFromObject.kt") + public void testAdaptedVarargFunImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/adaptedVarargFunImportedFromObject.kt"); + } + + @Test + public void testAllFilesPresentInAdaptedReferences() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/adaptedReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bothWithCoercionToUnit.kt") + public void testBothWithCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/bothWithCoercionToUnit.kt"); + } + + @Test + @TestMetadata("boundReferences.kt") + public void testBoundReferences() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/boundReferences.kt"); + } + + @Test + @TestMetadata("defaultAfterVararg.kt") + public void testDefaultAfterVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/defaultAfterVararg.kt"); + } + + @Test + @TestMetadata("defaultWithGenericExpectedType.kt") + public void testDefaultWithGenericExpectedType() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/defaultWithGenericExpectedType.kt"); + } + + @Test + @TestMetadata("emptyVarargAndDefault.kt") + public void testEmptyVarargAndDefault() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/emptyVarargAndDefault.kt"); + } + + @Test + @TestMetadata("inlineBound.kt") + public void testInlineBound() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/inlineBound.kt"); + } + + @Test + @TestMetadata("inlineDefault.kt") + public void testInlineDefault() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/inlineDefault.kt"); + } + + @Test + @TestMetadata("inlineVararg.kt") + public void testInlineVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/inlineVararg.kt"); + } + + @Test + @TestMetadata("inlineVarargAndDefault.kt") + public void testInlineVarargAndDefault() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/inlineVarargAndDefault.kt"); + } + + @Test + @TestMetadata("inlineVarargInts.kt") + public void testInlineVarargInts() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/inlineVarargInts.kt"); + } + + @Test + @TestMetadata("innerConstructorWithVararg.kt") + public void testInnerConstructorWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/innerConstructorWithVararg.kt"); + } + + @Test + @TestMetadata("jvmStatic.kt") + public void testJvmStatic() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/jvmStatic.kt"); + } + + @Test + @TestMetadata("largeVararg.kt") + public void testLargeVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/largeVararg.kt"); + } + + @Test + @TestMetadata("localFunctionWithDefault.kt") + public void testLocalFunctionWithDefault() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/localFunctionWithDefault.kt"); + } + + @Test + @TestMetadata("manyDefaultsAndVararg.kt") + public void testManyDefaultsAndVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/manyDefaultsAndVararg.kt"); + } + + @Test + @TestMetadata("nestedClassConstructorWithDefault.kt") + public void testNestedClassConstructorWithDefault() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/nestedClassConstructorWithDefault.kt"); + } + + @Test + @TestMetadata("noAdaptedReferencesIfNoOptimizedReferencesEnabled.kt") + public void testNoAdaptedReferencesIfNoOptimizedReferencesEnabled() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/noAdaptedReferencesIfNoOptimizedReferencesEnabled.kt"); + } + + @Test + @TestMetadata("noNameClashForReferencesToSameFunction.kt") + public void testNoNameClashForReferencesToSameFunction() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/noNameClashForReferencesToSameFunction.kt"); + } + + @Test + @TestMetadata("noReflectionForAdaptedCallableReferences.kt") + public void testNoReflectionForAdaptedCallableReferences() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/noReflectionForAdaptedCallableReferences.kt"); + } + + @Test + @TestMetadata("noReflectionForAdaptedCallableReferencesWithSuspendConversion.kt") + public void testNoReflectionForAdaptedCallableReferencesWithSuspendConversion() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/noReflectionForAdaptedCallableReferencesWithSuspendConversion.kt"); + } + + @Test + @TestMetadata("referenceToVarargWithDefaults.kt") + public void testReferenceToVarargWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/referenceToVarargWithDefaults.kt"); + } + + @Test + @TestMetadata("reflectionForVarargAsArray.kt") + public void testReflectionForVarargAsArray() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/reflectionForVarargAsArray.kt"); + } + + @Test + @TestMetadata("simpleDefaultArgument.kt") + public void testSimpleDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/simpleDefaultArgument.kt"); + } + + @Test + @TestMetadata("simpleEmptyVararg.kt") + public void testSimpleEmptyVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/simpleEmptyVararg.kt"); + } + + @Test + @TestMetadata("suspendUnitConversion.kt") + public void testSuspendUnitConversion() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendUnitConversion.kt"); + } + + @Test + @TestMetadata("toStringNoReflect.kt") + public void testToStringNoReflect() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/toStringNoReflect.kt"); + } + + @Test + @TestMetadata("unboundReferences.kt") + public void testUnboundReferences() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/unboundReferences.kt"); + } + + @Test + @TestMetadata("unitCoercionOverloads.kt") + public void testUnitCoercionOverloads() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/unitCoercionOverloads.kt"); + } + + @Test + @TestMetadata("varargFromBaseClass.kt") + public void testVarargFromBaseClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/varargFromBaseClass.kt"); + } + + @Test + @TestMetadata("varargOverloads.kt") + public void testVarargOverloads() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/varargOverloads.kt"); + } + + @Test + @TestMetadata("varargViewedAsArray.kt") + public void testVarargViewedAsArray() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/varargViewedAsArray.kt"); + } + + @Test + @TestMetadata("varargViewedAsPrimitiveArray.kt") + public void testVarargViewedAsPrimitiveArray() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/varargViewedAsPrimitiveArray.kt"); + } + + @Test + @TestMetadata("varargWithDefaultValue.kt") + public void testVarargWithDefaultValue() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/varargWithDefaultValue.kt"); + } + + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/withReceiver.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion") + @TestDataPath("$PROJECT_ROOT") + public class SuspendConversion { + @Test + @TestMetadata("adaptedWithCoercionToUnit.kt") + public void testAdaptedWithCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/adaptedWithCoercionToUnit.kt"); + } + + @Test + @TestMetadata("adaptedWithDefaultArguments.kt") + public void testAdaptedWithDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/adaptedWithDefaultArguments.kt"); + } + + @Test + @TestMetadata("adaptedWithVarargs.kt") + public void testAdaptedWithVarargs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/adaptedWithVarargs.kt"); + } + + @Test + public void testAllFilesPresentInSuspendConversion() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bound.kt") + public void testBound() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/bound.kt"); + } + + @Test + @TestMetadata("boundExtension.kt") + public void testBoundExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/boundExtension.kt"); + } + + @Test + @TestMetadata("crossInline.kt") + public void testCrossInline() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/crossInline.kt"); + } + + @Test + @TestMetadata("inlineAdaptedWithCoercionToUnit.kt") + public void testInlineAdaptedWithCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineAdaptedWithCoercionToUnit.kt"); + } + + @Test + @TestMetadata("inlineAdaptedWithDefaultArguments.kt") + public void testInlineAdaptedWithDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineAdaptedWithDefaultArguments.kt"); + } + + @Test + @TestMetadata("inlineAdaptedWithVarargs.kt") + public void testInlineAdaptedWithVarargs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineAdaptedWithVarargs.kt"); + } + + @Test + @TestMetadata("inlineBound.kt") + public void testInlineBound() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineBound.kt"); + } + + @Test + @TestMetadata("inlineSimple.kt") + public void testInlineSimple() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineSimple.kt"); + } + + @Test + @TestMetadata("inlineWithParameters.kt") + public void testInlineWithParameters() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineWithParameters.kt"); + } + + @Test + @TestMetadata("isAs.kt") + public void testIsAs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/isAs.kt"); + } + + @Test + @TestMetadata("nullableParameter.kt") + public void testNullableParameter() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/nullableParameter.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/simple.kt"); + } + + @Test + @TestMetadata("withParameters.kt") + public void testWithParameters() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/withParameters.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/callableReference/bound") + @TestDataPath("$PROJECT_ROOT") + public class Bound { + @Test + @TestMetadata("adapted.kt") + public void testAdapted() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/adapted.kt"); + } + + @Test + public void testAllFilesPresentInBound() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("array.kt") + public void testArray() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/array.kt"); + } + + @Test + @TestMetadata("arrayConstructorArgument.kt") + public void testArrayConstructorArgument() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/arrayConstructorArgument.kt"); + } + + @Test + @TestMetadata("arrayGetIntrinsic.kt") + public void testArrayGetIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt"); + } + + @Test + @TestMetadata("boundJvmFieldInInterfaceCompanion.kt") + public void testBoundJvmFieldInInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/boundJvmFieldInInterfaceCompanion.kt"); + } + + @Test + @TestMetadata("boundReferenceToOverloadedFunction.kt") + public void testBoundReferenceToOverloadedFunction() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/boundReferenceToOverloadedFunction.kt"); + } + + @Test + @TestMetadata("captureVarInInitBlock.kt") + public void testCaptureVarInInitBlock() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInInitBlock.kt"); + } + + @Test + @TestMetadata("captureVarInPropertyInit.kt") + public void testCaptureVarInPropertyInit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInPropertyInit.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/coercionToUnit.kt"); + } + + @Test + @TestMetadata("companionObjectReceiver.kt") + public void testCompanionObjectReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/companionObjectReceiver.kt"); + } + + @Test + @TestMetadata("companionObjectReceiverInheritsFromOuter.kt") + public void testCompanionObjectReceiverInheritsFromOuter() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/companionObjectReceiverInheritsFromOuter.kt"); + } + + @Test + @TestMetadata("dontShareReceiver.kt") + public void testDontShareReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/dontShareReceiver.kt"); + } + + @Test + @TestMetadata("emptyLHS.kt") + public void testEmptyLHS() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/emptyLHS.kt"); + } + + @Test + @TestMetadata("enumEntryMember.kt") + public void testEnumEntryMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/enumEntryMember.kt"); + } + + @Test + @TestMetadata("genericBoundPropertyAsCrossinline.kt") + public void testGenericBoundPropertyAsCrossinline() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/genericBoundPropertyAsCrossinline.kt"); + } + + @Test + @TestMetadata("genericValOnLHS.kt") + public void testGenericValOnLHS() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/genericValOnLHS.kt"); + } + + @Test + @TestMetadata("javaField.kt") + public void testJavaField() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/javaField.kt"); + } + + @Test + @TestMetadata("kCallableNameIntrinsic.kt") + public void testKCallableNameIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kCallableNameIntrinsic.kt"); + } + + @Test + @TestMetadata("kt12738.kt") + public void testKt12738() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt12738.kt"); + } + + @Test + @TestMetadata("kt15446.kt") + public void testKt15446() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt15446.kt"); + } + + @Test + @TestMetadata("kt44636_localExtension.kt") + public void testKt44636_localExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.kt"); + } + + @Test + @TestMetadata("localUnitFunction.kt") + public void testLocalUnitFunction() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/localUnitFunction.kt"); + } + + @Test + @TestMetadata("multiCase.kt") + public void testMultiCase() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/multiCase.kt"); + } + + @Test + @TestMetadata("nullReceiver.kt") + public void testNullReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/nullReceiver.kt"); + } + + @Test + @TestMetadata("objectReceiver.kt") + public void testObjectReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/objectReceiver.kt"); + } + + @Test + @TestMetadata("primitiveReceiver.kt") + public void testPrimitiveReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/primitiveReceiver.kt"); + } + + @Test + @TestMetadata("receiverEvaluatedOnce.kt") + public void testReceiverEvaluatedOnce() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/receiverEvaluatedOnce.kt"); + } + + @Test + @TestMetadata("referenceToGetSetMethodsFromVararg.kt") + public void testReferenceToGetSetMethodsFromVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/referenceToGetSetMethodsFromVararg.kt"); + } + + @Test + @TestMetadata("simpleFunction.kt") + public void testSimpleFunction() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/simpleFunction.kt"); + } + + @Test + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/simpleProperty.kt"); + } + + @Test + @TestMetadata("smartCastForExtensionReceiver.kt") + public void testSmartCastForExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/smartCastForExtensionReceiver.kt"); + } + + @Test + @TestMetadata("syntheticExtensionOnLHS.kt") + public void testSyntheticExtensionOnLHS() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/syntheticExtensionOnLHS.kt"); + } + + @Test + @TestMetadata("typeAliasObjectBoundReference.kt") + public void testTypeAliasObjectBoundReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/typeAliasObjectBoundReference.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/callableReference/bound/equals") + @TestDataPath("$PROJECT_ROOT") + public class Equals { + @Test + public void testAllFilesPresentInEquals() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/bound/equals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("nullableReceiverInEquals.kt") + public void testNullableReceiverInEquals() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.kt"); + } + + @Test + @TestMetadata("receiverInEquals.kt") + public void testReceiverInEquals() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); + } + + @Test + @TestMetadata("reflectionReference.kt") + public void testReflectionReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/callableReference/equality") + @TestDataPath("$PROJECT_ROOT") + public class Equality { + @Test + public void testAllFilesPresentInEquality() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("capturedDefaults.kt") + public void testCapturedDefaults() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/capturedDefaults.kt"); + } + + @Test + @TestMetadata("capturedVararg.kt") + public void testCapturedVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/capturedVararg.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/coercionToUnit.kt"); + } + + @Test + @TestMetadata("coercionToUnitWithDefaults.kt") + public void testCoercionToUnitWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/coercionToUnitWithDefaults.kt"); + } + + @Test + @TestMetadata("coercionToUnitWithVararg.kt") + public void testCoercionToUnitWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/coercionToUnitWithVararg.kt"); + } + + @Test + @TestMetadata("conversionCombinations.kt") + public void testConversionCombinations() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/conversionCombinations.kt"); + } + + @Test + @TestMetadata("extensionReceiverVsDefault.kt") + public void testExtensionReceiverVsDefault() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/extensionReceiverVsDefault.kt"); + } + + @Test + @TestMetadata("noCoercionToUnitIfFunctionAlreadyReturnsUnit.kt") + public void testNoCoercionToUnitIfFunctionAlreadyReturnsUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/noCoercionToUnitIfFunctionAlreadyReturnsUnit.kt"); + } + + @Test + @TestMetadata("simpleEquality.kt") + public void testSimpleEquality() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/simpleEquality.kt"); + } + + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/suspendConversion.kt"); + } + + @Test + @TestMetadata("varargAsArrayMemberOrExtension.kt") + public void testVarargAsArrayMemberOrExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/varargAsArrayMemberOrExtension.kt"); + } + + @Test + @TestMetadata("varargAsArrayWithDefaults.kt") + public void testVarargAsArrayWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/varargAsArrayWithDefaults.kt"); + } + + @Test + @TestMetadata("varargWithDefaults.kt") + public void testVarargWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/varargWithDefaults.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/callableReference/funInterfaceConstructor") + @TestDataPath("$PROJECT_ROOT") + public class FunInterfaceConstructor { + @Test + public void testAllFilesPresentInFunInterfaceConstructor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/funInterfaceConstructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("funInterfaceConstructedObjectsEquality.kt") + public void testFunInterfaceConstructedObjectsEquality() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructedObjectsEquality.kt"); + } + + @Test + @TestMetadata("funInterfaceConstructor.kt") + public void testFunInterfaceConstructor() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructor.kt"); + } + + @Test + @TestMetadata("funInterfaceConstructorEquality.kt") + public void testFunInterfaceConstructorEquality() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorEquality.kt"); + } + + @Test + @TestMetadata("funInterfaceConstructorIsKFunction.kt") + public void testFunInterfaceConstructorIsKFunction() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorIsKFunction.kt"); + } + + @Test + @TestMetadata("funInterfaceConstructorOfImplicitKFunctionType.kt") + public void testFunInterfaceConstructorOfImplicitKFunctionType() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorOfImplicitKFunctionType.kt"); + } + + @Test + @TestMetadata("funInterfaceConstructorThrowsNpe.kt") + public void testFunInterfaceConstructorThrowsNpe() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorThrowsNpe.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/callableReference/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + @TestMetadata("abstractClassMember.kt") + public void testAbstractClassMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/abstractClassMember.kt"); + } + + @Test + public void testAllFilesPresentInFunction() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("argumentTypes.kt") + public void testArgumentTypes() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/argumentTypes.kt"); + } + + @Test + @TestMetadata("argumentTypesNoinline.kt") + public void testArgumentTypesNoinline() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/argumentTypesNoinline.kt"); + } + + @Test + @TestMetadata("booleanNotIntrinsic.kt") + public void testBooleanNotIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/booleanNotIntrinsic.kt"); + } + + @Test + @TestMetadata("classMemberFromClass.kt") + public void testClassMemberFromClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromClass.kt"); + } + + @Test + @TestMetadata("classMemberFromCompanionObject.kt") + public void testClassMemberFromCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromCompanionObject.kt"); + } + + @Test + @TestMetadata("classMemberFromExtension.kt") + public void testClassMemberFromExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromExtension.kt"); + } + + @Test + @TestMetadata("classMemberFromTopLevelStringNoArgs.kt") + public void testClassMemberFromTopLevelStringNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromTopLevelStringNoArgs.kt"); + } + + @Test + @TestMetadata("classMemberFromTopLevelStringOneStringArg.kt") + public void testClassMemberFromTopLevelStringOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromTopLevelStringOneStringArg.kt"); + } + + @Test + @TestMetadata("classMemberFromTopLevelUnitNoArgs.kt") + public void testClassMemberFromTopLevelUnitNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromTopLevelUnitNoArgs.kt"); + } + + @Test + @TestMetadata("classMemberFromTopLevelUnitOneStringArg.kt") + public void testClassMemberFromTopLevelUnitOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromTopLevelUnitOneStringArg.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/coercionToUnit.kt"); + } + + @Test + @TestMetadata("constructorFromTopLevelNoArgs.kt") + public void testConstructorFromTopLevelNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/constructorFromTopLevelNoArgs.kt"); + } + + @Test + @TestMetadata("constructorFromTopLevelOneStringArg.kt") + public void testConstructorFromTopLevelOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/constructorFromTopLevelOneStringArg.kt"); + } + + @Test + @TestMetadata("dispatchReceiverType.kt") + public void testDispatchReceiverType() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/dispatchReceiverType.kt"); + } + + @Test + @TestMetadata("enumValueOfMethod.kt") + public void testEnumValueOfMethod() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/enumValueOfMethod.kt"); + } + + @Test + @TestMetadata("equalsIntrinsic.kt") + public void testEqualsIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/equalsIntrinsic.kt"); + } + + @Test + @TestMetadata("extensionFromClass.kt") + public void testExtensionFromClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromClass.kt"); + } + + @Test + @TestMetadata("extensionFromExtension.kt") + public void testExtensionFromExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromExtension.kt"); + } + + @Test + @TestMetadata("extensionFromTopLevelStringNoArgs.kt") + public void testExtensionFromTopLevelStringNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromTopLevelStringNoArgs.kt"); + } + + @Test + @TestMetadata("extensionFromTopLevelStringOneStringArg.kt") + public void testExtensionFromTopLevelStringOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromTopLevelStringOneStringArg.kt"); + } + + @Test + @TestMetadata("extensionFromTopLevelUnitNoArgs.kt") + public void testExtensionFromTopLevelUnitNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromTopLevelUnitNoArgs.kt"); + } + + @Test + @TestMetadata("extensionFromTopLevelUnitOneStringArg.kt") + public void testExtensionFromTopLevelUnitOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromTopLevelUnitOneStringArg.kt"); + } + + @Test + @TestMetadata("extensionProperty.kt") + public void testExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionProperty.kt"); + } + + @Test + @TestMetadata("genericCallableReferenceArguments.kt") + public void testGenericCallableReferenceArguments() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt"); + } + + @Test + @TestMetadata("genericCallableReferenceWithReifiedTypeParam.kt") + public void testGenericCallableReferenceWithReifiedTypeParam() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceWithReifiedTypeParam.kt"); + } + + @Test + @TestMetadata("genericCallableReferencesWithNullableTypes.kt") + public void testGenericCallableReferencesWithNullableTypes() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferencesWithNullableTypes.kt"); + } + + @Test + @TestMetadata("genericCallableReferencesWithOverload.kt") + public void testGenericCallableReferencesWithOverload() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferencesWithOverload.kt"); + } + + @Test + @TestMetadata("genericMember.kt") + public void testGenericMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericMember.kt"); + } + + @Test + @TestMetadata("genericWithDependentType.kt") + public void testGenericWithDependentType() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericWithDependentType.kt"); + } + + @Test + @TestMetadata("getArityViaFunctionImpl.kt") + public void testGetArityViaFunctionImpl() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/getArityViaFunctionImpl.kt"); + } + + @Test + @TestMetadata("innerClassConstructorWithTwoReceivers.kt") + public void testInnerClassConstructorWithTwoReceivers() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/innerClassConstructorWithTwoReceivers.kt"); + } + + @Test + @TestMetadata("innerConstructorFromClass.kt") + public void testInnerConstructorFromClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/innerConstructorFromClass.kt"); + } + + @Test + @TestMetadata("innerConstructorFromExtension.kt") + public void testInnerConstructorFromExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/innerConstructorFromExtension.kt"); + } + + @Test + @TestMetadata("innerConstructorFromTopLevelNoArgs.kt") + public void testInnerConstructorFromTopLevelNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/innerConstructorFromTopLevelNoArgs.kt"); + } + + @Test + @TestMetadata("innerConstructorFromTopLevelOneStringArg.kt") + public void testInnerConstructorFromTopLevelOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/innerConstructorFromTopLevelOneStringArg.kt"); + } + + @Test + @TestMetadata("javaCollectionsStaticMethod.kt") + public void testJavaCollectionsStaticMethod() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/javaCollectionsStaticMethod.kt"); + } + + @Test + @TestMetadata("kt21787.kt") + public void testKt21787() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/kt21787.kt"); + } + + @Test + @TestMetadata("kt32462.kt") + public void testKt32462() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/kt32462.kt"); + } + + @Test + @TestMetadata("kt47741.kt") + public void testKt47741() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/kt47741.kt"); + } + + @Test + @TestMetadata("kt53794_protectedJavaMember.kt") + public void testKt53794_protectedJavaMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/kt53794_protectedJavaMember.kt"); + } + + @Test + @TestMetadata("nestedConstructorFromClass.kt") + public void testNestedConstructorFromClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/nestedConstructorFromClass.kt"); + } + + @Test + @TestMetadata("nestedConstructorFromTopLevelNoArgs.kt") + public void testNestedConstructorFromTopLevelNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/nestedConstructorFromTopLevelNoArgs.kt"); + } + + @Test + @TestMetadata("nestedConstructorFromTopLevelOneStringArg.kt") + public void testNestedConstructorFromTopLevelOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/nestedConstructorFromTopLevelOneStringArg.kt"); + } + + @Test + @TestMetadata("newArray.kt") + public void testNewArray() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/newArray.kt"); + } + + @Test + @TestMetadata("overloadedFun.kt") + public void testOverloadedFun() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/overloadedFun.kt"); + } + + @Test + @TestMetadata("overloadedFunVsVal.kt") + public void testOverloadedFunVsVal() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/overloadedFunVsVal.kt"); + } + + @Test + @TestMetadata("privateClassMember.kt") + public void testPrivateClassMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/privateClassMember.kt"); + } + + @Test + @TestMetadata("referenceToCompanionMember.kt") + public void testReferenceToCompanionMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/referenceToCompanionMember.kt"); + } + + @Test + @TestMetadata("sortListOfStrings.kt") + public void testSortListOfStrings() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/sortListOfStrings.kt"); + } + + @Test + @TestMetadata("specialCalls.kt") + public void testSpecialCalls() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/specialCalls.kt"); + } + + @Test + @TestMetadata("staticFunctionReference.kt") + public void testStaticFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/staticFunctionReference.kt"); + } + + @Test + @TestMetadata("topLevelFromClass.kt") + public void testTopLevelFromClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromClass.kt"); + } + + @Test + @TestMetadata("topLevelFromExtension.kt") + public void testTopLevelFromExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromExtension.kt"); + } + + @Test + @TestMetadata("topLevelFromTopLevelStringNoArgs.kt") + public void testTopLevelFromTopLevelStringNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromTopLevelStringNoArgs.kt"); + } + + @Test + @TestMetadata("topLevelFromTopLevelStringOneStringArg.kt") + public void testTopLevelFromTopLevelStringOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromTopLevelStringOneStringArg.kt"); + } + + @Test + @TestMetadata("topLevelFromTopLevelUnitManyArgs.kt") + public void testTopLevelFromTopLevelUnitManyArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromTopLevelUnitManyArgs.kt"); + } + + @Test + @TestMetadata("topLevelFromTopLevelUnitNoArgs.kt") + public void testTopLevelFromTopLevelUnitNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromTopLevelUnitNoArgs.kt"); + } + + @Test + @TestMetadata("topLevelFromTopLevelUnitOneStringArg.kt") + public void testTopLevelFromTopLevelUnitOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromTopLevelUnitOneStringArg.kt"); + } + + @Test + @TestMetadata("traitImplMethodWithClassReceiver.kt") + public void testTraitImplMethodWithClassReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/traitImplMethodWithClassReceiver.kt"); + } + + @Test + @TestMetadata("traitMember.kt") + public void testTraitMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/traitMember.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/callableReference/function/local") + @TestDataPath("$PROJECT_ROOT") + public class Local { + @Test + public void testAllFilesPresentInLocal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/function/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("captureOuter.kt") + public void testCaptureOuter() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/captureOuter.kt"); + } + + @Test + @TestMetadata("classMember.kt") + public void testClassMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/classMember.kt"); + } + + @Test + @TestMetadata("closureWithSideEffect.kt") + public void testClosureWithSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/closureWithSideEffect.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/constructor.kt"); + } + + @Test + @TestMetadata("constructorWithInitializer.kt") + public void testConstructorWithInitializer() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/constructorWithInitializer.kt"); + } + + @Test + @TestMetadata("enumExtendsTrait.kt") + public void testEnumExtendsTrait() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/enumExtendsTrait.kt"); + } + + @Test + @TestMetadata("equalsHashCode.kt") + public void testEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/equalsHashCode.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/extension.kt"); + } + + @Test + @TestMetadata("extensionToLocalClass.kt") + public void testExtensionToLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/extensionToLocalClass.kt"); + } + + @Test + @TestMetadata("extensionToPrimitive.kt") + public void testExtensionToPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/extensionToPrimitive.kt"); + } + + @Test + @TestMetadata("extensionWithClosure.kt") + public void testExtensionWithClosure() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/extensionWithClosure.kt"); + } + + @Test + @TestMetadata("genericMember.kt") + public void testGenericMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/genericMember.kt"); + } + + @Test + @TestMetadata("localClassMember.kt") + public void testLocalClassMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/localClassMember.kt"); + } + + @Test + @TestMetadata("localFunctionName.kt") + public void testLocalFunctionName() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/localFunctionName.kt"); + } + + @Test + @TestMetadata("localLocal.kt") + public void testLocalLocal() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/localLocal.kt"); + } + + @Test + @TestMetadata("recursiveClosure.kt") + public void testRecursiveClosure() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/recursiveClosure.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/simple.kt"); + } + + @Test + @TestMetadata("simpleClosure.kt") + public void testSimpleClosure() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/simpleClosure.kt"); + } + + @Test + @TestMetadata("simpleWithArg.kt") + public void testSimpleWithArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/simpleWithArg.kt"); + } + + @Test + @TestMetadata("unitWithSideEffect.kt") + public void testUnitWithSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/unitWithSideEffect.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/callableReference/property") + @TestDataPath("$PROJECT_ROOT") + public class Property { + @Test + @TestMetadata("accessViaSubclass.kt") + public void testAccessViaSubclass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/accessViaSubclass.kt"); + } + + @Test + @TestMetadata("accessorForPropertyWithPrivateSetter.kt") + public void testAccessorForPropertyWithPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/accessorForPropertyWithPrivateSetter.kt"); + } + + @Test + public void testAllFilesPresentInProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("delegated.kt") + public void testDelegated() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/delegated.kt"); + } + + @Test + @TestMetadata("delegatedMutable.kt") + public void testDelegatedMutable() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/delegatedMutable.kt"); + } + + @Test + @TestMetadata("enumNameOrdinal.kt") + public void testEnumNameOrdinal() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/enumNameOrdinal.kt"); + } + + @Test + @TestMetadata("extensionToArray.kt") + public void testExtensionToArray() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/extensionToArray.kt"); + } + + @Test + @TestMetadata("genericProperty.kt") + public void testGenericProperty() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/genericProperty.kt"); + } + + @Test + @TestMetadata("inEnum.kt") + public void testInEnum() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/inEnum.kt"); + } + + @Test + @TestMetadata("inReceiverOfAnother.kt") + public void testInReceiverOfAnother() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/inReceiverOfAnother.kt"); + } + + @Test + @TestMetadata("invokePropertyReference.kt") + public void testInvokePropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/invokePropertyReference.kt"); + } + + @Test + @TestMetadata("javaBeanConvention.kt") + public void testJavaBeanConvention() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/javaBeanConvention.kt"); + } + + @Test + @TestMetadata("kClassInstanceIsInitializedFirst.kt") + public void testKClassInstanceIsInitializedFirst() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kClassInstanceIsInitializedFirst.kt"); + } + + @Test + @TestMetadata("kt12044.kt") + public void testKt12044() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt12044.kt"); + } + + @Test + @TestMetadata("kt12982_protectedPropertyReference.kt") + public void testKt12982_protectedPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt12982_protectedPropertyReference.kt"); + } + + @Test + @TestMetadata("kt14330.kt") + public void testKt14330() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt14330.kt"); + } + + @Test + @TestMetadata("kt14330_2.kt") + public void testKt14330_2() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt14330_2.kt"); + } + + @Test + @TestMetadata("kt15447.kt") + public void testKt15447() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt"); + } + + @Test + @TestMetadata("kt6870_privatePropertyReference.kt") + public void testKt6870_privatePropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt"); + } + + @Test + @TestMetadata("listOfStringsMapLength.kt") + public void testListOfStringsMapLength() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/listOfStringsMapLength.kt"); + } + + @Test + @TestMetadata("localClassVar.kt") + public void testLocalClassVar() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/localClassVar.kt"); + } + + @Test + @TestMetadata("overriddenInSubclass.kt") + public void testOverriddenInSubclass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/overriddenInSubclass.kt"); + } + + @Test + @TestMetadata("privateSetOuterClass.kt") + public void testPrivateSetOuterClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/privateSetOuterClass.kt"); + } + + @Test + @TestMetadata("privateSetterInsideClass.kt") + public void testPrivateSetterInsideClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/privateSetterInsideClass.kt"); + } + + @Test + @TestMetadata("privateSetterOutsideClass.kt") + public void testPrivateSetterOutsideClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.kt"); + } + + @Test + @TestMetadata("receiverEvaluatedOnce.kt") + public void testReceiverEvaluatedOnce() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/receiverEvaluatedOnce.kt"); + } + + @Test + @TestMetadata("simpleExtension.kt") + public void testSimpleExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleExtension.kt"); + } + + @Test + @TestMetadata("simpleMember.kt") + public void testSimpleMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleMember.kt"); + } + + @Test + @TestMetadata("simpleMutableExtension.kt") + public void testSimpleMutableExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleMutableExtension.kt"); + } + + @Test + @TestMetadata("simpleMutableMember.kt") + public void testSimpleMutableMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleMutableMember.kt"); + } + + @Test + @TestMetadata("simpleMutableTopLevel.kt") + public void testSimpleMutableTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleMutableTopLevel.kt"); + } + + @Test + @TestMetadata("simpleTopLevel.kt") + public void testSimpleTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleTopLevel.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/callableReference/serializability") + @TestDataPath("$PROJECT_ROOT") + public class Serializability { + @Test + @TestMetadata("adaptedReferences.kt") + public void testAdaptedReferences() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/serializability/adaptedReferences.kt"); + } + + @Test + public void testAllFilesPresentInSerializability() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/serializability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boundWithNotSerializableReceiver.kt") + public void testBoundWithNotSerializableReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/serializability/boundWithNotSerializableReceiver.kt"); + } + + @Test + @TestMetadata("boundWithSerializableReceiver.kt") + public void testBoundWithSerializableReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/serializability/boundWithSerializableReceiver.kt"); + } + + @Test + @TestMetadata("noReflect.kt") + public void testNoReflect() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/serializability/noReflect.kt"); + } + + @Test + @TestMetadata("referenceToCompanionFunction.kt") + public void testReferenceToCompanionFunction() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.kt"); + } + + @Test + @TestMetadata("reflectedIsNotSerialized.kt") + public void testReflectedIsNotSerialized() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/serializability/reflectedIsNotSerialized.kt"); + } + + @Test + @TestMetadata("withReflect.kt") + public void testWithReflect() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/serializability/withReflect.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/casts") + @TestDataPath("$PROJECT_ROOT") + public class Casts { + @Test + public void testAllFilesPresentInCasts() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayDowncastingContravariant.kt") + public void testArrayDowncastingContravariant() throws Exception { + runTest("compiler/testData/codegen/box/casts/arrayDowncastingContravariant.kt"); + } + + @Test + @TestMetadata("arrayDowncatingInvariant.kt") + public void testArrayDowncatingInvariant() throws Exception { + runTest("compiler/testData/codegen/box/casts/arrayDowncatingInvariant.kt"); + } + + @Test + @TestMetadata("arrayDownctingCovariant.kt") + public void testArrayDownctingCovariant() throws Exception { + runTest("compiler/testData/codegen/box/casts/arrayDownctingCovariant.kt"); + } + + @Test + @TestMetadata("as.kt") + public void testAs() throws Exception { + runTest("compiler/testData/codegen/box/casts/as.kt"); + } + + @Test + @TestMetadata("asForConstants.kt") + public void testAsForConstants() throws Exception { + runTest("compiler/testData/codegen/box/casts/asForConstants.kt"); + } + + @Test + @TestMetadata("asSafe.kt") + public void testAsSafe() throws Exception { + runTest("compiler/testData/codegen/box/casts/asSafe.kt"); + } + + @Test + @TestMetadata("asSafeFail.kt") + public void testAsSafeFail() throws Exception { + runTest("compiler/testData/codegen/box/casts/asSafeFail.kt"); + } + + @Test + @TestMetadata("asSafeForConstants.kt") + public void testAsSafeForConstants() throws Exception { + runTest("compiler/testData/codegen/box/casts/asSafeForConstants.kt"); + } + + @Test + @TestMetadata("asThrowsNpe_1_4.kt") + public void testAsThrowsNpe_1_4() throws Exception { + runTest("compiler/testData/codegen/box/casts/asThrowsNpe_1_4.kt"); + } + + @Test + @TestMetadata("asUnit.kt") + public void testAsUnit() throws Exception { + runTest("compiler/testData/codegen/box/casts/asUnit.kt"); + } + + @Test + @TestMetadata("asWithGeneric.kt") + public void testAsWithGeneric() throws Exception { + runTest("compiler/testData/codegen/box/casts/asWithGeneric.kt"); + } + + @Test + @TestMetadata("castGenericNull.kt") + public void testCastGenericNull() throws Exception { + runTest("compiler/testData/codegen/box/casts/castGenericNull.kt"); + } + + @Test + @TestMetadata("castToDefinitelyNotNullType.kt") + public void testCastToDefinitelyNotNullType() throws Exception { + runTest("compiler/testData/codegen/box/casts/castToDefinitelyNotNullType.kt"); + } + + @Test + @TestMetadata("dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt") + public void testDontCreateInconsistentTypeDuringStarProjectionSubstitution() throws Exception { + runTest("compiler/testData/codegen/box/casts/dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt"); + } + + @Test + @TestMetadata("genericReturnCast.kt") + public void testGenericReturnCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/genericReturnCast.kt"); + } + + @Test + @TestMetadata("intersectionTypeMultipleBounds.kt") + public void testIntersectionTypeMultipleBounds() throws Exception { + runTest("compiler/testData/codegen/box/casts/intersectionTypeMultipleBounds.kt"); + } + + @Test + @TestMetadata("intersectionTypeMultipleBoundsImplicitReceiver.kt") + public void testIntersectionTypeMultipleBoundsImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/casts/intersectionTypeMultipleBoundsImplicitReceiver.kt"); + } + + @Test + @TestMetadata("intersectionTypeSmartcast.kt") + public void testIntersectionTypeSmartcast() throws Exception { + runTest("compiler/testData/codegen/box/casts/intersectionTypeSmartcast.kt"); + } + + @Test + @TestMetadata("intersectionTypeWithMultipleBoundsAsReceiver.kt") + public void testIntersectionTypeWithMultipleBoundsAsReceiver() throws Exception { + runTest("compiler/testData/codegen/box/casts/intersectionTypeWithMultipleBoundsAsReceiver.kt"); + } + + @Test + @TestMetadata("intersectionTypeWithoutGenericsAsReceiver.kt") + public void testIntersectionTypeWithoutGenericsAsReceiver() throws Exception { + runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt"); + } + + @Test + @TestMetadata("is.kt") + public void testIs() throws Exception { + runTest("compiler/testData/codegen/box/casts/is.kt"); + } + + @Test + @TestMetadata("isNullablePrimitive.kt") + public void testIsNullablePrimitive() throws Exception { + runTest("compiler/testData/codegen/box/casts/isNullablePrimitive.kt"); + } + + @Test + @TestMetadata("kt22714.kt") + public void testKt22714() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt22714.kt"); + } + + @Test + @TestMetadata("kt48927_privateMethodOnDerivedCastToBase.kt") + public void testKt48927_privateMethodOnDerivedCastToBase() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt48927_privateMethodOnDerivedCastToBase.kt"); + } + + @Test + @TestMetadata("kt50577.kt") + public void testKt50577() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt50577.kt"); + } + + @Test + @TestMetadata("kt53146.kt") + public void testKt53146() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt53146.kt"); + } + + @Test + @TestMetadata("kt53677.kt") + public void testKt53677() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt53677.kt"); + } + + @Test + @TestMetadata("kt54318.kt") + public void testKt54318() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt54318.kt"); + } + + @Test + @TestMetadata("kt54581.kt") + public void testKt54581() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt54581.kt"); + } + + @Test + @TestMetadata("kt54707.kt") + public void testKt54707() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt54707.kt"); + } + + @Test + @TestMetadata("kt54802.kt") + public void testKt54802() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt54802.kt"); + } + + @Test + @TestMetadata("kt55005.kt") + public void testKt55005() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt55005.kt"); + } + + @Test + @TestMetadata("kt58707.kt") + public void testKt58707() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt58707.kt"); + } + + @Test + @TestMetadata("kt59022.kt") + public void testKt59022() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt59022.kt"); + } + + @Test + @TestMetadata("lambdaToUnitCast.kt") + public void testLambdaToUnitCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt"); + } + + @Test + @TestMetadata("notIs.kt") + public void testNotIs() throws Exception { + runTest("compiler/testData/codegen/box/casts/notIs.kt"); + } + + @Test + @TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt") + public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/casts/nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt"); + } + + @Test + @TestMetadata("objectToPrimitiveWithAssertion.kt") + public void testObjectToPrimitiveWithAssertion() throws Exception { + runTest("compiler/testData/codegen/box/casts/objectToPrimitiveWithAssertion.kt"); + } + + @Test + @TestMetadata("unitAsAny.kt") + public void testUnitAsAny() throws Exception { + runTest("compiler/testData/codegen/box/casts/unitAsAny.kt"); + } + + @Test + @TestMetadata("unitAsInt.kt") + public void testUnitAsInt() throws Exception { + runTest("compiler/testData/codegen/box/casts/unitAsInt.kt"); + } + + @Test + @TestMetadata("unitAsSafeAny.kt") + public void testUnitAsSafeAny() throws Exception { + runTest("compiler/testData/codegen/box/casts/unitAsSafeAny.kt"); + } + + @Test + @TestMetadata("unitNullableCast.kt") + public void testUnitNullableCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/unitNullableCast.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/casts/functions") + @TestDataPath("$PROJECT_ROOT") + public class Functions { + @Test + public void testAllFilesPresentInFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("asFunKBig.kt") + public void testAsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/asFunKBig.kt"); + } + + @Test + @TestMetadata("asFunKSmall.kt") + public void testAsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/asFunKSmall.kt"); + } + + @Test + @TestMetadata("isFunKBig.kt") + public void testIsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKBig.kt"); + } + + @Test + @TestMetadata("isFunKSmall.kt") + public void testIsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); + } + + @Test + @TestMetadata("isFunKSmallJVM.kt") + public void testIsFunKSmallJVM() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt"); + } + + @Test + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + + @Test + @TestMetadata("javaTypeIsFunK.kt") + public void testJavaTypeIsFunK() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/javaTypeIsFunK.kt"); + } + + @Test + @TestMetadata("reifiedAsFunKBig.kt") + public void testReifiedAsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedAsFunKBig.kt"); + } + + @Test + @TestMetadata("reifiedAsFunKSmall.kt") + public void testReifiedAsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedAsFunKSmall.kt"); + } + + @Test + @TestMetadata("reifiedIsFunKBig.kt") + public void testReifiedIsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedIsFunKBig.kt"); + } + + @Test + @TestMetadata("reifiedIsFunKSmall.kt") + public void testReifiedIsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedIsFunKSmall.kt"); + } + + @Test + @TestMetadata("reifiedSafeAsFunKBig.kt") + public void testReifiedSafeAsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedSafeAsFunKBig.kt"); + } + + @Test + @TestMetadata("reifiedSafeAsFunKSmall.kt") + public void testReifiedSafeAsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedSafeAsFunKSmall.kt"); + } + + @Test + @TestMetadata("safeAsFunKBig.kt") + public void testSafeAsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/safeAsFunKBig.kt"); + } + + @Test + @TestMetadata("safeAsFunKSmall.kt") + public void testSafeAsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/safeAsFunKSmall.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/casts/javaInterop") + @TestDataPath("$PROJECT_ROOT") + public class JavaInterop { + @Test + public void testAllFilesPresentInJavaInterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("castWithWrongType.kt") + public void testCastWithWrongType() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/castWithWrongType.kt"); + } + + @Test + @TestMetadata("implicitNotNullWithWrongType.kt") + public void testImplicitNotNullWithWrongType() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/implicitNotNullWithWrongType.kt"); + } + + @Test + @TestMetadata("instanceOfWithWrongType.kt") + public void testInstanceOfWithWrongType() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/instanceOfWithWrongType.kt"); + } + + @Test + @TestMetadata("noNullCheckOnCollectionContains.kt") + public void testNoNullCheckOnCollectionContains() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnCollectionContains.kt"); + } + + @Test + @TestMetadata("noNullCheckOnCollectionRemove.kt") + public void testNoNullCheckOnCollectionRemove() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnCollectionRemove.kt"); + } + + @Test + @TestMetadata("noNullCheckOnListIndexOf.kt") + public void testNoNullCheckOnListIndexOf() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnListIndexOf.kt"); + } + + @Test + @TestMetadata("noNullCheckOnListLastIndexOf.kt") + public void testNoNullCheckOnListLastIndexOf() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnListLastIndexOf.kt"); + } + + @Test + @TestMetadata("noNullCheckOnMapContainsKey.kt") + public void testNoNullCheckOnMapContainsKey() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnMapContainsKey.kt"); + } + + @Test + @TestMetadata("noNullCheckOnMapContainsValue.kt") + public void testNoNullCheckOnMapContainsValue() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnMapContainsValue.kt"); + } + + @Test + @TestMetadata("noNullCheckOnMapGet.kt") + public void testNoNullCheckOnMapGet() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnMapGet.kt"); + } + + @Test + @TestMetadata("noNullCheckOnMapRemove.kt") + public void testNoNullCheckOnMapRemove() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnMapRemove.kt"); + } + + @Test + @TestMetadata("nullCheckOnMapGetOrDefault.kt") + public void testNullCheckOnMapGetOrDefault() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/nullCheckOnMapGetOrDefault.kt"); + } + + @Test + @TestMetadata("nullCheckOnMapRemove2.kt") + public void testNullCheckOnMapRemove2() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/nullCheckOnMapRemove2.kt"); + } + + @Test + @TestMetadata("safeCastWithWrongType.kt") + public void testSafeCastWithWrongType() throws Exception { + runTest("compiler/testData/codegen/box/casts/javaInterop/safeCastWithWrongType.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument") + @TestDataPath("$PROJECT_ROOT") + public class LiteralExpressionAsGenericArgument { + @Test + public void testAllFilesPresentInLiteralExpressionAsGenericArgument() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("binaryExpressionCast.kt") + public void testBinaryExpressionCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/binaryExpressionCast.kt"); + } + + @Test + @TestMetadata("javaBox.kt") + public void testJavaBox() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/javaBox.kt"); + } + + @Test + @TestMetadata("labeledExpressionCast.kt") + public void testLabeledExpressionCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/labeledExpressionCast.kt"); + } + + @Test + @TestMetadata("parenthesizedExpressionCast.kt") + public void testParenthesizedExpressionCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/parenthesizedExpressionCast.kt"); + } + + @Test + @TestMetadata("superConstructor.kt") + public void testSuperConstructor() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/superConstructor.kt"); + } + + @Test + @TestMetadata("unaryExpressionCast.kt") + public void testUnaryExpressionCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/unaryExpressionCast.kt"); + } + + @Test + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/vararg.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/casts/mutableCollections") + @TestDataPath("$PROJECT_ROOT") + public class MutableCollections { + @Test + public void testAllFilesPresentInMutableCollections() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/mutableCollections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("asWithMutable.kt") + public void testAsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.kt"); + } + + @Test + @TestMetadata("isWithMutable.kt") + public void testIsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.kt"); + } + + @Test + @TestMetadata("mutabilityMarkerInterfaces.kt") + public void testMutabilityMarkerInterfaces() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/mutabilityMarkerInterfaces.kt"); + } + + @Test + @TestMetadata("reifiedAsWithMutable.kt") + public void testReifiedAsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt"); + } + + @Test + @TestMetadata("reifiedIsWithMutable.kt") + public void testReifiedIsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt"); + } + + @Test + @TestMetadata("reifiedSafeAsWithMutable.kt") + public void testReifiedSafeAsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt"); + } + + @Test + @TestMetadata("safeAsWithMutable.kt") + public void testSafeAsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.kt"); + } + + @Test + @TestMetadata("weirdMutableCasts.kt") + public void testWeirdMutableCasts() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/weirdMutableCasts.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/casts/nativeCCEMessage") + @TestDataPath("$PROJECT_ROOT") + public class NativeCCEMessage { + @Test + public void testAllFilesPresentInNativeCCEMessage() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/nativeCCEMessage"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/checkcastOptimization") + @TestDataPath("$PROJECT_ROOT") + public class CheckcastOptimization { + @Test + public void testAllFilesPresentInCheckcastOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/checkcastOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt19128.kt") + public void testKt19128() throws Exception { + runTest("compiler/testData/codegen/box/checkcastOptimization/kt19128.kt"); + } + + @Test + @TestMetadata("kt19246.kt") + public void testKt19246() throws Exception { + runTest("compiler/testData/codegen/box/checkcastOptimization/kt19246.kt"); + } + + @Test + @TestMetadata("kt47851.kt") + public void testKt47851() throws Exception { + runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851.kt"); + } + + @Test + @TestMetadata("kt47851a.kt") + public void testKt47851a() throws Exception { + runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851a.kt"); + } + + @Test + @TestMetadata("kt50215.kt") + public void testKt50215() throws Exception { + runTest("compiler/testData/codegen/box/checkcastOptimization/kt50215.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/cinterop") + @TestDataPath("$PROJECT_ROOT") + public class Cinterop { + @Test + public void testAllFilesPresentInCinterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/classLiteral") + @TestDataPath("$PROJECT_ROOT") + public class ClassLiteral { + @Test + public void testAllFilesPresentInClassLiteral() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bareArray.kt") + public void testBareArray() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/bareArray.kt"); + } + + @Test + @TestMetadata("classEquality.kt") + public void testClassEquality() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/classEquality.kt"); + } + + @Test + @TestMetadata("primitiveClassEquality.kt") + public void testPrimitiveClassEquality() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/primitiveClassEquality.kt"); + } + + @Test + @TestMetadata("primitiveKClassEquality.kt") + public void testPrimitiveKClassEquality() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/primitiveKClassEquality.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/classLiteral/bound") + @TestDataPath("$PROJECT_ROOT") + public class Bound { + @Test + public void testAllFilesPresentInBound() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaIntrinsicWithSideEffect.kt") + public void testJavaIntrinsicWithSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/bound/javaIntrinsicWithSideEffect.kt"); + } + + @Test + @TestMetadata("primitives.kt") + public void testPrimitives() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/bound/primitives.kt"); + } + + @Test + @TestMetadata("sideEffect.kt") + public void testSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/bound/sideEffect.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/bound/simple.kt"); + } + + @Test + @TestMetadata("smartCast.kt") + public void testSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/bound/smartCast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/classLiteral/java") + @TestDataPath("$PROJECT_ROOT") + public class Java { + @Test + public void testAllFilesPresentInJava() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("java.kt") + public void testJava() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/java/java.kt"); + } + + @Test + @TestMetadata("javaObjectType.kt") + public void testJavaObjectType() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/java/javaObjectType.kt"); + } + + @Test + @TestMetadata("javaObjectTypeReified.kt") + public void testJavaObjectTypeReified() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/java/javaObjectTypeReified.kt"); + } + + @Test + @TestMetadata("javaPrimitiveType.kt") + public void testJavaPrimitiveType() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/java/javaPrimitiveType.kt"); + } + + @Test + @TestMetadata("javaPrimitiveTypeReified.kt") + public void testJavaPrimitiveTypeReified() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/java/javaPrimitiveTypeReified.kt"); + } + + @Test + @TestMetadata("javaReified.kt") + public void testJavaReified() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/java/javaReified.kt"); + } + + @Test + @TestMetadata("kt11943.kt") + public void testKt11943() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); + } + + @Test + @TestMetadata("objectSuperConstructorCall.kt") + public void testObjectSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/java/objectSuperConstructorCall.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/classes") + @TestDataPath("$PROJECT_ROOT") + public class Classes { + @Test + public void testAllFilesPresentInClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxPrimitiveTypeInClinitOfClassObject.kt") + public void testBoxPrimitiveTypeInClinitOfClassObject() throws Exception { + runTest("compiler/testData/codegen/box/classes/boxPrimitiveTypeInClinitOfClassObject.kt"); + } + + @Test + @TestMetadata("classCompanionInitializationWithJava.kt") + public void testClassCompanionInitializationWithJava() throws Exception { + runTest("compiler/testData/codegen/box/classes/classCompanionInitializationWithJava.kt"); + } + + @Test + @TestMetadata("classNamedAsOldPackageFacade.kt") + public void testClassNamedAsOldPackageFacade() throws Exception { + runTest("compiler/testData/codegen/box/classes/classNamedAsOldPackageFacade.kt"); + } + + @Test + @TestMetadata("classObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObject.kt"); + } + + @Test + @TestMetadata("classObjectAsExtensionReceiver.kt") + public void testClassObjectAsExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectAsExtensionReceiver.kt"); + } + + @Test + @TestMetadata("classObjectAsStaticInitializer.kt") + public void testClassObjectAsStaticInitializer() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectAsStaticInitializer.kt"); + } + + @Test + @TestMetadata("classObjectField.kt") + public void testClassObjectField() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectField.kt"); + } + + @Test + @TestMetadata("classObjectInTrait.kt") + public void testClassObjectInTrait() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectInTrait.kt"); + } + + @Test + @TestMetadata("classObjectNotOfEnum.kt") + public void testClassObjectNotOfEnum() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectNotOfEnum.kt"); + } + + @Test + @TestMetadata("classObjectToString.kt") + public void testClassObjectToString() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectToString.kt"); + } + + @Test + @TestMetadata("classObjectWithPrivateGenericMember.kt") + public void testClassObjectWithPrivateGenericMember() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectWithPrivateGenericMember.kt"); + } + + @Test + @TestMetadata("classObjectsWithParentClasses.kt") + public void testClassObjectsWithParentClasses() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectsWithParentClasses.kt"); + } + + @Test + @TestMetadata("comanionObjectFieldVsClassField.kt") + public void testComanionObjectFieldVsClassField() throws Exception { + runTest("compiler/testData/codegen/box/classes/comanionObjectFieldVsClassField.kt"); + } + + @Test + @TestMetadata("defaultObjectSameNamesAsInOuter.kt") + public void testDefaultObjectSameNamesAsInOuter() throws Exception { + runTest("compiler/testData/codegen/box/classes/defaultObjectSameNamesAsInOuter.kt"); + } + + @Test + @TestMetadata("delegateConstructorCallWithKeywords.kt") + public void testDelegateConstructorCallWithKeywords() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegateConstructorCallWithKeywords.kt"); + } + + @Test + @TestMetadata("delegation2.kt") + public void testDelegation2() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegation2.kt"); + } + + @Test + @TestMetadata("delegation3.kt") + public void testDelegation3() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegation3.kt"); + } + + @Test + @TestMetadata("delegation4.kt") + public void testDelegation4() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegation4.kt"); + } + + @Test + @TestMetadata("delegationGenericArg.kt") + public void testDelegationGenericArg() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegationGenericArg.kt"); + } + + @Test + @TestMetadata("delegationGenericArgUpperBound.kt") + public void testDelegationGenericArgUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegationGenericArgUpperBound.kt"); + } + + @Test + @TestMetadata("delegationGenericLongArg.kt") + public void testDelegationGenericLongArg() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt"); + } + + @Test + @TestMetadata("delegationJava.kt") + public void testDelegationJava() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegationJava.kt"); + } + + @Test + @TestMetadata("delegationMethodsWithArgs.kt") + public void testDelegationMethodsWithArgs() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegationMethodsWithArgs.kt"); + } + + @Test + @TestMetadata("exceptionConstructor.kt") + public void testExceptionConstructor() throws Exception { + runTest("compiler/testData/codegen/box/classes/exceptionConstructor.kt"); + } + + @Test + @TestMetadata("extensionFunWithDefaultParam.kt") + public void testExtensionFunWithDefaultParam() throws Exception { + runTest("compiler/testData/codegen/box/classes/extensionFunWithDefaultParam.kt"); + } + + @Test + @TestMetadata("extensionOnNamedClassObject.kt") + public void testExtensionOnNamedClassObject() throws Exception { + runTest("compiler/testData/codegen/box/classes/extensionOnNamedClassObject.kt"); + } + + @Test + @TestMetadata("funDelegation.kt") + public void testFunDelegation() throws Exception { + runTest("compiler/testData/codegen/box/classes/funDelegation.kt"); + } + + @Test + @TestMetadata("implementComparableInSubclass.kt") + public void testImplementComparableInSubclass() throws Exception { + runTest("compiler/testData/codegen/box/classes/implementComparableInSubclass.kt"); + } + + @Test + @TestMetadata("inheritSetAndHashSet.kt") + public void testInheritSetAndHashSet() throws Exception { + runTest("compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() throws Exception { + runTest("compiler/testData/codegen/box/classes/inheritance.kt"); + } + + @Test + @TestMetadata("inheritedInnerClass.kt") + public void testInheritedInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/classes/inheritedInnerClass.kt"); + } + + @Test + @TestMetadata("inheritedMethod.kt") + public void testInheritedMethod() throws Exception { + runTest("compiler/testData/codegen/box/classes/inheritedMethod.kt"); + } + + @Test + @TestMetadata("initializerBlock.kt") + public void testInitializerBlock() throws Exception { + runTest("compiler/testData/codegen/box/classes/initializerBlock.kt"); + } + + @Test + @TestMetadata("initializerBlockDImpl.kt") + public void testInitializerBlockDImpl() throws Exception { + runTest("compiler/testData/codegen/box/classes/initializerBlockDImpl.kt"); + } + + @Test + @TestMetadata("initializerBlockResetToDefault.kt") + public void testInitializerBlockResetToDefault() throws Exception { + runTest("compiler/testData/codegen/box/classes/initializerBlockResetToDefault.kt"); + } + + @Test + @TestMetadata("innerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/classes/innerClass.kt"); + } + + @Test + @TestMetadata("interfaceCompanionInitializationWithJava.kt") + public void testInterfaceCompanionInitializationWithJava() throws Exception { + runTest("compiler/testData/codegen/box/classes/interfaceCompanionInitializationWithJava.kt"); + } + + @Test + @TestMetadata("kt1018.kt") + public void testKt1018() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1018.kt"); + } + + @Test + @TestMetadata("kt1120.kt") + public void testKt1120() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1120.kt"); + } + + @Test + @TestMetadata("kt1134.kt") + public void testKt1134() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1134.kt"); + } + + @Test + @TestMetadata("kt1157.kt") + public void testKt1157() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1157.kt"); + } + + @Test + @TestMetadata("kt1247.kt") + public void testKt1247() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1247.kt"); + } + + @Test + @TestMetadata("kt1345.kt") + public void testKt1345() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1345.kt"); + } + + @Test + @TestMetadata("kt1439.kt") + public void testKt1439() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1439.kt"); + } + + @Test + @TestMetadata("kt1535.kt") + public void testKt1535() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1535.kt"); + } + + @Test + @TestMetadata("kt1538.kt") + public void testKt1538() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1538.kt"); + } + + @Test + @TestMetadata("kt1578.kt") + public void testKt1578() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1578.kt"); + } + + @Test + @TestMetadata("kt1611.kt") + public void testKt1611() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1611.kt"); + } + + @Test + @TestMetadata("kt1721.kt") + public void testKt1721() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1721.kt"); + } + + @Test + @TestMetadata("kt1726.kt") + public void testKt1726() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1726.kt"); + } + + @Test + @TestMetadata("kt1759.kt") + public void testKt1759() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1759.kt"); + } + + @Test + @TestMetadata("kt1891.kt") + public void testKt1891() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1891.kt"); + } + + @Test + @TestMetadata("kt1918.kt") + public void testKt1918() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1918.kt"); + } + + @Test + @TestMetadata("kt1976.kt") + public void testKt1976() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1976.kt"); + } + + @Test + @TestMetadata("kt1980.kt") + public void testKt1980() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1980.kt"); + } + + @Test + @TestMetadata("kt2224.kt") + public void testKt2224() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2224.kt"); + } + + @Test + @TestMetadata("kt2288.kt") + public void testKt2288() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2288.kt"); + } + + @Test + @TestMetadata("kt2384.kt") + public void testKt2384() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2384.kt"); + } + + @Test + @TestMetadata("kt2390.kt") + public void testKt2390() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2390.kt"); + } + + @Test + @TestMetadata("kt2391.kt") + public void testKt2391() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2391.kt"); + } + + @Test + @TestMetadata("kt2395.kt") + public void testKt2395() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2395.kt"); + } + + @Test + @TestMetadata("kt2417.kt") + public void testKt2417() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2417.kt"); + } + + @Test + @TestMetadata("kt2477.kt") + public void testKt2477() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2477.kt"); + } + + @Test + @TestMetadata("kt2480.kt") + public void testKt2480() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2480.kt"); + } + + @Test + @TestMetadata("kt2482.kt") + public void testKt2482() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2482.kt"); + } + + @Test + @TestMetadata("kt2485.kt") + public void testKt2485() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2485.kt"); + } + + @Test + @TestMetadata("kt249.kt") + public void testKt249() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt249.kt"); + } + + @Test + @TestMetadata("kt2532.kt") + public void testKt2532() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2532.kt"); + } + + @Test + @TestMetadata("kt2566.kt") + public void testKt2566() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2566.kt"); + } + + @Test + @TestMetadata("kt2566_2.kt") + public void testKt2566_2() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2566_2.kt"); + } + + @Test + @TestMetadata("kt2607.kt") + public void testKt2607() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2607.kt"); + } + + @Test + @TestMetadata("kt2626.kt") + public void testKt2626() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2626.kt"); + } + + @Test + @TestMetadata("kt2711.kt") + public void testKt2711() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2711.kt"); + } + + @Test + @TestMetadata("kt2784.kt") + public void testKt2784() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2784.kt"); + } + + @Test + @TestMetadata("kt285.kt") + public void testKt285() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt285.kt"); + } + + @Test + @TestMetadata("kt3001.kt") + public void testKt3001() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt3001.kt"); + } + + @Test + @TestMetadata("kt3114.kt") + public void testKt3114() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt3114.kt"); + } + + @Test + @TestMetadata("kt3414.kt") + public void testKt3414() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt3414.kt"); + } + + @Test + @TestMetadata("kt343.kt") + public void testKt343() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt343.kt"); + } + + @Test + @TestMetadata("kt3546.kt") + public void testKt3546() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt3546.kt"); + } + + @Test + @TestMetadata("kt40332.kt") + public void testKt40332() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt40332.kt"); + } + + @Test + @TestMetadata("kt454.kt") + public void testKt454() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt454.kt"); + } + + @Test + @TestMetadata("kt471.kt") + public void testKt471() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt471.kt"); + } + + @Test + @TestMetadata("kt48.kt") + public void testKt48() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt48.kt"); + } + + @Test + @TestMetadata("kt496.kt") + public void testKt496() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt496.kt"); + } + + @Test + @TestMetadata("kt500.kt") + public void testKt500() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt500.kt"); + } + + @Test + @TestMetadata("kt501.kt") + public void testKt501() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt501.kt"); + } + + @Test + @TestMetadata("kt504.kt") + public void testKt504() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt504.kt"); + } + + @Test + @TestMetadata("kt508.kt") + public void testKt508() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt508.kt"); + } + + @Test + @TestMetadata("kt53007.kt") + public void testKt53007() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt53007.kt"); + } + + @Test + @TestMetadata("kt5347.kt") + public void testKt5347() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt5347.kt"); + } + + @Test + @TestMetadata("kt6136.kt") + public void testKt6136() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt6136.kt"); + } + + @Test + @TestMetadata("kt633.kt") + public void testKt633() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt633.kt"); + } + + @Test + @TestMetadata("kt6816.kt") + public void testKt6816() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt6816.kt"); + } + + @Test + @TestMetadata("kt707.kt") + public void testKt707() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt707.kt"); + } + + @Test + @TestMetadata("kt723.kt") + public void testKt723() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt723.kt"); + } + + @Test + @TestMetadata("kt725.kt") + public void testKt725() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt725.kt"); + } + + @Test + @TestMetadata("kt8011.kt") + public void testKt8011() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt8011.kt"); + } + + @Test + @TestMetadata("kt8011a.kt") + public void testKt8011a() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt8011a.kt"); + } + + @Test + @TestMetadata("kt903.kt") + public void testKt903() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt903.kt"); + } + + @Test + @TestMetadata("kt940.kt") + public void testKt940() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt940.kt"); + } + + @Test + @TestMetadata("kt9642.kt") + public void testKt9642() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt9642.kt"); + } + + @Test + @TestMetadata("namedClassObject.kt") + public void testNamedClassObject() throws Exception { + runTest("compiler/testData/codegen/box/classes/namedClassObject.kt"); + } + + @Test + @TestMetadata("nestedInitBlocksWithLambda.kt") + public void testNestedInitBlocksWithLambda() throws Exception { + runTest("compiler/testData/codegen/box/classes/nestedInitBlocksWithLambda.kt"); + } + + @Test + @TestMetadata("outerThis.kt") + public void testOuterThis() throws Exception { + runTest("compiler/testData/codegen/box/classes/outerThis.kt"); + } + + @Test + @TestMetadata("overloadBinaryOperator.kt") + public void testOverloadBinaryOperator() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadBinaryOperator.kt"); + } + + @Test + @TestMetadata("overloadPlusAssign.kt") + public void testOverloadPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadPlusAssign.kt"); + } + + @Test + @TestMetadata("overloadPlusAssignReturn.kt") + public void testOverloadPlusAssignReturn() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadPlusAssignReturn.kt"); + } + + @Test + @TestMetadata("overloadPlusToPlusAssign.kt") + public void testOverloadPlusToPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.kt"); + } + + @Test + @TestMetadata("overloadUnaryOperator.kt") + public void testOverloadUnaryOperator() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadUnaryOperator.kt"); + } + + @Test + @TestMetadata("privateOuterFunctions.kt") + public void testPrivateOuterFunctions() throws Exception { + runTest("compiler/testData/codegen/box/classes/privateOuterFunctions.kt"); + } + + @Test + @TestMetadata("privateOuterProperty.kt") + public void testPrivateOuterProperty() throws Exception { + runTest("compiler/testData/codegen/box/classes/privateOuterProperty.kt"); + } + + @Test + @TestMetadata("privateToThis.kt") + public void testPrivateToThis() throws Exception { + runTest("compiler/testData/codegen/box/classes/privateToThis.kt"); + } + + @Test + @TestMetadata("propertyDelegation.kt") + public void testPropertyDelegation() throws Exception { + runTest("compiler/testData/codegen/box/classes/propertyDelegation.kt"); + } + + @Test + @TestMetadata("propertyInInitializer.kt") + public void testPropertyInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/classes/propertyInInitializer.kt"); + } + + @Test + @TestMetadata("quotedClassName.kt") + public void testQuotedClassName() throws Exception { + runTest("compiler/testData/codegen/box/classes/quotedClassName.kt"); + } + + @Test + @TestMetadata("rightHandOverride.kt") + public void testRightHandOverride() throws Exception { + runTest("compiler/testData/codegen/box/classes/rightHandOverride.kt"); + } + + @Test + @TestMetadata("selfcreate.kt") + public void testSelfcreate() throws Exception { + runTest("compiler/testData/codegen/box/classes/selfcreate.kt"); + } + + @Test + @TestMetadata("simpleBox.kt") + public void testSimpleBox() throws Exception { + runTest("compiler/testData/codegen/box/classes/simpleBox.kt"); + } + + @Test + @TestMetadata("superConstructorCallWithComplexArg.kt") + public void testSuperConstructorCallWithComplexArg() throws Exception { + runTest("compiler/testData/codegen/box/classes/superConstructorCallWithComplexArg.kt"); + } + + @Test + @TestMetadata("typedDelegation.kt") + public void testTypedDelegation() throws Exception { + runTest("compiler/testData/codegen/box/classes/typedDelegation.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/classes/inner") + @TestDataPath("$PROJECT_ROOT") + public class Inner { + @Test + public void testAllFilesPresentInInner() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classes/inner"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("extensionWithOuter.kt") + public void testExtensionWithOuter() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/extensionWithOuter.kt"); + } + + @Test + @TestMetadata("innerClassDerivedFromOuterClass.kt") + public void testInnerClassDerivedFromOuterClass() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/innerClassDerivedFromOuterClass.kt"); + } + + @Test + @TestMetadata("instantiateInDerived.kt") + public void testInstantiateInDerived() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/instantiateInDerived.kt"); + } + + @Test + @TestMetadata("instantiateInDerivedLabeled.kt") + public void testInstantiateInDerivedLabeled() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/instantiateInDerivedLabeled.kt"); + } + + @Test + @TestMetadata("instantiateInSameClass.kt") + public void testInstantiateInSameClass() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/instantiateInSameClass.kt"); + } + + @Test + @TestMetadata("kt6708.kt") + public void testKt6708() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/kt6708.kt"); + } + + @Test + @TestMetadata("properOuter.kt") + public void testProperOuter() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/properOuter.kt"); + } + + @Test + @TestMetadata("properSuperLinking.kt") + public void testProperSuperLinking() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/properSuperLinking.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/closures") + @TestDataPath("$PROJECT_ROOT") + public class Closures { + @Test + public void testAllFilesPresentInClosures() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectAsLastExpressionInLambda.kt") + public void testAnonymousObjectAsLastExpressionInLambda() throws Exception { + runTest("compiler/testData/codegen/box/closures/anonymousObjectAsLastExpressionInLambda.kt"); + } + + @Test + @TestMetadata("captureExtensionReceiver.kt") + public void testCaptureExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureExtensionReceiver.kt"); + } + + @Test + @TestMetadata("captureExtensionReceiverX2.kt") + public void testCaptureExtensionReceiverX2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureExtensionReceiverX2.kt"); + } + + @Test + @TestMetadata("capturedLocalGenericFun.kt") + public void testCapturedLocalGenericFun() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedLocalGenericFun.kt"); + } + + @Test + @TestMetadata("closureCapturingGenericParam.kt") + public void testClosureCapturingGenericParam() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureCapturingGenericParam.kt"); + } + + @Test + @TestMetadata("closureInsideConstrucor.kt") + public void testClosureInsideConstrucor() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideConstrucor.kt"); + } + + @Test + @TestMetadata("closureOnTopLevel1.kt") + public void testClosureOnTopLevel1() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureOnTopLevel1.kt"); + } + + @Test + @TestMetadata("closureOnTopLevel2.kt") + public void testClosureOnTopLevel2() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureOnTopLevel2.kt"); + } + + @Test + @TestMetadata("closureWithParameter.kt") + public void testClosureWithParameter() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureWithParameter.kt"); + } + + @Test + @TestMetadata("closureWithParameterAndBoxing.kt") + public void testClosureWithParameterAndBoxing() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureWithParameterAndBoxing.kt"); + } + + @Test + @TestMetadata("crossinlineLocalDeclaration.kt") + public void testCrossinlineLocalDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/closures/crossinlineLocalDeclaration.kt"); + } + + @Test + @TestMetadata("doubleEnclosedLocalVariable.kt") + public void testDoubleEnclosedLocalVariable() throws Exception { + runTest("compiler/testData/codegen/box/closures/doubleEnclosedLocalVariable.kt"); + } + + @Test + @TestMetadata("enclosingLocalVariable.kt") + public void testEnclosingLocalVariable() throws Exception { + runTest("compiler/testData/codegen/box/closures/enclosingLocalVariable.kt"); + } + + @Test + @TestMetadata("enclosingThis.kt") + public void testEnclosingThis() throws Exception { + runTest("compiler/testData/codegen/box/closures/enclosingThis.kt"); + } + + @Test + @TestMetadata("extensionClosure.kt") + public void testExtensionClosure() throws Exception { + runTest("compiler/testData/codegen/box/closures/extensionClosure.kt"); + } + + @Test + @TestMetadata("kt10044.kt") + public void testKt10044() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt10044.kt"); + } + + @Test + @TestMetadata("kt11634.kt") + public void testKt11634() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt11634.kt"); + } + + @Test + @TestMetadata("kt11634_2.kt") + public void testKt11634_2() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt11634_2.kt"); + } + + @Test + @TestMetadata("kt11634_3.kt") + public void testKt11634_3() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt11634_3.kt"); + } + + @Test + @TestMetadata("kt11634_4.kt") + public void testKt11634_4() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt11634_4.kt"); + } + + @Test + @TestMetadata("kt19389.kt") + public void testKt19389() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt19389.kt"); + } + + @Test + @TestMetadata("kt19389_set.kt") + public void testKt19389_set() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt19389_set.kt"); + } + + @Test + @TestMetadata("kt2151.kt") + public void testKt2151() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt2151.kt"); + } + + @Test + @TestMetadata("kt23881.kt") + public void testKt23881() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt23881.kt"); + } + + @Test + @TestMetadata("kt3152.kt") + public void testKt3152() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt3152.kt"); + } + + @Test + @TestMetadata("kt3523.kt") + public void testKt3523() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt3523.kt"); + } + + @Test + @TestMetadata("kt3738.kt") + public void testKt3738() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt3738.kt"); + } + + @Test + @TestMetadata("kt3905.kt") + public void testKt3905() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt3905.kt"); + } + + @Test + @TestMetadata("kt4106.kt") + public void testKt4106() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt4106.kt"); + } + + @Test + @TestMetadata("kt4137.kt") + public void testKt4137() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt4137.kt"); + } + + @Test + @TestMetadata("kt47120.kt") + public void testKt47120() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47120.kt"); + } + + @Test + @TestMetadata("kt47120a.kt") + public void testKt47120a() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47120a.kt"); + } + + @Test + @TestMetadata("kt47840.kt") + public void testKt47840() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47840.kt"); + } + + @Test + @TestMetadata("kt47894_inlineFunWithObjectWithNothing.kt") + public void testKt47894_inlineFunWithObjectWithNothing() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.kt"); + } + + @Test + @TestMetadata("kt5589.kt") + public void testKt5589() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt5589.kt"); + } + + @Test + @TestMetadata("localClassFunClosure.kt") + public void testLocalClassFunClosure() throws Exception { + runTest("compiler/testData/codegen/box/closures/localClassFunClosure.kt"); + } + + @Test + @TestMetadata("localClassLambdaClosure.kt") + public void testLocalClassLambdaClosure() throws Exception { + runTest("compiler/testData/codegen/box/closures/localClassLambdaClosure.kt"); + } + + @Test + @TestMetadata("localFunInInit.kt") + public void testLocalFunInInit() throws Exception { + runTest("compiler/testData/codegen/box/closures/localFunInInit.kt"); + } + + @Test + @TestMetadata("localFunctionInFunction.kt") + public void testLocalFunctionInFunction() throws Exception { + runTest("compiler/testData/codegen/box/closures/localFunctionInFunction.kt"); + } + + @Test + @TestMetadata("localFunctionInInitBlock.kt") + public void testLocalFunctionInInitBlock() throws Exception { + runTest("compiler/testData/codegen/box/closures/localFunctionInInitBlock.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializer.kt") + public void testLocalFunctionInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/closures/localFunctionInInitializer.kt"); + } + + @Test + @TestMetadata("localGenericFun.kt") + public void testLocalGenericFun() throws Exception { + runTest("compiler/testData/codegen/box/closures/localGenericFun.kt"); + } + + @Test + @TestMetadata("localReturn.kt") + public void testLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/closures/localReturn.kt"); + } + + @Test + @TestMetadata("localReturnWithAutolabel.kt") + public void testLocalReturnWithAutolabel() throws Exception { + runTest("compiler/testData/codegen/box/closures/localReturnWithAutolabel.kt"); + } + + @Test + @TestMetadata("noRefToOuter.kt") + public void testNoRefToOuter() throws Exception { + runTest("compiler/testData/codegen/box/closures/noRefToOuter.kt"); + } + + @Test + @TestMetadata("recursiveClosure.kt") + public void testRecursiveClosure() throws Exception { + runTest("compiler/testData/codegen/box/closures/recursiveClosure.kt"); + } + + @Test + @TestMetadata("refsAreSerializable.kt") + public void testRefsAreSerializable() throws Exception { + runTest("compiler/testData/codegen/box/closures/refsAreSerializable.kt"); + } + + @Test + @TestMetadata("simplestClosure.kt") + public void testSimplestClosure() throws Exception { + runTest("compiler/testData/codegen/box/closures/simplestClosure.kt"); + } + + @Test + @TestMetadata("simplestClosureAndBoxing.kt") + public void testSimplestClosureAndBoxing() throws Exception { + runTest("compiler/testData/codegen/box/closures/simplestClosureAndBoxing.kt"); + } + + @Test + @TestMetadata("staticLambda.kt") + public void testStaticLambda() throws Exception { + runTest("compiler/testData/codegen/box/closures/staticLambda.kt"); + } + + @Test + @TestMetadata("subclosuresWithinInitializers.kt") + public void testSubclosuresWithinInitializers() throws Exception { + runTest("compiler/testData/codegen/box/closures/subclosuresWithinInitializers.kt"); + } + + @Test + @TestMetadata("underscoreParameters.kt") + public void testUnderscoreParameters() throws Exception { + runTest("compiler/testData/codegen/box/closures/underscoreParameters.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/closures/captureInSuperConstructorCall") + @TestDataPath("$PROJECT_ROOT") + public class CaptureInSuperConstructorCall { + @Test + public void testAllFilesPresentInCaptureInSuperConstructorCall() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/captureInSuperConstructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorParameterAndLocalCapturedInLambdaInLocalClass.kt") + public void testConstructorParameterAndLocalCapturedInLambdaInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/constructorParameterAndLocalCapturedInLambdaInLocalClass.kt"); + } + + @Test + @TestMetadata("constructorParameterCapturedInLambdaInLocalClass.kt") + public void testConstructorParameterCapturedInLambdaInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/constructorParameterCapturedInLambdaInLocalClass.kt"); + } + + @Test + @TestMetadata("constructorParameterCapturedInLambdaInLocalClass2.kt") + public void testConstructorParameterCapturedInLambdaInLocalClass2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/constructorParameterCapturedInLambdaInLocalClass2.kt"); + } + + @Test + @TestMetadata("kt13454.kt") + public void testKt13454() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/kt13454.kt"); + } + + @Test + @TestMetadata("kt14148.kt") + public void testKt14148() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/kt14148.kt"); + } + + @Test + @TestMetadata("kt4174.kt") + public void testKt4174() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/kt4174.kt"); + } + + @Test + @TestMetadata("kt4174a.kt") + public void testKt4174a() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/kt4174a.kt"); + } + + @Test + @TestMetadata("localCapturedInAnonymousObjectInLocalClass.kt") + public void testLocalCapturedInAnonymousObjectInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/localCapturedInAnonymousObjectInLocalClass.kt"); + } + + @Test + @TestMetadata("localCapturedInAnonymousObjectInLocalClass2.kt") + public void testLocalCapturedInAnonymousObjectInLocalClass2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/localCapturedInAnonymousObjectInLocalClass2.kt"); + } + + @Test + @TestMetadata("localCapturedInLambdaInInnerClassInLocalClass.kt") + public void testLocalCapturedInLambdaInInnerClassInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/localCapturedInLambdaInInnerClassInLocalClass.kt"); + } + + @Test + @TestMetadata("localCapturedInLambdaInLocalClass.kt") + public void testLocalCapturedInLambdaInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/localCapturedInLambdaInLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionCapturedInLambda.kt") + public void testLocalFunctionCapturedInLambda() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/localFunctionCapturedInLambda.kt"); + } + + @Test + @TestMetadata("outerAndLocalCapturedInLocalClass.kt") + public void testOuterAndLocalCapturedInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerAndLocalCapturedInLocalClass.kt"); + } + + @Test + @TestMetadata("outerCapturedAsImplicitThisInBoundReference.kt") + public void testOuterCapturedAsImplicitThisInBoundReference() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedAsImplicitThisInBoundReference.kt"); + } + + @Test + @TestMetadata("outerCapturedInFunctionLiteral.kt") + public void testOuterCapturedInFunctionLiteral() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInFunctionLiteral.kt"); + } + + @Test + @TestMetadata("outerCapturedInInlineLambda.kt") + public void testOuterCapturedInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInInlineLambda.kt"); + } + + @Test + @TestMetadata("outerCapturedInInlineLambda2.kt") + public void testOuterCapturedInInlineLambda2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInInlineLambda2.kt"); + } + + @Test + @TestMetadata("outerCapturedInLambda.kt") + public void testOuterCapturedInLambda() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambda.kt"); + } + + @Test + @TestMetadata("outerCapturedInLambda2.kt") + public void testOuterCapturedInLambda2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambda2.kt"); + } + + @Test + @TestMetadata("outerCapturedInLambdaInSecondaryConstructor.kt") + public void testOuterCapturedInLambdaInSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambdaInSecondaryConstructor.kt"); + } + + @Test + @TestMetadata("outerCapturedInLambdaInSubExpression.kt") + public void testOuterCapturedInLambdaInSubExpression() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambdaInSubExpression.kt"); + } + + @Test + @TestMetadata("outerCapturedInLocalClass.kt") + public void testOuterCapturedInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLocalClass.kt"); + } + + @Test + @TestMetadata("outerCapturedInNestedLambda.kt") + public void testOuterCapturedInNestedLambda() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInNestedLambda.kt"); + } + + @Test + @TestMetadata("outerCapturedInNestedObject.kt") + public void testOuterCapturedInNestedObject() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInNestedObject.kt"); + } + + @Test + @TestMetadata("outerCapturedInObject.kt") + public void testOuterCapturedInObject() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInObject.kt"); + } + + @Test + @TestMetadata("outerCapturedInObject2.kt") + public void testOuterCapturedInObject2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInObject2.kt"); + } + + @Test + @TestMetadata("outerCapturedInPrimaryConstructorDefaultParameter.kt") + public void testOuterCapturedInPrimaryConstructorDefaultParameter() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInPrimaryConstructorDefaultParameter.kt"); + } + + @Test + @TestMetadata("outerCapturedInSecondaryConstructorDefaultParameter.kt") + public void testOuterCapturedInSecondaryConstructorDefaultParameter() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInSecondaryConstructorDefaultParameter.kt"); + } + + @Test + @TestMetadata("outerEnumEntryCapturedInLambdaInInnerClass.kt") + public void testOuterEnumEntryCapturedInLambdaInInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerEnumEntryCapturedInLambdaInInnerClass.kt"); + } + + @Test + @TestMetadata("properValueCapturedByClosure1.kt") + public void testProperValueCapturedByClosure1() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/properValueCapturedByClosure1.kt"); + } + + @Test + @TestMetadata("properValueCapturedByClosure2.kt") + public void testProperValueCapturedByClosure2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/properValueCapturedByClosure2.kt"); + } + + @Test + @TestMetadata("referenceToCapturedVariablesInMultipleLambdas.kt") + public void testReferenceToCapturedVariablesInMultipleLambdas() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/referenceToCapturedVariablesInMultipleLambdas.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/closures/captureOuterProperty") + @TestDataPath("$PROJECT_ROOT") + public class CaptureOuterProperty { + @Test + public void testAllFilesPresentInCaptureOuterProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/captureOuterProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("captureFunctionInProperty.kt") + public void testCaptureFunctionInProperty() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/captureFunctionInProperty.kt"); + } + + @Test + @TestMetadata("inFunction.kt") + public void testInFunction() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/inFunction.kt"); + } + + @Test + @TestMetadata("inProperty.kt") + public void testInProperty() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/inProperty.kt"); + } + + @Test + @TestMetadata("inPropertyDeepObjectChain.kt") + public void testInPropertyDeepObjectChain() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/inPropertyDeepObjectChain.kt"); + } + + @Test + @TestMetadata("inPropertyFromSuperClass.kt") + public void testInPropertyFromSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/inPropertyFromSuperClass.kt"); + } + + @Test + @TestMetadata("inPropertyFromSuperSuperClass.kt") + public void testInPropertyFromSuperSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/inPropertyFromSuperSuperClass.kt"); + } + + @Test + @TestMetadata("kt4176.kt") + public void testKt4176() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/kt4176.kt"); + } + + @Test + @TestMetadata("kt4656.kt") + public void testKt4656() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/kt4656.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/closures/capturedVarsOptimization") + @TestDataPath("$PROJECT_ROOT") + public class CapturedVarsOptimization { + @Test + public void testAllFilesPresentInCapturedVarsOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/capturedVarsOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("capturedInCrossinline.kt") + public void testCapturedInCrossinline() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedInCrossinline.kt"); + } + + @Test + @TestMetadata("capturedInInlineOnlyAssign.kt") + public void testCapturedInInlineOnlyAssign() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedInInlineOnlyAssign.kt"); + } + + @Test + @TestMetadata("capturedInInlineOnlyCAO.kt") + public void testCapturedInInlineOnlyCAO() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedInInlineOnlyCAO.kt"); + } + + @Test + @TestMetadata("capturedInInlineOnlyIncrDecr.kt") + public void testCapturedInInlineOnlyIncrDecr() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedInInlineOnlyIncrDecr.kt"); + } + + @Test + @TestMetadata("capturedInInlineOnlyIndexedCAO.kt") + public void testCapturedInInlineOnlyIndexedCAO() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedInInlineOnlyIndexedCAO.kt"); + } + + @Test + @TestMetadata("capturedVarsOfSize2.kt") + public void testCapturedVarsOfSize2() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedVarsOfSize2.kt"); + } + + @Test + @TestMetadata("kt17200.kt") + public void testKt17200() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt17200.kt"); + } + + @Test + @TestMetadata("kt17588.kt") + public void testKt17588() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt17588.kt"); + } + + @Test + @TestMetadata("kt44347.kt") + public void testKt44347() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt44347.kt"); + } + + @Test + @TestMetadata("kt45446.kt") + public void testKt45446() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt45446.kt"); + } + + @Test + @TestMetadata("sharedSlotsWithCapturedVars.kt") + public void testSharedSlotsWithCapturedVars() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt"); + } + + @Test + @TestMetadata("withCoroutines.kt") + public void testWithCoroutines() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/withCoroutines.kt"); + } + + @Test + @TestMetadata("withCoroutinesNoStdLib.kt") + public void testWithCoroutinesNoStdLib() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/withCoroutinesNoStdLib.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/closures/closureInsideClosure") + @TestDataPath("$PROJECT_ROOT") + public class ClosureInsideClosure { + @Test + public void testAllFilesPresentInClosureInsideClosure() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/closureInsideClosure"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("localFunInsideLocalFun.kt") + public void testLocalFunInsideLocalFun() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/localFunInsideLocalFun.kt"); + } + + @Test + @TestMetadata("localFunInsideLocalFunDifferentSignatures.kt") + public void testLocalFunInsideLocalFunDifferentSignatures() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/localFunInsideLocalFunDifferentSignatures.kt"); + } + + @Test + @TestMetadata("propertyAndFunctionNameClash.kt") + public void testPropertyAndFunctionNameClash() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/propertyAndFunctionNameClash.kt"); + } + + @Test + @TestMetadata("threeLevels.kt") + public void testThreeLevels() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/threeLevels.kt"); + } + + @Test + @TestMetadata("threeLevelsDifferentSignatures.kt") + public void testThreeLevelsDifferentSignatures() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/threeLevelsDifferentSignatures.kt"); + } + + @Test + @TestMetadata("varAsFunInsideLocalFun.kt") + public void testVarAsFunInsideLocalFun() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/varAsFunInsideLocalFun.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/collectionLiterals") + @TestDataPath("$PROJECT_ROOT") + public class CollectionLiterals { + @Test + public void testAllFilesPresentInCollectionLiterals() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/collectionLiterals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("collectionLiteralsInArgumentPosition.kt") + public void testCollectionLiteralsInArgumentPosition() throws Exception { + runTest("compiler/testData/codegen/box/collectionLiterals/collectionLiteralsInArgumentPosition.kt"); + } + + @Test + @TestMetadata("collectionLiteralsWithConstants.kt") + public void testCollectionLiteralsWithConstants() throws Exception { + runTest("compiler/testData/codegen/box/collectionLiterals/collectionLiteralsWithConstants.kt"); + } + + @Test + @TestMetadata("collectionLiteralsWithVarargs.kt") + public void testCollectionLiteralsWithVarargs() throws Exception { + runTest("compiler/testData/codegen/box/collectionLiterals/collectionLiteralsWithVarargs.kt"); + } + + @Test + @TestMetadata("defaultAnnotationParameterValues.kt") + public void testDefaultAnnotationParameterValues() throws Exception { + runTest("compiler/testData/codegen/box/collectionLiterals/defaultAnnotationParameterValues.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/collections") + @TestDataPath("$PROJECT_ROOT") + public class Collections { + @Test + @TestMetadata("addCollectionStubWithCovariantOverride.kt") + public void testAddCollectionStubWithCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/box/collections/addCollectionStubWithCovariantOverride.kt"); + } + + @Test + public void testAllFilesPresentInCollections() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/collections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("charSequence.kt") + public void testCharSequence() throws Exception { + runTest("compiler/testData/codegen/box/collections/charSequence.kt"); + } + + @Test + @TestMetadata("implementCollectionThroughKotlin.kt") + public void testImplementCollectionThroughKotlin() throws Exception { + runTest("compiler/testData/codegen/box/collections/implementCollectionThroughKotlin.kt"); + } + + @Test + @TestMetadata("inSetWithSmartCast.kt") + public void testInSetWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/collections/inSetWithSmartCast.kt"); + } + + @Test + @TestMetadata("inheritFromAbstractMutableListInt.kt") + public void testInheritFromAbstractMutableListInt() throws Exception { + runTest("compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.kt"); + } + + @Test + @TestMetadata("inheritFromHashtable.kt") + public void testInheritFromHashtable() throws Exception { + runTest("compiler/testData/codegen/box/collections/inheritFromHashtable.kt"); + } + + @Test + @TestMetadata("internalRemove.kt") + public void testInternalRemove() throws Exception { + runTest("compiler/testData/codegen/box/collections/internalRemove.kt"); + } + + @Test + @TestMetadata("internalRemoveFromJava.kt") + public void testInternalRemoveFromJava() throws Exception { + runTest("compiler/testData/codegen/box/collections/internalRemoveFromJava.kt"); + } + + @Test + @TestMetadata("irrelevantImplCharSequence.kt") + public void testIrrelevantImplCharSequence() throws Exception { + runTest("compiler/testData/codegen/box/collections/irrelevantImplCharSequence.kt"); + } + + @Test + @TestMetadata("irrelevantImplCharSequenceKotlin.kt") + public void testIrrelevantImplCharSequenceKotlin() throws Exception { + runTest("compiler/testData/codegen/box/collections/irrelevantImplCharSequenceKotlin.kt"); + } + + @Test + @TestMetadata("irrelevantImplMutableList.kt") + public void testIrrelevantImplMutableList() throws Exception { + runTest("compiler/testData/codegen/box/collections/irrelevantImplMutableList.kt"); + } + + @Test + @TestMetadata("irrelevantImplMutableListKotlin.kt") + public void testIrrelevantImplMutableListKotlin() throws Exception { + runTest("compiler/testData/codegen/box/collections/irrelevantImplMutableListKotlin.kt"); + } + + @Test + @TestMetadata("irrelevantImplMutableListSubstitution.kt") + public void testIrrelevantImplMutableListSubstitution() throws Exception { + runTest("compiler/testData/codegen/box/collections/irrelevantImplMutableListSubstitution.kt"); + } + + @Test + @TestMetadata("irrelevantRemoveAtOverrideInJava.kt") + public void testIrrelevantRemoveAtOverrideInJava() throws Exception { + runTest("compiler/testData/codegen/box/collections/irrelevantRemoveAtOverrideInJava.kt"); + } + + @Test + @TestMetadata("irrelevantSizeOverrideInJava.kt") + public void testIrrelevantSizeOverrideInJava() throws Exception { + runTest("compiler/testData/codegen/box/collections/irrelevantSizeOverrideInJava.kt"); + } + + @Test + @TestMetadata("javaCollectionWithRemovePrimitiveInt.kt") + public void testJavaCollectionWithRemovePrimitiveInt() throws Exception { + runTest("compiler/testData/codegen/box/collections/javaCollectionWithRemovePrimitiveInt.kt"); + } + + @Test + @TestMetadata("kt40305.kt") + public void testKt40305() throws Exception { + runTest("compiler/testData/codegen/box/collections/kt40305.kt"); + } + + @Test + @TestMetadata("kt41123.kt") + public void testKt41123() throws Exception { + runTest("compiler/testData/codegen/box/collections/kt41123.kt"); + } + + @Test + @TestMetadata("kt44233.kt") + public void testKt44233() throws Exception { + runTest("compiler/testData/codegen/box/collections/kt44233.kt"); + } + + @Test + @TestMetadata("kt48945.kt") + public void testKt48945() throws Exception { + runTest("compiler/testData/codegen/box/collections/kt48945.kt"); + } + + @Test + @TestMetadata("kt48945a.kt") + public void testKt48945a() throws Exception { + runTest("compiler/testData/codegen/box/collections/kt48945a.kt"); + } + + @Test + @TestMetadata("kt48945b.kt") + public void testKt48945b() throws Exception { + runTest("compiler/testData/codegen/box/collections/kt48945b.kt"); + } + + @Test + @TestMetadata("kt48945c.kt") + public void testKt48945c() throws Exception { + runTest("compiler/testData/codegen/box/collections/kt48945c.kt"); + } + + @Test + @TestMetadata("mutableList.kt") + public void testMutableList() throws Exception { + runTest("compiler/testData/codegen/box/collections/mutableList.kt"); + } + + @Test + @TestMetadata("noStubsInJavaSuperClass.kt") + public void testNoStubsInJavaSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/collections/noStubsInJavaSuperClass.kt"); + } + + @Test + @TestMetadata("platformValueContains.kt") + public void testPlatformValueContains() throws Exception { + runTest("compiler/testData/codegen/box/collections/platformValueContains.kt"); + } + + @Test + @TestMetadata("readOnlyList.kt") + public void testReadOnlyList() throws Exception { + runTest("compiler/testData/codegen/box/collections/readOnlyList.kt"); + } + + @Test + @TestMetadata("readOnlyMap.kt") + public void testReadOnlyMap() throws Exception { + runTest("compiler/testData/codegen/box/collections/readOnlyMap.kt"); + } + + @Test + @TestMetadata("removeAtBridgeClashWithJava.kt") + public void testRemoveAtBridgeClashWithJava() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeAtBridgeClashWithJava.kt"); + } + + @Test + @TestMetadata("removeAtInt.kt") + public void testRemoveAtInt() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeAtInt.kt"); + } + + @Test + @TestMetadata("removeAtIntOverrideInJava.kt") + public void testRemoveAtIntOverrideInJava() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeAtIntOverrideInJava.kt"); + } + + @Test + @TestMetadata("removeAtIntOverrideInJava2.kt") + public void testRemoveAtIntOverrideInJava2() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeAtIntOverrideInJava2.kt"); + } + + @Test + @TestMetadata("removeClash.kt") + public void testRemoveClash() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeClash.kt"); + } + + @Test + @TestMetadata("removeClashJava.kt") + public void testRemoveClashJava() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeClashJava.kt"); + } + + @Test + @TestMetadata("removeClashKotlin.kt") + public void testRemoveClashKotlin() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeClashKotlin.kt"); + } + + @Test + @TestMetadata("removeClashWithGenerics.kt") + public void testRemoveClashWithGenerics() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeClashWithGenerics.kt"); + } + + @Test + @TestMetadata("removeNullFromList.kt") + public void testRemoveNullFromList() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeNullFromList.kt"); + } + + @Test + @TestMetadata("removeOverriddenInJava.kt") + public void testRemoveOverriddenInJava() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeOverriddenInJava.kt"); + } + + @Test + @TestMetadata("removeOverriddenInJava_Map.kt") + public void testRemoveOverriddenInJava_Map() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeOverriddenInJava_Map.kt"); + } + + @Test + @TestMetadata("specialBridgeForGet.kt") + public void testSpecialBridgeForGet() throws Exception { + runTest("compiler/testData/codegen/box/collections/specialBridgeForGet.kt"); + } + + @Test + @TestMetadata("strList.kt") + public void testStrList() throws Exception { + runTest("compiler/testData/codegen/box/collections/strList.kt"); + } + + @Test + @TestMetadata("toArrayInJavaClass.kt") + public void testToArrayInJavaClass() throws Exception { + runTest("compiler/testData/codegen/box/collections/toArrayInJavaClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/companion") + @TestDataPath("$PROJECT_ROOT") + public class Companion { + @Test + public void testAllFilesPresentInCompanion() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/companion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("delegatedPropertyOnCompanion.kt") + public void testDelegatedPropertyOnCompanion() throws Exception { + runTest("compiler/testData/codegen/box/companion/delegatedPropertyOnCompanion.kt"); + } + + @Test + @TestMetadata("genericLambdaOnStringCompanion.kt") + public void testGenericLambdaOnStringCompanion() throws Exception { + runTest("compiler/testData/codegen/box/companion/genericLambdaOnStringCompanion.kt"); + } + + @Test + @TestMetadata("inlineFunctionCompanionPropertyAccess.kt") + public void testInlineFunctionCompanionPropertyAccess() throws Exception { + runTest("compiler/testData/codegen/box/companion/inlineFunctionCompanionPropertyAccess.kt"); + } + + @Test + @TestMetadata("kt54645.kt") + public void testKt54645() throws Exception { + runTest("compiler/testData/codegen/box/companion/kt54645.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compatibility") + @TestDataPath("$PROJECT_ROOT") + public class Compatibility { + @Test + public void testAllFilesPresentInCompatibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("privateCompanionObject.kt") + public void testPrivateCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/compatibility/privateCompanionObject.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin") + @TestDataPath("$PROJECT_ROOT") + public class CompileKotlinAgainstKotlin { + @Test + @TestMetadata("adaptedSuspendFunctionReference.kt") + public void testAdaptedSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt"); + } + + @Test + public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @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("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("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("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("fakeOverridesForIntersectionTypes.kt") + public void testFakeOverridesForIntersectionTypes() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt"); + } + + @Test + @TestMetadata("genericSetter.kt") + public void testGenericSetter() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/genericSetter.kt"); + } + + @Test + @TestMetadata("importCompanion.kt") + public void testImportCompanion() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/importCompanion.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("internalLeakBug.kt") + public void testInternalLeakBug() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalLeakBug.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("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("jvmFieldInConstructor2.kt") + public void testJvmFieldInConstructor2() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInConstructor2.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("nestedClassAsBound.kt") + public void testNestedClassAsBound() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClassAsBound.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("privateSuperType.kt") + public void testPrivateSuperType() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateSuperType.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("repeatableAnnotation.kt") + public void testRepeatableAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/repeatableAnnotation.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("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 { + @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("javaTypeParameterBy.kt") + public void testJavaTypeParameterBy() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/javaTypeParameterBy.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/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + public class InlineClasses { + @Test + public void testAllFilesPresentInInlineClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callDeserializedPropertyOnInlineClassType.kt") + public void testCallDeserializedPropertyOnInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/callDeserializedPropertyOnInlineClassType.kt"); + } + + @Test + @TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt") + public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/constructorWithInlineClassParametersInBinaryDependencies.kt"); + } + + @Test + @TestMetadata("defaultWithInlineClassAndReceivers.kt") + public void testDefaultWithInlineClassAndReceivers() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt"); + } + + @Test + @TestMetadata("extensionPropertyWithSameName.kt") + public void testExtensionPropertyWithSameName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/extensionPropertyWithSameName.kt"); + } + + @Test + @TestMetadata("funInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt"); + } + + @Test + @TestMetadata("inlineClassFakeOverrideMangling.kt") + public void testInlineClassFakeOverrideMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/inlineClassFakeOverrideMangling.kt"); + } + + @Test + @TestMetadata("inlineClassFromBinaryDependencies.kt") + public void testInlineClassFromBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/inlineClassFromBinaryDependencies.kt"); + } + + @Test + @TestMetadata("inlineClassInlineFunctionCall.kt") + public void testInlineClassInlineFunctionCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/inlineClassInlineFunctionCall.kt"); + } + + @Test + @TestMetadata("inlineClassInlineProperty.kt") + public void testInlineClassInlineProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/inlineClassInlineProperty.kt"); + } + + @Test + @TestMetadata("internalWithInlineClass.kt") + public void testInternalWithInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/internalWithInlineClass.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectValInDifferentModule.kt") + public void testPrivateCompanionObjectValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/privateCompanionObjectValInDifferentModule.kt"); + } + + @Test + @TestMetadata("privateConstructor.kt") + public void testPrivateConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/privateConstructor.kt"); + } + + @Test + @TestMetadata("privateConstructorWithPrivateField.kt") + public void testPrivateConstructorWithPrivateField() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/privateConstructorWithPrivateField.kt"); + } + + @Test + @TestMetadata("privateConstructorWithPrivateFieldUsingTypeTable.kt") + public void testPrivateConstructorWithPrivateFieldUsingTypeTable() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/privateConstructorWithPrivateFieldUsingTypeTable.kt"); + } + + @Test + @TestMetadata("privateTopLevelValInDifferentModule.kt") + public void testPrivateTopLevelValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/privateTopLevelValInDifferentModule.kt"); + } + + @Test + @TestMetadata("suspendFunWithDefaultMangling.kt") + public void testSuspendFunWithDefaultMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/suspendFunWithDefaultMangling.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling") + @TestDataPath("$PROJECT_ROOT") + public class OldMangling { + @Test + public void testAllFilesPresentInOldMangling() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callDeserializedPropertyOnInlineClassType.kt") + public void testCallDeserializedPropertyOnInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/callDeserializedPropertyOnInlineClassType.kt"); + } + + @Test + @TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt") + public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/constructorWithInlineClassParametersInBinaryDependencies.kt"); + } + + @Test + @TestMetadata("defaultWithInlineClassAndReceivers.kt") + public void testDefaultWithInlineClassAndReceivers() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/defaultWithInlineClassAndReceivers.kt"); + } + + @Test + @TestMetadata("extensionPropertyWithSameName.kt") + public void testExtensionPropertyWithSameName() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/extensionPropertyWithSameName.kt"); + } + + @Test + @TestMetadata("inlineClassFakeOverrideMangling.kt") + public void testInlineClassFakeOverrideMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/inlineClassFakeOverrideMangling.kt"); + } + + @Test + @TestMetadata("inlineClassFromBinaryDependencies.kt") + public void testInlineClassFromBinaryDependencies() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/inlineClassFromBinaryDependencies.kt"); + } + + @Test + @TestMetadata("inlineClassInlineFunctionCall.kt") + public void testInlineClassInlineFunctionCall() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/inlineClassInlineFunctionCall.kt"); + } + + @Test + @TestMetadata("inlineClassInlineProperty.kt") + public void testInlineClassInlineProperty() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/inlineClassInlineProperty.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectValInDifferentModule.kt") + public void testPrivateCompanionObjectValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/privateCompanionObjectValInDifferentModule.kt"); + } + + @Test + @TestMetadata("privateConstructor.kt") + public void testPrivateConstructor() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/privateConstructor.kt"); + } + + @Test + @TestMetadata("privateConstructorWithPrivateField.kt") + public void testPrivateConstructorWithPrivateField() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/privateConstructorWithPrivateField.kt"); + } + + @Test + @TestMetadata("privateTopLevelValInDifferentModule.kt") + public void testPrivateTopLevelValInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/privateTopLevelValInDifferentModule.kt"); + } + + @Test + @TestMetadata("suspendFunWithDefaultOldMangling.kt") + public void testSuspendFunWithDefaultOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/suspendFunWithDefaultOldMangling.kt"); + } + + @Test + @TestMetadata("useOldMangling.kt") + public void testUseOldMangling() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/oldMangling/useOldMangling.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8 { + @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 { + @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("callStackTrace.kt") + public void testCallStackTrace() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/callStackTrace.kt"); + } + + @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("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"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility") + @TestDataPath("$PROJECT_ROOT") + public class AllCompatibility { + @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 { + @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 { + @Test + @TestMetadata("allAgainsAllCompatibility.kt") + public void testAllAgainsAllCompatibility() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/allAgainsAllCompatibility.kt"); + } + + @Test + @TestMetadata("allCompatibilityAgainsAll.kt") + public void testAllCompatibilityAgainsAll() throws Exception { + runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/allCompatibilityAgainsAll.kt"); + } + + @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"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8against6 { + @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 { + @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 { + @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") + public class Constants { + @Test + public void testAllFilesPresentInConstants() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/constants"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("comparisonFalse.kt") + public void testComparisonFalse() throws Exception { + runTest("compiler/testData/codegen/box/constants/comparisonFalse.kt"); + } + + @Test + @TestMetadata("comparisonTrue.kt") + public void testComparisonTrue() throws Exception { + runTest("compiler/testData/codegen/box/constants/comparisonTrue.kt"); + } + + @Test + @TestMetadata("constValFromAnotherModuleInConsVal.kt") + public void testConstValFromAnotherModuleInConsVal() throws Exception { + runTest("compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt"); + } + + @Test + @TestMetadata("constantsInWhen.kt") + public void testConstantsInWhen() throws Exception { + runTest("compiler/testData/codegen/box/constants/constantsInWhen.kt"); + } + + @Test + @TestMetadata("divisionByZero.kt") + public void testDivisionByZero() throws Exception { + runTest("compiler/testData/codegen/box/constants/divisionByZero.kt"); + } + + @Test + @TestMetadata("doNotTriggerInit.kt") + public void testDoNotTriggerInit() throws Exception { + runTest("compiler/testData/codegen/box/constants/doNotTriggerInit.kt"); + } + + @Test + @TestMetadata("float.kt") + public void testFloat() throws Exception { + runTest("compiler/testData/codegen/box/constants/float.kt"); + } + + @Test + @TestMetadata("foldingBinaryOpsUnsigned.kt") + public void testFoldingBinaryOpsUnsigned() throws Exception { + runTest("compiler/testData/codegen/box/constants/foldingBinaryOpsUnsigned.kt"); + } + + @Test + @TestMetadata("foldingBinaryOpsUnsignedConst.kt") + public void testFoldingBinaryOpsUnsignedConst() throws Exception { + runTest("compiler/testData/codegen/box/constants/foldingBinaryOpsUnsignedConst.kt"); + } + + @Test + @TestMetadata("kt9532.kt") + public void testKt9532() throws Exception { + runTest("compiler/testData/codegen/box/constants/kt9532.kt"); + } + + @Test + @TestMetadata("literalToLongConversion.kt") + public void testLiteralToLongConversion() throws Exception { + runTest("compiler/testData/codegen/box/constants/literalToLongConversion.kt"); + } + + @Test + @TestMetadata("long.kt") + public void testLong() throws Exception { + runTest("compiler/testData/codegen/box/constants/long.kt"); + } + + @Test + @TestMetadata("numberLiteralCoercionToInferredType.kt") + public void testNumberLiteralCoercionToInferredType() throws Exception { + runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt"); + } + + @Test + @TestMetadata("privateConst.kt") + public void testPrivateConst() throws Exception { + runTest("compiler/testData/codegen/box/constants/privateConst.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/constructor") + @TestDataPath("$PROJECT_ROOT") + public class Constructor { + @Test + public void testAllFilesPresentInConstructor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericConstructor.kt") + public void testGenericConstructor() throws Exception { + runTest("compiler/testData/codegen/box/constructor/genericConstructor.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/constructor/secondaryConstructor.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/constructorCall") + @TestDataPath("$PROJECT_ROOT") + public class ConstructorCall { + @Test + public void testAllFilesPresentInConstructorCall() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/constructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("breakInConstructorArguments.kt") + public void testBreakInConstructorArguments() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/breakInConstructorArguments.kt"); + } + + @Test + @TestMetadata("continueInConstructorArguments.kt") + public void testContinueInConstructorArguments() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/continueInConstructorArguments.kt"); + } + + @Test + @TestMetadata("earlyReturnInConstructorArguments.kt") + public void testEarlyReturnInConstructorArguments() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/earlyReturnInConstructorArguments.kt"); + } + + @Test + @TestMetadata("inlineFunInConstructorCall.kt") + public void testInlineFunInConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCall.kt"); + } + + @Test + @TestMetadata("inlineFunInConstructorCallEvaluationOrder.kt") + public void testInlineFunInConstructorCallEvaluationOrder() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallEvaluationOrder.kt"); + } + + @Test + @TestMetadata("inlineFunInInnerClassConstructorCall.kt") + public void testInlineFunInInnerClassConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/inlineFunInInnerClassConstructorCall.kt"); + } + + @Test + @TestMetadata("inlineFunInLocalClassConstructorCall.kt") + public void testInlineFunInLocalClassConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/inlineFunInLocalClassConstructorCall.kt"); + } + + @Test + @TestMetadata("kt49615.kt") + public void testKt49615() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/kt49615.kt"); + } + + @Test + @TestMetadata("kt49615a.kt") + public void testKt49615a() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/kt49615a.kt"); + } + + @Test + @TestMetadata("loopInInlineFun.kt") + public void testLoopInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/loopInInlineFun.kt"); + } + + @Test + @TestMetadata("loopInInlineFunInSuperConstructorCall.kt") + public void testLoopInInlineFunInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/loopInInlineFunInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("nestedConstructorCallWithJumpOutInConstructorArguments.kt") + public void testNestedConstructorCallWithJumpOutInConstructorArguments() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/nestedConstructorCallWithJumpOutInConstructorArguments.kt"); + } + + @Test + @TestMetadata("nonLocalReturnInConstructorArguments.kt") + public void testNonLocalReturnInConstructorArguments() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/nonLocalReturnInConstructorArguments.kt"); + } + + @Test + @TestMetadata("possiblyPoppedUnitializedValueInArguments.kt") + public void testPossiblyPoppedUnitializedValueInArguments() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/possiblyPoppedUnitializedValueInArguments.kt"); + } + + @Test + @TestMetadata("regularConstructorCallEvaluationOrder.kt") + public void testRegularConstructorCallEvaluationOrder() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/regularConstructorCallEvaluationOrder.kt"); + } + + @Test + @TestMetadata("tryCatchInConstructorCallEvaluationOrder.kt") + public void testTryCatchInConstructorCallEvaluationOrder() throws Exception { + runTest("compiler/testData/codegen/box/constructorCall/tryCatchInConstructorCallEvaluationOrder.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/contracts") + @TestDataPath("$PROJECT_ROOT") + public class Contracts { + @Test + public void testAllFilesPresentInContracts() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorArgument.kt") + public void testConstructorArgument() throws Exception { + runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); + } + + @Test + @TestMetadata("destructuredVariable.kt") + public void testDestructuredVariable() throws Exception { + runTest("compiler/testData/codegen/box/contracts/destructuredVariable.kt"); + } + + @Test + @TestMetadata("exactlyOnceNotInline.kt") + public void testExactlyOnceNotInline() throws Exception { + runTest("compiler/testData/codegen/box/contracts/exactlyOnceNotInline.kt"); + } + + @Test + @TestMetadata("exception.kt") + public void testException() throws Exception { + runTest("compiler/testData/codegen/box/contracts/exception.kt"); + } + + @Test + @TestMetadata("fieldInConstructorParens.kt") + public void testFieldInConstructorParens() throws Exception { + runTest("compiler/testData/codegen/box/contracts/fieldInConstructorParens.kt"); + } + + @Test + @TestMetadata("fieldReadInConstructor.kt") + public void testFieldReadInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/contracts/fieldReadInConstructor.kt"); + } + + @Test + @TestMetadata("forLoop.kt") + public void testForLoop() throws Exception { + runTest("compiler/testData/codegen/box/contracts/forLoop.kt"); + } + + @Test + @TestMetadata("functionParameter.kt") + public void testFunctionParameter() throws Exception { + runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); + } + + @Test + @TestMetadata("kt39374.kt") + public void testKt39374() throws Exception { + runTest("compiler/testData/codegen/box/contracts/kt39374.kt"); + } + + @Test + @TestMetadata("kt45236.kt") + public void testKt45236() throws Exception { + runTest("compiler/testData/codegen/box/contracts/kt45236.kt"); + } + + @Test + @TestMetadata("kt47168.kt") + public void testKt47168() throws Exception { + runTest("compiler/testData/codegen/box/contracts/kt47168.kt"); + } + + @Test + @TestMetadata("kt47300.kt") + public void testKt47300() throws Exception { + runTest("compiler/testData/codegen/box/contracts/kt47300.kt"); + } + + @Test + @TestMetadata("lambdaParameter.kt") + public void testLambdaParameter() throws Exception { + runTest("compiler/testData/codegen/box/contracts/lambdaParameter.kt"); + } + + @Test + @TestMetadata("listAppend.kt") + public void testListAppend() throws Exception { + runTest("compiler/testData/codegen/box/contracts/listAppend.kt"); + } + + @Test + @TestMetadata("nestedLambdaInNonInlineCallExactlyOnce.kt") + public void testNestedLambdaInNonInlineCallExactlyOnce() throws Exception { + runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); + } + + @Test + @TestMetadata("valInWhen.kt") + public void testValInWhen() throws Exception { + runTest("compiler/testData/codegen/box/contracts/valInWhen.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures") + @TestDataPath("$PROJECT_ROOT") + public class ControlStructures { + @Test + public void testAllFilesPresentInControlStructures() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bottles.kt") + public void testBottles() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/bottles.kt"); + } + + @Test + @TestMetadata("breakInFinally.kt") + public void testBreakInFinally() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakInFinally.kt"); + } + + @Test + @TestMetadata("breakInWhen.kt") + public void testBreakInWhen() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakInWhen.kt"); + } + + @Test + @TestMetadata("compareBoxedIntegerToZero.kt") + public void testCompareBoxedIntegerToZero() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/compareBoxedIntegerToZero.kt"); + } + + @Test + @TestMetadata("conditionOfEmptyIf.kt") + public void testConditionOfEmptyIf() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/conditionOfEmptyIf.kt"); + } + + @Test + @TestMetadata("continueInExpr.kt") + public void testContinueInExpr() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueInExpr.kt"); + } + + @Test + @TestMetadata("continueInFor.kt") + public void testContinueInFor() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueInFor.kt"); + } + + @Test + @TestMetadata("continueInForCondition.kt") + public void testContinueInForCondition() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueInForCondition.kt"); + } + + @Test + @TestMetadata("continueInWhen.kt") + public void testContinueInWhen() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueInWhen.kt"); + } + + @Test + @TestMetadata("continueInWhile.kt") + public void testContinueInWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueInWhile.kt"); + } + + @Test + @TestMetadata("continueToLabelInFor.kt") + public void testContinueToLabelInFor() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueToLabelInFor.kt"); + } + + @Test + @TestMetadata("doWhile.kt") + public void testDoWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/doWhile.kt"); + } + + @Test + @TestMetadata("doWhileFib.kt") + public void testDoWhileFib() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/doWhileFib.kt"); + } + + @Test + @TestMetadata("doWhileWithContinue.kt") + public void testDoWhileWithContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/doWhileWithContinue.kt"); + } + + @Test + @TestMetadata("emptyDoWhile.kt") + public void testEmptyDoWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/emptyDoWhile.kt"); + } + + @Test + @TestMetadata("emptyFor.kt") + public void testEmptyFor() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/emptyFor.kt"); + } + + @Test + @TestMetadata("emptyWhile.kt") + public void testEmptyWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/emptyWhile.kt"); + } + + @Test + @TestMetadata("factorialTest.kt") + public void testFactorialTest() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/factorialTest.kt"); + } + + @Test + @TestMetadata("finallyOnEmptyReturn.kt") + public void testFinallyOnEmptyReturn() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/finallyOnEmptyReturn.kt"); + } + + @Test + @TestMetadata("forArrayList.kt") + public void testForArrayList() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forArrayList.kt"); + } + + @Test + @TestMetadata("forArrayListMultiDecl.kt") + public void testForArrayListMultiDecl() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.kt"); + } + + @Test + @TestMetadata("forInCharSequence.kt") + public void testForInCharSequence() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequence.kt"); + } + + @Test + @TestMetadata("forInCharSequenceMut.kt") + public void testForInCharSequenceMut() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceMut.kt"); + } + + @Test + @TestMetadata("forInSmartCastToArray.kt") + public void testForInSmartCastToArray() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSmartCastToArray.kt"); + } + + @Test + @TestMetadata("forLoopMemberExtensionAll.kt") + public void testForLoopMemberExtensionAll() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forLoopMemberExtensionAll.kt"); + } + + @Test + @TestMetadata("forLoopMemberExtensionHasNext.kt") + public void testForLoopMemberExtensionHasNext() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forLoopMemberExtensionHasNext.kt"); + } + + @Test + @TestMetadata("forLoopMemberExtensionNext.kt") + public void testForLoopMemberExtensionNext() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forLoopMemberExtensionNext.kt"); + } + + @Test + @TestMetadata("forNullableCharInString.kt") + public void testForNullableCharInString() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forNullableCharInString.kt"); + } + + @Test + @TestMetadata("forUserType.kt") + public void testForUserType() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forUserType.kt"); + } + + @Test + @TestMetadata("ifConst1.kt") + public void testIfConst1() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/ifConst1.kt"); + } + + @Test + @TestMetadata("ifConst2.kt") + public void testIfConst2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/ifConst2.kt"); + } + + @Test + @TestMetadata("ifIncompatibleBranches.kt") + public void testIfIncompatibleBranches() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/ifIncompatibleBranches.kt"); + } + + @Test + @TestMetadata("inRangeConditionsInWhen.kt") + public void testInRangeConditionsInWhen() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/inRangeConditionsInWhen.kt"); + } + + @Test + @TestMetadata("kt12908.kt") + public void testKt12908() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt12908.kt"); + } + + @Test + @TestMetadata("kt12908_2.kt") + public void testKt12908_2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt12908_2.kt"); + } + + @Test + @TestMetadata("kt1441.kt") + public void testKt1441() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt1441.kt"); + } + + @Test + @TestMetadata("kt14839.kt") + public void testKt14839() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt14839.kt"); + } + + @Test + @TestMetadata("kt15726.kt") + public void testKt15726() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt15726.kt"); + } + + @Test + @TestMetadata("kt1688.kt") + public void testKt1688() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt1688.kt"); + } + + @Test + @TestMetadata("kt17110.kt") + public void testKt17110() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt17110.kt"); + } + + @Test + @TestMetadata("kt1742.kt") + public void testKt1742() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt1742.kt"); + } + + @Test + @TestMetadata("kt17590.kt") + public void testKt17590() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt17590.kt"); + } + + @Test + @TestMetadata("kt17590_long.kt") + public void testKt17590_long() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt17590_long.kt"); + } + + @Test + @TestMetadata("kt1899.kt") + public void testKt1899() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt1899.kt"); + } + + @Test + @TestMetadata("kt2147.kt") + public void testKt2147() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2147.kt"); + } + + @Test + @TestMetadata("kt2259.kt") + public void testKt2259() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2259.kt"); + } + + @Test + @TestMetadata("kt2291.kt") + public void testKt2291() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2291.kt"); + } + + @Test + @TestMetadata("kt237.kt") + public void testKt237() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt237.kt"); + } + + @Test + @TestMetadata("kt2416.kt") + public void testKt2416() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2416.kt"); + } + + @Test + @TestMetadata("kt2423.kt") + public void testKt2423() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2423.kt"); + } + + @Test + @TestMetadata("kt2577.kt") + public void testKt2577() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2577.kt"); + } + + @Test + @TestMetadata("kt2597.kt") + public void testKt2597() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2597.kt"); + } + + @Test + @TestMetadata("kt299.kt") + public void testKt299() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt299.kt"); + } + + @Test + @TestMetadata("kt3087.kt") + public void testKt3087() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt3087.kt"); + } + + @Test + @TestMetadata("kt3203_1.kt") + public void testKt3203_1() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt3203_1.kt"); + } + + @Test + @TestMetadata("kt3203_2.kt") + public void testKt3203_2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt3203_2.kt"); + } + + @Test + @TestMetadata("kt3273.kt") + public void testKt3273() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt3273.kt"); + } + + @Test + @TestMetadata("kt3280.kt") + public void testKt3280() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt3280.kt"); + } + + @Test + @TestMetadata("kt3574.kt") + public void testKt3574() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt3574.kt"); + } + + @Test + @TestMetadata("kt416.kt") + public void testKt416() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt416.kt"); + } + + @Test + @TestMetadata("kt42455.kt") + public void testKt42455() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt42455.kt"); + } + + @Test + @TestMetadata("kt47245.kt") + public void testKt47245() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt47245.kt"); + } + + @Test + @TestMetadata("kt513.kt") + public void testKt513() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt513.kt"); + } + + @Test + @TestMetadata("kt628.kt") + public void testKt628() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt628.kt"); + } + + @Test + @TestMetadata("kt769.kt") + public void testKt769() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt769.kt"); + } + + @Test + @TestMetadata("kt772.kt") + public void testKt772() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt772.kt"); + } + + @Test + @TestMetadata("kt773.kt") + public void testKt773() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt773.kt"); + } + + @Test + @TestMetadata("kt8148.kt") + public void testKt8148() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt8148.kt"); + } + + @Test + @TestMetadata("kt8148_break.kt") + public void testKt8148_break() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt8148_break.kt"); + } + + @Test + @TestMetadata("kt8148_continue.kt") + public void testKt8148_continue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt8148_continue.kt"); + } + + @Test + @TestMetadata("kt870.kt") + public void testKt870() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt870.kt"); + } + + @Test + @TestMetadata("kt9022Return.kt") + public void testKt9022Return() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt9022Return.kt"); + } + + @Test + @TestMetadata("kt9022Throw.kt") + public void testKt9022Throw() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt9022Throw.kt"); + } + + @Test + @TestMetadata("kt910.kt") + public void testKt910() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt910.kt"); + } + + @Test + @TestMetadata("kt958.kt") + public void testKt958() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt958.kt"); + } + + @Test + @TestMetadata("longRange.kt") + public void testLongRange() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/longRange.kt"); + } + + @Test + @TestMetadata("parameterWithNameForFunctionType.kt") + public void testParameterWithNameForFunctionType() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/parameterWithNameForFunctionType.kt"); + } + + @Test + @TestMetadata("quicksort.kt") + public void testQuicksort() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/quicksort.kt"); + } + + @Test + @TestMetadata("tcbInEliminatedCondition.kt") + public void testTcbInEliminatedCondition() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tcbInEliminatedCondition.kt"); + } + + @Test + @TestMetadata("tryCatchExpression.kt") + public void testTryCatchExpression() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchExpression.kt"); + } + + @Test + @TestMetadata("tryCatchFinally.kt") + public void testTryCatchFinally() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchFinally.kt"); + } + + @Test + @TestMetadata("tryCatchFinallyChain.kt") + public void testTryCatchFinallyChain() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchFinallyChain.kt"); + } + + @Test + @TestMetadata("tryFinally.kt") + public void testTryFinally() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryFinally.kt"); + } + + @Test + @TestMetadata("tryFinallyGeneric.kt") + public void testTryFinallyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryFinallyGeneric.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions") + @TestDataPath("$PROJECT_ROOT") + public class BreakContinueInExpressions { + @Test + public void testAllFilesPresentInBreakContinueInExpressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("breakFromOuter.kt") + public void testBreakFromOuter() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakFromOuter.kt"); + } + + @Test + @TestMetadata("breakInDoWhile.kt") + public void testBreakInDoWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakInDoWhile.kt"); + } + + @Test + @TestMetadata("breakInExpr.kt") + public void testBreakInExpr() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakInExpr.kt"); + } + + @Test + @TestMetadata("breakInLoopConditions.kt") + public void testBreakInLoopConditions() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakInLoopConditions.kt"); + } + + @Test + @TestMetadata("continueInDoWhile.kt") + public void testContinueInDoWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/continueInDoWhile.kt"); + } + + @Test + @TestMetadata("continueInExpr.kt") + public void testContinueInExpr() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/continueInExpr.kt"); + } + + @Test + @TestMetadata("inlineWithStack.kt") + public void testInlineWithStack() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlineWithStack.kt"); + } + + @Test + @TestMetadata("innerLoopWithStack.kt") + public void testInnerLoopWithStack() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/innerLoopWithStack.kt"); + } + + @Test + @TestMetadata("kt14581.kt") + public void testKt14581() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt14581.kt"); + } + + @Test + @TestMetadata("kt16713.kt") + public void testKt16713() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt16713.kt"); + } + + @Test + @TestMetadata("kt16713_2.kt") + public void testKt16713_2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt16713_2.kt"); + } + + @Test + @TestMetadata("kt17384.kt") + public void testKt17384() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt17384.kt"); + } + + @Test + @TestMetadata("kt45704_elvisInInlineFun.kt") + public void testKt45704_elvisInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt"); + } + + @Test + @TestMetadata("kt9022And.kt") + public void testKt9022And() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt9022And.kt"); + } + + @Test + @TestMetadata("kt9022Or.kt") + public void testKt9022Or() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt9022Or.kt"); + } + + @Test + @TestMetadata("pathologicalDoWhile.kt") + public void testPathologicalDoWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/pathologicalDoWhile.kt"); + } + + @Test + @TestMetadata("popSizes.kt") + public void testPopSizes() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/popSizes.kt"); + } + + @Test + @TestMetadata("tryFinally1.kt") + public void testTryFinally1() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/tryFinally1.kt"); + } + + @Test + @TestMetadata("tryFinally2.kt") + public void testTryFinally2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/tryFinally2.kt"); + } + + @Test + @TestMetadata("whileTrueBreak.kt") + public void testWhileTrueBreak() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/whileTrueBreak.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue") + @TestDataPath("$PROJECT_ROOT") + public class InlinedBreakContinue { + @Test + public void testAllFilesPresentInInlinedBreakContinue() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("initializerBlock.kt") + public void testInitializerBlock() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/initializerBlock.kt"); + } + + @Test + @TestMetadata("inlineFunctionWithMultipleParameters.kt") + public void testInlineFunctionWithMultipleParameters() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/inlineFunctionWithMultipleParameters.kt"); + } + + @Test + @TestMetadata("lambdaPassedToInlineFunction.kt") + public void testLambdaPassedToInlineFunction() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/lambdaPassedToInlineFunction.kt"); + } + + @Test + @TestMetadata("loopWithinInlineFunction.kt") + public void testLoopWithinInlineFunction() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/loopWithinInlineFunction.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/simple.kt"); + } + + @Test + @TestMetadata("stdlibFunctions.kt") + public void testStdlibFunctions() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/stdlibFunctions.kt"); + } + + @Test + @TestMetadata("withReturnValue.kt") + public void testWithReturnValue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/withReturnValue.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures/forInArray") + @TestDataPath("$PROJECT_ROOT") + public class ForInArray { + @Test + public void testAllFilesPresentInForInArray() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInArraySpecializedToUntil.kt") + public void testForInArraySpecializedToUntil() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInArraySpecializedToUntil.kt"); + } + + @Test + @TestMetadata("forInArrayWithArrayPropertyUpdatedInLoopBody.kt") + public void testForInArrayWithArrayPropertyUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInArrayWithArrayPropertyUpdatedInLoopBody.kt"); + } + + @Test + @TestMetadata("forInArrayWithArrayVarUpdatedInLoopBody13.kt") + public void testForInArrayWithArrayVarUpdatedInLoopBody13() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInArrayWithArrayVarUpdatedInLoopBody13.kt"); + } + + @Test + @TestMetadata("forInDelegatedPropertyUpdatedInLoopBody.kt") + public void testForInDelegatedPropertyUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInDelegatedPropertyUpdatedInLoopBody.kt"); + } + + @Test + @TestMetadata("forInDoubleArrayWithUpcast.kt") + public void testForInDoubleArrayWithUpcast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInDoubleArrayWithUpcast.kt"); + } + + @Test + @TestMetadata("forInFieldUpdatedInLoopBody.kt") + public void testForInFieldUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInFieldUpdatedInLoopBody.kt"); + } + + @Test + @TestMetadata("forInInlineClassArrayWithUpcast.kt") + public void testForInInlineClassArrayWithUpcast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInInlineClassArrayWithUpcast.kt"); + } + + @Test + @TestMetadata("forIntArray.kt") + public void testForIntArray() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forIntArray.kt"); + } + + @Test + @TestMetadata("forNullableIntArray.kt") + public void testForNullableIntArray() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forNullableIntArray.kt"); + } + + @Test + @TestMetadata("forPrimitiveIntArray.kt") + public void testForPrimitiveIntArray() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forPrimitiveIntArray.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex") + @TestDataPath("$PROJECT_ROOT") + public class ForInArrayWithIndex { + @Test + public void testAllFilesPresentInForInArrayWithIndex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInArrayOfObjectArrayWithIndex.kt") + public void testForInArrayOfObjectArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfObjectArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInArrayOfPrimArrayWithIndex.kt") + public void testForInArrayOfPrimArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfPrimArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInArrayWithIndexBreakAndContinue.kt") + public void testForInArrayWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexBreakAndContinue.kt"); + } + + @Test + @TestMetadata("forInArrayWithIndexContinuesAsUnmodified.kt") + public void testForInArrayWithIndexContinuesAsUnmodified() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexContinuesAsUnmodified.kt"); + } + + @Test + @TestMetadata("forInArrayWithIndexNoElementVar.kt") + public void testForInArrayWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt"); + } + + @Test + @TestMetadata("forInArrayWithIndexNoIndexOrElementVar.kt") + public void testForInArrayWithIndexNoIndexOrElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexOrElementVar.kt"); + } + + @Test + @TestMetadata("forInArrayWithIndexNoIndexVar.kt") + public void testForInArrayWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt"); + } + + @Test + @TestMetadata("forInArrayWithIndexNotDestructured.kt") + public void testForInArrayWithIndexNotDestructured() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNotDestructured.kt"); + } + + @Test + @TestMetadata("forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInArrayWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + + @Test + @TestMetadata("forInByteArrayWithIndex.kt") + public void testForInByteArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInByteArrayWithIndexWithSmartCast.kt") + public void testForInByteArrayWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndexWithSmartCast.kt"); + } + + @Test + @TestMetadata("forInEmptyArrayWithIndex.kt") + public void testForInEmptyArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInEmptyArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInGenericArrayOfIntsWithIndex.kt") + public void testForInGenericArrayOfIntsWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndex.kt"); + } + + @Test + @TestMetadata("forInGenericArrayOfIntsWithIndexWithSmartCast.kt") + public void testForInGenericArrayOfIntsWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndexWithSmartCast.kt"); + } + + @Test + @TestMetadata("forInGenericArrayWithIndex.kt") + public void testForInGenericArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInIntArrayWithIndex.kt") + public void testForInIntArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInIntArrayWithIndexWithSmartCast.kt") + public void testForInIntArrayWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndexWithSmartCast.kt"); + } + + @Test + @TestMetadata("forInObjectArrayWithIndex.kt") + public void testForInObjectArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInObjectArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInShortArrayWithIndex.kt") + public void testForInShortArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInShortArrayWithIndexWithSmartCast.kt") + public void testForInShortArrayWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndexWithSmartCast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex") + @TestDataPath("$PROJECT_ROOT") + public class ForInCharSequenceWithIndex { + @Test + public void testAllFilesPresentInForInCharSequenceWithIndex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInCharSeqWithIndexStops.kt") + public void testForInCharSeqWithIndexStops() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSeqWithIndexStops.kt"); + } + + @Test + @TestMetadata("forInCharSequenceTypeParameterWithIndex.kt") + public void testForInCharSequenceTypeParameterWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceTypeParameterWithIndex.kt"); + } + + @Test + @TestMetadata("forInCharSequenceWithIndex.kt") + public void testForInCharSequenceWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndex.kt"); + } + + @Test + @TestMetadata("forInCharSequenceWithIndexBreakAndContinue.kt") + public void testForInCharSequenceWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexBreakAndContinue.kt"); + } + + @Test + @TestMetadata("forInCharSequenceWithIndexCheckSideEffects.kt") + public void testForInCharSequenceWithIndexCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexCheckSideEffects.kt"); + } + + @Test + @TestMetadata("forInCharSequenceWithIndexNoElementVarCheckSideEffects.kt") + public void testForInCharSequenceWithIndexNoElementVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoElementVarCheckSideEffects.kt"); + } + + @Test + @TestMetadata("forInCharSequenceWithIndexNoIndexVarCheckSideEffects.kt") + public void testForInCharSequenceWithIndexNoIndexVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoIndexVarCheckSideEffects.kt"); + } + + @Test + @TestMetadata("forInEmptyStringWithIndex.kt") + public void testForInEmptyStringWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInEmptyStringWithIndex.kt"); + } + + @Test + @TestMetadata("forInStringWithIndex.kt") + public void testForInStringWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndex.kt"); + } + + @Test + @TestMetadata("forInStringWithIndexNoElementVar.kt") + public void testForInStringWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt"); + } + + @Test + @TestMetadata("forInStringWithIndexNoIndexOrElementVar.kt") + public void testForInStringWithIndexNoIndexOrElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexOrElementVar.kt"); + } + + @Test + @TestMetadata("forInStringWithIndexNoIndexVar.kt") + public void testForInStringWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt"); + } + + @Test + @TestMetadata("forInStringWithIndexNotDestructured.kt") + public void testForInStringWithIndexNotDestructured() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNotDestructured.kt"); + } + + @Test + @TestMetadata("forInStringWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInStringWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex") + @TestDataPath("$PROJECT_ROOT") + public class ForInIterableWithIndex { + @Test + public void testAllFilesPresentInForInIterableWithIndex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInEmptyListWithIndex.kt") + public void testForInEmptyListWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInEmptyListWithIndex.kt"); + } + + @Test + @TestMetadata("forInIterableTypeParameterWithIndex.kt") + public void testForInIterableTypeParameterWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInIterableTypeParameterWithIndex.kt"); + } + + @Test + @TestMetadata("forInIterableWithIndexCheckSideEffects.kt") + public void testForInIterableWithIndexCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInIterableWithIndexCheckSideEffects.kt"); + } + + @Test + @TestMetadata("forInIterableWithIndexNoElementVarCheckSideEffects.kt") + public void testForInIterableWithIndexNoElementVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInIterableWithIndexNoElementVarCheckSideEffects.kt"); + } + + @Test + @TestMetadata("forInIterableWithIndexNoIndexVarCheckSideEffects.kt") + public void testForInIterableWithIndexNoIndexVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInIterableWithIndexNoIndexVarCheckSideEffects.kt"); + } + + @Test + @TestMetadata("forInListWithIndex.kt") + public void testForInListWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndex.kt"); + } + + @Test + @TestMetadata("forInListWithIndexBreak.kt") + public void testForInListWithIndexBreak() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexBreak.kt"); + } + + @Test + @TestMetadata("forInListWithIndexBreakAndContinue.kt") + public void testForInListWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexBreakAndContinue.kt"); + } + + @Test + @TestMetadata("forInListWithIndexContinue.kt") + public void testForInListWithIndexContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexContinue.kt"); + } + + @Test + @TestMetadata("forInListWithIndexNoElementVar.kt") + public void testForInListWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexNoElementVar.kt"); + } + + @Test + @TestMetadata("forInListWithIndexNoIndexVar.kt") + public void testForInListWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexNoIndexVar.kt"); + } + + @Test + @TestMetadata("forInListWithIndexThrowsCME.kt") + public void testForInListWithIndexThrowsCME() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexThrowsCME.kt"); + } + + @Test + @TestMetadata("forInListWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInListWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures/forInIterator") + @TestDataPath("$PROJECT_ROOT") + public class ForInIterator { + @Test + @TestMetadata("abstractNext.kt") + public void testAbstractNext() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterator/abstractNext.kt"); + } + + @Test + public void testAllFilesPresentInForInIterator() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInIterator"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("primitiveIterator.kt") + public void testPrimitiveIterator() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterator/primitiveIterator.kt"); + } + + @Test + @TestMetadata("uintIterator.kt") + public void testUintIterator() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterator/uintIterator.kt"); + } + + @Test + @TestMetadata("unrelatedExtensionFunctionNext.kt") + public void testUnrelatedExtensionFunctionNext() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterator/unrelatedExtensionFunctionNext.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex") + @TestDataPath("$PROJECT_ROOT") + public class ForInSequenceWithIndex { + @Test + public void testAllFilesPresentInForInSequenceWithIndex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInEmptySequenceWithIndex.kt") + public void testForInEmptySequenceWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInEmptySequenceWithIndex.kt"); + } + + @Test + @TestMetadata("forInSequenceTypeParameterWithIndex.kt") + public void testForInSequenceTypeParameterWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceTypeParameterWithIndex.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndex.kt") + public void testForInSequenceWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndex.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexBreakAndContinue.kt") + public void testForInSequenceWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexBreakAndContinue.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexCheckSideEffects.kt") + public void testForInSequenceWithIndexCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexCheckSideEffects.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexNoElementVar.kt") + public void testForInSequenceWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexNoElementVar.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexNoElementVarCheckSideEffects.kt") + public void testForInSequenceWithIndexNoElementVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexNoElementVarCheckSideEffects.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexNoIndexVar.kt") + public void testForInSequenceWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexNoIndexVar.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexNoIndexVarCheckSideEffects.kt") + public void testForInSequenceWithIndexNoIndexVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexNoIndexVarCheckSideEffects.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexThrowsCME.kt") + public void testForInSequenceWithIndexThrowsCME() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInSequenceWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures/returnsNothing") + @TestDataPath("$PROJECT_ROOT") + public class ReturnsNothing { + @Test + public void testAllFilesPresentInReturnsNothing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/returnsNothing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ifElse.kt") + public void testIfElse() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/returnsNothing/ifElse.kt"); + } + + @Test + @TestMetadata("inlineMethod.kt") + public void testInlineMethod() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/returnsNothing/inlineMethod.kt"); + } + + @Test + @TestMetadata("propertyGetter.kt") + public void testPropertyGetter() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/returnsNothing/propertyGetter.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/returnsNothing/tryCatch.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/returnsNothing/when.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures/slowDsl") + @TestDataPath("$PROJECT_ROOT") + public class SlowDsl { + @Test + public void testAllFilesPresentInSlowDsl() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/slowDsl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("slowHtmlLikeDsl.kt") + public void testSlowHtmlLikeDsl() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/slowDsl/slowHtmlLikeDsl.kt"); + } + + @Test + @TestMetadata("slowHtmlLikeDslNoInline.kt") + public void testSlowHtmlLikeDslNoInline() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/slowDsl/slowHtmlLikeDslNoInline.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions") + @TestDataPath("$PROJECT_ROOT") + public class TryCatchInExpressions { + @Test + public void testAllFilesPresentInTryCatchInExpressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch.kt") + public void testCatch() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/catch.kt"); + } + + @Test + @TestMetadata("complexChain.kt") + public void testComplexChain() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/complexChain.kt"); + } + + @Test + @TestMetadata("deadTryCatch.kt") + public void testDeadTryCatch() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/deadTryCatch.kt"); + } + + @Test + @TestMetadata("differentTypes.kt") + public void testDifferentTypes() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/differentTypes.kt"); + } + + @Test + @TestMetadata("expectException.kt") + public void testExpectException() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/expectException.kt"); + } + + @Test + @TestMetadata("finally.kt") + public void testFinally() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/finally.kt"); + } + + @Test + @TestMetadata("inlineTryCatch.kt") + public void testInlineTryCatch() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryCatch.kt"); + } + + @Test + @TestMetadata("inlineTryExpr.kt") + public void testInlineTryExpr() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryExpr.kt"); + } + + @Test + @TestMetadata("inlineTryFinally.kt") + public void testInlineTryFinally() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryFinally.kt"); + } + + @Test + @TestMetadata("kt17572.kt") + public void testKt17572() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572.kt"); + } + + @Test + @TestMetadata("kt17572_2.kt") + public void testKt17572_2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2.kt"); + } + + @Test + @TestMetadata("kt17572_2_ext.kt") + public void testKt17572_2_ext() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2_ext.kt"); + } + + @Test + @TestMetadata("kt17572_ext.kt") + public void testKt17572_ext() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_ext.kt"); + } + + @Test + @TestMetadata("kt17572_nested.kt") + public void testKt17572_nested() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_nested.kt"); + } + + @Test + @TestMetadata("kt17573.kt") + public void testKt17573() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573.kt"); + } + + @Test + @TestMetadata("kt17573_nested.kt") + public void testKt17573_nested() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573_nested.kt"); + } + + @Test + @TestMetadata("kt8608.kt") + public void testKt8608() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt8608.kt"); + } + + @Test + @TestMetadata("kt9644try.kt") + public void testKt9644try() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt9644try.kt"); + } + + @Test + @TestMetadata("multipleCatchBlocks.kt") + public void testMultipleCatchBlocks() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/multipleCatchBlocks.kt"); + } + + @Test + @TestMetadata("nonLocalReturnInTryFinally.kt") + public void testNonLocalReturnInTryFinally() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/nonLocalReturnInTryFinally.kt"); + } + + @Test + @TestMetadata("splitTry.kt") + public void testSplitTry() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt"); + } + + @Test + @TestMetadata("try.kt") + public void testTry() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/try.kt"); + } + + @Test + @TestMetadata("tryAfterTry.kt") + public void testTryAfterTry() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAfterTry.kt"); + } + + @Test + @TestMetadata("tryAndBreak.kt") + public void testTryAndBreak() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAndBreak.kt"); + } + + @Test + @TestMetadata("tryAndContinue.kt") + public void testTryAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAndContinue.kt"); + } + + @Test + @TestMetadata("tryCatchAfterWhileTrue.kt") + public void testTryCatchAfterWhileTrue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryCatchAfterWhileTrue.kt"); + } + + @Test + @TestMetadata("tryFinallyOfTypeUnit.kt") + public void testTryFinallyOfTypeUnit() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryFinallyOfTypeUnit.kt"); + } + + @Test + @TestMetadata("tryInsideCatch.kt") + public void testTryInsideCatch() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideCatch.kt"); + } + + @Test + @TestMetadata("tryInsideTry.kt") + public void testTryInsideTry() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideTry.kt"); + } + + @Test + @TestMetadata("unmatchedInlineMarkers.kt") + public void testUnmatchedInlineMarkers() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/unmatchedInlineMarkers.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines") + @TestDataPath("$PROJECT_ROOT") + public class Coroutines { + @Test + @TestMetadata("32defaultParametersInSuspend.kt") + public void test32defaultParametersInSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/32defaultParametersInSuspend.kt"); + } + + @Test + @TestMetadata("accessorForSuspend.kt") + public void testAccessorForSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/accessorForSuspend.kt"); + } + + @Test + public void testAllFilesPresentInCoroutines() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("async.kt") + public void testAsync() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/async.kt"); + } + + @Test + @TestMetadata("asyncException.kt") + public void testAsyncException() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/asyncException.kt"); + } + + @Test + @TestMetadata("asyncIteratorNullMerge_1_3.kt") + public void testAsyncIteratorNullMerge_1_3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/asyncIteratorNullMerge_1_3.kt"); + } + + @Test + @TestMetadata("asyncIteratorToList_1_3.kt") + public void testAsyncIteratorToList_1_3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/asyncIteratorToList_1_3.kt"); + } + + @Test + @TestMetadata("asyncIterator_1_3.kt") + public void testAsyncIterator_1_3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/asyncIterator_1_3.kt"); + } + + @Test + @TestMetadata("await.kt") + public void testAwait() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/await.kt"); + } + + @Test + @TestMetadata("beginWithException.kt") + public void testBeginWithException() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/beginWithException.kt"); + } + + @Test + @TestMetadata("beginWithExceptionNoHandleException.kt") + public void testBeginWithExceptionNoHandleException() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/beginWithExceptionNoHandleException.kt"); + } + + @Test + @TestMetadata("builderInferenceAndGenericArrayAcessCall.kt") + public void testBuilderInferenceAndGenericArrayAcessCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/builderInferenceAndGenericArrayAcessCall.kt"); + } + + @Test + @TestMetadata("captureInfixFun.kt") + public void testCaptureInfixFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/captureInfixFun.kt"); + } + + @Test + @TestMetadata("captureMutableLocalVariableInsideCoroutineBlock.kt") + public void testCaptureMutableLocalVariableInsideCoroutineBlock() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/captureMutableLocalVariableInsideCoroutineBlock.kt"); + } + + @Test + @TestMetadata("captureUnaryOperator.kt") + public void testCaptureUnaryOperator() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/captureUnaryOperator.kt"); + } + + @Test + @TestMetadata("capturedVarInSuspendLambda.kt") + public void testCapturedVarInSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/capturedVarInSuspendLambda.kt"); + } + + @Test + @TestMetadata("castWithSuspend.kt") + public void testCastWithSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/castWithSuspend.kt"); + } + + @Test + @TestMetadata("catchWithInlineInsideSuspend.kt") + public void testCatchWithInlineInsideSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/catchWithInlineInsideSuspend.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); + } + + @Test + @TestMetadata("controllerAccessFromInnerLambda.kt") + public void testControllerAccessFromInnerLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); + } + + @Test + @TestMetadata("coroutineContextInInlinedLambda.kt") + public void testCoroutineContextInInlinedLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); + } + + @Test + @TestMetadata("coroutineToString.kt") + public void testCoroutineToString() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); + } + + @Test + @TestMetadata("createCoroutineSafe.kt") + public void testCreateCoroutineSafe() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/createCoroutineSafe.kt"); + } + + @Test + @TestMetadata("createCoroutinesOnManualInstances.kt") + public void testCreateCoroutinesOnManualInstances() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances.kt"); + } + + @Test + @TestMetadata("crossInlineWithCapturedOuterReceiver.kt") + public void testCrossInlineWithCapturedOuterReceiver() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/crossInlineWithCapturedOuterReceiver.kt"); + } + + @Test + @TestMetadata("defaultParameterLambdaInSuspend.kt") + public void testDefaultParameterLambdaInSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/defaultParameterLambdaInSuspend.kt"); + } + + @Test + @TestMetadata("defaultParametersInSuspend.kt") + public void testDefaultParametersInSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); + } + + @Test + @TestMetadata("defaultParametersInSuspendWithJvmOverloads.kt") + public void testDefaultParametersInSuspendWithJvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); + } + + @Test + @TestMetadata("delegatedSuspendMember.kt") + public void testDelegatedSuspendMember() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/delegatedSuspendMember.kt"); + } + + @Test + @TestMetadata("deserializedSuspendFunctionProperty.kt") + public void testDeserializedSuspendFunctionProperty() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/deserializedSuspendFunctionProperty.kt"); + } + + @Test + @TestMetadata("dispatchResume.kt") + public void testDispatchResume() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/dispatchResume.kt"); + } + + @Test + @TestMetadata("doubleColonExpressionsGenerationInBuilderInference.kt") + public void testDoubleColonExpressionsGenerationInBuilderInference() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/doubleColonExpressionsGenerationInBuilderInference.kt"); + } + + @Test + @TestMetadata("emptyClosure.kt") + public void testEmptyClosure() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/emptyClosure.kt"); + } + + @Test + @TestMetadata("emptyCommonConstraintSystemForCoroutineInferenceCall.kt") + public void testEmptyCommonConstraintSystemForCoroutineInferenceCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/emptyCommonConstraintSystemForCoroutineInferenceCall.kt"); + } + + @Test + @TestMetadata("epam.kt") + public void testEpam() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/epam.kt"); + } + + @Test + @TestMetadata("falseUnitCoercion.kt") + public void testFalseUnitCoercion() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); + } + + @Test + @TestMetadata("generate.kt") + public void testGenerate() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/generate.kt"); + } + + @Test + @TestMetadata("genericSignatureForSuspendImpl.kt") + public void testGenericSignatureForSuspendImpl() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/genericSignatureForSuspendImpl.kt"); + } + + @Test + @TestMetadata("handleException.kt") + public void testHandleException() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/handleException.kt"); + } + + @Test + @TestMetadata("handleResultCallEmptyBody.kt") + public void testHandleResultCallEmptyBody() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/handleResultCallEmptyBody.kt"); + } + + @Test + @TestMetadata("handleResultNonUnitExpression.kt") + public void testHandleResultNonUnitExpression() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/handleResultNonUnitExpression.kt"); + } + + @Test + @TestMetadata("handleResultSuspended.kt") + public void testHandleResultSuspended() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/handleResultSuspended.kt"); + } + + @Test + @TestMetadata("illegalState.kt") + public void testIllegalState() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/illegalState.kt"); + } + + @Test + @TestMetadata("indirectInlineUsedAsNonInline.kt") + public void testIndirectInlineUsedAsNonInline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/indirectInlineUsedAsNonInline.kt"); + } + + @Test + @TestMetadata("infiniteLoopInNextMeaningful.kt") + public void testInfiniteLoopInNextMeaningful() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/infiniteLoopInNextMeaningful.kt"); + } + + @Test + @TestMetadata("inlineCallWithReturns.kt") + public void testInlineCallWithReturns() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineCallWithReturns.kt"); + } + + @Test + @TestMetadata("inlineFunInGenericClass.kt") + public void testInlineFunInGenericClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineFunInGenericClass.kt"); + } + + @Test + @TestMetadata("inlineFunctionInMultifileClass.kt") + public void testInlineFunctionInMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineFunctionInMultifileClass.kt"); + } + + @Test + @TestMetadata("inlineFunctionInMultifileClassUnoptimized.kt") + public void testInlineFunctionInMultifileClassUnoptimized() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineFunctionInMultifileClassUnoptimized.kt"); + } + + @Test + @TestMetadata("inlineGenericFunCalledFromSubclass.kt") + public void testInlineGenericFunCalledFromSubclass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineGenericFunCalledFromSubclass.kt"); + } + + @Test + @TestMetadata("inlineSuspendFunction.kt") + public void testInlineSuspendFunction() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineSuspendFunction.kt"); + } + + @Test + @TestMetadata("inlineSuspendLambdaNonLocalReturn.kt") + public void testInlineSuspendLambdaNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineSuspendLambdaNonLocalReturn.kt"); + } + + @Test + @TestMetadata("inlineSuspendTypealias.kt") + public void testInlineSuspendTypealias() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.kt"); + } + + @Test + @TestMetadata("inlinedTryCatchFinally.kt") + public void testInlinedTryCatchFinally() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlinedTryCatchFinally.kt"); + } + + @Test + @TestMetadata("innerSuspensionCalls.kt") + public void testInnerSuspensionCalls() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/innerSuspensionCalls.kt"); + } + + @Test + @TestMetadata("instanceOfContinuation.kt") + public void testInstanceOfContinuation() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/instanceOfContinuation.kt"); + } + + @Test + @TestMetadata("iterateOverArray.kt") + public void testIterateOverArray() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/iterateOverArray.kt"); + } + + @Test + @TestMetadata("jvmStaticAndJvmInline.kt") + public void testJvmStaticAndJvmInline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/jvmStaticAndJvmInline.kt"); + } + + @Test + @TestMetadata("kt12958.kt") + public void testKt12958() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt12958.kt"); + } + + @Test + @TestMetadata("kt15016.kt") + public void testKt15016() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt15016.kt"); + } + + @Test + @TestMetadata("kt15017.kt") + public void testKt15017() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt15017.kt"); + } + + @Test + @TestMetadata("kt15930.kt") + public void testKt15930() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt15930.kt"); + } + + @Test + @TestMetadata("kt21080.kt") + public void testKt21080() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt21080.kt"); + } + + @Test + @TestMetadata("kt21605.kt") + public void testKt21605() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt21605.kt"); + } + + @Test + @TestMetadata("kt24135.kt") + public void testKt24135() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt24135.kt"); + } + + @Test + @TestMetadata("kt25912.kt") + public void testKt25912() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt25912.kt"); + } + + @Test + @TestMetadata("kt28844.kt") + public void testKt28844() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt28844.kt"); + } + + @Test + @TestMetadata("kt30858.kt") + public void testKt30858() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt30858.kt"); + } + + @Test + @TestMetadata("kt31784.kt") + public void testKt31784() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt31784.kt"); + } + + @Test + @TestMetadata("kt35967.kt") + public void testKt35967() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); + } + + @Test + @TestMetadata("kt38099.kt") + public void testKt38099() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); + } + + @Test + @TestMetadata("kt42028.kt") + public void testKt42028() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt42028.kt"); + } + + @Test + @TestMetadata("kt42554.kt") + public void testKt42554() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt42554.kt"); + } + + @Test + @TestMetadata("kt44221.kt") + public void testKt44221() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt44221.kt"); + } + + @Test + @TestMetadata("kt44710.kt") + public void testKt44710() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt44710.kt"); + } + + @Test + @TestMetadata("kt44781.kt") + public void testKt44781() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt44781.kt"); + } + + @Test + @TestMetadata("kt45377.kt") + public void testKt45377() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt45377.kt"); + } + + @Test + @TestMetadata("kt46813.kt") + public void testKt46813() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt46813.kt"); + } + + @Test + @TestMetadata("kt49168.kt") + public void testKt49168() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt49168.kt"); + } + + @Test + @TestMetadata("kt49317.kt") + public void testKt49317() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt49317.kt"); + } + + @Test + @TestMetadata("kt49645.kt") + public void testKt49645() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt49645.kt"); + } + + @Test + @TestMetadata("kt50277.kt") + public void testKt50277() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt50277.kt"); + } + + @Test + @TestMetadata("kt51530.kt") + public void testKt51530() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt51530.kt"); + } + + @Test + @TestMetadata("kt51718.kt") + public void testKt51718() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt51718.kt"); + } + + @Test + @TestMetadata("kt52311_nullOnLeft.kt") + public void testKt52311_nullOnLeft() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt52311_nullOnLeft.kt"); + } + + @Test + @TestMetadata("kt52311_nullOnRight.kt") + public void testKt52311_nullOnRight() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt52311_nullOnRight.kt"); + } + + @Test + @TestMetadata("kt52561.kt") + public void testKt52561() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt52561.kt"); + } + + @Test + @TestMetadata("kt55494.kt") + public void testKt55494() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt55494.kt"); + } + + @Test + @TestMetadata("kt56407.kt") + public void testKt56407() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt56407.kt"); + } + + @Test + @TestMetadata("lastExpressionIsLoop.kt") + public void testLastExpressionIsLoop() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt"); + } + + @Test + @TestMetadata("lastStatementInc.kt") + public void testLastStatementInc() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/lastStatementInc.kt"); + } + + @Test + @TestMetadata("lastStementAssignment.kt") + public void testLastStementAssignment() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/lastStementAssignment.kt"); + } + + @Test + @TestMetadata("lastUnitExpression.kt") + public void testLastUnitExpression() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/lastUnitExpression.kt"); + } + + @Test + @TestMetadata("localCallableRef.kt") + public void testLocalCallableRef() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localCallableRef.kt"); + } + + @Test + @TestMetadata("localDelegate.kt") + public void testLocalDelegate() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localDelegate.kt"); + } + + @Test + @TestMetadata("longRangeInSuspendCall.kt") + public void testLongRangeInSuspendCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/longRangeInSuspendCall.kt"); + } + + @Test + @TestMetadata("longRangeInSuspendFun.kt") + public void testLongRangeInSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/longRangeInSuspendFun.kt"); + } + + @Test + @TestMetadata("mergeNullAndString.kt") + public void testMergeNullAndString() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/mergeNullAndString.kt"); + } + + @Test + @TestMetadata("multipleInvokeCalls.kt") + public void testMultipleInvokeCalls() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt"); + } + + @Test + @TestMetadata("multipleInvokeCallsInsideInlineLambda1.kt") + public void testMultipleInvokeCallsInsideInlineLambda1() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt"); + } + + @Test + @TestMetadata("multipleInvokeCallsInsideInlineLambda2.kt") + public void testMultipleInvokeCallsInsideInlineLambda2() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt"); + } + + @Test + @TestMetadata("multipleInvokeCallsInsideInlineLambda3.kt") + public void testMultipleInvokeCallsInsideInlineLambda3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt"); + } + + @Test + @TestMetadata("nestedTryCatch.kt") + public void testNestedTryCatch() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/nestedTryCatch.kt"); + } + + @Test + @TestMetadata("noSuspensionPoints.kt") + public void testNoSuspensionPoints() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/noSuspensionPoints.kt"); + } + + @Test + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/nonLocalReturn.kt"); + } + + @Test + @TestMetadata("nonLocalReturnFromInlineLambda.kt") + public void testNonLocalReturnFromInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambda.kt"); + } + + @Test + @TestMetadata("nonLocalReturnFromInlineLambdaDeep.kt") + public void testNonLocalReturnFromInlineLambdaDeep() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambdaDeep.kt"); + } + + @Test + @TestMetadata("nullableSuspendFunctionType.kt") + public void testNullableSuspendFunctionType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/nullableSuspendFunctionType.kt"); + } + + @Test + @TestMetadata("overrideDefaultArgument.kt") + public void testOverrideDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/overrideDefaultArgument.kt"); + } + + @Test + @TestMetadata("recursiveSuspend.kt") + public void testRecursiveSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/recursiveSuspend.kt"); + } + + @Test + @TestMetadata("restrictedSuspendLambda.kt") + public void testRestrictedSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/restrictedSuspendLambda.kt"); + } + + @Test + @TestMetadata("returnByLabel.kt") + public void testReturnByLabel() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/simple.kt"); + } + + @Test + @TestMetadata("simpleException.kt") + public void testSimpleException() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/simpleException.kt"); + } + + @Test + @TestMetadata("simpleSuspendCallableReference.kt") + public void testSimpleSuspendCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/simpleSuspendCallableReference.kt"); + } + + @Test + @TestMetadata("simpleWithDefaultValue.kt") + public void testSimpleWithDefaultValue() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/simpleWithDefaultValue.kt"); + } + + @Test + @TestMetadata("simpleWithHandleResult.kt") + public void testSimpleWithHandleResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt"); + } + + @Test + @TestMetadata("statementLikeLastExpression.kt") + public void testStatementLikeLastExpression() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/statementLikeLastExpression.kt"); + } + + @Test + @TestMetadata("stopAfter.kt") + public void testStopAfter() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/stopAfter.kt"); + } + + @Test + @TestMetadata("suspendCallInSuperInterfaceCallArguments.kt") + public void testSuspendCallInSuperInterfaceCallArguments() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendCallInSuperInterfaceCallArguments.kt"); + } + + @Test + @TestMetadata("suspendCallsInArguments.kt") + public void testSuspendCallsInArguments() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); + } + + @Test + @TestMetadata("suspendCoroutineFromStateMachine.kt") + public void testSuspendCoroutineFromStateMachine() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendCoroutineFromStateMachine.kt"); + } + + @Test + @TestMetadata("suspendCovariantJavaOverrides.kt") + public void testSuspendCovariantJavaOverrides() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendCovariantJavaOverrides.kt"); + } + + @Test + @TestMetadata("suspendDefaultImpl.kt") + public void testSuspendDefaultImpl() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendDefaultImpl.kt"); + } + + @Test + @TestMetadata("suspendDelegation.kt") + public void testSuspendDelegation() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendDelegation.kt"); + } + + @Test + @TestMetadata("suspendFromInlineLambda.kt") + public void testSuspendFromInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFromInlineLambda.kt"); + } + + @Test + @TestMetadata("suspendFunImportedFromObject.kt") + public void testSuspendFunImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunImportedFromObject.kt"); + } + + @Test + @TestMetadata("suspendFunctionAsSupertype.kt") + public void testSuspendFunctionAsSupertype() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsSupertype.kt"); + } + + @Test + @TestMetadata("suspendFunctionAsSupertypeCall.kt") + public void testSuspendFunctionAsSupertypeCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsSupertypeCall.kt"); + } + + @Test + @TestMetadata("suspendFunctionMethodReference.kt") + public void testSuspendFunctionMethodReference() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionMethodReference.kt"); + } + + @Test + @TestMetadata("suspendImplBridge.kt") + public void testSuspendImplBridge() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendImplBridge.kt"); + } + + @Test + @TestMetadata("suspendImplTypeParameters.kt") + public void testSuspendImplTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendImplTypeParameters.kt"); + } + + @Test + @TestMetadata("suspendImplTypeParametersOuterClass.kt") + public void testSuspendImplTypeParametersOuterClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendImplTypeParametersOuterClass.kt"); + } + + @Test + @TestMetadata("suspendInCycle.kt") + public void testSuspendInCycle() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendInCycle.kt"); + } + + @Test + @TestMetadata("suspendInTheMiddleOfObjectConstruction.kt") + public void testSuspendInTheMiddleOfObjectConstruction() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt"); + } + + @Test + @TestMetadata("suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt") + public void testSuspendInTheMiddleOfObjectConstructionEvaluationOrder() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt"); + } + + @Test + @TestMetadata("suspendInTheMiddleOfObjectConstructionWithJumpOut.kt") + public void testSuspendInTheMiddleOfObjectConstructionWithJumpOut() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionWithJumpOut.kt"); + } + + @Test + @TestMetadata("suspendInlineReference.kt") + public void testSuspendInlineReference() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendInlineReference.kt"); + } + + @Test + @TestMetadata("suspendJavaOverrides.kt") + public void testSuspendJavaOverrides() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendJavaOverrides.kt"); + } + + @Test + @TestMetadata("suspendLambdaInInterface.kt") + public void testSuspendLambdaInInterface() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendLambdaInInterface.kt"); + } + + @Test + @TestMetadata("suspendLambdaWithArgumentRearrangement.kt") + public void testSuspendLambdaWithArgumentRearrangement() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendLambdaWithArgumentRearrangement.kt"); + } + + @Test + @TestMetadata("suspendReturningPlatformType.kt") + public void testSuspendReturningPlatformType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendReturningPlatformType.kt"); + } + + @Test + @TestMetadata("suspensionInsideSafeCall.kt") + public void testSuspensionInsideSafeCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspensionInsideSafeCall.kt"); + } + + @Test + @TestMetadata("suspensionInsideSafeCallWithElvis.kt") + public void testSuspensionInsideSafeCallWithElvis() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspensionInsideSafeCallWithElvis.kt"); + } + + @Test + @TestMetadata("tailCallToNothing.kt") + public void testTailCallToNothing() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallToNothing.kt"); + } + + @Test + @TestMetadata("tryCatchFinallyWithHandleResult.kt") + public void testTryCatchFinallyWithHandleResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt"); + } + + @Test + @TestMetadata("tryCatchWithHandleResult.kt") + public void testTryCatchWithHandleResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt"); + } + + @Test + @TestMetadata("tryFinallyInsideInlineLambda.kt") + public void testTryFinallyInsideInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tryFinallyInsideInlineLambda.kt"); + } + + @Test + @TestMetadata("tryFinallyWithHandleResult.kt") + public void testTryFinallyWithHandleResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tryFinallyWithHandleResult.kt"); + } + + @Test + @TestMetadata("varCaptuedInCoroutineIntrinsic.kt") + public void testVarCaptuedInCoroutineIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varCaptuedInCoroutineIntrinsic.kt"); + } + + @Test + @TestMetadata("varValueConflictsWithTable.kt") + public void testVarValueConflictsWithTable() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varValueConflictsWithTable.kt"); + } + + @Test + @TestMetadata("varValueConflictsWithTableSameSort.kt") + public void testVarValueConflictsWithTableSameSort() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varValueConflictsWithTableSameSort.kt"); + } + + @Test + @TestMetadata("varargCallFromSuspend.kt") + public void testVarargCallFromSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") + @TestDataPath("$PROJECT_ROOT") + public class Bridges { + @Test + public void testAllFilesPresentInBridges() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("interfaceGenericDefault.kt") + public void testInterfaceGenericDefault() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/bridges/interfaceGenericDefault.kt"); + } + + @Test + @TestMetadata("interfaceSpecialization.kt") + public void testInterfaceSpecialization() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/bridges/interfaceSpecialization.kt"); + } + + @Test + @TestMetadata("lambdaWithLongReceiver.kt") + public void testLambdaWithLongReceiver() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/bridges/lambdaWithLongReceiver.kt"); + } + + @Test + @TestMetadata("lambdaWithMultipleParameters.kt") + public void testLambdaWithMultipleParameters() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/bridges/lambdaWithMultipleParameters.kt"); + } + + @Test + @TestMetadata("mapSuspendAbstractClear.kt") + public void testMapSuspendAbstractClear() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/bridges/mapSuspendAbstractClear.kt"); + } + + @Test + @TestMetadata("mapSuspendClear.kt") + public void testMapSuspendClear() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/bridges/mapSuspendClear.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/controlFlow") + @TestDataPath("$PROJECT_ROOT") + public class ControlFlow { + @Test + public void testAllFilesPresentInControlFlow() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/controlFlow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("breakFinally.kt") + public void testBreakFinally() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/breakFinally.kt"); + } + + @Test + @TestMetadata("breakStatement.kt") + public void testBreakStatement() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/breakStatement.kt"); + } + + @Test + @TestMetadata("complexChainSuspend.kt") + public void testComplexChainSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/complexChainSuspend.kt"); + } + + @Test + @TestMetadata("doWhileStatement.kt") + public void testDoWhileStatement() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/doWhileStatement.kt"); + } + + @Test + @TestMetadata("doWhileWithInline.kt") + public void testDoWhileWithInline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/doWhileWithInline.kt"); + } + + @Test + @TestMetadata("doubleBreak.kt") + public void testDoubleBreak() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/doubleBreak.kt"); + } + + @Test + @TestMetadata("finallyCatch.kt") + public void testFinallyCatch() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/finallyCatch.kt"); + } + + @Test + @TestMetadata("forContinue.kt") + public void testForContinue() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/forContinue.kt"); + } + + @Test + @TestMetadata("forStatement.kt") + public void testForStatement() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/forStatement.kt"); + } + + @Test + @TestMetadata("forWithStep.kt") + public void testForWithStep() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/forWithStep.kt"); + } + + @Test + @TestMetadata("ifStatement.kt") + public void testIfStatement() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/ifStatement.kt"); + } + + @Test + @TestMetadata("kt22694_1_3.kt") + public void testKt22694_1_3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/kt22694_1_3.kt"); + } + + @Test + @TestMetadata("labeledWhile.kt") + public void testLabeledWhile() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/labeledWhile.kt"); + } + + @Test + @TestMetadata("multipleCatchBlocksSuspend.kt") + public void testMultipleCatchBlocksSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/multipleCatchBlocksSuspend.kt"); + } + + @Test + @TestMetadata("returnFromFinally.kt") + public void testReturnFromFinally() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/returnFromFinally.kt"); + } + + @Test + @TestMetadata("returnWithFinally.kt") + public void testReturnWithFinally() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/returnWithFinally.kt"); + } + + @Test + @TestMetadata("suspendInStringTemplate.kt") + public void testSuspendInStringTemplate() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/suspendInStringTemplate.kt"); + } + + @Test + @TestMetadata("switchLikeWhen.kt") + public void testSwitchLikeWhen() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/switchLikeWhen.kt"); + } + + @Test + @TestMetadata("throwFromCatch.kt") + public void testThrowFromCatch() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/throwFromCatch.kt"); + } + + @Test + @TestMetadata("throwFromFinally.kt") + public void testThrowFromFinally() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/throwFromFinally.kt"); + } + + @Test + @TestMetadata("throwInTryWithHandleResult.kt") + public void testThrowInTryWithHandleResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/throwInTryWithHandleResult.kt"); + } + + @Test + @TestMetadata("whenWithSuspensions.kt") + public void testWhenWithSuspensions() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/whenWithSuspensions.kt"); + } + + @Test + @TestMetadata("whileStatement.kt") + public void testWhileStatement() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/whileStatement.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/debug") + @TestDataPath("$PROJECT_ROOT") + public class Debug { + @Test + public void testAllFilesPresentInDebug() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/debug"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("debuggerMetadata.kt") + public void testDebuggerMetadata() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/debug/debuggerMetadata.kt"); + } + + @Test + @TestMetadata("elvisLineNumber.kt") + public void testElvisLineNumber() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/debug/elvisLineNumber.kt"); + } + + @Test + @TestMetadata("firstSuspensionPoint.kt") + public void testFirstSuspensionPoint() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/debug/firstSuspensionPoint.kt"); + } + + @Test + @TestMetadata("fqName.kt") + public void testFqName() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/debug/fqName.kt"); + } + + @Test + @TestMetadata("multipleSuspendCallsOnSameLine.kt") + public void testMultipleSuspendCallsOnSameLine() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/debug/multipleSuspendCallsOnSameLine.kt"); + } + + @Test + @TestMetadata("runtimeDebugMetadata.kt") + public void testRuntimeDebugMetadata() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/debug/runtimeDebugMetadata.kt"); + } + + @Test + @TestMetadata("throwsOnSameLine.kt") + public void testThrowsOnSameLine() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/debug/throwsOnSameLine.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection") + @TestDataPath("$PROJECT_ROOT") + public class FeatureIntersection { + @Test + public void testAllFilesPresentInFeatureIntersection() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("breakWithNonEmptyStack.kt") + public void testBreakWithNonEmptyStack() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/breakWithNonEmptyStack.kt"); + } + + @Test + @TestMetadata("defaultExpect.kt") + public void testDefaultExpect() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt"); + } + + @Test + @TestMetadata("delegate.kt") + public void testDelegate() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/delegate.kt"); + } + + @Test + @TestMetadata("destructuringInLambdas.kt") + public void testDestructuringInLambdas() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt"); + } + + @Test + @TestMetadata("funInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt"); + } + + @Test + @TestMetadata("inlineSuspendFinally.kt") + public void testInlineSuspendFinally() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/inlineSuspendFinally.kt"); + } + + @Test + @TestMetadata("interfaceMethodWithBody.kt") + public void testInterfaceMethodWithBody() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/interfaceMethodWithBody.kt"); + } + + @Test + @TestMetadata("interfaceMethodWithBodyGeneric.kt") + public void testInterfaceMethodWithBodyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/interfaceMethodWithBodyGeneric.kt"); + } + + @Test + @TestMetadata("overrideInInlineClass.kt") + public void testOverrideInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/overrideInInlineClass.kt"); + } + + @Test + @TestMetadata("overrideInInnerClass.kt") + public void testOverrideInInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/overrideInInnerClass.kt"); + } + + @Test + @TestMetadata("safeCallOnTwoReceivers.kt") + public void testSafeCallOnTwoReceivers() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceivers.kt"); + } + + @Test + @TestMetadata("safeCallOnTwoReceiversLong.kt") + public void testSafeCallOnTwoReceiversLong() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceiversLong.kt"); + } + + @Test + @TestMetadata("suspendDestructuringInLambdas.kt") + public void testSuspendDestructuringInLambdas() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendDestructuringInLambdas.kt"); + } + + @Test + @TestMetadata("suspendFunctionAsSupertypeIsCheck.kt") + public void testSuspendFunctionAsSupertypeIsCheck() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunctionAsSupertypeIsCheck.kt"); + } + + @Test + @TestMetadata("suspendFunctionAsSupertypeIsCheckWithArity.kt") + public void testSuspendFunctionAsSupertypeIsCheckWithArity() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunctionAsSupertypeIsCheckWithArity.kt"); + } + + @Test + @TestMetadata("suspendFunctionIsAs.kt") + public void testSuspendFunctionIsAs() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunctionIsAs.kt"); + } + + @Test + @TestMetadata("suspendInlineSuspendFinally.kt") + public void testSuspendInlineSuspendFinally() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendInlineSuspendFinally.kt"); + } + + @Test + @TestMetadata("suspendOperatorPlus.kt") + public void testSuspendOperatorPlus() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendOperatorPlus.kt"); + } + + @Test + @TestMetadata("suspendOperatorPlusAssign.kt") + public void testSuspendOperatorPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendOperatorPlusAssign.kt"); + } + + @Test + @TestMetadata("suspendOperatorPlusCallFromLambda.kt") + public void testSuspendOperatorPlusCallFromLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendOperatorPlusCallFromLambda.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference") + @TestDataPath("$PROJECT_ROOT") + public class CallableReference { + @Test + public void testAllFilesPresentInCallableReference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bigArity.kt") + public void testBigArity() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/bigArity.kt"); + } + + @Test + @TestMetadata("fromJava.kt") + public void testFromJava() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/fromJava.kt"); + } + + @Test + @TestMetadata("kt48732_genericSignature.kt") + public void testKt48732_genericSignature() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/kt48732_genericSignature.kt"); + } + + @Test + @TestMetadata("lambdaParameterUsed.kt") + public void testLambdaParameterUsed() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/lambdaParameterUsed.kt"); + } + + @Test + @TestMetadata("longArgs.kt") + public void testLongArgs() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/longArgs.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/bound") + @TestDataPath("$PROJECT_ROOT") + public class Bound { + @Test + public void testAllFilesPresentInBound() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyLHS.kt") + public void testEmptyLHS() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/bound/emptyLHS.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + @TestMetadata("adapted.kt") + public void testAdapted() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt"); + } + + @Test + public void testAllFilesPresentInFunction() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericCallableReferenceArguments.kt") + public void testGenericCallableReferenceArguments() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/genericCallableReferenceArguments.kt"); + } + + @Test + @TestMetadata("genericCallableReferencesWithNullableTypes.kt") + public void testGenericCallableReferencesWithNullableTypes() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/genericCallableReferencesWithNullableTypes.kt"); + } + + @Test + @TestMetadata("getArityViaFunctionImpl.kt") + public void testGetArityViaFunctionImpl() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/getArityViaFunctionImpl.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/local") + @TestDataPath("$PROJECT_ROOT") + public class Local { + @Test + public void testAllFilesPresentInLocal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("equalsHashCode.kt") + public void testEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/local/equalsHashCode.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface") + @TestDataPath("$PROJECT_ROOT") + public class FunInterface { + @Test + public void testAllFilesPresentInFunInterface() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt47549.kt") + public void testKt47549() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface/kt47549.kt"); + } + + @Test + @TestMetadata("kt47549_1.kt") + public void testKt47549_1() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface/kt47549_1.kt"); + } + + @Test + @TestMetadata("kt49294.kt") + public void testKt49294() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface/kt49294.kt"); + } + + @Test + @TestMetadata("kt50950.kt") + public void testKt50950() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface/kt50950.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault") + @TestDataPath("$PROJECT_ROOT") + public class JvmDefault { + @Test + @TestMetadata("all.kt") + public void testAll() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/all.kt"); + } + + @Test + public void testAllFilesPresentInJvmDefault() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007") + @TestDataPath("$PROJECT_ROOT") + public class Kt46007 { + @Test + @TestMetadata("all.kt") + public void testAll() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007/all.kt"); + } + + @Test + public void testAllFilesPresentInKt46007() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("all-compatibility.kt") + public void testAll_compatibility() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007/all-compatibility.kt"); + } + + @Test + @TestMetadata("disable.kt") + public void testDisable() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007/disable.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec") + @TestDataPath("$PROJECT_ROOT") + public class Tailrec { + @Test + public void testAllFilesPresentInTailrec() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("controlFlowIf.kt") + public void testControlFlowIf() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowIf.kt"); + } + + @Test + @TestMetadata("controlFlowWhen.kt") + public void testControlFlowWhen() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowWhen.kt"); + } + + @Test + @TestMetadata("extention.kt") + public void testExtention() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/extention.kt"); + } + + @Test + @TestMetadata("infixCall.kt") + public void testInfixCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixCall.kt"); + } + + @Test + @TestMetadata("infixRecursiveCall.kt") + public void testInfixRecursiveCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixRecursiveCall.kt"); + } + + @Test + @TestMetadata("kt38920_localTailrec.kt") + public void testKt38920_localTailrec() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.kt"); + } + + @Test + @TestMetadata("realIteratorFoldl.kt") + public void testRealIteratorFoldl() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/realIteratorFoldl.kt"); + } + + @Test + @TestMetadata("realStringEscape.kt") + public void testRealStringEscape() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/realStringEscape.kt"); + } + + @Test + @TestMetadata("realStringRepeat.kt") + public void testRealStringRepeat() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/realStringRepeat.kt"); + } + + @Test + @TestMetadata("returnInParentheses.kt") + public void testReturnInParentheses() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/returnInParentheses.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/sum.kt"); + } + + @Test + @TestMetadata("tailCallInBlockInParentheses.kt") + public void testTailCallInBlockInParentheses() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/tailCallInBlockInParentheses.kt"); + } + + @Test + @TestMetadata("tailCallInParentheses.kt") + public void testTailCallInParentheses() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/tailCallInParentheses.kt"); + } + + @Test + @TestMetadata("whenWithIs.kt") + public void testWhenWithIs() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/whenWithIs.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + public class InlineClasses { + @Test + public void testAllFilesPresentInInlineClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericParameterResult.kt") + public void testGenericParameterResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/genericParameterResult.kt"); + } + + @Test + @TestMetadata("kt47129.kt") + public void testKt47129() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/kt47129.kt"); + } + + @Test + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/nonLocalReturn.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/inlineClasses/direct") + @TestDataPath("$PROJECT_ROOT") + public class Direct { + @Test + public void testAllFilesPresentInDirect() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/inlineClasses/direct"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxReturnValueOfSuspendFunctionReference.kt") + public void testBoxReturnValueOfSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxReturnValueOfSuspendFunctionReference.kt"); + } + + @Test + @TestMetadata("boxReturnValueOfSuspendLambda.kt") + public void testBoxReturnValueOfSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxReturnValueOfSuspendLambda.kt"); + } + + @Test + @TestMetadata("boxTypeParameterOfSuperType.kt") + public void testBoxTypeParameterOfSuperType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperType.kt"); + } + + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine.kt") + public void testBoxUnboxInsideCoroutine() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_Any.kt") + public void testBoxUnboxInsideCoroutine_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_Any.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_InlineAny.kt") + public void testBoxUnboxInsideCoroutine_InlineAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_InlineAny.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_InlineInt.kt") + public void testBoxUnboxInsideCoroutine_InlineInt() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_InlineInt.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_Int.kt") + public void testBoxUnboxInsideCoroutine_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_Int.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_Long.kt") + public void testBoxUnboxInsideCoroutine_Long() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_Long.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_NAny.kt") + public void testBoxUnboxInsideCoroutine_NAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_NAny.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_nonLocalReturn.kt") + public void testBoxUnboxInsideCoroutine_nonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_nonLocalReturn.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_suspendFunType.kt") + public void testBoxUnboxInsideCoroutine_suspendFunType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_suspendFunType.kt"); + } + + @Test + @TestMetadata("bridgeGenerationCrossinline.kt") + public void testBridgeGenerationCrossinline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/bridgeGenerationCrossinline.kt"); + } + + @Test + @TestMetadata("bridgeGenerationNonInline.kt") + public void testBridgeGenerationNonInline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/bridgeGenerationNonInline.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFun.kt") + public void testCovariantOverrideSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFun.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunSameJvmType.kt") + public void testCovariantOverrideSuspendFunSameJvmType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunSameJvmType.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClassSameJvmType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Any.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_Any.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Int.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_Int.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFun_Any.kt") + public void testCovariantOverrideSuspendFun_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFun_Any.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFun_Int.kt") + public void testCovariantOverrideSuspendFun_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFun_Int.kt"); + } + + @Test + @TestMetadata("createMangling.kt") + public void testCreateMangling() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/createMangling.kt"); + } + + @Test + @TestMetadata("createOverride.kt") + public void testCreateOverride() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/createOverride.kt"); + } + + @Test + @TestMetadata("defaultStub.kt") + public void testDefaultStub() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/defaultStub.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun.kt") + public void testGenericOverrideSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_Any.kt") + public void testGenericOverrideSuspendFun_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_Any.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt") + public void testGenericOverrideSuspendFun_Any_NullableInlineClassUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_Int.kt") + public void testGenericOverrideSuspendFun_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_Int.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_NullableAny.kt") + public void testGenericOverrideSuspendFun_NullableAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_NullableAny.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_NullableAny_null.kt") + public void testGenericOverrideSuspendFun_NullableAny_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_NullableAny_null.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_NullableInt.kt") + public void testGenericOverrideSuspendFun_NullableInt() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_NullableInt.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_NullableInt_null.kt") + public void testGenericOverrideSuspendFun_NullableInt_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_NullableInt_null.kt"); + } + + @Test + @TestMetadata("interfaceDelegateWithInlineClass.kt") + public void testInterfaceDelegateWithInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/interfaceDelegateWithInlineClass.kt"); + } + + @Test + @TestMetadata("invokeOperator.kt") + public void testInvokeOperator() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/invokeOperator.kt"); + } + + @Test + @TestMetadata("multifileBridge.kt") + public void testMultifileBridge() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/multifileBridge.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun.kt") + public void testOverrideSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/overrideSuspendFun.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Any.kt") + public void testOverrideSuspendFun_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/overrideSuspendFun_Any.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Any_itf.kt") + public void testOverrideSuspendFun_Any_itf() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/overrideSuspendFun_Any_itf.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Any_this.kt") + public void testOverrideSuspendFun_Any_this() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/overrideSuspendFun_Any_this.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Int.kt") + public void testOverrideSuspendFun_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/overrideSuspendFun_Int.kt"); + } + + @Test + @TestMetadata("returnResult.kt") + public void testReturnResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/returnResult.kt"); + } + + @Test + @TestMetadata("syntheticAccessor.kt") + public void testSyntheticAccessor() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/syntheticAccessor.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/inlineClasses/resume") + @TestDataPath("$PROJECT_ROOT") + public class Resume { + @Test + public void testAllFilesPresentInResume() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/inlineClasses/resume"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxReturnValueOfSuspendFunctionReference.kt") + public void testBoxReturnValueOfSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxReturnValueOfSuspendFunctionReference.kt"); + } + + @Test + @TestMetadata("boxReturnValueOfSuspendLambda.kt") + public void testBoxReturnValueOfSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxReturnValueOfSuspendLambda.kt"); + } + + @Test + @TestMetadata("boxTypeParameterOfSuperType.kt") + public void testBoxTypeParameterOfSuperType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperType.kt"); + } + + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine.kt") + public void testBoxUnboxInsideCoroutine() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_Any.kt") + public void testBoxUnboxInsideCoroutine_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_Any.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_InlineAny.kt") + public void testBoxUnboxInsideCoroutine_InlineAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_InlineAny.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_InlineInt.kt") + public void testBoxUnboxInsideCoroutine_InlineInt() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_InlineInt.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_Int.kt") + public void testBoxUnboxInsideCoroutine_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_Int.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_Long.kt") + public void testBoxUnboxInsideCoroutine_Long() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_Long.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_NAny.kt") + public void testBoxUnboxInsideCoroutine_NAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_NAny.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_nonLocalReturn.kt") + public void testBoxUnboxInsideCoroutine_nonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_nonLocalReturn.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_suspendFunType.kt") + public void testBoxUnboxInsideCoroutine_suspendFunType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_suspendFunType.kt"); + } + + @Test + @TestMetadata("bridgeGenerationCrossinline.kt") + public void testBridgeGenerationCrossinline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/bridgeGenerationCrossinline.kt"); + } + + @Test + @TestMetadata("bridgeGenerationNonInline.kt") + public void testBridgeGenerationNonInline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/bridgeGenerationNonInline.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFun.kt") + public void testCovariantOverrideSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFun.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunSameJvmType.kt") + public void testCovariantOverrideSuspendFunSameJvmType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunSameJvmType.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClassSameJvmType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Any.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_Any.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Int.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_Int.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFun_Any.kt") + public void testCovariantOverrideSuspendFun_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFun_Any.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFun_Int.kt") + public void testCovariantOverrideSuspendFun_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFun_Int.kt"); + } + + @Test + @TestMetadata("createMangling.kt") + public void testCreateMangling() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/createMangling.kt"); + } + + @Test + @TestMetadata("createOverride.kt") + public void testCreateOverride() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/createOverride.kt"); + } + + @Test + @TestMetadata("defaultStub.kt") + public void testDefaultStub() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/defaultStub.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun.kt") + public void testGenericOverrideSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_Any.kt") + public void testGenericOverrideSuspendFun_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_Any.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt") + public void testGenericOverrideSuspendFun_Any_NullableInlineClassUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_Int.kt") + public void testGenericOverrideSuspendFun_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_Int.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_NullableAny.kt") + public void testGenericOverrideSuspendFun_NullableAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_NullableAny.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_NullableAny_null.kt") + public void testGenericOverrideSuspendFun_NullableAny_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_NullableAny_null.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_NullableInt.kt") + public void testGenericOverrideSuspendFun_NullableInt() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_NullableInt.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_NullableInt_null.kt") + public void testGenericOverrideSuspendFun_NullableInt_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_NullableInt_null.kt"); + } + + @Test + @TestMetadata("interfaceDelegateWithInlineClass.kt") + public void testInterfaceDelegateWithInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/interfaceDelegateWithInlineClass.kt"); + } + + @Test + @TestMetadata("invokeOperator.kt") + public void testInvokeOperator() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/invokeOperator.kt"); + } + + @Test + @TestMetadata("multifileBridge.kt") + public void testMultifileBridge() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/multifileBridge.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun.kt") + public void testOverrideSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/overrideSuspendFun.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Any.kt") + public void testOverrideSuspendFun_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/overrideSuspendFun_Any.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Any_itf.kt") + public void testOverrideSuspendFun_Any_itf() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/overrideSuspendFun_Any_itf.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Any_this.kt") + public void testOverrideSuspendFun_Any_this() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/overrideSuspendFun_Any_this.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Int.kt") + public void testOverrideSuspendFun_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/overrideSuspendFun_Int.kt"); + } + + @Test + @TestMetadata("returnResult.kt") + public void testReturnResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/returnResult.kt"); + } + + @Test + @TestMetadata("syntheticAccessor.kt") + public void testSyntheticAccessor() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/syntheticAccessor.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException") + @TestDataPath("$PROJECT_ROOT") + public class ResumeWithException { + @Test + public void testAllFilesPresentInResumeWithException() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxReturnValueOfSuspendFunctionReference.kt") + public void testBoxReturnValueOfSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxReturnValueOfSuspendFunctionReference.kt"); + } + + @Test + @TestMetadata("boxReturnValueOfSuspendLambda.kt") + public void testBoxReturnValueOfSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxReturnValueOfSuspendLambda.kt"); + } + + @Test + @TestMetadata("boxTypeParameterOfSuperType.kt") + public void testBoxTypeParameterOfSuperType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperType.kt"); + } + + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine.kt") + public void testBoxUnboxInsideCoroutine() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_Any.kt") + public void testBoxUnboxInsideCoroutine_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_Any.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_InlineAny.kt") + public void testBoxUnboxInsideCoroutine_InlineAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_InlineAny.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_InlineInt.kt") + public void testBoxUnboxInsideCoroutine_InlineInt() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_InlineInt.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_Int.kt") + public void testBoxUnboxInsideCoroutine_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_Int.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_Long.kt") + public void testBoxUnboxInsideCoroutine_Long() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_Long.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_NAny.kt") + public void testBoxUnboxInsideCoroutine_NAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_NAny.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_nonLocalReturn.kt") + public void testBoxUnboxInsideCoroutine_nonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_nonLocalReturn.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideCoroutine_suspendFunType.kt") + public void testBoxUnboxInsideCoroutine_suspendFunType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_suspendFunType.kt"); + } + + @Test + @TestMetadata("bridgeGenerationCrossinline.kt") + public void testBridgeGenerationCrossinline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/bridgeGenerationCrossinline.kt"); + } + + @Test + @TestMetadata("bridgeGenerationNonInline.kt") + public void testBridgeGenerationNonInline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/bridgeGenerationNonInline.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFun.kt") + public void testCovariantOverrideSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFun.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunSameJvmType.kt") + public void testCovariantOverrideSuspendFunSameJvmType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunSameJvmType.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClassSameJvmType() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Any.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass_Any.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Int.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass_Int.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFun_Any.kt") + public void testCovariantOverrideSuspendFun_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFun_Any.kt"); + } + + @Test + @TestMetadata("covariantOverrideSuspendFun_Int.kt") + public void testCovariantOverrideSuspendFun_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFun_Int.kt"); + } + + @Test + @TestMetadata("createMangling.kt") + public void testCreateMangling() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/createMangling.kt"); + } + + @Test + @TestMetadata("createOverride.kt") + public void testCreateOverride() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/createOverride.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun.kt") + public void testGenericOverrideSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_Any.kt") + public void testGenericOverrideSuspendFun_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun_Any.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt") + public void testGenericOverrideSuspendFun_Any_NullableInlineClassUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_Int.kt") + public void testGenericOverrideSuspendFun_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun_Int.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_NullableAny.kt") + public void testGenericOverrideSuspendFun_NullableAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun_NullableAny.kt"); + } + + @Test + @TestMetadata("genericOverrideSuspendFun_NullableInt.kt") + public void testGenericOverrideSuspendFun_NullableInt() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun_NullableInt.kt"); + } + + @Test + @TestMetadata("interfaceDelegateWithInlineClass.kt") + public void testInterfaceDelegateWithInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/interfaceDelegateWithInlineClass.kt"); + } + + @Test + @TestMetadata("invokeOperator.kt") + public void testInvokeOperator() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/invokeOperator.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun.kt") + public void testOverrideSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/overrideSuspendFun.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Any.kt") + public void testOverrideSuspendFun_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/overrideSuspendFun_Any.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Any_itf.kt") + public void testOverrideSuspendFun_Any_itf() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/overrideSuspendFun_Any_itf.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Any_this.kt") + public void testOverrideSuspendFun_Any_this() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/overrideSuspendFun_Any_this.kt"); + } + + @Test + @TestMetadata("overrideSuspendFun_Int.kt") + public void testOverrideSuspendFun_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/overrideSuspendFun_Int.kt"); + } + + @Test + @TestMetadata("returnResult.kt") + public void testReturnResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/returnResult.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling") + @TestDataPath("$PROJECT_ROOT") + public class IntLikeVarSpilling { + @Test + public void testAllFilesPresentInIntLikeVarSpilling() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/intLikeVarSpilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("complicatedMerge.kt") + public void testComplicatedMerge() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/complicatedMerge.kt"); + } + + @Test + @TestMetadata("i2bResult.kt") + public void testI2bResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/i2bResult.kt"); + } + + @Test + @TestMetadata("listThrowablePairInOneSlot.kt") + public void testListThrowablePairInOneSlot() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/listThrowablePairInOneSlot.kt"); + } + + @Test + @TestMetadata("loadFromBooleanArray.kt") + public void testLoadFromBooleanArray() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromBooleanArray.kt"); + } + + @Test + @TestMetadata("loadFromByteArray.kt") + public void testLoadFromByteArray() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromByteArray.kt"); + } + + @Test + @TestMetadata("noVariableInTable.kt") + public void testNoVariableInTable() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/noVariableInTable.kt"); + } + + @Test + @TestMetadata("sameIconst1ManyVars.kt") + public void testSameIconst1ManyVars() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/sameIconst1ManyVars.kt"); + } + + @Test + @TestMetadata("unusedCatchVar.kt") + public void testUnusedCatchVar() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/unusedCatchVar.kt"); + } + + @Test + @TestMetadata("usedInArrayStore.kt") + public void testUsedInArrayStore() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInArrayStore.kt"); + } + + @Test + @TestMetadata("usedInMethodCall.kt") + public void testUsedInMethodCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInMethodCall.kt"); + } + + @Test + @TestMetadata("usedInPutfield.kt") + public void testUsedInPutfield() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInPutfield.kt"); + } + + @Test + @TestMetadata("usedInVarStore.kt") + public void testUsedInVarStore() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInVarStore.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/intrinsicSemantics") + @TestDataPath("$PROJECT_ROOT") + public class IntrinsicSemantics { + @Test + public void testAllFilesPresentInIntrinsicSemantics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/intrinsicSemantics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("coroutineContext.kt") + public void testCoroutineContext() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/coroutineContext.kt"); + } + + @Test + @TestMetadata("coroutineContextReceiver.kt") + public void testCoroutineContextReceiver() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/coroutineContextReceiver.kt"); + } + + @Test + @TestMetadata("coroutineContextReceiverNotIntrinsic.kt") + public void testCoroutineContextReceiverNotIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/coroutineContextReceiverNotIntrinsic.kt"); + } + + @Test + @TestMetadata("intercepted.kt") + public void testIntercepted() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/intercepted.kt"); + } + + @Test + @TestMetadata("releaseIntercepted.kt") + public void testReleaseIntercepted() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/releaseIntercepted.kt"); + } + + @Test + @TestMetadata("resultExceptionOrNullInLambda.kt") + public void testResultExceptionOrNullInLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/resultExceptionOrNullInLambda.kt"); + } + + @Test + @TestMetadata("startCoroutine.kt") + public void testStartCoroutine() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutine.kt"); + } + + @Test + @TestMetadata("startCoroutineUninterceptedOrReturn.kt") + public void testStartCoroutineUninterceptedOrReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturn.kt"); + } + + @Test + @TestMetadata("startCoroutineUninterceptedOrReturnInterception.kt") + public void testStartCoroutineUninterceptedOrReturnInterception() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturnInterception.kt"); + } + + @Test + @TestMetadata("suspendCoroutineUninterceptedOrReturn.kt") + public void testSuspendCoroutineUninterceptedOrReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/suspendCoroutineUninterceptedOrReturn.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/javaInterop") + @TestDataPath("$PROJECT_ROOT") + public class JavaInterop { + @Test + public void testAllFilesPresentInJavaInterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("objectWithSeveralSuspends.kt") + public void testObjectWithSeveralSuspends() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/javaInterop/objectWithSeveralSuspends.kt"); + } + + @Test + @TestMetadata("returnLambda.kt") + public void testReturnLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/javaInterop/returnLambda.kt"); + } + + @Test + @TestMetadata("returnObject.kt") + public void testReturnObject() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/javaInterop/returnObject.kt"); + } + + @Test + @TestMetadata("severalCaptures.kt") + public void testSeveralCaptures() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/javaInterop/severalCaptures.kt"); + } + + @Test + @TestMetadata("suspendInlineWithCrossinline.kt") + public void testSuspendInlineWithCrossinline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/javaInterop/suspendInlineWithCrossinline.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions") + @TestDataPath("$PROJECT_ROOT") + public class LocalFunctions { + @Test + public void testAllFilesPresentInLocalFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") + @TestDataPath("$PROJECT_ROOT") + public class Named { + @Test + public void testAllFilesPresentInNamed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/named"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callTopLevelFromLocal.kt") + public void testCallTopLevelFromLocal() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/callTopLevelFromLocal.kt"); + } + + @Test + @TestMetadata("capturedParameters.kt") + public void testCapturedParameters() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/capturedParameters.kt"); + } + + @Test + @TestMetadata("capturedVariables.kt") + public void testCapturedVariables() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/capturedVariables.kt"); + } + + @Test + @TestMetadata("defaultArgument.kt") + public void testDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/defaultArgument.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/extension.kt"); + } + + @Test + @TestMetadata("infix.kt") + public void testInfix() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/infix.kt"); + } + + @Test + @TestMetadata("insideLambda.kt") + public void testInsideLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/insideLambda.kt"); + } + + @Test + @TestMetadata("nestedLocals.kt") + public void testNestedLocals() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/nestedLocals.kt"); + } + + @Test + @TestMetadata("rec.kt") + public void testRec() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/rec.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/simple.kt"); + } + + @Test + @TestMetadata("simpleSuspensionPoint.kt") + public void testSimpleSuspensionPoint() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/simpleSuspensionPoint.kt"); + } + + @Test + @TestMetadata("stateMachine.kt") + public void testStateMachine() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/stateMachine.kt"); + } + + @Test + @TestMetadata("withArguments.kt") + public void testWithArguments() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/withArguments.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/multiModule") + @TestDataPath("$PROJECT_ROOT") + public class MultiModule { + @Test + public void testAllFilesPresentInMultiModule() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inheritFromAnotherModule.kt") + public void testInheritFromAnotherModule() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multiModule/inheritFromAnotherModule.kt"); + } + + @Test + @TestMetadata("inlineCrossModule.kt") + public void testInlineCrossModule() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineCrossModule.kt"); + } + + @Test + @TestMetadata("inlineFunctionWithOptionalParam.kt") + public void testInlineFunctionWithOptionalParam() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineFunctionWithOptionalParam.kt"); + } + + @Test + @TestMetadata("inlineMultiModule.kt") + public void testInlineMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModule.kt"); + } + + @Test + @TestMetadata("inlineMultiModuleOverride.kt") + public void testInlineMultiModuleOverride() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModuleOverride.kt"); + } + + @Test + @TestMetadata("inlineMultiModuleWithController.kt") + public void testInlineMultiModuleWithController() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModuleWithController.kt"); + } + + @Test + @TestMetadata("inlineMultiModuleWithInnerInlining.kt") + public void testInlineMultiModuleWithInnerInlining() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModuleWithInnerInlining.kt"); + } + + @Test + @TestMetadata("inlineTailCall.kt") + public void testInlineTailCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineTailCall.kt"); + } + + @Test + @TestMetadata("inlineWithJava.kt") + public void testInlineWithJava() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineWithJava.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/multiModule/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/redundantLocalsElimination") + @TestDataPath("$PROJECT_ROOT") + public class RedundantLocalsElimination { + @Test + public void testAllFilesPresentInRedundantLocalsElimination() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/redundantLocalsElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ktor_receivedMessage.kt") + public void testKtor_receivedMessage() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/redundantLocalsElimination/ktor_receivedMessage.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/reflect") + @TestDataPath("$PROJECT_ROOT") + public class Reflect { + @Test + public void testAllFilesPresentInReflect() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/reflect"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bigArity.kt") + public void testBigArity() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/reflect/bigArity.kt"); + } + + @Test + @TestMetadata("bigArityLambda.kt") + public void testBigArityLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/reflect/bigArityLambda.kt"); + } + + @Test + @TestMetadata("callSuspend.kt") + public void testCallSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/reflect/callSuspend.kt"); + } + + @Test + @TestMetadata("callSuspendBy.kt") + public void testCallSuspendBy() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/reflect/callSuspendBy.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/stackUnwinding") + @TestDataPath("$PROJECT_ROOT") + public class StackUnwinding { + @Test + public void testAllFilesPresentInStackUnwinding() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/stackUnwinding"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("exception.kt") + public void testException() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/exception.kt"); + } + + @Test + @TestMetadata("inlineSuspendFunction.kt") + public void testInlineSuspendFunction() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/inlineSuspendFunction.kt"); + } + + @Test + @TestMetadata("rethrowInFinally.kt") + public void testRethrowInFinally() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/rethrowInFinally.kt"); + } + + @Test + @TestMetadata("rethrowInFinallyWithSuspension.kt") + public void testRethrowInFinallyWithSuspension() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/rethrowInFinallyWithSuspension.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/simple.kt"); + } + + @Test + @TestMetadata("suspendInCycle.kt") + public void testSuspendInCycle() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/suspendInCycle.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/suspendConversion") + @TestDataPath("$PROJECT_ROOT") + public class SuspendConversion { + @Test + public void testAllFilesPresentInSuspendConversion() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("intersectionTypeToSubtypeConversion.kt") + public void testIntersectionTypeToSubtypeConversion() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion/intersectionTypeToSubtypeConversion.kt"); + } + + @Test + @TestMetadata("onArgument.kt") + public void testOnArgument() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion/onArgument.kt"); + } + + @Test + @TestMetadata("onInlineArgument.kt") + public void testOnInlineArgument() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion/onInlineArgument.kt"); + } + + @Test + @TestMetadata("subtypeOfFunctionalTypeToSuspendConversion.kt") + public void testSubtypeOfFunctionalTypeToSuspendConversion() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion/subtypeOfFunctionalTypeToSuspendConversion.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine") + @TestDataPath("$PROJECT_ROOT") + public class SuspendFunctionAsCoroutine { + @Test + public void testAllFilesPresentInSuspendFunctionAsCoroutine() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dispatchResume.kt") + public void testDispatchResume() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/dispatchResume.kt"); + } + + @Test + @TestMetadata("handleException.kt") + public void testHandleException() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.kt"); + } + + @Test + @TestMetadata("ifExpressionInsideCoroutine_1_3.kt") + public void testIfExpressionInsideCoroutine_1_3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/ifExpressionInsideCoroutine_1_3.kt"); + } + + @Test + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inline.kt"); + } + + @Test + @TestMetadata("inlineTwoReceivers.kt") + public void testInlineTwoReceivers() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inlineTwoReceivers.kt"); + } + + @Test + @TestMetadata("member.kt") + public void testMember() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/member.kt"); + } + + @Test + @TestMetadata("noinlineTwoReceivers.kt") + public void testNoinlineTwoReceivers() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/noinlineTwoReceivers.kt"); + } + + @Test + @TestMetadata("openFunWithJava.kt") + public void testOpenFunWithJava() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/openFunWithJava.kt"); + } + + @Test + @TestMetadata("operators.kt") + public void testOperators() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/operators.kt"); + } + + @Test + @TestMetadata("privateFunctions.kt") + public void testPrivateFunctions() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateFunctions.kt"); + } + + @Test + @TestMetadata("privateInFile.kt") + public void testPrivateInFile() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateInFile.kt"); + } + + @Test + @TestMetadata("returnNoSuspend.kt") + public void testReturnNoSuspend() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/returnNoSuspend.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/simple.kt"); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCall.kt"); + } + + @Test + @TestMetadata("superCallAbstractClass.kt") + public void testSuperCallAbstractClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallAbstractClass.kt"); + } + + @Test + @TestMetadata("superCallInterface.kt") + public void testSuperCallInterface() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallInterface.kt"); + } + + @Test + @TestMetadata("superCallOverload.kt") + public void testSuperCallOverload() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallOverload.kt"); + } + + @Test + @TestMetadata("withVariables.kt") + public void testWithVariables() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/withVariables.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall") + @TestDataPath("$PROJECT_ROOT") + public class SuspendFunctionTypeCall { + @Test + public void testAllFilesPresentInSuspendFunctionTypeCall() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("localVal.kt") + public void testLocalVal() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/localVal.kt"); + } + + @Test + @TestMetadata("manyParameters.kt") + public void testManyParameters() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/manyParameters.kt"); + } + + @Test + @TestMetadata("manyParametersNoCapture.kt") + public void testManyParametersNoCapture() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/manyParametersNoCapture.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/simple.kt"); + } + + @Test + @TestMetadata("suspendModifier.kt") + public void testSuspendModifier() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/suspendModifier.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/tailCallOptimizations") + @TestDataPath("$PROJECT_ROOT") + public class TailCallOptimizations { + @Test + public void testAllFilesPresentInTailCallOptimizations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/tailCallOptimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("also.kt") + public void testAlso() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/also.kt"); + } + + @Test + @TestMetadata("checkcast.kt") + public void testCheckcast() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast.kt"); + } + + @Test + @TestMetadata("checkcast2.kt") + public void testCheckcast2() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast2.kt"); + } + + @Test + @TestMetadata("crossinline.kt") + public void testCrossinline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/crossinline.kt"); + } + + @Test + @TestMetadata("deferredAwaitSuspendImpl.kt") + public void testDeferredAwaitSuspendImpl() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/deferredAwaitSuspendImpl.kt"); + } + + @Test + @TestMetadata("inlineWithStateMachine.kt") + public void testInlineWithStateMachine() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithStateMachine.kt"); + } + + @Test + @TestMetadata("inlineWithoutStateMachine.kt") + public void testInlineWithoutStateMachine() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithoutStateMachine.kt"); + } + + @Test + @TestMetadata("innerObjectRetransformation.kt") + public void testInnerObjectRetransformation() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/innerObjectRetransformation.kt"); + } + + @Test + @TestMetadata("interfaceDelegation.kt") + public void testInterfaceDelegation() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/interfaceDelegation.kt"); + } + + @Test + @TestMetadata("lambdaParameterInlining.kt") + public void testLambdaParameterInlining() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/lambdaParameterInlining.kt"); + } + + @Test + @TestMetadata("returnInlineClass.kt") + public void testReturnInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/returnInlineClass.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/simple.kt"); + } + + @Test + @TestMetadata("tailCallIfReturnUnit.kt") + public void testTailCallIfReturnUnit() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIfReturnUnit.kt"); + } + + @Test + @TestMetadata("tailCallIntrinsics.kt") + public void testTailCallIntrinsics() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIntrinsics.kt"); + } + + @Test + @TestMetadata("tailSuspendUnitFun.kt") + public void testTailSuspendUnitFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailSuspendUnitFun.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.kt"); + } + + @Test + @TestMetadata("tryCatchTailCall.kt") + public void testTryCatchTailCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatchTailCall.kt"); + } + + @Test + @TestMetadata("unreachable.kt") + public void testUnreachable() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unreachable.kt"); + } + + @Test + @TestMetadata("whenUnit.kt") + public void testWhenUnit() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/whenUnit.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit") + @TestDataPath("$PROJECT_ROOT") + public class Unit { + @Test + public void testAllFilesPresentInUnit() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("functionReference.kt") + public void testFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/functionReference.kt"); + } + + @Test + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/inline.kt"); + } + + @Test + @TestMetadata("override.kt") + public void testOverride() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override.kt"); + } + + @Test + @TestMetadata("override2.kt") + public void testOverride2() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override2.kt"); + } + + @Test + @TestMetadata("override3.kt") + public void testOverride3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override3.kt"); + } + + @Test + @TestMetadata("override4.kt") + public void testOverride4() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override4.kt"); + } + + @Test + @TestMetadata("override5.kt") + public void testOverride5() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override5.kt"); + } + + @Test + @TestMetadata("override6.kt") + public void testOverride6() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override6.kt"); + } + + @Test + @TestMetadata("overrideCrossinline.kt") + public void testOverrideCrossinline() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/overrideCrossinline.kt"); + } + + @Test + @TestMetadata("overrideOverriden.kt") + public void testOverrideOverriden() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/overrideOverriden.kt"); + } + + @Test + @TestMetadata("reflection.kt") + public void testReflection() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/reflection.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/simple.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/tailOperations") + @TestDataPath("$PROJECT_ROOT") + public class TailOperations { + @Test + public void testAllFilesPresentInTailOperations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/tailOperations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("suspendWithIf.kt") + public void testSuspendWithIf() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailOperations/suspendWithIf.kt"); + } + + @Test + @TestMetadata("suspendWithTryCatch.kt") + public void testSuspendWithTryCatch() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailOperations/suspendWithTryCatch.kt"); + } + + @Test + @TestMetadata("suspendWithWhen.kt") + public void testSuspendWithWhen() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailOperations/suspendWithWhen.kt"); + } + + @Test + @TestMetadata("tailInlining.kt") + public void testTailInlining() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailOperations/tailInlining.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/unitTypeReturn") + @TestDataPath("$PROJECT_ROOT") + public class UnitTypeReturn { + @Test + public void testAllFilesPresentInUnitTypeReturn() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/unitTypeReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("coroutineNonLocalReturn.kt") + public void testCoroutineNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineNonLocalReturn.kt"); + } + + @Test + @TestMetadata("coroutineReturn.kt") + public void testCoroutineReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineReturn.kt"); + } + + @Test + @TestMetadata("inlineUnitFunction.kt") + public void testInlineUnitFunction() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/inlineUnitFunction.kt"); + } + + @Test + @TestMetadata("interfaceDelegation.kt") + public void testInterfaceDelegation() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/interfaceDelegation.kt"); + } + + @Test + @TestMetadata("suspendNonLocalReturn.kt") + public void testSuspendNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendNonLocalReturn.kt"); + } + + @Test + @TestMetadata("suspendReturn.kt") + public void testSuspendReturn() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendReturn.kt"); + } + + @Test + @TestMetadata("unitSafeCall.kt") + public void testUnitSafeCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/unitSafeCall.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/varSpilling") + @TestDataPath("$PROJECT_ROOT") + public class VarSpilling { + @Test + public void testAllFilesPresentInVarSpilling() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/varSpilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("fakeInlinerVariables.kt") + public void testFakeInlinerVariables() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/fakeInlinerVariables.kt"); + } + + @Test + @TestMetadata("kt19475.kt") + public void testKt19475() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/kt19475.kt"); + } + + @Test + @TestMetadata("kt38925.kt") + public void testKt38925() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/kt38925.kt"); + } + + @Test + @TestMetadata("kt49834.kt") + public void testKt49834() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/kt49834.kt"); + } + + @Test + @TestMetadata("kt64139.kt") + public void testKt64139() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/kt64139.kt"); + } + + @Test + @TestMetadata("lvtWithInlineOnly.kt") + public void testLvtWithInlineOnly() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/lvtWithInlineOnly.kt"); + } + + @Test + @TestMetadata("nullSpilling.kt") + public void testNullSpilling() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/nullSpilling.kt"); + } + + @Test + @TestMetadata("refinedIntTypesAnalysis.kt") + public void testRefinedIntTypesAnalysis() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/refinedIntTypesAnalysis.kt"); + } + + @Test + @TestMetadata("safeCallElvis.kt") + public void testSafeCallElvis() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/safeCallElvis.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/varSpilling/cleanup") + @TestDataPath("$PROJECT_ROOT") + public class Cleanup { + @Test + public void testAllFilesPresentInCleanup() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/varSpilling/cleanup"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("backEdge.kt") + public void testBackEdge() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/backEdge.kt"); + } + + @Test + @TestMetadata("if.kt") + public void testIf() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/if.kt"); + } + + @Test + @TestMetadata("nullCleanup.kt") + public void testNullCleanup() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/nullCleanup.kt"); + } + + @Test + @TestMetadata("nullNotSpill.kt") + public void testNullNotSpill() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/nullNotSpill.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/simple.kt"); + } + + @Test + @TestMetadata("twoRefs.kt") + public void testTwoRefs() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/twoRefs.kt"); + } + + @Test + @TestMetadata("unusedParamNotSpill.kt") + public void testUnusedParamNotSpill() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/unusedParamNotSpill.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/when.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/coroutines/varSpilling/debugMode") + @TestDataPath("$PROJECT_ROOT") + public class DebugMode { + @Test + public void testAllFilesPresentInDebugMode() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/varSpilling/debugMode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("backEdge.kt") + public void testBackEdge() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/backEdge.kt"); + } + + @Test + @TestMetadata("if.kt") + public void testIf() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/if.kt"); + } + + @Test + @TestMetadata("inlineOnly.kt") + public void testInlineOnly() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/inlineOnly.kt"); + } + + @Test + @TestMetadata("nullCleanup.kt") + public void testNullCleanup() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/nullCleanup.kt"); + } + + @Test + @TestMetadata("nullNotSpill.kt") + public void testNullNotSpill() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/nullNotSpill.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/simple.kt"); + } + + @Test + @TestMetadata("twoRefs.kt") + public void testTwoRefs() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/twoRefs.kt"); + } + + @Test + @TestMetadata("unusedParamNotSpill.kt") + public void testUnusedParamNotSpill() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/unusedParamNotSpill.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/when.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/correctFrontendCode") + @TestDataPath("$PROJECT_ROOT") + public class CorrectFrontendCode { + @Test + public void testAllFilesPresentInCorrectFrontendCode() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/correctFrontendCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("privateNestedClassInSuper.kt") + public void testPrivateNestedClassInSuper() throws Exception { + runTest("compiler/testData/codegen/box/correctFrontendCode/privateNestedClassInSuper.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/dataClasses") + @TestDataPath("$PROJECT_ROOT") + public class DataClasses { + @Test + public void testAllFilesPresentInDataClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayParams.kt") + public void testArrayParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/arrayParams.kt"); + } + + @Test + @TestMetadata("changingVarParam.kt") + public void testChangingVarParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/changingVarParam.kt"); + } + + @Test + @TestMetadata("dataClassWithManyFields.kt") + public void testDataClassWithManyFields() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/dataClassWithManyFields.kt"); + } + + @Test + @TestMetadata("doubleParam.kt") + public void testDoubleParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/doubleParam.kt"); + } + + @Test + @TestMetadata("equalityChecksPrimitiveUnboxed.kt") + public void testEqualityChecksPrimitiveUnboxed() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equalityChecksPrimitiveUnboxed.kt"); + } + + @Test + @TestMetadata("floatParam.kt") + public void testFloatParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/floatParam.kt"); + } + + @Test + @TestMetadata("fromOtherModule.kt") + public void testFromOtherModule() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/fromOtherModule.kt"); + } + + @Test + @TestMetadata("genericParam.kt") + public void testGenericParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/genericParam.kt"); + } + + @Test + @TestMetadata("kt49715.kt") + public void testKt49715() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/kt49715.kt"); + } + + @Test + @TestMetadata("kt49715_behaviorChange.kt") + public void testKt49715_behaviorChange() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/kt49715_behaviorChange.kt"); + } + + @Test + @TestMetadata("kt5002.kt") + public void testKt5002() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/kt5002.kt"); + } + + @Test + @TestMetadata("mixedParams.kt") + public void testMixedParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/mixedParams.kt"); + } + + @Test + @TestMetadata("multiDeclaration.kt") + public void testMultiDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/multiDeclaration.kt"); + } + + @Test + @TestMetadata("multiDeclarationFor.kt") + public void testMultiDeclarationFor() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/multiDeclarationFor.kt"); + } + + @Test + @TestMetadata("nonTrivialFinalMemberInSuperClass.kt") + public void testNonTrivialFinalMemberInSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/nonTrivialFinalMemberInSuperClass.kt"); + } + + @Test + @TestMetadata("nonTrivialMemberInSuperClass.kt") + public void testNonTrivialMemberInSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/nonTrivialMemberInSuperClass.kt"); + } + + @Test + @TestMetadata("privateValParams.kt") + public void testPrivateValParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/privateValParams.kt"); + } + + @Test + @TestMetadata("twoValParams.kt") + public void testTwoValParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/twoValParams.kt"); + } + + @Test + @TestMetadata("twoVarParams.kt") + public void testTwoVarParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/twoVarParams.kt"); + } + + @Test + @TestMetadata("typeParameterWithNonTrivialBound.kt") + public void testTypeParameterWithNonTrivialBound() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/typeParameterWithNonTrivialBound.kt"); + } + + @Test + @TestMetadata("unitComponent.kt") + public void testUnitComponent() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/unitComponent.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/dataClasses/components") + @TestDataPath("$PROJECT_ROOT") + public class Components { + @Test + public void testAllFilesPresentInComponents() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/components"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt49812.kt") + public void testKt49812() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/components/kt49812.kt"); + } + + @Test + @TestMetadata("kt49936.kt") + public void testKt49936() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/components/kt49936.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/dataClasses/copy") + @TestDataPath("$PROJECT_ROOT") + public class Copy { + @Test + public void testAllFilesPresentInCopy() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/copy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorWithDefaultParam.kt") + public void testConstructorWithDefaultParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/constructorWithDefaultParam.kt"); + } + + @Test + @TestMetadata("copyInObjectNestedDataClass.kt") + public void testCopyInObjectNestedDataClass() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/copyInObjectNestedDataClass.kt"); + } + + @Test + @TestMetadata("kt12708.kt") + public void testKt12708() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/kt12708.kt"); + } + + @Test + @TestMetadata("kt3033.kt") + public void testKt3033() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/kt3033.kt"); + } + + @Test + @TestMetadata("valInConstructorParams.kt") + public void testValInConstructorParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/valInConstructorParams.kt"); + } + + @Test + @TestMetadata("varInConstructorParams.kt") + public void testVarInConstructorParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/varInConstructorParams.kt"); + } + + @Test + @TestMetadata("withGenericParameter.kt") + public void testWithGenericParameter() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/withGenericParameter.kt"); + } + + @Test + @TestMetadata("withSecondaryConstructor.kt") + public void testWithSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/withSecondaryConstructor.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/dataClasses/equals") + @TestDataPath("$PROJECT_ROOT") + public class Equals { + @Test + public void testAllFilesPresentInEquals() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/equals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("alreadyDeclared.kt") + public void testAlreadyDeclared() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/alreadyDeclared.kt"); + } + + @Test + @TestMetadata("alreadyDeclaredWrongSignature.kt") + public void testAlreadyDeclaredWrongSignature() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/alreadyDeclaredWrongSignature.kt"); + } + + @Test + @TestMetadata("genericarray.kt") + public void testGenericarray() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/genericarray.kt"); + } + + @Test + @TestMetadata("intarray.kt") + public void testIntarray() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/intarray.kt"); + } + + @Test + @TestMetadata("null.kt") + public void testNull() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/null.kt"); + } + + @Test + @TestMetadata("nullother.kt") + public void testNullother() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/nullother.kt"); + } + + @Test + @TestMetadata("sameinstance.kt") + public void testSameinstance() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/sameinstance.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/dataClasses/hashCode") + @TestDataPath("$PROJECT_ROOT") + public class HashCode { + @Test + public void testAllFilesPresentInHashCode() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/hashCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("alreadyDeclared.kt") + public void testAlreadyDeclared() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/alreadyDeclared.kt"); + } + + @Test + @TestMetadata("alreadyDeclaredWrongSignature.kt") + public void testAlreadyDeclaredWrongSignature() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/alreadyDeclaredWrongSignature.kt"); + } + + @Test + @TestMetadata("array.kt") + public void testArray() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/array.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/boolean.kt"); + } + + @Test + @TestMetadata("byte.kt") + public void testByte() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/byte.kt"); + } + + @Test + @TestMetadata("char.kt") + public void testChar() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/char.kt"); + } + + @Test + @TestMetadata("double.kt") + public void testDouble() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/double.kt"); + } + + @Test + @TestMetadata("float.kt") + public void testFloat() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/float.kt"); + } + + @Test + @TestMetadata("genericNull.kt") + public void testGenericNull() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/genericNull.kt"); + } + + @Test + @TestMetadata("int.kt") + public void testInt() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/int.kt"); + } + + @Test + @TestMetadata("long.kt") + public void testLong() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/long.kt"); + } + + @Test + @TestMetadata("null.kt") + public void testNull() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/null.kt"); + } + + @Test + @TestMetadata("short.kt") + public void testShort() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/short.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/dataClasses/toString") + @TestDataPath("$PROJECT_ROOT") + public class ToString { + @Test + public void testAllFilesPresentInToString() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/toString"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("alreadyDeclared.kt") + public void testAlreadyDeclared() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/alreadyDeclared.kt"); + } + + @Test + @TestMetadata("alreadyDeclaredWrongSignature.kt") + public void testAlreadyDeclaredWrongSignature() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/alreadyDeclaredWrongSignature.kt"); + } + + @Test + @TestMetadata("arrayParams.kt") + public void testArrayParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/arrayParams.kt"); + } + + @Test + @TestMetadata("changingVarParam.kt") + public void testChangingVarParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/changingVarParam.kt"); + } + + @Test + @TestMetadata("genericParam.kt") + public void testGenericParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/genericParam.kt"); + } + + @Test + @TestMetadata("mixedParams.kt") + public void testMixedParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/mixedParams.kt"); + } + + @Test + @TestMetadata("primitiveArrays.kt") + public void testPrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt"); + } + + @Test + @TestMetadata("unitComponent.kt") + public void testUnitComponent() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/unitComponent.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/dataObjects") + @TestDataPath("$PROJECT_ROOT") + public class DataObjects { + @Test + public void testAllFilesPresentInDataObjects() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataObjects"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("equals.kt") + public void testEquals() throws Exception { + runTest("compiler/testData/codegen/box/dataObjects/equals.kt"); + } + + @Test + @TestMetadata("hashCode.kt") + public void testHashCode() throws Exception { + runTest("compiler/testData/codegen/box/dataObjects/hashCode.kt"); + } + + @Test + @TestMetadata("multipleInstances.kt") + public void testMultipleInstances() throws Exception { + runTest("compiler/testData/codegen/box/dataObjects/multipleInstances.kt"); + } + + @Test + @TestMetadata("serialization.kt") + public void testSerialization() throws Exception { + runTest("compiler/testData/codegen/box/dataObjects/serialization.kt"); + } + + @Test + @TestMetadata("toString.kt") + public void testToString() throws Exception { + runTest("compiler/testData/codegen/box/dataObjects/toString.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") + @TestDataPath("$PROJECT_ROOT") + public class DeadCodeElimination { + @Test + public void testAllFilesPresentInDeadCodeElimination() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/deadCodeElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyVariableRange.kt") + public void testEmptyVariableRange() throws Exception { + runTest("compiler/testData/codegen/box/deadCodeElimination/emptyVariableRange.kt"); + } + + @Test + @TestMetadata("intersectingVariableRange.kt") + public void testIntersectingVariableRange() throws Exception { + runTest("compiler/testData/codegen/box/deadCodeElimination/intersectingVariableRange.kt"); + } + + @Test + @TestMetadata("intersectingVariableRangeInFinally.kt") + public void testIntersectingVariableRangeInFinally() throws Exception { + runTest("compiler/testData/codegen/box/deadCodeElimination/intersectingVariableRangeInFinally.kt"); + } + + @Test + @TestMetadata("kt14357.kt") + public void testKt14357() throws Exception { + runTest("compiler/testData/codegen/box/deadCodeElimination/kt14357.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + public class DefaultArguments { + @Test + public void testAllFilesPresentInDefaultArguments() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callDefaultFromInitializer.kt") + public void testCallDefaultFromInitializer() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/callDefaultFromInitializer.kt"); + } + + @Test + @TestMetadata("captureInTailrec.kt") + public void testCaptureInTailrec() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/captureInTailrec.kt"); + } + + @Test + @TestMetadata("complexInheritance.kt") + public void testComplexInheritance() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/complexInheritance.kt"); + } + + @Test + @TestMetadata("implementedByFake.kt") + public void testImplementedByFake() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/implementedByFake.kt"); + } + + @Test + @TestMetadata("implementedByFake2.kt") + public void testImplementedByFake2() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/implementedByFake2.kt"); + } + + @Test + @TestMetadata("implementedByFake3.kt") + public void testImplementedByFake3() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/implementedByFake3.kt"); + } + + @Test + @TestMetadata("inheritedFromInterfaceViaAbstractSuperclass.kt") + public void testInheritedFromInterfaceViaAbstractSuperclass() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/inheritedFromInterfaceViaAbstractSuperclass.kt"); + } + + @Test + @TestMetadata("kt36853.kt") + public void testKt36853() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt36853.kt"); + } + + @Test + @TestMetadata("kt36853_fibonacci.kt") + public void testKt36853_fibonacci() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt36853_fibonacci.kt"); + } + + @Test + @TestMetadata("kt36853_nestedObject.kt") + public void testKt36853_nestedObject() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt36853_nestedObject.kt"); + } + + @Test + @TestMetadata("kt36853a.kt") + public void testKt36853a() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt36853a.kt"); + } + + @Test + @TestMetadata("kt36972_companion.kt") + public void testKt36972_companion() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt36972_companion.kt"); + } + + @Test + @TestMetadata("kt36972_object.kt") + public void testKt36972_object() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt36972_object.kt"); + } + + @Test + @TestMetadata("kt46189.kt") + public void testKt46189() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt46189.kt"); + } + + @Test + @TestMetadata("kt47073.kt") + public void testKt47073() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt47073.kt"); + } + + @Test + @TestMetadata("kt47073_nested.kt") + public void testKt47073_nested() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt47073_nested.kt"); + } + + @Test + @TestMetadata("kt48391.kt") + public void testKt48391() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt48391.kt"); + } + + @Test + @TestMetadata("kt52702.kt") + public void testKt52702() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt52702.kt"); + } + + @Test + @TestMetadata("kt6382.kt") + public void testKt6382() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt6382.kt"); + } + + @Test + @TestMetadata("protected.kt") + public void testProtected() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/protected.kt"); + } + + @Test + @TestMetadata("recursiveDefaultArguments.kt") + public void testRecursiveDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/recursiveDefaultArguments.kt"); + } + + @Test + @TestMetadata("referenceAsArg.kt") + public void testReferenceAsArg() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/referenceAsArg.kt"); + } + + @Test + @TestMetadata("simpleFromOtherFile.kt") + public void testSimpleFromOtherFile() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/simpleFromOtherFile.kt"); + } + + @Test + @TestMetadata("superCallCheck.kt") + public void testSuperCallCheck() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/superCallCheck.kt"); + } + + @Test + @TestMetadata("superCallHandlerOrder.kt") + public void testSuperCallHandlerOrder() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/superCallHandlerOrder.kt"); + } + + @Test + @TestMetadata("useNextParamInLambda.kt") + public void testUseNextParamInLambda() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/useNextParamInLambda.kt"); + } + + @Test + @TestMetadata("useNextParamInLambdaTailrec.kt") + public void testUseNextParamInLambdaTailrec() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/useNextParamInLambdaTailrec.kt"); + } + + @Test + @TestMetadata("useThisInLambda.kt") + public void testUseThisInLambda() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/useThisInLambda.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/defaultArguments/constructor") + @TestDataPath("$PROJECT_ROOT") + public class Constructor { + @Test + public void testAllFilesPresentInConstructor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotation.kt") + public void testAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/annotation.kt"); + } + + @Test + @TestMetadata("annotationWithEmptyArray.kt") + public void testAnnotationWithEmptyArray() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/annotationWithEmptyArray.kt"); + } + + @Test + @TestMetadata("checkIfConstructorIsSynthetic.kt") + public void testCheckIfConstructorIsSynthetic() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/checkIfConstructorIsSynthetic.kt"); + } + + @Test + @TestMetadata("defArgs1.kt") + public void testDefArgs1() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/defArgs1.kt"); + } + + @Test + @TestMetadata("defArgs1InnerClass.kt") + public void testDefArgs1InnerClass() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/defArgs1InnerClass.kt"); + } + + @Test + @TestMetadata("defArgs2.kt") + public void testDefArgs2() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/defArgs2.kt"); + } + + @Test + @TestMetadata("doubleDefArgs1InnerClass.kt") + public void testDoubleDefArgs1InnerClass() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/doubleDefArgs1InnerClass.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/enum.kt"); + } + + @Test + @TestMetadata("enumWithOneDefArg.kt") + public void testEnumWithOneDefArg() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/enumWithOneDefArg.kt"); + } + + @Test + @TestMetadata("enumWithTwoDefArgs.kt") + public void testEnumWithTwoDefArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/enumWithTwoDefArgs.kt"); + } + + @Test + @TestMetadata("enumWithTwoDoubleDefArgs.kt") + public void testEnumWithTwoDoubleDefArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/enumWithTwoDoubleDefArgs.kt"); + } + + @Test + @TestMetadata("innerClass32Args.kt") + public void testInnerClass32Args() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/innerClass32Args.kt"); + } + + @Test + @TestMetadata("kt2852.kt") + public void testKt2852() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/kt2852.kt"); + } + + @Test + @TestMetadata("kt30517.kt") + public void testKt30517() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/kt30517.kt"); + } + + @Test + @TestMetadata("kt3060.kt") + public void testKt3060() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/kt3060.kt"); + } + + @Test + @TestMetadata("manyArgs.kt") + public void testManyArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/manyArgs.kt"); + } + + @Test + @TestMetadata("objectExpressionDelegatingToSecondaryConstructor.kt") + public void testObjectExpressionDelegatingToSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/objectExpressionDelegatingToSecondaryConstructor.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/defaultArguments/convention") + @TestDataPath("$PROJECT_ROOT") + public class Convention { + @Test + public void testAllFilesPresentInConvention() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/convention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("incWithDefaultInGetter.kt") + public void testIncWithDefaultInGetter() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/incWithDefaultInGetter.kt"); + } + + @Test + @TestMetadata("incWithDefaults.kt") + public void testIncWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/incWithDefaults.kt"); + } + + @Test + @TestMetadata("kt16520.kt") + public void testKt16520() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/kt16520.kt"); + } + + @Test + @TestMetadata("kt16520_old.kt") + public void testKt16520_old() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/kt16520_old.kt"); + } + + @Test + @TestMetadata("kt9140.kt") + public void testKt9140() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/kt9140.kt"); + } + + @Test + @TestMetadata("plusAssignWithDefaultInGetter.kt") + public void testPlusAssignWithDefaultInGetter() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/plusAssignWithDefaultInGetter.kt"); + } + + @Test + @TestMetadata("plusAssignWithDefaults.kt") + public void testPlusAssignWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/plusAssignWithDefaults.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/defaultArguments/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + @TestMetadata("abstractClass.kt") + public void testAbstractClass() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/abstractClass.kt"); + } + + @Test + public void testAllFilesPresentInFunction() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("complexInheritance.kt") + public void testComplexInheritance() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/complexInheritance.kt"); + } + + @Test + @TestMetadata("covariantOverride.kt") + public void testCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/covariantOverride.kt"); + } + + @Test + @TestMetadata("covariantOverrideGeneric.kt") + public void testCovariantOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/covariantOverrideGeneric.kt"); + } + + @Test + @TestMetadata("defaultLambdaInline.kt") + public void testDefaultLambdaInline() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/defaultLambdaInline.kt"); + } + + @Test + @TestMetadata("extensionFunctionManyArgs.kt") + public void testExtensionFunctionManyArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extensionFunctionManyArgs.kt"); + } + + @Test + @TestMetadata("extentionFunction.kt") + public void testExtentionFunction() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunction.kt"); + } + + @Test + @TestMetadata("extentionFunctionDouble.kt") + public void testExtentionFunctionDouble() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunctionDouble.kt"); + } + + @Test + @TestMetadata("extentionFunctionDoubleTwoArgs.kt") + public void testExtentionFunctionDoubleTwoArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunctionDoubleTwoArgs.kt"); + } + + @Test + @TestMetadata("extentionFunctionInClassObject.kt") + public void testExtentionFunctionInClassObject() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunctionInClassObject.kt"); + } + + @Test + @TestMetadata("extentionFunctionInObject.kt") + public void testExtentionFunctionInObject() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunctionInObject.kt"); + } + + @Test + @TestMetadata("extentionFunctionWithOneDefArg.kt") + public void testExtentionFunctionWithOneDefArg() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunctionWithOneDefArg.kt"); + } + + @Test + @TestMetadata("funInTrait.kt") + public void testFunInTrait() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/funInTrait.kt"); + } + + @Test + @TestMetadata("funInTraitChain.kt") + public void testFunInTraitChain() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/funInTraitChain.kt"); + } + + @Test + @TestMetadata("innerExtentionFunction.kt") + public void testInnerExtentionFunction() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunction.kt"); + } + + @Test + @TestMetadata("innerExtentionFunctionDouble.kt") + public void testInnerExtentionFunctionDouble() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunctionDouble.kt"); + } + + @Test + @TestMetadata("innerExtentionFunctionDoubleTwoArgs.kt") + public void testInnerExtentionFunctionDoubleTwoArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunctionDoubleTwoArgs.kt"); + } + + @Test + @TestMetadata("innerExtentionFunctionManyArgs.kt") + public void testInnerExtentionFunctionManyArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunctionManyArgs.kt"); + } + + @Test + @TestMetadata("kt15971.kt") + public void testKt15971() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt15971.kt"); + } + + @Test + @TestMetadata("kt15971_2.kt") + public void testKt15971_2() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt15971_2.kt"); + } + + @Test + @TestMetadata("kt15971_3.kt") + public void testKt15971_3() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt15971_3.kt"); + } + + @Test + @TestMetadata("kt36188.kt") + public void testKt36188() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt36188.kt"); + } + + @Test + @TestMetadata("kt36188_2.kt") + public void testKt36188_2() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt36188_2.kt"); + } + + @Test + @TestMetadata("kt5232.kt") + public void testKt5232() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt5232.kt"); + } + + @Test + @TestMetadata("memberFunctionManyArgs.kt") + public void testMemberFunctionManyArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/memberFunctionManyArgs.kt"); + } + + @Test + @TestMetadata("mixingNamedAndPositioned.kt") + public void testMixingNamedAndPositioned() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/mixingNamedAndPositioned.kt"); + } + + @Test + @TestMetadata("topLevelManyArgs.kt") + public void testTopLevelManyArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/topLevelManyArgs.kt"); + } + + @Test + @TestMetadata("trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/trait.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/defaultArguments/private") + @TestDataPath("$PROJECT_ROOT") + public class Private { + @Test + public void testAllFilesPresentInPrivate() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("memberExtensionFunction.kt") + public void testMemberExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/private/memberExtensionFunction.kt"); + } + + @Test + @TestMetadata("memberFunction.kt") + public void testMemberFunction() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/private/memberFunction.kt"); + } + + @Test + @TestMetadata("primaryConstructor.kt") + public void testPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/private/primaryConstructor.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/private/secondaryConstructor.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/defaultArguments/signature") + @TestDataPath("$PROJECT_ROOT") + public class Signature { + @Test + public void testAllFilesPresentInSignature() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt2789.kt") + public void testKt2789() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/signature/kt2789.kt"); + } + + @Test + @TestMetadata("kt9428.kt") + public void testKt9428() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/signature/kt9428.kt"); + } + + @Test + @TestMetadata("kt9924.kt") + public void testKt9924() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/signature/kt9924.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/delegatedProperty") + @TestDataPath("$PROJECT_ROOT") + public class DelegatedProperty { + @Test + @TestMetadata("accessTopLevelDelegatedPropertyInClinit.kt") + public void testAccessTopLevelDelegatedPropertyInClinit() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/accessTopLevelDelegatedPropertyInClinit.kt"); + } + + @Test + public void testAllFilesPresentInDelegatedProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("beforeDeclarationContainerOptimization.kt") + public void testBeforeDeclarationContainerOptimization() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/beforeDeclarationContainerOptimization.kt"); + } + + @Test + @TestMetadata("capturePropertyInClosure.kt") + public void testCapturePropertyInClosure() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/capturePropertyInClosure.kt"); + } + + @Test + @TestMetadata("castGetReturnType.kt") + public void testCastGetReturnType() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/castGetReturnType.kt"); + } + + @Test + @TestMetadata("castSetParameter.kt") + public void testCastSetParameter() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); + } + + @Test + @TestMetadata("delegateAsInnerClass.kt") + public void testDelegateAsInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateAsInnerClass.kt"); + } + + @Test + @TestMetadata("delegateByOtherProperty.kt") + public void testDelegateByOtherProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateByOtherProperty.kt"); + } + + @Test + @TestMetadata("delegateByTopLevelFun.kt") + public void testDelegateByTopLevelFun() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateByTopLevelFun.kt"); + } + + @Test + @TestMetadata("delegateByTopLevelProperty.kt") + public void testDelegateByTopLevelProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateByTopLevelProperty.kt"); + } + + @Test + @TestMetadata("delegateForExtProperty.kt") + public void testDelegateForExtProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateForExtProperty.kt"); + } + + @Test + @TestMetadata("delegateForExtPropertyInClass.kt") + public void testDelegateForExtPropertyInClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateForExtPropertyInClass.kt"); + } + + @Test + @TestMetadata("delegateToConstVal.kt") + public void testDelegateToConstVal() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToConstVal.kt"); + } + + @Test + @TestMetadata("delegateToConstructorParameter.kt") + public void testDelegateToConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToConstructorParameter.kt"); + } + + @Test + @TestMetadata("delegateToJavaFinalStaticField.kt") + public void testDelegateToJavaFinalStaticField() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToJavaFinalStaticField.kt"); + } + + @Test + @TestMetadata("delegateWithPrivateSet.kt") + public void testDelegateWithPrivateSet() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); + } + + @Test + @TestMetadata("delegatedPropertyInEnum.kt") + public void testDelegatedPropertyInEnum() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedPropertyInEnum.kt"); + } + + @Test + @TestMetadata("DelegationByFunctionWithEnumUpperBound.kt") + public void testDelegationByFunctionWithEnumUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/DelegationByFunctionWithEnumUpperBound.kt"); + } + + @Test + @TestMetadata("extensionDelegatesWithSameNames.kt") + public void testExtensionDelegatesWithSameNames() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/extensionDelegatesWithSameNames.kt"); + } + + @Test + @TestMetadata("extensionPropertyAndExtensionGetValue.kt") + public void testExtensionPropertyAndExtensionGetValue() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/extensionPropertyAndExtensionGetValue.kt"); + } + + @Test + @TestMetadata("functionRefDelefate.kt") + public void testFunctionRefDelefate() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/functionRefDelefate.kt"); + } + + @Test + @TestMetadata("genericDelegate.kt") + public void testGenericDelegate() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/genericDelegate.kt"); + } + + @Test + @TestMetadata("genericDelegateUncheckedCast1.kt") + public void testGenericDelegateUncheckedCast1() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/genericDelegateUncheckedCast1.kt"); + } + + @Test + @TestMetadata("genericDelegateUncheckedCast2.kt") + public void testGenericDelegateUncheckedCast2() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/genericDelegateUncheckedCast2.kt"); + } + + @Test + @TestMetadata("genericSetValueViaSyntheticAccessor.kt") + public void testGenericSetValueViaSyntheticAccessor() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/genericSetValueViaSyntheticAccessor.kt"); + } + + @Test + @TestMetadata("getAsExtensionFun.kt") + public void testGetAsExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/getAsExtensionFun.kt"); + } + + @Test + @TestMetadata("getAsExtensionFunInClass.kt") + public void testGetAsExtensionFunInClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/getAsExtensionFunInClass.kt"); + } + + @Test + @TestMetadata("getDelegateWithoutReflection.kt") + public void testGetDelegateWithoutReflection() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/getDelegateWithoutReflection.kt"); + } + + @Test + @TestMetadata("inClassVal.kt") + public void testInClassVal() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/inClassVal.kt"); + } + + @Test + @TestMetadata("inClassVar.kt") + public void testInClassVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/inClassVar.kt"); + } + + @Test + @TestMetadata("inTrait.kt") + public void testInTrait() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/inTrait.kt"); + } + + @Test + @TestMetadata("inferredPropertyType.kt") + public void testInferredPropertyType() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/inferredPropertyType.kt"); + } + + @Test + @TestMetadata("insideInlinedObjectMultiModule.kt") + public void testInsideInlinedObjectMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/insideInlinedObjectMultiModule.kt"); + } + + @Test + @TestMetadata("javaDelegateTopLevel.kt") + public void testJavaDelegateTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/javaDelegateTopLevel.kt"); + } + + @Test + @TestMetadata("kt35707.kt") + public void testKt35707() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/kt35707.kt"); + } + + @Test + @TestMetadata("kt37204.kt") + public void testKt37204() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/kt37204.kt"); + } + + @Test + @TestMetadata("kt4138.kt") + public void testKt4138() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/kt4138.kt"); + } + + @Test + @TestMetadata("kt45431.kt") + public void testKt45431() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/kt45431.kt"); + } + + @Test + @TestMetadata("kt6722.kt") + public void testKt6722() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/kt6722.kt"); + } + + @Test + @TestMetadata("kt9712.kt") + public void testKt9712() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); + } + + @Test + @TestMetadata("noTypeVariablesLeft.kt") + public void testNoTypeVariablesLeft() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); + } + + @Test + @TestMetadata("privateInSubClass.kt") + public void testPrivateInSubClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/privateInSubClass.kt"); + } + + @Test + @TestMetadata("privateSetterKPropertyIsNotMutable.kt") + public void testPrivateSetterKPropertyIsNotMutable() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/privateSetterKPropertyIsNotMutable.kt"); + } + + @Test + @TestMetadata("privateVar.kt") + public void testPrivateVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/privateVar.kt"); + } + + @Test + @TestMetadata("propertyMetadataShouldBeCached.kt") + public void testPropertyMetadataShouldBeCached() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/propertyMetadataShouldBeCached.kt"); + } + + @Test + @TestMetadata("protectedVarWithPrivateSet.kt") + public void testProtectedVarWithPrivateSet() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/protectedVarWithPrivateSet.kt"); + } + + @Test + @TestMetadata("referenceEnclosingClassFieldInReceiver.kt") + public void testReferenceEnclosingClassFieldInReceiver() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/referenceEnclosingClassFieldInReceiver.kt"); + } + + @Test + @TestMetadata("referenceEnclosingClassFieldInReceiver2.kt") + public void testReferenceEnclosingClassFieldInReceiver2() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/referenceEnclosingClassFieldInReceiver2.kt"); + } + + @Test + @TestMetadata("resolveGetValueWithWholeDelegate.kt") + public void testResolveGetValueWithWholeDelegate() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/resolveGetValueWithWholeDelegate.kt"); + } + + @Test + @TestMetadata("setAsExtensionFun.kt") + public void testSetAsExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFun.kt"); + } + + @Test + @TestMetadata("setAsExtensionFunInClass.kt") + public void testSetAsExtensionFunInClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); + } + + @Test + @TestMetadata("stackOverflowOnCallFromGetValue.kt") + public void testStackOverflowOnCallFromGetValue() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/stackOverflowOnCallFromGetValue.kt"); + } + + @Test + @TestMetadata("topLevelVal.kt") + public void testTopLevelVal() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/topLevelVal.kt"); + } + + @Test + @TestMetadata("topLevelVar.kt") + public void testTopLevelVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/topLevelVar.kt"); + } + + @Test + @TestMetadata("twoPropByOneDelegete.kt") + public void testTwoPropByOneDelegete() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/twoPropByOneDelegete.kt"); + } + + @Test + @TestMetadata("useKPropertyLater.kt") + public void testUseKPropertyLater() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/useKPropertyLater.kt"); + } + + @Test + @TestMetadata("useReflectionOnKProperty.kt") + public void testUseReflectionOnKProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/useReflectionOnKProperty.kt"); + } + + @Test + @TestMetadata("valByMapDelegatedProperty.kt") + public void testValByMapDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/valByMapDelegatedProperty.kt"); + } + + @Test + @TestMetadata("valInInnerClass.kt") + public void testValInInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/valInInnerClass.kt"); + } + + @Test + @TestMetadata("varInInnerClass.kt") + public void testVarInInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/varInInnerClass.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/delegateToAnother") + @TestDataPath("$PROJECT_ROOT") + public class DelegateToAnother { + @Test + public void testAllFilesPresentInDelegateToAnother() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/delegateToAnother"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("custom.kt") + public void testCustom() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/custom.kt"); + } + + @Test + @TestMetadata("genericJavaProperty.kt") + public void testGenericJavaProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/genericJavaProperty.kt"); + } + + @Test + @TestMetadata("kt49793_companionObject.kt") + public void testKt49793_companionObject() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/kt49793_companionObject.kt"); + } + + @Test + @TestMetadata("kt49793_interfaceCompanionObject.kt") + public void testKt49793_interfaceCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/kt49793_interfaceCompanionObject.kt"); + } + + @Test + @TestMetadata("kt49793_object.kt") + public void testKt49793_object() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/kt49793_object.kt"); + } + + @Test + @TestMetadata("kt50019_noOptimizedCallableReferences.kt") + public void testKt50019_noOptimizedCallableReferences() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/kt50019_noOptimizedCallableReferences.kt"); + } + + @Test + @TestMetadata("kt57955.kt") + public void testKt57955() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/kt57955.kt"); + } + + @Test + @TestMetadata("mutable.kt") + public void testMutable() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/mutable.kt"); + } + + @Test + @TestMetadata("openProperty.kt") + public void testOpenProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/openProperty.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/simple.kt"); + } + + @Test + @TestMetadata("withSideEffects.kt") + public void testWithSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/withSideEffects.kt"); + } + + @Test + @TestMetadata("withSideEffectsFromFileClass.kt") + public void testWithSideEffectsFromFileClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/withSideEffectsFromFileClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/delegateToConst") + @TestDataPath("$PROJECT_ROOT") + public class DelegateToConst { + @Test + public void testAllFilesPresentInDelegateToConst() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/delegateToConst"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("delegateToConst.kt") + public void testDelegateToConst() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToConst/delegateToConst.kt"); + } + + @Test + @TestMetadata("delegateToConstProperty.kt") + public void testDelegateToConstProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToConst/delegateToConstProperty.kt"); + } + + @Test + @TestMetadata("delegateToNull.kt") + public void testDelegateToNull() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToConst/delegateToNull.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty") + @TestDataPath("$PROJECT_ROOT") + public class DelegateToFinalProperty { + @Test + public void testAllFilesPresentInDelegateToFinalProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("chain.kt") + public void testChain() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/chain.kt"); + } + + @Test + @TestMetadata("delegateToFinalInstanceProperty.kt") + public void testDelegateToFinalInstanceProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/delegateToFinalInstanceProperty.kt"); + } + + @Test + @TestMetadata("delegateToFinalObjectProperty.kt") + public void testDelegateToFinalObjectProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/delegateToFinalObjectProperty.kt"); + } + + @Test + @TestMetadata("delegateToFinalProperty.kt") + public void testDelegateToFinalProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/delegateToFinalProperty.kt"); + } + + @Test + @TestMetadata("finalPropertyInAnotherFile.kt") + public void testFinalPropertyInAnotherFile() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/finalPropertyInAnotherFile.kt"); + } + + @Test + @TestMetadata("initializeContainerOfTopLevelProperties.kt") + public void testInitializeContainerOfTopLevelProperties() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/initializeContainerOfTopLevelProperties.kt"); + } + + @Test + @TestMetadata("kt54463_platformType.kt") + public void testKt54463_platformType() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/kt54463_platformType.kt"); + } + + @Test + @TestMetadata("memberExtensionPropertyAndImportFromObject.kt") + public void testMemberExtensionPropertyAndImportFromObject() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/memberExtensionPropertyAndImportFromObject.kt"); + } + + @Test + @TestMetadata("memberExtensionPropertyAndLocalDelegatedProperty.kt") + public void testMemberExtensionPropertyAndLocalDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/memberExtensionPropertyAndLocalDelegatedProperty.kt"); + } + + @Test + @TestMetadata("multimodule.kt") + public void testMultimodule() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/multimodule.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton") + @TestDataPath("$PROJECT_ROOT") + public class DelegateToSingleton { + @Test + public void testAllFilesPresentInDelegateToSingleton() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("delegateToEnum.kt") + public void testDelegateToEnum() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/delegateToEnum.kt"); + } + + @Test + @TestMetadata("delegateToEnumInAClass.kt") + public void testDelegateToEnumInAClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/delegateToEnumInAClass.kt"); + } + + @Test + @TestMetadata("delegateToSingleton.kt") + public void testDelegateToSingleton() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/delegateToSingleton.kt"); + } + + @Test + @TestMetadata("noInitializationOfOuterClass.kt") + public void testNoInitializationOfOuterClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/noInitializationOfOuterClass.kt"); + } + + @Test + @TestMetadata("withSideEffects.kt") + public void testWithSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/withSideEffects.kt"); + } + + @Test + @TestMetadata("withSideEffectsFromFileClass.kt") + public void testWithSideEffectsFromFileClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/withSideEffectsFromFileClass.kt"); + } + + @Test + @TestMetadata("withSideEffectsToEnum.kt") + public void testWithSideEffectsToEnum() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/withSideEffectsToEnum.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/delegateToThis") + @TestDataPath("$PROJECT_ROOT") + public class DelegateToThis { + @Test + public void testAllFilesPresentInDelegateToThis() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/delegateToThis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("delegateToOuterThis.kt") + public void testDelegateToOuterThis() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToThis/delegateToOuterThis.kt"); + } + + @Test + @TestMetadata("delegateToThis.kt") + public void testDelegateToThis() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToThis/delegateToThis.kt"); + } + + @Test + @TestMetadata("delegateToThisByExtension.kt") + public void testDelegateToThisByExtension() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateToThis/delegateToThisByExtension.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/local") + @TestDataPath("$PROJECT_ROOT") + public class Local { + @Test + public void testAllFilesPresentInLocal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("capturedLocalVal.kt") + public void testCapturedLocalVal() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalVal.kt"); + } + + @Test + @TestMetadata("capturedLocalValNoInline.kt") + public void testCapturedLocalValNoInline() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalValNoInline.kt"); + } + + @Test + @TestMetadata("capturedLocalVar.kt") + public void testCapturedLocalVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalVar.kt"); + } + + @Test + @TestMetadata("capturedLocalVarNoInline.kt") + public void testCapturedLocalVarNoInline() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalVarNoInline.kt"); + } + + @Test + @TestMetadata("inlineGetValue.kt") + public void testInlineGetValue() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/inlineGetValue.kt"); + } + + @Test + @TestMetadata("inlineOperators.kt") + public void testInlineOperators() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/inlineOperators.kt"); + } + + @Test + @TestMetadata("kt12891.kt") + public void testKt12891() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt12891.kt"); + } + + @Test + @TestMetadata("kt13557.kt") + public void testKt13557() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt13557.kt"); + } + + @Test + @TestMetadata("kt16864.kt") + public void testKt16864() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt16864.kt"); + } + + @Test + @TestMetadata("kt19690.kt") + public void testKt19690() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt19690.kt"); + } + + @Test + @TestMetadata("kt21085.kt") + public void testKt21085() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt21085.kt"); + } + + @Test + @TestMetadata("kt23117.kt") + public void testKt23117() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt23117.kt"); + } + + @Test + @TestMetadata("localVal.kt") + public void testLocalVal() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/localVal.kt"); + } + + @Test + @TestMetadata("localValNoExplicitType.kt") + public void testLocalValNoExplicitType() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/localValNoExplicitType.kt"); + } + + @Test + @TestMetadata("localVar.kt") + public void testLocalVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/localVar.kt"); + } + + @Test + @TestMetadata("localVarNoExplicitType.kt") + public void testLocalVarNoExplicitType() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/localVarNoExplicitType.kt"); + } + + @Test + @TestMetadata("useReflectionForLocalVarInLambda.kt") + public void testUseReflectionForLocalVarInLambda() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/useReflectionForLocalVarInLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties") + @TestDataPath("$PROJECT_ROOT") + public class OptimizedDelegatedProperties { + @Test + public void testAllFilesPresentInOptimizedDelegatedProperties() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("definedInSources.kt") + public void testDefinedInSources() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/definedInSources.kt"); + } + + @Test + @TestMetadata("definedInSourcesWithNonNullParameter.kt") + public void testDefinedInSourcesWithNonNullParameter() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/definedInSourcesWithNonNullParameter.kt"); + } + + @Test + @TestMetadata("inSeparateModule.kt") + public void testInSeparateModule() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/inSeparateModule.kt"); + } + + @Test + @TestMetadata("inSeparateModuleWithNonNullParameter.kt") + public void testInSeparateModuleWithNonNullParameter() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/inSeparateModuleWithNonNullParameter.kt"); + } + + @Test + @TestMetadata("kt40815.kt") + public void testKt40815() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/kt40815.kt"); + } + + @Test + @TestMetadata("kt40815_2.kt") + public void testKt40815_2() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/kt40815_2.kt"); + } + + @Test + @TestMetadata("kt40815_3.kt") + public void testKt40815_3() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/kt40815_3.kt"); + } + + @Test + @TestMetadata("kt42253.kt") + public void testKt42253() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/kt42253.kt"); + } + + @Test + @TestMetadata("kt48825.kt") + public void testKt48825() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/kt48825.kt"); + } + + @Test + @TestMetadata("lazy.kt") + public void testLazy() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/lazy.kt"); + } + + @Test + @TestMetadata("mixedArgumentSizes.kt") + public void testMixedArgumentSizes() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/mixedArgumentSizes.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/provideDelegate") + @TestDataPath("$PROJECT_ROOT") + public class ProvideDelegate { + @Test + public void testAllFilesPresentInProvideDelegate() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("commonCaseForInference.kt") + public void testCommonCaseForInference() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt"); + } + + @Test + @TestMetadata("delegatedPropertyWithIdProvideDelegate.kt") + public void testDelegatedPropertyWithIdProvideDelegate() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/delegatedPropertyWithIdProvideDelegate.kt"); + } + + @Test + @TestMetadata("differentReceivers.kt") + public void testDifferentReceivers() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/differentReceivers.kt"); + } + + @Test + @TestMetadata("evaluationOrder.kt") + public void testEvaluationOrder() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrder.kt"); + } + + @Test + @TestMetadata("evaluationOrderVar.kt") + public void testEvaluationOrderVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrderVar.kt"); + } + + @Test + @TestMetadata("extensionDelegated.kt") + public void testExtensionDelegated() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/extensionDelegated.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/generic.kt"); + } + + @Test + @TestMetadata("genericDelegateWithNoAdditionalInfo.kt") + public void testGenericDelegateWithNoAdditionalInfo() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/genericDelegateWithNoAdditionalInfo.kt"); + } + + @Test + @TestMetadata("genericProvideDelegateOnNumberLiteral.kt") + public void testGenericProvideDelegateOnNumberLiteral() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/genericProvideDelegateOnNumberLiteral.kt"); + } + + @Test + @TestMetadata("hostCheck.kt") + public void testHostCheck() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/hostCheck.kt"); + } + + @Test + @TestMetadata("inClass.kt") + public void testInClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt"); + } + + @Test + @TestMetadata("inferenceFromReceiver2.kt") + public void testInferenceFromReceiver2() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.kt"); + } + + @Test + @TestMetadata("inlineProvideDelegate.kt") + public void testInlineProvideDelegate() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inlineProvideDelegate.kt"); + } + + @Test + @TestMetadata("jvmStaticInObject.kt") + public void testJvmStaticInObject() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/jvmStaticInObject.kt"); + } + + @Test + @TestMetadata("kt15437.kt") + public void testKt15437() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/kt15437.kt"); + } + + @Test + @TestMetadata("kt16441.kt") + public void testKt16441() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/kt16441.kt"); + } + + @Test + @TestMetadata("kt18902.kt") + public void testKt18902() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/kt18902.kt"); + } + + @Test + @TestMetadata("kt39588.kt") + public void testKt39588() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/kt39588.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/local.kt"); + } + + @Test + @TestMetadata("localCaptured.kt") + public void testLocalCaptured() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/localCaptured.kt"); + } + + @Test + @TestMetadata("localDifferentReceivers.kt") + public void testLocalDifferentReceivers() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/localDifferentReceivers.kt"); + } + + @Test + @TestMetadata("memberExtension.kt") + public void testMemberExtension() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt"); + } + + @Test + @TestMetadata("notNullAssertionInLocalDelegated.kt") + public void testNotNullAssertionInLocalDelegated() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.kt"); + } + + @Test + @TestMetadata("propertyMetadata.kt") + public void testPropertyMetadata() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/propertyMetadata.kt"); + } + + @Test + @TestMetadata("provideDelegateByExtensionFunction.kt") + public void testProvideDelegateByExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt"); + } + + @Test + @TestMetadata("setValue.kt") + public void testSetValue() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/delegation") + @TestDataPath("$PROJECT_ROOT") + public class Delegation { + @Test + public void testAllFilesPresentInDelegation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("byMiddleInterface.kt") + public void testByMiddleInterface() throws Exception { + runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt"); + } + + @Test + @TestMetadata("computeIfAbsent.kt") + public void testComputeIfAbsent() throws Exception { + runTest("compiler/testData/codegen/box/delegation/computeIfAbsent.kt"); + } + + @Test + @TestMetadata("defaultOverride.kt") + public void testDefaultOverride() throws Exception { + runTest("compiler/testData/codegen/box/delegation/defaultOverride.kt"); + } + + @Test + @TestMetadata("delegationAndInheritanceFromJava.kt") + public void testDelegationAndInheritanceFromJava() throws Exception { + runTest("compiler/testData/codegen/box/delegation/delegationAndInheritanceFromJava.kt"); + } + + @Test + @TestMetadata("delegationDifferentModule.kt") + public void testDelegationDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule.kt"); + } + + @Test + @TestMetadata("delegationDifferentModule2.kt") + public void testDelegationDifferentModule2() throws Exception { + runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule2.kt"); + } + + @Test + @TestMetadata("delegationToIntersectionType.kt") + public void testDelegationToIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/delegation/delegationToIntersectionType.kt"); + } + + @Test + @TestMetadata("delegationToIntersectionType2.kt") + public void testDelegationToIntersectionType2() throws Exception { + runTest("compiler/testData/codegen/box/delegation/delegationToIntersectionType2.kt"); + } + + @Test + @TestMetadata("delegationToMap.kt") + public void testDelegationToMap() throws Exception { + runTest("compiler/testData/codegen/box/delegation/delegationToMap.kt"); + } + + @Test + @TestMetadata("delegationToVal.kt") + public void testDelegationToVal() throws Exception { + runTest("compiler/testData/codegen/box/delegation/delegationToVal.kt"); + } + + @Test + @TestMetadata("delegationWithPrivateConstructor.kt") + public void testDelegationWithPrivateConstructor() throws Exception { + runTest("compiler/testData/codegen/box/delegation/delegationWithPrivateConstructor.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() throws Exception { + runTest("compiler/testData/codegen/box/delegation/diamond.kt"); + } + + @Test + @TestMetadata("diamond2.kt") + public void testDiamond2() throws Exception { + runTest("compiler/testData/codegen/box/delegation/diamond2.kt"); + } + + @Test + @TestMetadata("differentModules.kt") + public void testDifferentModules() throws Exception { + runTest("compiler/testData/codegen/box/delegation/differentModules.kt"); + } + + @Test + @TestMetadata("doubleDelegationEqualsHashcode.kt") + public void testDoubleDelegationEqualsHashcode() throws Exception { + runTest("compiler/testData/codegen/box/delegation/doubleDelegationEqualsHashcode.kt"); + } + + @Test + @TestMetadata("genericFunctionInGenericInterface.kt") + public void testGenericFunctionInGenericInterface() throws Exception { + runTest("compiler/testData/codegen/box/delegation/genericFunctionInGenericInterface.kt"); + } + + @Test + @TestMetadata("genericProperty.kt") + public void testGenericProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegation/genericProperty.kt"); + } + + @Test + @TestMetadata("hiddenSuperOverrideIn1.0.kt") + public void testHiddenSuperOverrideIn1_0() throws Exception { + runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt"); + } + + @Test + @TestMetadata("ifWithCallableReferenceInLazy.kt") + public void testIfWithCallableReferenceInLazy() throws Exception { + runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.kt"); + } + + @Test + @TestMetadata("inClassDeclaration.kt") + public void testInClassDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/delegation/inClassDeclaration.kt"); + } + + @Test + @TestMetadata("inDataClass.kt") + public void testInDataClass() throws Exception { + runTest("compiler/testData/codegen/box/delegation/inDataClass.kt"); + } + + @Test + @TestMetadata("kt30102_comparable.kt") + public void testKt30102_comparable() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt"); + } + + @Test + @TestMetadata("kt54654.kt") + public void testKt54654() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt54654.kt"); + } + + @Test + @TestMetadata("kt8154.kt") + public void testKt8154() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt8154.kt"); + } + + @Test + @TestMetadata("mixed.kt") + public void testMixed() throws Exception { + runTest("compiler/testData/codegen/box/delegation/mixed.kt"); + } + + @Test + @TestMetadata("nestedNameClash.kt") + public void testNestedNameClash() throws Exception { + runTest("compiler/testData/codegen/box/delegation/nestedNameClash.kt"); + } + + @Test + @TestMetadata("nestedNameClash2.kt") + public void testNestedNameClash2() throws Exception { + runTest("compiler/testData/codegen/box/delegation/nestedNameClash2.kt"); + } + + @Test + @TestMetadata("sealedClass.kt") + public void testSealedClass() throws Exception { + runTest("compiler/testData/codegen/box/delegation/sealedClass.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/delegation/simple.kt"); + } + + @Test + @TestMetadata("smartCastedDelegation.kt") + public void testSmartCastedDelegation() throws Exception { + runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt"); + } + + @Test + @TestMetadata("valueClassImplementingJavaInterfaceWithDefault.kt") + public void testValueClassImplementingJavaInterfaceWithDefault() throws Exception { + runTest("compiler/testData/codegen/box/delegation/valueClassImplementingJavaInterfaceWithDefault.kt"); + } + + @Test + @TestMetadata("viaTypeAlias.kt") + public void testViaTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/delegation/viaTypeAlias.kt"); + } + + @Test + @TestMetadata("withDefaultParameters.kt") + public void testWithDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/box/delegation/withDefaultParameters.kt"); + } + + @Test + @TestMetadata("withDefaultsMultipleFilesOrder.kt") + public void testWithDefaultsMultipleFilesOrder() throws Exception { + runTest("compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/deprecated") + @TestDataPath("$PROJECT_ROOT") + public class Deprecated { + @Test + public void testAllFilesPresentInDeprecated() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/deprecated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deprecatedSinceKotlin.kt") + public void testDeprecatedSinceKotlin() throws Exception { + runTest("compiler/testData/codegen/box/deprecated/deprecatedSinceKotlin.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam") + @TestDataPath("$PROJECT_ROOT") + public class DestructuringDeclInLambdaParam { + @Test + public void testAllFilesPresentInDestructuringDeclInLambdaParam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/destructuringDeclInLambdaParam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("extensionComponents.kt") + public void testExtensionComponents() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/extensionComponents.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/generic.kt"); + } + + @Test + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/inline.kt"); + } + + @Test + @TestMetadata("otherParameters.kt") + public void testOtherParameters() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/otherParameters.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/simple.kt"); + } + + @Test + @TestMetadata("stdlibUsages.kt") + public void testStdlibUsages() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/stdlibUsages.kt"); + } + + @Test + @TestMetadata("underscoreNames.kt") + public void testUnderscoreNames() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/underscoreNames.kt"); + } + + @Test + @TestMetadata("withIndexed.kt") + public void testWithIndexed() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/withIndexed.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/diagnostics") + @TestDataPath("$PROJECT_ROOT") + public class Diagnostics { + @Test + public void testAllFilesPresentInDiagnostics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/diagnostics/functions") + @TestDataPath("$PROJECT_ROOT") + public class Functions { + @Test + public void testAllFilesPresentInFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/diagnostics/functions/inference") + @TestDataPath("$PROJECT_ROOT") + public class Inference { + @Test + public void testAllFilesPresentInInference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/inference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt6176.kt") + public void testKt6176() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/inference/kt6176.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/diagnostics/functions/invoke") + @TestDataPath("$PROJECT_ROOT") + public class Invoke { + @Test + public void testAllFilesPresentInInvoke() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/invoke"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects") + @TestDataPath("$PROJECT_ROOT") + public class OnObjects { + @Test + public void testAllFilesPresentInOnObjects() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("invokeOnClassObject1.kt") + public void testInvokeOnClassObject1() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnClassObject1.kt"); + } + + @Test + @TestMetadata("invokeOnClassObject2.kt") + public void testInvokeOnClassObject2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnClassObject2.kt"); + } + + @Test + @TestMetadata("invokeOnClassObjectOfNestedClass1.kt") + public void testInvokeOnClassObjectOfNestedClass1() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnClassObjectOfNestedClass1.kt"); + } + + @Test + @TestMetadata("invokeOnClassObjectOfNestedClass2.kt") + public void testInvokeOnClassObjectOfNestedClass2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnClassObjectOfNestedClass2.kt"); + } + + @Test + @TestMetadata("invokeOnEnum1.kt") + public void testInvokeOnEnum1() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnEnum1.kt"); + } + + @Test + @TestMetadata("invokeOnEnum2.kt") + public void testInvokeOnEnum2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnEnum2.kt"); + } + + @Test + @TestMetadata("invokeOnImportedEnum1.kt") + public void testInvokeOnImportedEnum1() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnImportedEnum1.kt"); + } + + @Test + @TestMetadata("invokeOnImportedEnum2.kt") + public void testInvokeOnImportedEnum2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnImportedEnum2.kt"); + } + + @Test + @TestMetadata("invokeOnObject1.kt") + public void testInvokeOnObject1() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnObject1.kt"); + } + + @Test + @TestMetadata("invokeOnObject2.kt") + public void testInvokeOnObject2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnObject2.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/diagnostics/functions/tailRecursion") + @TestDataPath("$PROJECT_ROOT") + public class TailRecursion { + @Test + public void testAllFilesPresentInTailRecursion() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/tailRecursion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgs2.kt") + public void testDefaultArgs2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgs2.kt"); + } + + @Test + @TestMetadata("defaultArgsOverridden.kt") + public void testDefaultArgsOverridden() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgsOverridden.kt"); + } + + @Test + @TestMetadata("defaultArgsWithSideEffects.kt") + public void testDefaultArgsWithSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgsWithSideEffects.kt"); + } + + @Test + @TestMetadata("defaultArgsWithSideEffects2.kt") + public void testDefaultArgsWithSideEffects2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgsWithSideEffects2.kt"); + } + + @Test + @TestMetadata("defaultArgsWithSideEffectsOld.kt") + public void testDefaultArgsWithSideEffectsOld() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgsWithSideEffectsOld.kt"); + } + + @Test + @TestMetadata("extensionTailCall.kt") + public void testExtensionTailCall() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/extensionTailCall.kt"); + } + + @Test + @TestMetadata("functionWithNoTails.kt") + public void testFunctionWithNoTails() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/functionWithNoTails.kt"); + } + + @Test + @TestMetadata("functionWithNonTailRecursions.kt") + public void testFunctionWithNonTailRecursions() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/functionWithNonTailRecursions.kt"); + } + + @Test + @TestMetadata("functionWithoutAnnotation.kt") + public void testFunctionWithoutAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/functionWithoutAnnotation.kt"); + } + + @Test + @TestMetadata("infixCall.kt") + public void testInfixCall() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/infixCall.kt"); + } + + @Test + @TestMetadata("infixRecursiveCall.kt") + public void testInfixRecursiveCall() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/infixRecursiveCall.kt"); + } + + @Test + @TestMetadata("insideElvis.kt") + public void testInsideElvis() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/insideElvis.kt"); + } + + @Test + @TestMetadata("kt47084_lambdaInDefaultArgument.kt") + public void testKt47084_lambdaInDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt"); + } + + @Test + @TestMetadata("labeledThisReferences.kt") + public void testLabeledThisReferences() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/labeledThisReferences.kt"); + } + + @Test + @TestMetadata("loops.kt") + public void testLoops() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/loops.kt"); + } + + @Test + @TestMetadata("multilevelBlocks.kt") + public void testMultilevelBlocks() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/multilevelBlocks.kt"); + } + + @Test + @TestMetadata("realIteratorFoldl.kt") + public void testRealIteratorFoldl() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realIteratorFoldl.kt"); + } + + @Test + @TestMetadata("realStringEscape.kt") + public void testRealStringEscape() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringEscape.kt"); + } + + @Test + @TestMetadata("realStringRepeat.kt") + public void testRealStringRepeat() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt"); + } + + @Test + @TestMetadata("recursiveCallInInlineLambda.kt") + public void testRecursiveCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt"); + } + + @Test + @TestMetadata("recursiveCallInInlineLambdaWithCapture.kt") + public void testRecursiveCallInInlineLambdaWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt"); + } + + @Test + @TestMetadata("recursiveCallInLambda.kt") + public void testRecursiveCallInLambda() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLambda.kt"); + } + + @Test + @TestMetadata("recursiveCallInLocalFunction.kt") + public void testRecursiveCallInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLocalFunction.kt"); + } + + @Test + @TestMetadata("recursiveInnerFunction.kt") + public void testRecursiveInnerFunction() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveInnerFunction.kt"); + } + + @Test + @TestMetadata("returnIf.kt") + public void testReturnIf() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnIf.kt"); + } + + @Test + @TestMetadata("returnInCatch.kt") + public void testReturnInCatch() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnInCatch.kt"); + } + + @Test + @TestMetadata("returnInFinally.kt") + public void testReturnInFinally() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnInFinally.kt"); + } + + @Test + @TestMetadata("returnInIfInFinally.kt") + public void testReturnInIfInFinally() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnInIfInFinally.kt"); + } + + @Test + @TestMetadata("returnInParentheses.kt") + public void testReturnInParentheses() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnInParentheses.kt"); + } + + @Test + @TestMetadata("returnInTry.kt") + public void testReturnInTry() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnInTry.kt"); + } + + @Test + @TestMetadata("simpleBlock.kt") + public void testSimpleBlock() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/simpleBlock.kt"); + } + + @Test + @TestMetadata("simpleReturn.kt") + public void testSimpleReturn() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/simpleReturn.kt"); + } + + @Test + @TestMetadata("simpleReturnWithElse.kt") + public void testSimpleReturnWithElse() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/simpleReturnWithElse.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/sum.kt"); + } + + @Test + @TestMetadata("tailCallInBlockInParentheses.kt") + public void testTailCallInBlockInParentheses() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/tailCallInBlockInParentheses.kt"); + } + + @Test + @TestMetadata("tailCallInParentheses.kt") + public void testTailCallInParentheses() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/tailCallInParentheses.kt"); + } + + @Test + @TestMetadata("tailRecursionInFinally.kt") + public void testTailRecursionInFinally() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/tailRecursionInFinally.kt"); + } + + @Test + @TestMetadata("tailrecWithExplicitCompanionObjectDispatcher.kt") + public void testTailrecWithExplicitCompanionObjectDispatcher() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/tailrecWithExplicitCompanionObjectDispatcher.kt"); + } + + @Test + @TestMetadata("tailrecWithExplicitObjectDispatcher.kt") + public void testTailrecWithExplicitObjectDispatcher() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/tailrecWithExplicitObjectDispatcher.kt"); + } + + @Test + @TestMetadata("thisReferences.kt") + public void testThisReferences() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/thisReferences.kt"); + } + + @Test + @TestMetadata("unitBlocks.kt") + public void testUnitBlocks() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/unitBlocks.kt"); + } + + @Test + @TestMetadata("whenWithCondition.kt") + public void testWhenWithCondition() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/whenWithCondition.kt"); + } + + @Test + @TestMetadata("whenWithInRange.kt") + public void testWhenWithInRange() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/whenWithInRange.kt"); + } + + @Test + @TestMetadata("whenWithIs.kt") + public void testWhenWithIs() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/whenWithIs.kt"); + } + + @Test + @TestMetadata("whenWithoutCondition.kt") + public void testWhenWithoutCondition() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/whenWithoutCondition.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/diagnostics/vararg") + @TestDataPath("$PROJECT_ROOT") + public class Vararg { + @Test + public void testAllFilesPresentInVararg() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt4172.kt") + public void testKt4172() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/vararg/kt4172.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/differentDependencyVersion") + @TestDataPath("$PROJECT_ROOT") + public class DifferentDependencyVersion { + @Test + public void testAllFilesPresentInDifferentDependencyVersion() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/differentDependencyVersion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt51194_java.kt") + public void testKt51194_java() throws Exception { + runTest("compiler/testData/codegen/box/differentDependencyVersion/kt51194_java.kt"); + } + + @Test + @TestMetadata("kt51194_javaAndKotlin.kt") + public void testKt51194_javaAndKotlin() throws Exception { + runTest("compiler/testData/codegen/box/differentDependencyVersion/kt51194_javaAndKotlin.kt"); + } + + @Test + @TestMetadata("kt51194_kotlin.kt") + public void testKt51194_kotlin() throws Exception { + runTest("compiler/testData/codegen/box/differentDependencyVersion/kt51194_kotlin.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/directInvokeOptimization") + @TestDataPath("$PROJECT_ROOT") + public class DirectInvokeOptimization { + @Test + public void testAllFilesPresentInDirectInvokeOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/directInvokeOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boundInnerContructorRef.kt") + public void testBoundInnerContructorRef() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/boundInnerContructorRef.kt"); + } + + @Test + @TestMetadata("boundMemberRef.kt") + public void testBoundMemberRef() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/boundMemberRef.kt"); + } + + @Test + @TestMetadata("canary.kt") + public void testCanary() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/canary.kt"); + } + + @Test + @TestMetadata("capturingLambda.kt") + public void testCapturingLambda() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/capturingLambda.kt"); + } + + @Test + @TestMetadata("contructorRef.kt") + public void testContructorRef() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/contructorRef.kt"); + } + + @Test + @TestMetadata("kt53202.kt") + public void testKt53202() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/kt53202.kt"); + } + + @Test + @TestMetadata("kt53202_funLiteral.kt") + public void testKt53202_funLiteral() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/kt53202_funLiteral.kt"); + } + + @Test + @TestMetadata("kt53202_returns.kt") + public void testKt53202_returns() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/kt53202_returns.kt"); + } + + @Test + @TestMetadata("nestedLambdas.kt") + public void testNestedLambdas() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/nestedLambdas.kt"); + } + + @Test + @TestMetadata("simpleAnonymousFun.kt") + public void testSimpleAnonymousFun() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/simpleAnonymousFun.kt"); + } + + @Test + @TestMetadata("simpleFunRef.kt") + public void testSimpleFunRef() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/simpleFunRef.kt"); + } + + @Test + @TestMetadata("simpleLambda.kt") + public void testSimpleLambda() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/simpleLambda.kt"); + } + + @Test + @TestMetadata("unboundInnerContructorRef.kt") + public void testUnboundInnerContructorRef() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/unboundInnerContructorRef.kt"); + } + + @Test + @TestMetadata("unboundMemberRef.kt") + public void testUnboundMemberRef() throws Exception { + runTest("compiler/testData/codegen/box/directInvokeOptimization/unboundMemberRef.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/elvis") + @TestDataPath("$PROJECT_ROOT") + public class Elvis { + @Test + public void testAllFilesPresentInElvis() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/elvis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericElvisWithMoreSpecificLHS.kt") + public void testGenericElvisWithMoreSpecificLHS() throws Exception { + runTest("compiler/testData/codegen/box/elvis/genericElvisWithMoreSpecificLHS.kt"); + } + + @Test + @TestMetadata("genericElvisWithNullLHS.kt") + public void testGenericElvisWithNullLHS() throws Exception { + runTest("compiler/testData/codegen/box/elvis/genericElvisWithNullLHS.kt"); + } + + @Test + @TestMetadata("genericNull.kt") + public void testGenericNull() throws Exception { + runTest("compiler/testData/codegen/box/elvis/genericNull.kt"); + } + + @Test + @TestMetadata("kt24209.kt") + public void testKt24209() throws Exception { + runTest("compiler/testData/codegen/box/elvis/kt24209.kt"); + } + + @Test + @TestMetadata("kt6694ExactAnnotationForElvis.kt") + public void testKt6694ExactAnnotationForElvis() throws Exception { + runTest("compiler/testData/codegen/box/elvis/kt6694ExactAnnotationForElvis.kt"); + } + + @Test + @TestMetadata("nullNullOk.kt") + public void testNullNullOk() throws Exception { + runTest("compiler/testData/codegen/box/elvis/nullNullOk.kt"); + } + + @Test + @TestMetadata("ofNonNullableResultType.kt") + public void testOfNonNullableResultType() throws Exception { + runTest("compiler/testData/codegen/box/elvis/ofNonNullableResultType.kt"); + } + + @Test + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/elvis/primitive.kt"); + } + + @Test + @TestMetadata("withReturn.kt") + public void testWithReturn() throws Exception { + runTest("compiler/testData/codegen/box/elvis/withReturn.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/enum") + @TestDataPath("$PROJECT_ROOT") + public class Enum { + @Test + @TestMetadata("abstractMethodInEnum.kt") + public void testAbstractMethodInEnum() throws Exception { + runTest("compiler/testData/codegen/box/enum/abstractMethodInEnum.kt"); + } + + @Test + @TestMetadata("abstractNestedClass.kt") + public void testAbstractNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/enum/abstractNestedClass.kt"); + } + + @Test + public void testAllFilesPresentInEnum() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotatedParameter.kt") + public void testAnnotatedParameter() throws Exception { + runTest("compiler/testData/codegen/box/enum/annotatedParameter.kt"); + } + + @Test + @TestMetadata("annotatedParameter2.kt") + public void testAnnotatedParameter2() throws Exception { + runTest("compiler/testData/codegen/box/enum/annotatedParameter2.kt"); + } + + @Test + @TestMetadata("asReturnExpression.kt") + public void testAsReturnExpression() throws Exception { + runTest("compiler/testData/codegen/box/enum/asReturnExpression.kt"); + } + + @Test + @TestMetadata("bigEnum.kt") + public void testBigEnum() throws Exception { + runTest("compiler/testData/codegen/box/enum/bigEnum.kt"); + } + + @Test + @TestMetadata("classForEnumEntry.kt") + public void testClassForEnumEntry() throws Exception { + runTest("compiler/testData/codegen/box/enum/classForEnumEntry.kt"); + } + + @Test + @TestMetadata("companionAccessingEnumValue.kt") + public void testCompanionAccessingEnumValue() throws Exception { + runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); + } + + @Test + @TestMetadata("companionObjectInEnum.kt") + public void testCompanionObjectInEnum() throws Exception { + runTest("compiler/testData/codegen/box/enum/companionObjectInEnum.kt"); + } + + @Test + @TestMetadata("constructorWithReordering.kt") + public void testConstructorWithReordering() throws Exception { + runTest("compiler/testData/codegen/box/enum/constructorWithReordering.kt"); + } + + @Test + @TestMetadata("declaringClassOnEnumObject.kt") + public void testDeclaringClassOnEnumObject() throws Exception { + runTest("compiler/testData/codegen/box/enum/declaringClassOnEnumObject.kt"); + } + + @Test + @TestMetadata("deepInnerClassInEnumEntryClass.kt") + public void testDeepInnerClassInEnumEntryClass() throws Exception { + runTest("compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass.kt"); + } + + @Test + @TestMetadata("deepInnerClassInEnumEntryClass2.kt") + public void testDeepInnerClassInEnumEntryClass2() throws Exception { + runTest("compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass2.kt"); + } + + @Test + @TestMetadata("emptyConstructor.kt") + public void testEmptyConstructor() throws Exception { + runTest("compiler/testData/codegen/box/enum/emptyConstructor.kt"); + } + + @Test + @TestMetadata("emptyEnumValuesValueOf.kt") + public void testEmptyEnumValuesValueOf() throws Exception { + runTest("compiler/testData/codegen/box/enum/emptyEnumValuesValueOf.kt"); + } + + @Test + @TestMetadata("enumCompanionInit.kt") + public void testEnumCompanionInit() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumCompanionInit.kt"); + } + + @Test + @TestMetadata("enumConstructorParameterClashWithDefaults.kt") + public void testEnumConstructorParameterClashWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumConstructorParameterClashWithDefaults.kt"); + } + + @Test + @TestMetadata("enumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntries.kt"); + } + + @Test + @TestMetadata("enumEntriesCompatibilityCheck.kt") + public void testEnumEntriesCompatibilityCheck() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntriesCompatibilityCheck.kt"); + } + + @Test + @TestMetadata("enumEntriesFromJava.kt") + public void testEnumEntriesFromJava() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntriesFromJava.kt"); + } + + @Test + @TestMetadata("enumEntriesInCompanion.kt") + public void testEnumEntriesInCompanion() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntriesInCompanion.kt"); + } + + @Test + @TestMetadata("enumEntriesIntrinsicForJava.kt") + public void testEnumEntriesIntrinsicForJava() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntriesIntrinsicForJava.kt"); + } + + @Test + @TestMetadata("enumEntriesIntrinsicMultipleEnums.kt") + public void testEnumEntriesIntrinsicMultipleEnums() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntriesIntrinsicMultipleEnums.kt"); + } + + @Test + @TestMetadata("enumEntriesIntrinsicWithoutFeature.kt") + public void testEnumEntriesIntrinsicWithoutFeature() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntriesIntrinsicWithoutFeature.kt"); + } + + @Test + @TestMetadata("enumEntriesMultimodule.kt") + public void testEnumEntriesMultimodule() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntriesMultimodule.kt"); + } + + @Test + @TestMetadata("enumEntriesMultimoduleMultipleMappings.kt") + public void testEnumEntriesMultimoduleMultipleMappings() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntriesMultimoduleMultipleMappings.kt"); + } + + @Test + @TestMetadata("enumEntriesMultimoduleMultipleMappingsForMultipleClassfiles.kt") + public void testEnumEntriesMultimoduleMultipleMappingsForMultipleClassfiles() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntriesMultimoduleMultipleMappingsForMultipleClassfiles.kt"); + } + + @Test + @TestMetadata("enumEntriesMultimoduleNoMappings.kt") + public void testEnumEntriesMultimoduleNoMappings() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntriesMultimoduleNoMappings.kt"); + } + + @Test + @TestMetadata("enumEntriesNameClashes.kt") + public void testEnumEntriesNameClashes() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntriesNameClashes.kt"); + } + + @Test + @TestMetadata("enumEntryHashCode.kt") + public void testEnumEntryHashCode() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntryHashCode.kt"); + } + + @Test + @TestMetadata("enumEntryMembers.kt") + public void testEnumEntryMembers() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntryMembers.kt"); + } + + @Test + @TestMetadata("enumEntryReferenceFromInnerClassConstructor1.kt") + public void testEnumEntryReferenceFromInnerClassConstructor1() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor1.kt"); + } + + @Test + @TestMetadata("enumEntryReferenceFromInnerClassConstructor2.kt") + public void testEnumEntryReferenceFromInnerClassConstructor2() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor2.kt"); + } + + @Test + @TestMetadata("enumEntryReferenceFromInnerClassConstructor3.kt") + public void testEnumEntryReferenceFromInnerClassConstructor3() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor3.kt"); + } + + @Test + @TestMetadata("enumInheritedFromTrait.kt") + public void testEnumInheritedFromTrait() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumInheritedFromTrait.kt"); + } + + @Test + @TestMetadata("enumMultiModule.kt") + public void testEnumMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumMultiModule.kt"); + } + + @Test + @TestMetadata("enumShort.kt") + public void testEnumShort() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumShort.kt"); + } + + @Test + @TestMetadata("enumValueOf.kt") + public void testEnumValueOf() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumValueOf.kt"); + } + + @Test + @TestMetadata("enumWithLambdaParameter.kt") + public void testEnumWithLambdaParameter() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); + } + + @Test + @TestMetadata("getEnumEntityByOrdinal.kt") + public void testGetEnumEntityByOrdinal() throws Exception { + runTest("compiler/testData/codegen/box/enum/getEnumEntityByOrdinal.kt"); + } + + @Test + @TestMetadata("inPackage.kt") + public void testInPackage() throws Exception { + runTest("compiler/testData/codegen/box/enum/inPackage.kt"); + } + + @Test + @TestMetadata("inclassobj.kt") + public void testInclassobj() throws Exception { + runTest("compiler/testData/codegen/box/enum/inclassobj.kt"); + } + + @Test + @TestMetadata("initEntriesInCompanionObject.kt") + public void testInitEntriesInCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/enum/initEntriesInCompanionObject.kt"); + } + + @Test + @TestMetadata("initEntriesInCompanionObject2.kt") + public void testInitEntriesInCompanionObject2() throws Exception { + runTest("compiler/testData/codegen/box/enum/initEntriesInCompanionObject2.kt"); + } + + @Test + @TestMetadata("initEntriesInValueOf.kt") + public void testInitEntriesInValueOf() throws Exception { + runTest("compiler/testData/codegen/box/enum/initEntriesInValueOf.kt"); + } + + @Test + @TestMetadata("initEnumAfterObjectAccess.kt") + public void testInitEnumAfterObjectAccess() throws Exception { + runTest("compiler/testData/codegen/box/enum/initEnumAfterObjectAccess.kt"); + } + + @Test + @TestMetadata("inner.kt") + public void testInner() throws Exception { + runTest("compiler/testData/codegen/box/enum/inner.kt"); + } + + @Test + @TestMetadata("innerClassInEnumEntryClass.kt") + public void testInnerClassInEnumEntryClass() throws Exception { + runTest("compiler/testData/codegen/box/enum/innerClassInEnumEntryClass.kt"); + } + + @Test + @TestMetadata("innerClassMethodInEnumEntryClass.kt") + public void testInnerClassMethodInEnumEntryClass() throws Exception { + runTest("compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass.kt"); + } + + @Test + @TestMetadata("innerClassMethodInEnumEntryClass2.kt") + public void testInnerClassMethodInEnumEntryClass2() throws Exception { + runTest("compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.kt"); + } + + @Test + @TestMetadata("innerWithExistingClassObject.kt") + public void testInnerWithExistingClassObject() throws Exception { + runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); + } + + @Test + @TestMetadata("javaClassWithNestedEnum.kt") + public void testJavaClassWithNestedEnum() throws Exception { + runTest("compiler/testData/codegen/box/enum/javaClassWithNestedEnum.kt"); + } + + @Test + @TestMetadata("javaEnumValueOf.kt") + public void testJavaEnumValueOf() throws Exception { + runTest("compiler/testData/codegen/box/enum/javaEnumValueOf.kt"); + } + + @Test + @TestMetadata("javaEnumValueOf2.kt") + public void testJavaEnumValueOf2() throws Exception { + runTest("compiler/testData/codegen/box/enum/javaEnumValueOf2.kt"); + } + + @Test + @TestMetadata("javaEnumValues.kt") + public void testJavaEnumValues() throws Exception { + runTest("compiler/testData/codegen/box/enum/javaEnumValues.kt"); + } + + @Test + @TestMetadata("javaEnumValues2.kt") + public void testJavaEnumValues2() throws Exception { + runTest("compiler/testData/codegen/box/enum/javaEnumValues2.kt"); + } + + @Test + @TestMetadata("javaEnumValues3.kt") + public void testJavaEnumValues3() throws Exception { + runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt"); + } + + @Test + @TestMetadata("k54079.kt") + public void testK54079() throws Exception { + runTest("compiler/testData/codegen/box/enum/k54079.kt"); + } + + @Test + @TestMetadata("kt1119.kt") + public void testKt1119() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt1119.kt"); + } + + @Test + @TestMetadata("kt18731.kt") + public void testKt18731() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt18731.kt"); + } + + @Test + @TestMetadata("kt18731_2.kt") + public void testKt18731_2() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt18731_2.kt"); + } + + @Test + @TestMetadata("kt20651.kt") + public void testKt20651() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt20651.kt"); + } + + @Test + @TestMetadata("kt20651_inlineLambda.kt") + public void testKt20651_inlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt20651_inlineLambda.kt"); + } + + @Test + @TestMetadata("kt20651a.kt") + public void testKt20651a() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt20651a.kt"); + } + + @Test + @TestMetadata("kt20651b.kt") + public void testKt20651b() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt20651b.kt"); + } + + @Test + @TestMetadata("kt2350.kt") + public void testKt2350() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt2350.kt"); + } + + @Test + @TestMetadata("kt38996.kt") + public void testKt38996() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt38996.kt"); + } + + @Test + @TestMetadata("kt44744.kt") + public void testKt44744() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt44744.kt"); + } + + @Test + @TestMetadata("kt44744_innerClass.kt") + public void testKt44744_innerClass() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt44744_innerClass.kt"); + } + + @Test + @TestMetadata("kt46605.kt") + public void testKt46605() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt46605.kt"); + } + + @Test + @TestMetadata("kt7257.kt") + public void testKt7257() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257.kt"); + } + + @Test + @TestMetadata("kt7257_anonObjectInit.kt") + public void testKt7257_anonObjectInit() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_anonObjectInit.kt"); + } + + @Test + @TestMetadata("kt7257_anonObjectMethod.kt") + public void testKt7257_anonObjectMethod() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_anonObjectMethod.kt"); + } + + @Test + @TestMetadata("kt7257_boundReference1.kt") + public void testKt7257_boundReference1() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_boundReference1.kt"); + } + + @Test + @TestMetadata("kt7257_boundReference2.kt") + public void testKt7257_boundReference2() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_boundReference2.kt"); + } + + @Test + @TestMetadata("kt7257_boundReferenceWithImplicitReceiver.kt") + public void testKt7257_boundReferenceWithImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_boundReferenceWithImplicitReceiver.kt"); + } + + @Test + @TestMetadata("kt7257_explicitReceiver.kt") + public void testKt7257_explicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_explicitReceiver.kt"); + } + + @Test + @TestMetadata("kt7257_fullyQualifiedReceiver.kt") + public void testKt7257_fullyQualifiedReceiver() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_fullyQualifiedReceiver.kt"); + } + + @Test + @TestMetadata("kt7257_namedLocalFun.kt") + public void testKt7257_namedLocalFun() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_namedLocalFun.kt"); + } + + @Test + @TestMetadata("kt7257_notInline.kt") + public void testKt7257_notInline() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_notInline.kt"); + } + + @Test + @TestMetadata("kt9711.kt") + public void testKt9711() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt9711.kt"); + } + + @Test + @TestMetadata("kt9711_2.kt") + public void testKt9711_2() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); + } + + @Test + @TestMetadata("manyDefaultParameters.kt") + public void testManyDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); + } + + @Test + @TestMetadata("modifierFlags.kt") + public void testModifierFlags() throws Exception { + runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); + } + + @Test + @TestMetadata("nameClashWithCompanion.kt") + public void testNameClashWithCompanion() throws Exception { + runTest("compiler/testData/codegen/box/enum/nameClashWithCompanion.kt"); + } + + @Test + @TestMetadata("nameConflict.kt") + public void testNameConflict() throws Exception { + runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); + } + + @Test + @TestMetadata("noClassForSimpleEnum.kt") + public void testNoClassForSimpleEnum() throws Exception { + runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); + } + + @Test + @TestMetadata("ordinal.kt") + public void testOrdinal() throws Exception { + runTest("compiler/testData/codegen/box/enum/ordinal.kt"); + } + + @Test + @TestMetadata("ordinalsWithEnumEntitiesOverrides.kt") + public void testOrdinalsWithEnumEntitiesOverrides() throws Exception { + runTest("compiler/testData/codegen/box/enum/ordinalsWithEnumEntitiesOverrides.kt"); + } + + @Test + @TestMetadata("overloadedEnumValues.kt") + public void testOverloadedEnumValues() throws Exception { + runTest("compiler/testData/codegen/box/enum/overloadedEnumValues.kt"); + } + + @Test + @TestMetadata("overloadedEnumValuesStatic.kt") + public void testOverloadedEnumValuesStatic() throws Exception { + runTest("compiler/testData/codegen/box/enum/overloadedEnumValuesStatic.kt"); + } + + @Test + @TestMetadata("refToThis.kt") + public void testRefToThis() throws Exception { + runTest("compiler/testData/codegen/box/enum/refToThis.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/enum/simple.kt"); + } + + @Test + @TestMetadata("simpleJavaEnum.kt") + public void testSimpleJavaEnum() throws Exception { + runTest("compiler/testData/codegen/box/enum/simpleJavaEnum.kt"); + } + + @Test + @TestMetadata("simpleJavaEnumWithFunction.kt") + public void testSimpleJavaEnumWithFunction() throws Exception { + runTest("compiler/testData/codegen/box/enum/simpleJavaEnumWithFunction.kt"); + } + + @Test + @TestMetadata("simpleJavaEnumWithStaticImport.kt") + public void testSimpleJavaEnumWithStaticImport() throws Exception { + runTest("compiler/testData/codegen/box/enum/simpleJavaEnumWithStaticImport.kt"); + } + + @Test + @TestMetadata("simpleJavaInnerEnum.kt") + public void testSimpleJavaInnerEnum() throws Exception { + runTest("compiler/testData/codegen/box/enum/simpleJavaInnerEnum.kt"); + } + + @Test + @TestMetadata("sortEnumEntries.kt") + public void testSortEnumEntries() throws Exception { + runTest("compiler/testData/codegen/box/enum/sortEnumEntries.kt"); + } + + @Test + @TestMetadata("staticField.kt") + public void testStaticField() throws Exception { + runTest("compiler/testData/codegen/box/enum/staticField.kt"); + } + + @Test + @TestMetadata("staticMethod.kt") + public void testStaticMethod() throws Exception { + runTest("compiler/testData/codegen/box/enum/staticMethod.kt"); + } + + @Test + @TestMetadata("superCallInEnumLiteral.kt") + public void testSuperCallInEnumLiteral() throws Exception { + runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); + } + + @Test + @TestMetadata("toString.kt") + public void testToString() throws Exception { + runTest("compiler/testData/codegen/box/enum/toString.kt"); + } + + @Test + @TestMetadata("valueof.kt") + public void testValueof() throws Exception { + runTest("compiler/testData/codegen/box/enum/valueof.kt"); + } + + @Test + @TestMetadata("whenInObject.kt") + public void testWhenInObject() throws Exception { + runTest("compiler/testData/codegen/box/enum/whenInObject.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/enum/defaultCtor") + @TestDataPath("$PROJECT_ROOT") + public class DefaultCtor { + @Test + public void testAllFilesPresentInDefaultCtor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/enum/defaultCtor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorWithDefaultArguments.kt") + public void testConstructorWithDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/constructorWithDefaultArguments.kt"); + } + + @Test + @TestMetadata("constructorWithVararg.kt") + public void testConstructorWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/constructorWithVararg.kt"); + } + + @Test + @TestMetadata("entryClassConstructorWithDefaultArguments.kt") + public void testEntryClassConstructorWithDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/entryClassConstructorWithDefaultArguments.kt"); + } + + @Test + @TestMetadata("entryClassConstructorWithVarargs.kt") + public void testEntryClassConstructorWithVarargs() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/entryClassConstructorWithVarargs.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithDefaultArguments.kt") + public void testSecondaryConstructorWithDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithDefaultArguments.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithVararg.kt") + public void testSecondaryConstructorWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithVararg.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/equivalentCalls") + @TestDataPath("$PROJECT_ROOT") + public class EquivalentCalls { + @Test + public void testAllFilesPresentInEquivalentCalls() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/equivalentCalls"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("localEquivalentWins.kt") + public void testLocalEquivalentWins() throws Exception { + runTest("compiler/testData/codegen/box/equivalentCalls/localEquivalentWins.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/evaluate") + @TestDataPath("$PROJECT_ROOT") + public class Evaluate { + @Test + public void testAllFilesPresentInEvaluate() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/evaluate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("char.kt") + public void testChar() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/char.kt"); + } + + @Test + @TestMetadata("divide.kt") + public void testDivide() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/divide.kt"); + } + + @Test + @TestMetadata("floorDiv.kt") + public void testFloorDiv() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/floorDiv.kt"); + } + + @Test + @TestMetadata("intrinsics.kt") + public void testIntrinsics() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/intrinsics.kt"); + } + + @Test + @TestMetadata("kt9443.kt") + public void testKt9443() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/kt9443.kt"); + } + + @Test + @TestMetadata("maxValue.kt") + public void testMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/maxValue.kt"); + } + + @Test + @TestMetadata("maxValueByte.kt") + public void testMaxValueByte() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/maxValueByte.kt"); + } + + @Test + @TestMetadata("maxValueInt.kt") + public void testMaxValueInt() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/maxValueInt.kt"); + } + + @Test + @TestMetadata("minus.kt") + public void testMinus() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/minus.kt"); + } + + @Test + @TestMetadata("mod.kt") + public void testMod() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/mod.kt"); + } + + @Test + @TestMetadata("multiply.kt") + public void testMultiply() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/multiply.kt"); + } + + @Test + @TestMetadata("parenthesized.kt") + public void testParenthesized() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/parenthesized.kt"); + } + + @Test + @TestMetadata("plus.kt") + public void testPlus() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/plus.kt"); + } + + @Test + @TestMetadata("rem.kt") + public void testRem() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/rem.kt"); + } + + @Test + @TestMetadata("simpleCallBinary.kt") + public void testSimpleCallBinary() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/simpleCallBinary.kt"); + } + + @Test + @TestMetadata("unaryMinus.kt") + public void testUnaryMinus() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/unaryMinus.kt"); + } + + @Test + @TestMetadata("unaryPlus.kt") + public void testUnaryPlus() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/unaryPlus.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/exclExcl") + @TestDataPath("$PROJECT_ROOT") + public class ExclExcl { + @Test + public void testAllFilesPresentInExclExcl() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exclExcl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericNull.kt") + public void testGenericNull() throws Exception { + runTest("compiler/testData/codegen/box/exclExcl/genericNull.kt"); + } + + @Test + @TestMetadata("kt48440.kt") + public void testKt48440() throws Exception { + runTest("compiler/testData/codegen/box/exclExcl/kt48440.kt"); + } + + @Test + @TestMetadata("kt48440_2.kt") + public void testKt48440_2() throws Exception { + runTest("compiler/testData/codegen/box/exclExcl/kt48440_2.kt"); + } + + @Test + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/exclExcl/primitive.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/extensionClasses") + @TestDataPath("$PROJECT_ROOT") + public class ExtensionClasses { + @Test + public void testAllFilesPresentInExtensionClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructors.kt") + public void testConstructors() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/constructors.kt"); + } + + @Test + @TestMetadata("contextualPrimaryConstructorWithParams.kt") + public void testContextualPrimaryConstructorWithParams() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/contextualPrimaryConstructorWithParams.kt"); + } + + @Test + @TestMetadata("edouble.kt") + public void testEdouble() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/edouble.kt"); + } + + @Test + @TestMetadata("genericCollection.kt") + public void testGenericCollection() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/genericCollection.kt"); + } + + @Test + @TestMetadata("generics.kt") + public void testGenerics() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/generics.kt"); + } + + @Test + @TestMetadata("lambdaReceiverFromContext.kt") + public void testLambdaReceiverFromContext() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/lambdaReceiverFromContext.kt"); + } + + @Test + @TestMetadata("multiple.kt") + public void testMultiple() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/multiple.kt"); + } + + @Test + @TestMetadata("noRedeclaration.kt") + public void testNoRedeclaration() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/noRedeclaration.kt"); + } + + @Test + @TestMetadata("propertyWithContext.kt") + public void testPropertyWithContext() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/propertyWithContext.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/simple.kt"); + } + + @Test + @TestMetadata("typealiasForContextualClass.kt") + public void testTypealiasForContextualClass() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/typealiasForContextualClass.kt"); + } + + @Test + @TestMetadata("useFromAnotherModule.kt") + public void testUseFromAnotherModule() throws Exception { + runTest("compiler/testData/codegen/box/extensionClasses/useFromAnotherModule.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/extensionFunctions") + @TestDataPath("$PROJECT_ROOT") + public class ExtensionFunctions { + @Test + public void testAllFilesPresentInExtensionFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classMethodCallExtensionSuper.kt") + public void testClassMethodCallExtensionSuper() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/classMethodCallExtensionSuper.kt"); + } + + @Test + @TestMetadata("defaultMethodInterfaceCallExtensionSuper.kt") + public void testDefaultMethodInterfaceCallExtensionSuper() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/defaultMethodInterfaceCallExtensionSuper.kt"); + } + + @Test + @TestMetadata("executionOrder.kt") + public void testExecutionOrder() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/executionOrder.kt"); + } + + @Test + @TestMetadata("extensionFunctionAsSupertype.kt") + public void testExtensionFunctionAsSupertype() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/extensionFunctionAsSupertype.kt"); + } + + @Test + @TestMetadata("kt1061.kt") + public void testKt1061() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1061.kt"); + } + + @Test + @TestMetadata("kt1249.kt") + public void testKt1249() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1249.kt"); + } + + @Test + @TestMetadata("kt1290.kt") + public void testKt1290() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1290.kt"); + } + + @Test + @TestMetadata("kt13312.kt") + public void testKt13312() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt13312.kt"); + } + + @Test + @TestMetadata("kt1776.kt") + public void testKt1776() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1776.kt"); + } + + @Test + @TestMetadata("kt1953.kt") + public void testKt1953() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1953.kt"); + } + + @Test + @TestMetadata("kt1953_class.kt") + public void testKt1953_class() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1953_class.kt"); + } + + @Test + @TestMetadata("kt23675.kt") + public void testKt23675() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt23675.kt"); + } + + @Test + @TestMetadata("kt3285.kt") + public void testKt3285() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt3285.kt"); + } + + @Test + @TestMetadata("kt3298.kt") + public void testKt3298() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt3298.kt"); + } + + @Test + @TestMetadata("kt3646.kt") + public void testKt3646() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt3646.kt"); + } + + @Test + @TestMetadata("kt3969.kt") + public void testKt3969() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt3969.kt"); + } + + @Test + @TestMetadata("kt4228.kt") + public void testKt4228() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt4228.kt"); + } + + @Test + @TestMetadata("kt475.kt") + public void testKt475() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt475.kt"); + } + + @Test + @TestMetadata("kt5467.kt") + public void testKt5467() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt5467.kt"); + } + + @Test + @TestMetadata("kt606.kt") + public void testKt606() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt606.kt"); + } + + @Test + @TestMetadata("kt865.kt") + public void testKt865() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt865.kt"); + } + + @Test + @TestMetadata("memberExtensionEqualsHashCodeToStringInInterface.kt") + public void testMemberExtensionEqualsHashCodeToStringInInterface() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/memberExtensionEqualsHashCodeToStringInInterface.kt"); + } + + @Test + @TestMetadata("nested2.kt") + public void testNested2() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/nested2.kt"); + } + + @Test + @TestMetadata("shared.kt") + public void testShared() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/shared.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/simple.kt"); + } + + @Test + @TestMetadata("thisMethodInObjectLiteral.kt") + public void testThisMethodInObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/thisMethodInObjectLiteral.kt"); + } + + @Test + @TestMetadata("virtual.kt") + public void testVirtual() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/virtual.kt"); + } + + @Test + @TestMetadata("whenFail.kt") + public void testWhenFail() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/whenFail.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/extensionFunctions/contextReceivers") + @TestDataPath("$PROJECT_ROOT") + public class ContextReceivers { + @Test + public void testAllFilesPresentInContextReceivers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionFunctions/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayAccessCompositeOperators.kt") + public void testArrayAccessCompositeOperators() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/arrayAccessCompositeOperators.kt"); + } + + @Test + @TestMetadata("arrayAccessOperators.kt") + public void testArrayAccessOperators() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/arrayAccessOperators.kt"); + } + + @Test + @TestMetadata("compoundAssignmentOperators.kt") + public void testCompoundAssignmentOperators() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/compoundAssignmentOperators.kt"); + } + + @Test + @TestMetadata("contextAndExtensionLambdaIndy.kt") + public void testContextAndExtensionLambdaIndy() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionLambdaIndy.kt"); + } + + @Test + @TestMetadata("contextAndExtensionSameName.kt") + public void testContextAndExtensionSameName() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionSameName.kt"); + } + + @Test + @TestMetadata("contextualFunctionConversion.kt") + public void testContextualFunctionConversion() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualFunctionConversion.kt"); + } + + @Test + @TestMetadata("contextualInlineCall.kt") + public void testContextualInlineCall() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualInlineCall.kt"); + } + + @Test + @TestMetadata("delegatedPropertiesOperators.kt") + public void testDelegatedPropertiesOperators() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/delegatedPropertiesOperators.kt"); + } + + @Test + @TestMetadata("inferGenericPropertyType.kt") + public void testInferGenericPropertyType() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/inferGenericPropertyType.kt"); + } + + @Test + @TestMetadata("iteratorOperator.kt") + public void testIteratorOperator() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/iteratorOperator.kt"); + } + + @Test + @TestMetadata("kt51247.kt") + public void testKt51247() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51247.kt"); + } + + @Test + @TestMetadata("kt51277.kt") + public void testKt51277() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51277.kt"); + } + + @Test + @TestMetadata("kt51284.kt") + public void testKt51284() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51284.kt"); + } + + @Test + @TestMetadata("kt51290.kt") + public void testKt51290() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51290.kt"); + } + + @Test + @TestMetadata("kt51397.kt") + public void testKt51397() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51397.kt"); + } + + @Test + @TestMetadata("kt51475.kt") + public void testKt51475() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51475.kt"); + } + + @Test + @TestMetadata("kt51863.kt") + public void testKt51863() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51863.kt"); + } + + @Test + @TestMetadata("kt51951.kt") + public void testKt51951() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51951.kt"); + } + + @Test + @TestMetadata("kt52207.kt") + public void testKt52207() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52207.kt"); + } + + @Test + @TestMetadata("kt52213.kt") + public void testKt52213() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52213.kt"); + } + + @Test + @TestMetadata("kt52373.kt") + public void testKt52373() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52373.kt"); + } + + @Test + @TestMetadata("kt52459.kt") + public void testKt52459() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52459.kt"); + } + + @Test + @TestMetadata("kt53551.kt") + public void testKt53551() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53551.kt"); + } + + @Test + @TestMetadata("kt53846.kt") + public void testKt53846() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53846.kt"); + } + + @Test + @TestMetadata("kt54357.kt") + public void testKt54357() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt54357.kt"); + } + + @Test + @TestMetadata("kt56508.kt") + public void testKt56508() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt56508.kt"); + } + + @Test + @TestMetadata("kt58476.kt") + public void testKt58476() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt58476.kt"); + } + + @Test + @TestMetadata("kt63430.kt") + public void testKt63430() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt63430.kt"); + } + + @Test + @TestMetadata("overload.kt") + public void testOverload() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/overload.kt"); + } + + @Test + @TestMetadata("overloading.kt") + public void testOverloading() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/overloading.kt"); + } + + @Test + @TestMetadata("parameterizedContextualLambda.kt") + public void testParameterizedContextualLambda() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/parameterizedContextualLambda.kt"); + } + + @Test + @TestMetadata("passingLambdaToContextualParam.kt") + public void testPassingLambdaToContextualParam() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/passingLambdaToContextualParam.kt"); + } + + @Test + @TestMetadata("plusAssign.kt") + public void testPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusAssign.kt"); + } + + @Test + @TestMetadata("plusMatrix.kt") + public void testPlusMatrix() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusMatrix.kt"); + } + + @Test + @TestMetadata("propertyCompoundAssignment.kt") + public void testPropertyCompoundAssignment() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/propertyCompoundAssignment.kt"); + } + + @Test + @TestMetadata("receiversOrder.kt") + public void testReceiversOrder() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/receiversOrder.kt"); + } + + @Test + @TestMetadata("simpleCall.kt") + public void testSimpleCall() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/simpleCall.kt"); + } + + @Test + @TestMetadata("substitutedContextReceivers.kt") + public void testSubstitutedContextReceivers() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/substitutedContextReceivers.kt"); + } + + @Test + @TestMetadata("superClassAndSubClassWithContextReceiver.kt") + public void testSuperClassAndSubClassWithContextReceiver() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/superClassAndSubClassWithContextReceiver.kt"); + } + + @Test + @TestMetadata("superClassAndSubClassWithContextReceiverSubstituted.kt") + public void testSuperClassAndSubClassWithContextReceiverSubstituted() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/superClassAndSubClassWithContextReceiverSubstituted.kt"); + } + + @Test + @TestMetadata("suspendContextualWithExtension.kt") + public void testSuspendContextualWithExtension() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/suspendContextualWithExtension.kt"); + } + + @Test + @TestMetadata("this.kt") + public void testThis() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/this.kt"); + } + + @Test + @TestMetadata("unaryOperators.kt") + public void testUnaryOperators() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/unaryOperators.kt"); + } + + @Test + @TestMetadata("useContextReceiverInPropertyInitializer.kt") + public void testUseContextReceiverInPropertyInitializer() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/useContextReceiverInPropertyInitializer.kt"); + } + + @Test + @TestMetadata("useFromAnotherModule.kt") + public void testUseFromAnotherModule() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/useFromAnotherModule.kt"); + } + + @Test + @TestMetadata("useFromAnotherModuleSuspending.kt") + public void testUseFromAnotherModuleSuspending() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/useFromAnotherModuleSuspending.kt"); + } + + @Test + @TestMetadata("useFromAnotherModuleWithDefaultParameterValues.kt") + public void testUseFromAnotherModuleWithDefaultParameterValues() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/useFromAnotherModuleWithDefaultParameterValues.kt"); + } + + @Test + @TestMetadata("withTwoContextReceivers.kt") + public void testWithTwoContextReceivers() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/withTwoContextReceivers.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP") + @TestDataPath("$PROJECT_ROOT") + public class FromKEEP { + @Test + public void testAllFilesPresentInFromKEEP() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("canvas.kt") + public void testCanvas() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/canvas.kt"); + } + + @Test + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/compareTo.kt"); + } + + @Test + @TestMetadata("decimateEveryEvenThird.kt") + public void testDecimateEveryEvenThird() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/decimateEveryEvenThird.kt"); + } + + @Test + @TestMetadata("dp.kt") + public void testDp() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/dp.kt"); + } + + @Test + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/functionalType.kt"); + } + + @Test + @TestMetadata("monoidSum.kt") + public void testMonoidSum() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/monoidSum.kt"); + } + + @Test + @TestMetadata("structuredConcurrency.kt") + public void testStructuredConcurrency() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/structuredConcurrency.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/extensionProperties") + @TestDataPath("$PROJECT_ROOT") + public class ExtensionProperties { + @Test + @TestMetadata("accessorForPrivateSetter.kt") + public void testAccessorForPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/accessorForPrivateSetter.kt"); + } + + @Test + public void testAllFilesPresentInExtensionProperties() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionProperties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericContextOverride.kt") + public void testGenericContextOverride() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/genericContextOverride.kt"); + } + + @Test + @TestMetadata("genericValForPrimitiveType.kt") + public void testGenericValForPrimitiveType() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/genericValForPrimitiveType.kt"); + } + + @Test + @TestMetadata("genericValMultipleUpperBounds.kt") + public void testGenericValMultipleUpperBounds() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/genericValMultipleUpperBounds.kt"); + } + + @Test + @TestMetadata("genericVarForPrimitiveType.kt") + public void testGenericVarForPrimitiveType() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/genericVarForPrimitiveType.kt"); + } + + @Test + @TestMetadata("inClass.kt") + public void testInClass() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClass.kt"); + } + + @Test + @TestMetadata("inClassLongTypeInReceiver.kt") + public void testInClassLongTypeInReceiver() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClassLongTypeInReceiver.kt"); + } + + @Test + @TestMetadata("inClassWithGetter.kt") + public void testInClassWithGetter() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClassWithGetter.kt"); + } + + @Test + @TestMetadata("inClassWithPrivateGetter.kt") + public void testInClassWithPrivateGetter() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClassWithPrivateGetter.kt"); + } + + @Test + @TestMetadata("inClassWithPrivateSetter.kt") + public void testInClassWithPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClassWithPrivateSetter.kt"); + } + + @Test + @TestMetadata("inClassWithSetter.kt") + public void testInClassWithSetter() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClassWithSetter.kt"); + } + + @Test + @TestMetadata("kt46952.kt") + public void testKt46952() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/kt46952.kt"); + } + + @Test + @TestMetadata("kt9897.kt") + public void testKt9897() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/kt9897.kt"); + } + + @Test + @TestMetadata("kt9897_topLevel.kt") + public void testKt9897_topLevel() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/kt9897_topLevel.kt"); + } + + @Test + @TestMetadata("nonAbstractInInterface.kt") + public void testNonAbstractInInterface() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/nonAbstractInInterface.kt"); + } + + @Test + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/topLevel.kt"); + } + + @Test + @TestMetadata("topLevelLongTypeInReceiver.kt") + public void testTopLevelLongTypeInReceiver() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/topLevelLongTypeInReceiver.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/external") + @TestDataPath("$PROJECT_ROOT") + public class External { + @Test + public void testAllFilesPresentInExternal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("jvmStaticExternal.kt") + public void testJvmStaticExternal() throws Exception { + runTest("compiler/testData/codegen/box/external/jvmStaticExternal.kt"); + } + + @Test + @TestMetadata("jvmStaticExternalPrivate.kt") + public void testJvmStaticExternalPrivate() throws Exception { + runTest("compiler/testData/codegen/box/external/jvmStaticExternalPrivate.kt"); + } + + @Test + @TestMetadata("withDefaultArg.kt") + public void testWithDefaultArg() throws Exception { + runTest("compiler/testData/codegen/box/external/withDefaultArg.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/fakeOverride") + @TestDataPath("$PROJECT_ROOT") + public class FakeOverride { + @Test + public void testAllFilesPresentInFakeOverride() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fakeOverride"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("complexOverriddensInLazyFunctions.kt") + public void testComplexOverriddensInLazyFunctions() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/complexOverriddensInLazyFunctions.kt"); + } + + @Test + @TestMetadata("diamondFunction.kt") + public void testDiamondFunction() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/diamondFunction.kt"); + } + + @Test + @TestMetadata("fakeOverrideInAnonymousObject.kt") + public void testFakeOverrideInAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/fakeOverrideInAnonymousObject.kt"); + } + + @Test + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/function.kt"); + } + + @Test + @TestMetadata("internalFromFriendModule.kt") + public void testInternalFromFriendModule() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/internalFromFriendModule.kt"); + } + + @Test + @TestMetadata("intersectionInLocal.kt") + public void testIntersectionInLocal() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/intersectionInLocal.kt"); + } + + @Test + @TestMetadata("intersectionOverrideBetweenValAndVar.kt") + public void testIntersectionOverrideBetweenValAndVar() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/intersectionOverrideBetweenValAndVar.kt"); + } + + @Test + @TestMetadata("kt49371.kt") + public void testKt49371() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/kt49371.kt"); + } + + @Test + @TestMetadata("methodOfAnyFromInterface.kt") + public void testMethodOfAnyFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/methodOfAnyFromInterface.kt"); + } + + @Test + @TestMetadata("privateFakeOverrides0.kt") + public void testPrivateFakeOverrides0() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/privateFakeOverrides0.kt"); + } + + @Test + @TestMetadata("privateFakeOverrides1.kt") + public void testPrivateFakeOverrides1() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/privateFakeOverrides1.kt"); + } + + @Test + @TestMetadata("propertyGetter.kt") + public void testPropertyGetter() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/propertyGetter.kt"); + } + + @Test + @TestMetadata("propertySetter.kt") + public void testPropertySetter() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/propertySetter.kt"); + } + + @Test + @TestMetadata("substitutionInLocal.kt") + public void testSubstitutionInLocal() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/substitutionInLocal.kt"); + } + + @Test + @TestMetadata("varianceOverload.kt") + public void testVarianceOverload() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/varianceOverload.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/fieldRename") + @TestDataPath("$PROJECT_ROOT") + public class FieldRename { + @Test + public void testAllFilesPresentInFieldRename() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fieldRename"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorAndClassObject.kt") + public void testConstructorAndClassObject() throws Exception { + runTest("compiler/testData/codegen/box/fieldRename/constructorAndClassObject.kt"); + } + + @Test + @TestMetadata("delegates.kt") + public void testDelegates() throws Exception { + runTest("compiler/testData/codegen/box/fieldRename/delegates.kt"); + } + + @Test + @TestMetadata("genericPropertyWithItself.kt") + public void testGenericPropertyWithItself() throws Exception { + runTest("compiler/testData/codegen/box/fieldRename/genericPropertyWithItself.kt"); + } + + @Test + @TestMetadata("jvmFieldNoClash1.kt") + public void testJvmFieldNoClash1() throws Exception { + runTest("compiler/testData/codegen/box/fieldRename/jvmFieldNoClash1.kt"); + } + + @Test + @TestMetadata("jvmFieldNoClash2.kt") + public void testJvmFieldNoClash2() throws Exception { + runTest("compiler/testData/codegen/box/fieldRename/jvmFieldNoClash2.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/fileCheck") + @TestDataPath("$PROJECT_ROOT") + public class FileCheck { + @Test + public void testAllFilesPresentInFileCheck() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") + @TestDataPath("$PROJECT_ROOT") + public class Kt53261 { + @Test + public void testAllFilesPresentInKt53261() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") + @TestDataPath("$PROJECT_ROOT") + public class StringConcatenationTypeNarrowing { + @Test + public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt53119_side_effect.kt") + public void testKt53119_side_effect() throws Exception { + runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/finally") + @TestDataPath("$PROJECT_ROOT") + public class Finally { + @Test + public void testAllFilesPresentInFinally() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/finally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("breakAndOuterFinally.kt") + public void testBreakAndOuterFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/breakAndOuterFinally.kt"); + } + + @Test + @TestMetadata("continueAndOuterFinally.kt") + public void testContinueAndOuterFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/continueAndOuterFinally.kt"); + } + + @Test + @TestMetadata("finallyAndFinally.kt") + public void testFinallyAndFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/finallyAndFinally.kt"); + } + + @Test + @TestMetadata("kt31923_break.kt") + public void testKt31923_break() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt31923_break.kt"); + } + + @Test + @TestMetadata("kt31923_continue.kt") + public void testKt31923_continue() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt31923_continue.kt"); + } + + @Test + @TestMetadata("kt31923_return.kt") + public void testKt31923_return() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt31923_return.kt"); + } + + @Test + @TestMetadata("kt31923_wrong.kt") + public void testKt31923_wrong() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt31923_wrong.kt"); + } + + @Test + @TestMetadata("kt3549.kt") + public void testKt3549() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt3549.kt"); + } + + @Test + @TestMetadata("kt3706.kt") + public void testKt3706() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt3706.kt"); + } + + @Test + @TestMetadata("kt3867.kt") + public void testKt3867() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt3867.kt"); + } + + @Test + @TestMetadata("kt3874.kt") + public void testKt3874() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt3874.kt"); + } + + @Test + @TestMetadata("kt3894.kt") + public void testKt3894() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt3894.kt"); + } + + @Test + @TestMetadata("kt4134.kt") + public void testKt4134() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt4134.kt"); + } + + @Test + @TestMetadata("loopAndFinally.kt") + public void testLoopAndFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/loopAndFinally.kt"); + } + + @Test + @TestMetadata("nestedFinallyAndNonFinallyTry.kt") + public void testNestedFinallyAndNonFinallyTry() throws Exception { + runTest("compiler/testData/codegen/box/finally/nestedFinallyAndNonFinallyTry.kt"); + } + + @Test + @TestMetadata("nestedFinallyAndNonFinallyTry2.kt") + public void testNestedFinallyAndNonFinallyTry2() throws Exception { + runTest("compiler/testData/codegen/box/finally/nestedFinallyAndNonFinallyTry2.kt"); + } + + @Test + @TestMetadata("nestedFinallyAndNonFinallyTry3.kt") + public void testNestedFinallyAndNonFinallyTry3() throws Exception { + runTest("compiler/testData/codegen/box/finally/nestedFinallyAndNonFinallyTry3.kt"); + } + + @Test + @TestMetadata("nestedFinallyAndNonFinallyTry4.kt") + public void testNestedFinallyAndNonFinallyTry4() throws Exception { + runTest("compiler/testData/codegen/box/finally/nestedFinallyAndNonFinallyTry4.kt"); + } + + @Test + @TestMetadata("notChainCatch.kt") + public void testNotChainCatch() throws Exception { + runTest("compiler/testData/codegen/box/finally/notChainCatch.kt"); + } + + @Test + @TestMetadata("objectInFinally.kt") + public void testObjectInFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/objectInFinally.kt"); + } + + @Test + @TestMetadata("returnNullFromInlined.kt") + public void testReturnNullFromInlined() throws Exception { + runTest("compiler/testData/codegen/box/finally/returnNullFromInlined.kt"); + } + + @Test + @TestMetadata("someStuff.kt") + public void testSomeStuff() throws Exception { + runTest("compiler/testData/codegen/box/finally/someStuff.kt"); + } + + @Test + @TestMetadata("tryFinally.kt") + public void testTryFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/tryFinally.kt"); + } + + @Test + @TestMetadata("tryLoopTry.kt") + public void testTryLoopTry() throws Exception { + runTest("compiler/testData/codegen/box/finally/tryLoopTry.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/fir") + @TestDataPath("$PROJECT_ROOT") + public class Fir { + @Test + public void testAllFilesPresentInFir() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt") + public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception { + runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt"); + } + + @Test + @TestMetadata("anonymousOverrideWithDefaultInOverridden.kt") + public void testAnonymousOverrideWithDefaultInOverridden() throws Exception { + runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt"); + } + + @Test + @TestMetadata("assertEqualsFakeOverride.kt") + public void testAssertEqualsFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/fir/assertEqualsFakeOverride.kt"); + } + + @Test + @TestMetadata("callableReferenceConversionTopLevel.kt") + public void testCallableReferenceConversionTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/fir/callableReferenceConversionTopLevel.kt"); + } + + @Test + @TestMetadata("callableReferenceToJavaField.kt") + public void testCallableReferenceToJavaField() throws Exception { + runTest("compiler/testData/codegen/box/fir/callableReferenceToJavaField.kt"); + } + + @Test + @TestMetadata("callableReferenceToStaticFunction.kt") + public void testCallableReferenceToStaticFunction() throws Exception { + runTest("compiler/testData/codegen/box/fir/callableReferenceToStaticFunction.kt"); + } + + @Test + @TestMetadata("cannotCastToFunctionInIf.kt") + public void testCannotCastToFunctionInIf() throws Exception { + runTest("compiler/testData/codegen/box/fir/cannotCastToFunctionInIf.kt"); + } + + @Test + @TestMetadata("capitalizationNotEnhanced.kt") + public void testCapitalizationNotEnhanced() throws Exception { + runTest("compiler/testData/codegen/box/fir/capitalizationNotEnhanced.kt"); + } + + @Test + @TestMetadata("ClassBuilder.kt") + public void testClassBuilder() throws Exception { + runTest("compiler/testData/codegen/box/fir/ClassBuilder.kt"); + } + + @Test + @TestMetadata("classCanNotBeCastedToVoid.kt") + public void testClassCanNotBeCastedToVoid() throws Exception { + runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt"); + } + + @Test + @TestMetadata("ColorValuePanel.kt") + public void testColorValuePanel() throws Exception { + runTest("compiler/testData/codegen/box/fir/ColorValuePanel.kt"); + } + + @Test + @TestMetadata("complexAnnotations.kt") + public void testComplexAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/fir/complexAnnotations.kt"); + } + + @Test + @TestMetadata("ConstValAccess.kt") + public void testConstValAccess() throws Exception { + runTest("compiler/testData/codegen/box/fir/ConstValAccess.kt"); + } + + @Test + @TestMetadata("contextReceiverToExtensionReceiver.kt") + public void testContextReceiverToExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/fir/contextReceiverToExtensionReceiver.kt"); + } + + @Test + @TestMetadata("CustomHashSetSize.kt") + public void testCustomHashSetSize() throws Exception { + runTest("compiler/testData/codegen/box/fir/CustomHashSetSize.kt"); + } + + @Test + @TestMetadata("CustomThrowableMessage.kt") + public void testCustomThrowableMessage() throws Exception { + runTest("compiler/testData/codegen/box/fir/CustomThrowableMessage.kt"); + } + + @Test + @TestMetadata("delegatedAndDataTogether.kt") + public void testDelegatedAndDataTogether() throws Exception { + runTest("compiler/testData/codegen/box/fir/delegatedAndDataTogether.kt"); + } + + @Test + @TestMetadata("deserializedOptInDeprecated.kt") + public void testDeserializedOptInDeprecated() throws Exception { + runTest("compiler/testData/codegen/box/fir/deserializedOptInDeprecated.kt"); + } + + @Test + @TestMetadata("differentSinceKotlin.kt") + public void testDifferentSinceKotlin() throws Exception { + runTest("compiler/testData/codegen/box/fir/differentSinceKotlin.kt"); + } + + @Test + @TestMetadata("emptyIntersectionWarning.kt") + public void testEmptyIntersectionWarning() throws Exception { + runTest("compiler/testData/codegen/box/fir/emptyIntersectionWarning.kt"); + } + + @Test + @TestMetadata("enumEntryInTypeJavaAnnotation.kt") + public void testEnumEntryInTypeJavaAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/fir/enumEntryInTypeJavaAnnotation.kt"); + } + + @Test + @TestMetadata("ExtensionAlias.kt") + public void testExtensionAlias() throws Exception { + runTest("compiler/testData/codegen/box/fir/ExtensionAlias.kt"); + } + + @Test + @TestMetadata("externalInDependency.kt") + public void testExternalInDependency() throws Exception { + runTest("compiler/testData/codegen/box/fir/externalInDependency.kt"); + } + + @Test + @TestMetadata("FakeOverrideBuilder.kt") + public void testFakeOverrideBuilder() throws Exception { + runTest("compiler/testData/codegen/box/fir/FakeOverrideBuilder.kt"); + } + + @Test + @TestMetadata("falsePositiveBoundSmartcast.kt") + public void testFalsePositiveBoundSmartcast() throws Exception { + runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt"); + } + + @Test + @TestMetadata("findAnnotationOnDefaultMethodParameter.kt") + public void testFindAnnotationOnDefaultMethodParameter() throws Exception { + runTest("compiler/testData/codegen/box/fir/findAnnotationOnDefaultMethodParameter.kt"); + } + + @Test + @TestMetadata("Fir2IrClassifierStorage.kt") + public void testFir2IrClassifierStorage() throws Exception { + runTest("compiler/testData/codegen/box/fir/Fir2IrClassifierStorage.kt"); + } + + @Test + @TestMetadata("flexibleIntegerLiterals.kt") + public void testFlexibleIntegerLiterals() throws Exception { + runTest("compiler/testData/codegen/box/fir/flexibleIntegerLiterals.kt"); + } + + @Test + @TestMetadata("flexibleStaticConstantFromJava.kt") + public void testFlexibleStaticConstantFromJava() throws Exception { + runTest("compiler/testData/codegen/box/fir/flexibleStaticConstantFromJava.kt"); + } + + @Test + @TestMetadata("functionsDifferInTypeParameterBounds.kt") + public void testFunctionsDifferInTypeParameterBounds() throws Exception { + runTest("compiler/testData/codegen/box/fir/functionsDifferInTypeParameterBounds.kt"); + } + + @Test + @TestMetadata("functionsDifferInTypeParameterBounds2.kt") + public void testFunctionsDifferInTypeParameterBounds2() throws Exception { + runTest("compiler/testData/codegen/box/fir/functionsDifferInTypeParameterBounds2.kt"); + } + + @Test + @TestMetadata("functionsDifferInTypeParameterBounds3.kt") + public void testFunctionsDifferInTypeParameterBounds3() throws Exception { + runTest("compiler/testData/codegen/box/fir/functionsDifferInTypeParameterBounds3.kt"); + } + + @Test + @TestMetadata("getOnNullableTypeAlias.kt") + public void testGetOnNullableTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/fir/getOnNullableTypeAlias.kt"); + } + + @Test + @TestMetadata("implicitNothingInDelegate.kt") + public void testImplicitNothingInDelegate() throws Exception { + runTest("compiler/testData/codegen/box/fir/implicitNothingInDelegate.kt"); + } + + @Test + @TestMetadata("incorrectBytecodeWithEnhancedNullability.kt") + public void testIncorrectBytecodeWithEnhancedNullability() throws Exception { + runTest("compiler/testData/codegen/box/fir/incorrectBytecodeWithEnhancedNullability.kt"); + } + + @Test + @TestMetadata("internalPotentialOverride.kt") + public void testInternalPotentialOverride() throws Exception { + runTest("compiler/testData/codegen/box/fir/internalPotentialOverride.kt"); + } + + @Test + @TestMetadata("intersectionWithCapturedTypeWithRawUpperBound.kt") + public void testIntersectionWithCapturedTypeWithRawUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/fir/intersectionWithCapturedTypeWithRawUpperBound.kt"); + } + + @Test + @TestMetadata("IrBuiltIns.kt") + public void testIrBuiltIns() throws Exception { + runTest("compiler/testData/codegen/box/fir/IrBuiltIns.kt"); + } + + @Test + @TestMetadata("JKEnumConstant.kt") + public void testJKEnumConstant() throws Exception { + runTest("compiler/testData/codegen/box/fir/JKEnumConstant.kt"); + } + + @Test + @TestMetadata("javaAnnotationWithDefaultValueForenumArray.kt") + public void testJavaAnnotationWithDefaultValueForenumArray() throws Exception { + runTest("compiler/testData/codegen/box/fir/javaAnnotationWithDefaultValueForenumArray.kt"); + } + + @Test + @TestMetadata("jvmFieldInLocalClass.kt") + public void testJvmFieldInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/fir/jvmFieldInLocalClass.kt"); + } + + @Test + @TestMetadata("KotlinDocumentationProvider.kt") + public void testKotlinDocumentationProvider() throws Exception { + runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt"); + } + + @Test + @TestMetadata("kt61856.kt") + public void testKt61856() throws Exception { + runTest("compiler/testData/codegen/box/fir/kt61856.kt"); + } + + @Test + @TestMetadata("linkViaSignatures.kt") + public void testLinkViaSignatures() throws Exception { + runTest("compiler/testData/codegen/box/fir/linkViaSignatures.kt"); + } + + @Test + @TestMetadata("listAssignmentInWhen.kt") + public void testListAssignmentInWhen() throws Exception { + runTest("compiler/testData/codegen/box/fir/listAssignmentInWhen.kt"); + } + + @Test + @TestMetadata("localInvokeExtension.kt") + public void testLocalInvokeExtension() throws Exception { + runTest("compiler/testData/codegen/box/fir/localInvokeExtension.kt"); + } + + @Test + @TestMetadata("localOverrideWithDefaultInLocalOverridden.kt") + public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception { + runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt"); + } + + @Test + @TestMetadata("localOverrideWithDefaultInOverridden.kt") + public void testLocalOverrideWithDefaultInOverridden() throws Exception { + runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt"); + } + + @Test + @TestMetadata("LookupTags.kt") + public void testLookupTags() throws Exception { + runTest("compiler/testData/codegen/box/fir/LookupTags.kt"); + } + + @Test + @TestMetadata("manyImplFromOneJavaInterfaceWithDelegation.kt") + public void testManyImplFromOneJavaInterfaceWithDelegation() throws Exception { + runTest("compiler/testData/codegen/box/fir/manyImplFromOneJavaInterfaceWithDelegation.kt"); + } + + @Test + @TestMetadata("manyImplFromOneJavaInterfaceWithDelegation2.kt") + public void testManyImplFromOneJavaInterfaceWithDelegation2() throws Exception { + runTest("compiler/testData/codegen/box/fir/manyImplFromOneJavaInterfaceWithDelegation2.kt"); + } + + @Test + @TestMetadata("Mockito.kt") + public void testMockito() throws Exception { + runTest("compiler/testData/codegen/box/fir/Mockito.kt"); + } + + @Test + @TestMetadata("NameHighlighter.kt") + public void testNameHighlighter() throws Exception { + runTest("compiler/testData/codegen/box/fir/NameHighlighter.kt"); + } + + @Test + @TestMetadata("namedArgumentOnTypeAnnotation.kt") + public void testNamedArgumentOnTypeAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/fir/namedArgumentOnTypeAnnotation.kt"); + } + + @Test + @TestMetadata("nestedClassTypeParameterDeserialization.kt") + public void testNestedClassTypeParameterDeserialization() throws Exception { + runTest("compiler/testData/codegen/box/fir/nestedClassTypeParameterDeserialization.kt"); + } + + @Test + @TestMetadata("noInfer.kt") + public void testNoInfer() throws Exception { + runTest("compiler/testData/codegen/box/fir/noInfer.kt"); + } + + @Test + @TestMetadata("noSymbolForIntRangeIterator.kt") + public void testNoSymbolForIntRangeIterator() throws Exception { + runTest("compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.kt"); + } + + @Test + @TestMetadata("notFoundClasses.kt") + public void testNotFoundClasses() throws Exception { + runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt"); + } + + @Test + @TestMetadata("publicMethodCallViaPackagePrivateCommon.kt") + public void testPublicMethodCallViaPackagePrivateCommon() throws Exception { + runTest("compiler/testData/codegen/box/fir/publicMethodCallViaPackagePrivateCommon.kt"); + } + + @Test + @TestMetadata("SamWithReceiverMavenProjectImportHandler.kt") + public void testSamWithReceiverMavenProjectImportHandler() throws Exception { + runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); + } + + @Test + @TestMetadata("selectingLambdas.kt") + public void testSelectingLambdas() throws Exception { + runTest("compiler/testData/codegen/box/fir/selectingLambdas.kt"); + } + + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + + @Test + @TestMetadata("StackOverflowInAnnotationLoader.kt") + public void testStackOverflowInAnnotationLoader() throws Exception { + runTest("compiler/testData/codegen/box/fir/StackOverflowInAnnotationLoader.kt"); + } + + @Test + @TestMetadata("starProjectionLambdaNullReturn.kt") + public void testStarProjectionLambdaNullReturn() throws Exception { + runTest("compiler/testData/codegen/box/fir/starProjectionLambdaNullReturn.kt"); + } + + @Test + @TestMetadata("staticImportFromEnum.kt") + public void testStaticImportFromEnum() throws Exception { + runTest("compiler/testData/codegen/box/fir/staticImportFromEnum.kt"); + } + + @Test + @TestMetadata("staticImportFromEnumJava.kt") + public void testStaticImportFromEnumJava() throws Exception { + runTest("compiler/testData/codegen/box/fir/staticImportFromEnumJava.kt"); + } + + @Test + @TestMetadata("staticImportFromObject.kt") + public void testStaticImportFromObject() throws Exception { + runTest("compiler/testData/codegen/box/fir/staticImportFromObject.kt"); + } + + @Test + @TestMetadata("staticImportViaInheritance.kt") + public void testStaticImportViaInheritance() throws Exception { + runTest("compiler/testData/codegen/box/fir/staticImportViaInheritance.kt"); + } + + @Test + @TestMetadata("suppressedInvisibleReferenceQualifier.kt") + public void testSuppressedInvisibleReferenceQualifier() throws Exception { + runTest("compiler/testData/codegen/box/fir/suppressedInvisibleReferenceQualifier.kt"); + } + + @Test + @TestMetadata("SuspendExtension.kt") + public void testSuspendExtension() throws Exception { + runTest("compiler/testData/codegen/box/fir/SuspendExtension.kt"); + } + + @Test + @TestMetadata("SuspendFunctionReference.kt") + public void testSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/fir/SuspendFunctionReference.kt"); + } + + @Test + @TestMetadata("syntheticPropertyThroughJava.kt") + public void testSyntheticPropertyThroughJava() throws Exception { + runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJava.kt"); + } + + @Test + @TestMetadata("syntheticPropertyThroughJavaMultiModule.kt") + public void testSyntheticPropertyThroughJavaMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJavaMultiModule.kt"); + } + + @Test + @TestMetadata("syntheticPropertyThroughJavaWithSetter.kt") + public void testSyntheticPropertyThroughJavaWithSetter() throws Exception { + runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJavaWithSetter.kt"); + } + + @Test + @TestMetadata("toLong.kt") + public void testToLong() throws Exception { + runTest("compiler/testData/codegen/box/fir/toLong.kt"); + } + + @Test + @TestMetadata("typeParameterInClashingAccessor.kt") + public void testTypeParameterInClashingAccessor() throws Exception { + runTest("compiler/testData/codegen/box/fir/typeParameterInClashingAccessor.kt"); + } + + @Test + @TestMetadata("TypeParameterInNestedClass.kt") + public void testTypeParameterInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/fir/TypeParameterInNestedClass.kt"); + } + + @Test + @TestMetadata("TypeParameterInNestedClass2.kt") + public void testTypeParameterInNestedClass2() throws Exception { + runTest("compiler/testData/codegen/box/fir/TypeParameterInNestedClass2.kt"); + } + + @Test + @TestMetadata("unqualifiedEnum.kt") + public void testUnqualifiedEnum() throws Exception { + runTest("compiler/testData/codegen/box/fir/unqualifiedEnum.kt"); + } + + @Test + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("compiler/testData/codegen/box/fir/vararg.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/fullJdk") + @TestDataPath("$PROJECT_ROOT") + public class FullJdk { + @Test + public void testAllFilesPresentInFullJdk() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("charBuffer.kt") + public void testCharBuffer() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/charBuffer.kt"); + } + + @Test + @TestMetadata("ifInWhile.kt") + public void testIfInWhile() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/ifInWhile.kt"); + } + + @Test + @TestMetadata("intCountDownLatchExtension.kt") + public void testIntCountDownLatchExtension() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/intCountDownLatchExtension.kt"); + } + + @Test + @TestMetadata("kt31757.kt") + public void testKt31757() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/kt31757.kt"); + } + + @Test + @TestMetadata("kt434.kt") + public void testKt434() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/kt434.kt"); + } + + @Test + @TestMetadata("kt46540.kt") + public void testKt46540() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/kt46540.kt"); + } + + @Test + @TestMetadata("platformTypeAssertionStackTrace.kt") + public void testPlatformTypeAssertionStackTrace() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/platformTypeAssertionStackTrace.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/fullJdk/native") + @TestDataPath("$PROJECT_ROOT") + public class Native { + @Test + public void testAllFilesPresentInNative() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("nativePropertyAccessors.kt") + public void testNativePropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/native/nativePropertyAccessors.kt"); + } + + @Test + @TestMetadata("simpleNative.kt") + public void testSimpleNative() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/native/simpleNative.kt"); + } + + @Test + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/native/topLevel.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/fullJdk/regressions") + @TestDataPath("$PROJECT_ROOT") + public class Regressions { + @Test + public void testAllFilesPresentInRegressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk/regressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt15112.kt") + public void testKt15112() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/regressions/kt15112.kt"); + } + + @Test + @TestMetadata("kt1770.kt") + public void testKt1770() throws Exception { + runTest("compiler/testData/codegen/box/fullJdk/regressions/kt1770.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/funInterface") + @TestDataPath("$PROJECT_ROOT") + public class FunInterface { + @Test + public void testAllFilesPresentInFunInterface() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basicFunInterface.kt") + public void testBasicFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/basicFunInterface.kt"); + } + + @Test + @TestMetadata("basicFunInterfaceConversion.kt") + public void testBasicFunInterfaceConversion() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/basicFunInterfaceConversion.kt"); + } + + @Test + @TestMetadata("basicFunInterfaceConversionClash.kt") + public void testBasicFunInterfaceConversionClash() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/basicFunInterfaceConversionClash.kt"); + } + + @Test + @TestMetadata("castFromAny.kt") + public void testCastFromAny() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/castFromAny.kt"); + } + + @Test + @TestMetadata("contravariantIntersectionType.kt") + public void testContravariantIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/contravariantIntersectionType.kt"); + } + + @Test + @TestMetadata("contravariantIntersectionTypeWithNonTrivialCommonSupertype.kt") + public void testContravariantIntersectionTypeWithNonTrivialCommonSupertype() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/contravariantIntersectionTypeWithNonTrivialCommonSupertype.kt"); + } + + @Test + @TestMetadata("contravariantIntersectionTypeWithNonTrivialCommonSupertype2.kt") + public void testContravariantIntersectionTypeWithNonTrivialCommonSupertype2() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/contravariantIntersectionTypeWithNonTrivialCommonSupertype2.kt"); + } + + @Test + @TestMetadata("funConversionInVararg.kt") + public void testFunConversionInVararg() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/funConversionInVararg.kt"); + } + + @Test + @TestMetadata("funInterfaceCallInLambda.kt") + public void testFunInterfaceCallInLambda() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/funInterfaceCallInLambda.kt"); + } + + @Test + @TestMetadata("funInterfaceInheritance.kt") + public void testFunInterfaceInheritance() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/funInterfaceInheritance.kt"); + } + + @Test + @TestMetadata("funInterfaceTypealias.kt") + public void testFunInterfaceTypealias() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/funInterfaceTypealias.kt"); + } + + @Test + @TestMetadata("funInterfaceWithReceiver.kt") + public void testFunInterfaceWithReceiver() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); + } + + @Test + @TestMetadata("inlinedSamWrapper.kt") + public void testInlinedSamWrapper() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/inlinedSamWrapper.kt"); + } + + @Test + @TestMetadata("intersectionTypeToFunInterfaceConversion.kt") + public void testIntersectionTypeToFunInterfaceConversion() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/intersectionTypeToFunInterfaceConversion.kt"); + } + + @Test + @TestMetadata("irrelevantPrivateDeclarations.kt") + public void testIrrelevantPrivateDeclarations() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/irrelevantPrivateDeclarations.kt"); + } + + @Test + @TestMetadata("kt41670.kt") + public void testKt41670() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt41670.kt"); + } + + @Test + @TestMetadata("kt44827_funInterface.kt") + public void testKt44827_funInterface() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt44827_funInterface.kt"); + } + + @Test + @TestMetadata("kt45444_privateFunInterface.kt") + public void testKt45444_privateFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt"); + } + + @Test + @TestMetadata("kt46512_indyFunInterfaceOverCallableReference.kt") + public void testKt46512_indyFunInterfaceOverCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt46512_indyFunInterfaceOverCallableReference.kt"); + } + + @Test + @TestMetadata("kt46908_functionSupertype.kt") + public void testKt46908_functionSupertype() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); + } + + @Test + @TestMetadata("multimodule.kt") + public void testMultimodule() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/multimodule.kt"); + } + + @Test + @TestMetadata("noOptimizedCallableReferences.kt") + public void testNoOptimizedCallableReferences() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/noOptimizedCallableReferences.kt"); + } + + @Test + @TestMetadata("nonAbstractMethod.kt") + public void testNonAbstractMethod() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); + } + + @Test + @TestMetadata("nullableSam.kt") + public void testNullableSam() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/nullableSam.kt"); + } + + @Test + @TestMetadata("partialSam.kt") + public void testPartialSam() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/partialSam.kt"); + } + + @Test + @TestMetadata("primitiveConversions.kt") + public void testPrimitiveConversions() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/primitiveConversions.kt"); + } + + @Test + @TestMetadata("receiverEvaluatedOnce.kt") + public void testReceiverEvaluatedOnce() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/receiverEvaluatedOnce.kt"); + } + + @Test + @TestMetadata("samConstructorExplicitInvocation.kt") + public void testSamConstructorExplicitInvocation() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/samConstructorExplicitInvocation.kt"); + } + + @Test + @TestMetadata("samConversionToGenericInterfaceInGenericFun.kt") + public void testSamConversionToGenericInterfaceInGenericFun() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/samConversionToGenericInterfaceInGenericFun.kt"); + } + + @Test + @TestMetadata("subtypeOfFunctionalTypeToFunInterfaceConversion.kt") + public void testSubtypeOfFunctionalTypeToFunInterfaceConversion() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/subtypeOfFunctionalTypeToFunInterfaceConversion.kt"); + } + + @Test + @TestMetadata("suspendFunInterfaceConversionCodegen.kt") + public void testSuspendFunInterfaceConversionCodegen() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/suspendFunInterfaceConversionCodegen.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/funInterface/equality") + @TestDataPath("$PROJECT_ROOT") + public class Equality { + @Test + public void testAllFilesPresentInEquality() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/funInterface/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("functionReferencesBound.kt") + public void testFunctionReferencesBound() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/equality/functionReferencesBound.kt"); + } + + @Test + @TestMetadata("functionReferencesUnbound.kt") + public void testFunctionReferencesUnbound() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/equality/functionReferencesUnbound.kt"); + } + + @Test + @TestMetadata("lambdaRuntimeConversion.kt") + public void testLambdaRuntimeConversion() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/equality/lambdaRuntimeConversion.kt"); + } + + @Test + @TestMetadata("localFunctionReferences.kt") + public void testLocalFunctionReferences() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/equality/localFunctionReferences.kt"); + } + + @Test + @TestMetadata("simpleLambdas.kt") + public void testSimpleLambdas() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/equality/simpleLambdas.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/functions") + @TestDataPath("$PROJECT_ROOT") + public class Functions { + @Test + public void testAllFilesPresentInFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("coerceVoidToArray.kt") + public void testCoerceVoidToArray() throws Exception { + runTest("compiler/testData/codegen/box/functions/coerceVoidToArray.kt"); + } + + @Test + @TestMetadata("coerceVoidToObject.kt") + public void testCoerceVoidToObject() throws Exception { + runTest("compiler/testData/codegen/box/functions/coerceVoidToObject.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/box/functions/constructor.kt"); + } + + @Test + @TestMetadata("dataLocalVariable.kt") + public void testDataLocalVariable() throws Exception { + runTest("compiler/testData/codegen/box/functions/dataLocalVariable.kt"); + } + + @Test + @TestMetadata("defaultargs.kt") + public void testDefaultargs() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs.kt"); + } + + @Test + @TestMetadata("defaultargs1.kt") + public void testDefaultargs1() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs1.kt"); + } + + @Test + @TestMetadata("defaultargs2.kt") + public void testDefaultargs2() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs2.kt"); + } + + @Test + @TestMetadata("defaultargs3.kt") + public void testDefaultargs3() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs3.kt"); + } + + @Test + @TestMetadata("defaultargs4.kt") + public void testDefaultargs4() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs4.kt"); + } + + @Test + @TestMetadata("defaultargs5.kt") + public void testDefaultargs5() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs5.kt"); + } + + @Test + @TestMetadata("defaultargs6.kt") + public void testDefaultargs6() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs6.kt"); + } + + @Test + @TestMetadata("defaultargs7.kt") + public void testDefaultargs7() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs7.kt"); + } + + @Test + @TestMetadata("delegatedPropertyWithMultipleOverriddens_generics.kt") + public void testDelegatedPropertyWithMultipleOverriddens_generics() throws Exception { + runTest("compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.kt"); + } + + @Test + @TestMetadata("delegatedPropertyWithMultipleOverriddens_noGenerics.kt") + public void testDelegatedPropertyWithMultipleOverriddens_noGenerics() throws Exception { + runTest("compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.kt"); + } + + @Test + @TestMetadata("ea33909.kt") + public void testEa33909() throws Exception { + runTest("compiler/testData/codegen/box/functions/ea33909.kt"); + } + + @Test + @TestMetadata("fakeDescriptorWithSeveralOverridenOne.kt") + public void testFakeDescriptorWithSeveralOverridenOne() throws Exception { + runTest("compiler/testData/codegen/box/functions/fakeDescriptorWithSeveralOverridenOne.kt"); + } + + @Test + @TestMetadata("functionNtoString.kt") + public void testFunctionNtoString() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionNtoString.kt"); + } + + @Test + @TestMetadata("functionNtoStringGeneric.kt") + public void testFunctionNtoStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionNtoStringGeneric.kt"); + } + + @Test + @TestMetadata("functionNtoStringNoReflect.kt") + public void testFunctionNtoStringNoReflect() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionNtoStringNoReflect.kt"); + } + + @Test + @TestMetadata("infixRecursiveCall.kt") + public void testInfixRecursiveCall() throws Exception { + runTest("compiler/testData/codegen/box/functions/infixRecursiveCall.kt"); + } + + @Test + @TestMetadata("kt1038.kt") + public void testKt1038() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1038.kt"); + } + + @Test + @TestMetadata("kt1199.kt") + public void testKt1199() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1199.kt"); + } + + @Test + @TestMetadata("kt1413.kt") + public void testKt1413() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1413.kt"); + } + + @Test + @TestMetadata("kt1649_1.kt") + public void testKt1649_1() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1649_1.kt"); + } + + @Test + @TestMetadata("kt1649_2.kt") + public void testKt1649_2() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1649_2.kt"); + } + + @Test + @TestMetadata("kt1739.kt") + public void testKt1739() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1739.kt"); + } + + @Test + @TestMetadata("kt2270.kt") + public void testKt2270() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2270.kt"); + } + + @Test + @TestMetadata("kt2271.kt") + public void testKt2271() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2271.kt"); + } + + @Test + @TestMetadata("kt2280.kt") + public void testKt2280() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2280.kt"); + } + + @Test + @TestMetadata("kt2481.kt") + public void testKt2481() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2481.kt"); + } + + @Test + @TestMetadata("kt2716.kt") + public void testKt2716() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2716.kt"); + } + + @Test + @TestMetadata("kt2739.kt") + public void testKt2739() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2739.kt"); + } + + @Test + @TestMetadata("kt2929.kt") + public void testKt2929() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2929.kt"); + } + + @Test + @TestMetadata("kt3214.kt") + public void testKt3214() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt3214.kt"); + } + + @Test + @TestMetadata("kt3313.kt") + public void testKt3313() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt3313.kt"); + } + + @Test + @TestMetadata("kt3573.kt") + public void testKt3573() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt3573.kt"); + } + + @Test + @TestMetadata("kt3724.kt") + public void testKt3724() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt3724.kt"); + } + + @Test + @TestMetadata("kt395.kt") + public void testKt395() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt395.kt"); + } + + @Test + @TestMetadata("kt47449.kt") + public void testKt47449() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt47449.kt"); + } + + @Test + @TestMetadata("kt47527.kt") + public void testKt47527() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt47527.kt"); + } + + @Test + @TestMetadata("kt48058.kt") + public void testKt48058() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt48058.kt"); + } + + @Test + @TestMetadata("kt48989.kt") + public void testKt48989() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt48989.kt"); + } + + @Test + @TestMetadata("kt58825_arrayOverloads.kt") + public void testKt58825_arrayOverloads() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt58825_arrayOverloads.kt"); + } + + @Test + @TestMetadata("kt785.kt") + public void testKt785() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt785.kt"); + } + + @Test + @TestMetadata("kt873.kt") + public void testKt873() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt873.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunction.kt"); + } + + @Test + @TestMetadata("localReturnInsideFunctionExpression.kt") + public void testLocalReturnInsideFunctionExpression() throws Exception { + runTest("compiler/testData/codegen/box/functions/localReturnInsideFunctionExpression.kt"); + } + + @Test + @TestMetadata("max.kt") + public void testMax() throws Exception { + runTest("compiler/testData/codegen/box/functions/max.kt"); + } + + @Test + @TestMetadata("mutualInline.kt") + public void testMutualInline() throws Exception { + runTest("compiler/testData/codegen/box/functions/mutualInline.kt"); + } + + @Test + @TestMetadata("nothisnoclosure.kt") + public void testNothisnoclosure() throws Exception { + runTest("compiler/testData/codegen/box/functions/nothisnoclosure.kt"); + } + + @Test + @TestMetadata("overloadByInterfaceType.kt") + public void testOverloadByInterfaceType() throws Exception { + runTest("compiler/testData/codegen/box/functions/overloadByInterfaceType.kt"); + } + + @Test + @TestMetadata("prefixRecursiveCall.kt") + public void testPrefixRecursiveCall() throws Exception { + runTest("compiler/testData/codegen/box/functions/prefixRecursiveCall.kt"); + } + + @Test + @TestMetadata("recursiveCompareTo.kt") + public void testRecursiveCompareTo() throws Exception { + runTest("compiler/testData/codegen/box/functions/recursiveCompareTo.kt"); + } + + @Test + @TestMetadata("recursiveIncrementCall.kt") + public void testRecursiveIncrementCall() throws Exception { + runTest("compiler/testData/codegen/box/functions/recursiveIncrementCall.kt"); + } + + @Test + @TestMetadata("referencesStaticInnerClassMethod.kt") + public void testReferencesStaticInnerClassMethod() throws Exception { + runTest("compiler/testData/codegen/box/functions/referencesStaticInnerClassMethod.kt"); + } + + @Test + @TestMetadata("referencesStaticInnerClassMethodL2.kt") + public void testReferencesStaticInnerClassMethodL2() throws Exception { + runTest("compiler/testData/codegen/box/functions/referencesStaticInnerClassMethodL2.kt"); + } + + @Test + @TestMetadata("typeParameterAsUpperBound.kt") + public void testTypeParameterAsUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/functions/typeParameterAsUpperBound.kt"); + } + + @Test + @TestMetadata("typeParametersInLocalFunction.kt") + public void testTypeParametersInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/functions/typeParametersInLocalFunction.kt"); + } + + @Test + @TestMetadata("unrelatedUpperBounds.kt") + public void testUnrelatedUpperBounds() throws Exception { + runTest("compiler/testData/codegen/box/functions/unrelatedUpperBounds.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/functions/bigArity") + @TestDataPath("$PROJECT_ROOT") + public class BigArity { + @Test + public void testAllFilesPresentInBigArity() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/bigArity"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callFromJava.kt") + public void testCallFromJava() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/callFromJava.kt"); + } + + @Test + @TestMetadata("callFunViaVararg.kt") + public void testCallFunViaVararg() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/callFunViaVararg.kt"); + } + + @Test + @TestMetadata("callWithIncorrectNumberOfArguments.kt") + public void testCallWithIncorrectNumberOfArguments() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/callWithIncorrectNumberOfArguments.kt"); + } + + @Test + @TestMetadata("function255.kt") + public void testFunction255() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/function255.kt"); + } + + @Test + @TestMetadata("instanceOfCallableReference.kt") + public void testInstanceOfCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/instanceOfCallableReference.kt"); + } + + @Test + @TestMetadata("invokeCallableReference.kt") + public void testInvokeCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/invokeCallableReference.kt"); + } + + @Test + @TestMetadata("invokeLambda.kt") + public void testInvokeLambda() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/invokeLambda.kt"); + } + + @Test + @TestMetadata("invokeMemberCallableReference.kt") + public void testInvokeMemberCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/invokeMemberCallableReference.kt"); + } + + @Test + @TestMetadata("javaLambda.kt") + public void testJavaLambda() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/javaLambda.kt"); + } + + @Test + @TestMetadata("nestedBigArityFunCalls.kt") + public void testNestedBigArityFunCalls() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/nestedBigArityFunCalls.kt"); + } + + @Test + @TestMetadata("subclass.kt") + public void testSubclass() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/subclass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/functions/functionExpression") + @TestDataPath("$PROJECT_ROOT") + public class FunctionExpression { + @Test + public void testAllFilesPresentInFunctionExpression() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("functionExpression.kt") + public void testFunctionExpression() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionExpression/functionExpression.kt"); + } + + @Test + @TestMetadata("functionExpressionWithThisReference.kt") + public void testFunctionExpressionWithThisReference() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionExpression/functionExpressionWithThisReference.kt"); + } + + @Test + @TestMetadata("functionLiteralExpression.kt") + public void testFunctionLiteralExpression() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionExpression/functionLiteralExpression.kt"); + } + + @Test + @TestMetadata("insideGenericLambda.kt") + public void testInsideGenericLambda() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionExpression/insideGenericLambda.kt"); + } + + @Test + @TestMetadata("underscoreParameters.kt") + public void testUnderscoreParameters() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionExpression/underscoreParameters.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/functions/invoke") + @TestDataPath("$PROJECT_ROOT") + public class Invoke { + @Test + public void testAllFilesPresentInInvoke() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/invoke"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("castFunctionToExtension.kt") + public void testCastFunctionToExtension() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/castFunctionToExtension.kt"); + } + + @Test + @TestMetadata("extensionInvokeOnExpr.kt") + public void testExtensionInvokeOnExpr() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/extensionInvokeOnExpr.kt"); + } + + @Test + @TestMetadata("implicitInvokeInCompanionObjectWithFunctionalArgument.kt") + public void testImplicitInvokeInCompanionObjectWithFunctionalArgument() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/implicitInvokeInCompanionObjectWithFunctionalArgument.kt"); + } + + @Test + @TestMetadata("implicitInvokeWithFunctionLiteralArgument.kt") + public void testImplicitInvokeWithFunctionLiteralArgument() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/implicitInvokeWithFunctionLiteralArgument.kt"); + } + + @Test + @TestMetadata("invoke.kt") + public void testInvoke() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/invoke.kt"); + } + + @Test + @TestMetadata("invokeOnExprByConvention.kt") + public void testInvokeOnExprByConvention() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/invokeOnExprByConvention.kt"); + } + + @Test + @TestMetadata("invokeOnSyntheticProperty.kt") + public void testInvokeOnSyntheticProperty() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/invokeOnSyntheticProperty.kt"); + } + + @Test + @TestMetadata("kt3189.kt") + public void testKt3189() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3189.kt"); + } + + @Test + @TestMetadata("kt3190.kt") + public void testKt3190() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3190.kt"); + } + + @Test + @TestMetadata("kt3297.kt") + public void testKt3297() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3297.kt"); + } + + @Test + @TestMetadata("kt3450getAndInvoke.kt") + public void testKt3450getAndInvoke() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3450getAndInvoke.kt"); + } + + @Test + @TestMetadata("kt3631invokeOnString.kt") + public void testKt3631invokeOnString() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3631invokeOnString.kt"); + } + + @Test + @TestMetadata("kt3772.kt") + public void testKt3772() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3772.kt"); + } + + @Test + @TestMetadata("kt3821invokeOnThis.kt") + public void testKt3821invokeOnThis() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3821invokeOnThis.kt"); + } + + @Test + @TestMetadata("kt3822invokeOnThis.kt") + public void testKt3822invokeOnThis() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3822invokeOnThis.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/functions/localFunctions") + @TestDataPath("$PROJECT_ROOT") + public class LocalFunctions { + @Test + public void testAllFilesPresentInLocalFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boundTypeParameterInSupertype.kt") + public void testBoundTypeParameterInSupertype() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/boundTypeParameterInSupertype.kt"); + } + + @Test + @TestMetadata("boundTypeParameterInVararg.kt") + public void testBoundTypeParameterInVararg() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/boundTypeParameterInVararg.kt"); + } + + @Test + @TestMetadata("callBetweenLocalFunctions.kt") + public void testCallBetweenLocalFunctions() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/callBetweenLocalFunctions.kt"); + } + + @Test + @TestMetadata("callInlineLocalInLambda.kt") + public void testCallInlineLocalInLambda() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/callInlineLocalInLambda.kt"); + } + + @Test + @TestMetadata("captureUpperBoundedTypeParameter.kt") + public void testCaptureUpperBoundedTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/captureUpperBoundedTypeParameter.kt"); + } + + @Test + @TestMetadata("definedWithinLambda.kt") + public void testDefinedWithinLambda() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/definedWithinLambda.kt"); + } + + @Test + @TestMetadata("definedWithinLambdaInnerUsage1.kt") + public void testDefinedWithinLambdaInnerUsage1() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage1.kt"); + } + + @Test + @TestMetadata("definedWithinLambdaInnerUsage2.kt") + public void testDefinedWithinLambdaInnerUsage2() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage2.kt"); + } + + @Test + @TestMetadata("kt2895.kt") + public void testKt2895() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt2895.kt"); + } + + @Test + @TestMetadata("kt3308.kt") + public void testKt3308() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt3308.kt"); + } + + @Test + @TestMetadata("kt3978.kt") + public void testKt3978() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt3978.kt"); + } + + @Test + @TestMetadata("kt3978_2.kt") + public void testKt3978_2() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt3978_2.kt"); + } + + @Test + @TestMetadata("kt4119.kt") + public void testKt4119() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4119.kt"); + } + + @Test + @TestMetadata("kt4119_2.kt") + public void testKt4119_2() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4119_2.kt"); + } + + @Test + @TestMetadata("kt4514.kt") + public void testKt4514() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4514.kt"); + } + + @Test + @TestMetadata("kt4777.kt") + public void testKt4777() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4777.kt"); + } + + @Test + @TestMetadata("kt4783.kt") + public void testKt4783() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4783.kt"); + } + + @Test + @TestMetadata("kt4784.kt") + public void testKt4784() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4784.kt"); + } + + @Test + @TestMetadata("kt4989.kt") + public void testKt4989() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4989.kt"); + } + + @Test + @TestMetadata("localExtensionOnNullableParameter.kt") + public void testLocalExtensionOnNullableParameter() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/localExtensionOnNullableParameter.kt"); + } + + @Test + @TestMetadata("localFunctionInConstructor.kt") + public void testLocalFunctionInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/localFunctionInConstructor.kt"); + } + + @Test + @TestMetadata("localFunctionVsLocalVariable.kt") + public void testLocalFunctionVsLocalVariable() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/localFunctionVsLocalVariable.kt"); + } + + @Test + @TestMetadata("nameClash.kt") + public void testNameClash() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/nameClash.kt"); + } + + @Test + @TestMetadata("nameClashAcrossDifferentContainers.kt") + public void testNameClashAcrossDifferentContainers() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/nameClashAcrossDifferentContainers.kt"); + } + + @Test + @TestMetadata("overloadedLocalFunWithoutClosure.kt") + public void testOverloadedLocalFunWithoutClosure() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunWithoutClosure.kt"); + } + + @Test + @TestMetadata("overloadedLocalFunction.kt") + public void testOverloadedLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunction.kt"); + } + + @Test + @TestMetadata("overloadedLocalFunction1.kt") + public void testOverloadedLocalFunction1() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunction1.kt"); + } + + @Test + @TestMetadata("overloadedLocalFunction2.kt") + public void testOverloadedLocalFunction2() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunction2.kt"); + } + + @Test + @TestMetadata("overloadedLocalFunction3.kt") + public void testOverloadedLocalFunction3() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunction3.kt"); + } + + @Test + @TestMetadata("parameterAsDefaultValue.kt") + public void testParameterAsDefaultValue() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/parameterAsDefaultValue.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ieee754") + @TestDataPath("$PROJECT_ROOT") + public class Ieee754 { + @Test + public void testAllFilesPresentInIeee754() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anyCastToPrimitiveCompareTo1.kt") + public void testAnyCastToPrimitiveCompareTo1() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/anyCastToPrimitiveCompareTo1.kt"); + } + + @Test + @TestMetadata("anyCastToPrimitiveCompareTo2.kt") + public void testAnyCastToPrimitiveCompareTo2() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/anyCastToPrimitiveCompareTo2.kt"); + } + + @Test + @TestMetadata("anyToReal.kt") + public void testAnyToReal() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/anyToReal.kt"); + } + + @Test + @TestMetadata("anyToReal_AgainstCompiled.kt") + public void testAnyToReal_AgainstCompiled() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/anyToReal_AgainstCompiled.kt"); + } + + @Test + @TestMetadata("asComparableToDouble.kt") + public void testAsComparableToDouble() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/asComparableToDouble.kt"); + } + + @Test + @TestMetadata("asComparableToDouble_properIeeeComparisons.kt") + public void testAsComparableToDouble_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/asComparableToDouble_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("comparableToTWithT_properIeeeComparisons.kt") + public void testComparableToTWithT_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/comparableToTWithT_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("comparableTypeCast.kt") + public void testComparableTypeCast() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/comparableTypeCast.kt"); + } + + @Test + @TestMetadata("comparableTypeCast_AgainstCompiled.kt") + public void testComparableTypeCast_AgainstCompiled() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/comparableTypeCast_AgainstCompiled.kt"); + } + + @Test + @TestMetadata("dataClass.kt") + public void testDataClass() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/dataClass.kt"); + } + + @Test + @TestMetadata("differentTypesComparison.kt") + public void testDifferentTypesComparison() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/differentTypesComparison.kt"); + } + + @Test + @TestMetadata("double.kt") + public void testDouble() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/double.kt"); + } + + @Test + @TestMetadata("equalsDouble.kt") + public void testEqualsDouble() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsDouble.kt"); + } + + @Test + @TestMetadata("equalsDouble_properIeeeComparisons.kt") + public void testEqualsDouble_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsDouble_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("equalsFloat.kt") + public void testEqualsFloat() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsFloat.kt"); + } + + @Test + @TestMetadata("equalsFloat_properIeeeComparisons.kt") + public void testEqualsFloat_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsFloat_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("equalsNaN.kt") + public void testEqualsNaN() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsNaN.kt"); + } + + @Test + @TestMetadata("equalsNaN_properIeeeComparisons.kt") + public void testEqualsNaN_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsNaN_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("equalsNullableDouble.kt") + public void testEqualsNullableDouble() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsNullableDouble.kt"); + } + + @Test + @TestMetadata("equalsNullableDouble_properIeeeComparisons.kt") + public void testEqualsNullableDouble_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsNullableDouble_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("equalsNullableFloat.kt") + public void testEqualsNullableFloat() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsNullableFloat.kt"); + } + + @Test + @TestMetadata("equalsNullableFloat_properIeeeComparisons.kt") + public void testEqualsNullableFloat_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsNullableFloat_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("explicitCompareCall.kt") + public void testExplicitCompareCall() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/explicitCompareCall.kt"); + } + + @Test + @TestMetadata("explicitCompareCall_AgainstCompiled.kt") + public void testExplicitCompareCall_AgainstCompiled() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/explicitCompareCall_AgainstCompiled.kt"); + } + + @Test + @TestMetadata("explicitEqualsCall.kt") + public void testExplicitEqualsCall() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/explicitEqualsCall.kt"); + } + + @Test + @TestMetadata("explicitEqualsCall_AgainstCompiled.kt") + public void testExplicitEqualsCall_AgainstCompiled() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/explicitEqualsCall_AgainstCompiled.kt"); + } + + @Test + @TestMetadata("float.kt") + public void testFloat() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/float.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/generic.kt"); + } + + @Test + @TestMetadata("generic_AgainstCompiled.kt") + public void testGeneric_AgainstCompiled() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/generic_AgainstCompiled.kt"); + } + + @Test + @TestMetadata("greaterDouble.kt") + public void testGreaterDouble() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/greaterDouble.kt"); + } + + @Test + @TestMetadata("greaterDouble_properIeeeComparisons.kt") + public void testGreaterDouble_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/greaterDouble_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("greaterFloat.kt") + public void testGreaterFloat() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/greaterFloat.kt"); + } + + @Test + @TestMetadata("greaterFloat_properIeeeComparisons.kt") + public void testGreaterFloat_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/greaterFloat_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/inline.kt"); + } + + @Test + @TestMetadata("kt48648_genericField.kt") + public void testKt48648_genericField() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/kt48648_genericField.kt"); + } + + @Test + @TestMetadata("lessDouble.kt") + public void testLessDouble() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/lessDouble.kt"); + } + + @Test + @TestMetadata("lessDouble_properIeeeAndNewInference.kt") + public void testLessDouble_properIeeeAndNewInference() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/lessDouble_properIeeeAndNewInference.kt"); + } + + @Test + @TestMetadata("lessDouble_properIeeeComparisons.kt") + public void testLessDouble_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/lessDouble_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("lessFloat.kt") + public void testLessFloat() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/lessFloat.kt"); + } + + @Test + @TestMetadata("lessFloat_properIeeeComparisons.kt") + public void testLessFloat_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/lessFloat_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("nullableAnyToReal.kt") + public void testNullableAnyToReal() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableAnyToReal.kt"); + } + + @Test + @TestMetadata("nullableAnyToReal_AgainstCompiled.kt") + public void testNullableAnyToReal_AgainstCompiled() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableAnyToReal_AgainstCompiled.kt"); + } + + @Test + @TestMetadata("nullableDoubleEquals.kt") + public void testNullableDoubleEquals() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableDoubleEquals.kt"); + } + + @Test + @TestMetadata("nullableDoubleEqualsLV13.kt") + public void testNullableDoubleEqualsLV13() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableDoubleEqualsLV13.kt"); + } + + @Test + @TestMetadata("nullableDoubleNotEquals.kt") + public void testNullableDoubleNotEquals() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableDoubleNotEquals.kt"); + } + + @Test + @TestMetadata("nullableFloatEquals.kt") + public void testNullableFloatEquals() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableFloatEquals.kt"); + } + + @Test + @TestMetadata("nullableFloatNotEquals.kt") + public void testNullableFloatNotEquals() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableFloatNotEquals.kt"); + } + + @Test + @TestMetadata("nullableIntEquals.kt") + public void testNullableIntEquals() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableIntEquals.kt"); + } + + @Test + @TestMetadata("safeCall.kt") + public void testSafeCall() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/safeCall.kt"); + } + + @Test + @TestMetadata("smartCastOnWhenSubjectAfterCheckInBranch_properIeeeComparisons.kt") + public void testSmartCastOnWhenSubjectAfterCheckInBranch_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/smartCastOnWhenSubjectAfterCheckInBranch_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("smartCastToDifferentTypes.kt") + public void testSmartCastToDifferentTypes() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/smartCastToDifferentTypes.kt"); + } + + @Test + @TestMetadata("smartCastToDifferentTypesWithNumericPromotion.kt") + public void testSmartCastToDifferentTypesWithNumericPromotion() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/smartCastToDifferentTypesWithNumericPromotion.kt"); + } + + @Test + @TestMetadata("smartCastToDifferentTypesWithNumericPromotion_properIeeeComparisons.kt") + public void testSmartCastToDifferentTypesWithNumericPromotion_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/smartCastToDifferentTypesWithNumericPromotion_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("smartCastToDifferentTypes_properIeeeComparisons.kt") + public void testSmartCastToDifferentTypes_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/smartCastToDifferentTypes_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("smartCastToDoubleAndComparableToDouble.kt") + public void testSmartCastToDoubleAndComparableToDouble() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/smartCastToDoubleAndComparableToDouble.kt"); + } + + @Test + @TestMetadata("smartCastToInt.kt") + public void testSmartCastToInt() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/smartCastToInt.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/when.kt"); + } + + @Test + @TestMetadata("whenNoSubject.kt") + public void testWhenNoSubject() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/whenNoSubject.kt"); + } + + @Test + @TestMetadata("whenNoSubject_properIeeeComparisons.kt") + public void testWhenNoSubject_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/whenNoSubject_properIeeeComparisons.kt"); + } + + @Test + @TestMetadata("whenNullableSmartCast.kt") + public void testWhenNullableSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/whenNullableSmartCast.kt"); + } + + @Test + @TestMetadata("when_properIeeeComparisons.kt") + public void testWhen_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/when_properIeeeComparisons.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/increment") + @TestDataPath("$PROJECT_ROOT") + public class Increment { + @Test + public void testAllFilesPresentInIncrement() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/increment"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("argumentWithSideEffects.kt") + public void testArgumentWithSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/increment/argumentWithSideEffects.kt"); + } + + @Test + @TestMetadata("arrayElement.kt") + public void testArrayElement() throws Exception { + runTest("compiler/testData/codegen/box/increment/arrayElement.kt"); + } + + @Test + @TestMetadata("assignPlusOnSmartCast.kt") + public void testAssignPlusOnSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/assignPlusOnSmartCast.kt"); + } + + @Test + @TestMetadata("augmentedAssignmentWithComplexRhs.kt") + public void testAugmentedAssignmentWithComplexRhs() throws Exception { + runTest("compiler/testData/codegen/box/increment/augmentedAssignmentWithComplexRhs.kt"); + } + + @Test + @TestMetadata("classNaryGetSet.kt") + public void testClassNaryGetSet() throws Exception { + runTest("compiler/testData/codegen/box/increment/classNaryGetSet.kt"); + } + + @Test + @TestMetadata("classVarargGetSet.kt") + public void testClassVarargGetSet() throws Exception { + runTest("compiler/testData/codegen/box/increment/classVarargGetSet.kt"); + } + + @Test + @TestMetadata("classVarargGetSetEvaluationOrder.kt") + public void testClassVarargGetSetEvaluationOrder() throws Exception { + runTest("compiler/testData/codegen/box/increment/classVarargGetSetEvaluationOrder.kt"); + } + + @Test + @TestMetadata("classWithGetSet.kt") + public void testClassWithGetSet() throws Exception { + runTest("compiler/testData/codegen/box/increment/classWithGetSet.kt"); + } + + @Test + @TestMetadata("extOnLong.kt") + public void testExtOnLong() throws Exception { + runTest("compiler/testData/codegen/box/increment/extOnLong.kt"); + } + + @Test + @TestMetadata("genericClassWithGetSet.kt") + public void testGenericClassWithGetSet() throws Exception { + runTest("compiler/testData/codegen/box/increment/genericClassWithGetSet.kt"); + } + + @Test + @TestMetadata("kt36956.kt") + public void testKt36956() throws Exception { + runTest("compiler/testData/codegen/box/increment/kt36956.kt"); + } + + @Test + @TestMetadata("memberExtOnLong.kt") + public void testMemberExtOnLong() throws Exception { + runTest("compiler/testData/codegen/box/increment/memberExtOnLong.kt"); + } + + @Test + @TestMetadata("mutableListElement.kt") + public void testMutableListElement() throws Exception { + runTest("compiler/testData/codegen/box/increment/mutableListElement.kt"); + } + + @Test + @TestMetadata("nullable.kt") + public void testNullable() throws Exception { + runTest("compiler/testData/codegen/box/increment/nullable.kt"); + } + + @Test + @TestMetadata("postfixIncrementDoubleSmartCast.kt") + public void testPostfixIncrementDoubleSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixIncrementDoubleSmartCast.kt"); + } + + @Test + @TestMetadata("postfixIncrementOnClass.kt") + public void testPostfixIncrementOnClass() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixIncrementOnClass.kt"); + } + + @Test + @TestMetadata("postfixIncrementOnClassSmartCast.kt") + public void testPostfixIncrementOnClassSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixIncrementOnClassSmartCast.kt"); + } + + @Test + @TestMetadata("postfixIncrementOnShortSmartCast.kt") + public void testPostfixIncrementOnShortSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixIncrementOnShortSmartCast.kt"); + } + + @Test + @TestMetadata("postfixIncrementOnSmartCast.kt") + public void testPostfixIncrementOnSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixIncrementOnSmartCast.kt"); + } + + @Test + @TestMetadata("postfixNullableClassIncrement.kt") + public void testPostfixNullableClassIncrement() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixNullableClassIncrement.kt"); + } + + @Test + @TestMetadata("postfixNullableIncrement.kt") + public void testPostfixNullableIncrement() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixNullableIncrement.kt"); + } + + @Test + @TestMetadata("prefixIncrementOnClass.kt") + public void testPrefixIncrementOnClass() throws Exception { + runTest("compiler/testData/codegen/box/increment/prefixIncrementOnClass.kt"); + } + + @Test + @TestMetadata("prefixIncrementOnClassSmartCast.kt") + public void testPrefixIncrementOnClassSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/prefixIncrementOnClassSmartCast.kt"); + } + + @Test + @TestMetadata("prefixIncrementOnSmartCast.kt") + public void testPrefixIncrementOnSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/prefixIncrementOnSmartCast.kt"); + } + + @Test + @TestMetadata("prefixNullableClassIncrement.kt") + public void testPrefixNullableClassIncrement() throws Exception { + runTest("compiler/testData/codegen/box/increment/prefixNullableClassIncrement.kt"); + } + + @Test + @TestMetadata("prefixNullableIncrement.kt") + public void testPrefixNullableIncrement() throws Exception { + runTest("compiler/testData/codegen/box/increment/prefixNullableIncrement.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inference") + @TestDataPath("$PROJECT_ROOT") + public class Inference { + @Test + public void testAllFilesPresentInInference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("approximateNonTopLevelCapturedTypes.kt") + public void testApproximateNonTopLevelCapturedTypes() throws Exception { + runTest("compiler/testData/codegen/box/inference/approximateNonTopLevelCapturedTypes.kt"); + } + + @Test + @TestMetadata("builderAndDelegateInference.kt") + public void testBuilderAndDelegateInference() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderAndDelegateInference.kt"); + } + + @Test + @TestMetadata("builderInference.kt") + public void testBuilderInference() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference.kt"); + } + + @Test + @TestMetadata("builderInferenceLeakingVariable.kt") + public void testBuilderInferenceLeakingVariable() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInferenceLeakingVariable.kt"); + } + + @Test + @TestMetadata("builderInferenceWithAnnotation.kt") + public void testBuilderInferenceWithAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInferenceWithAnnotation.kt"); + } + + @Test + @TestMetadata("capturedStarProjection.kt") + public void testCapturedStarProjection() throws Exception { + runTest("compiler/testData/codegen/box/inference/capturedStarProjection.kt"); + } + + @Test + @TestMetadata("capturedTypesSubstitutionIntoAbbreviation.kt") + public void testCapturedTypesSubstitutionIntoAbbreviation() throws Exception { + runTest("compiler/testData/codegen/box/inference/capturedTypesSubstitutionIntoAbbreviation.kt"); + } + + @Test + @TestMetadata("coercionToUnitForLambdaReturnTypeWithFlexibleConstraint.kt") + public void testCoercionToUnitForLambdaReturnTypeWithFlexibleConstraint() throws Exception { + runTest("compiler/testData/codegen/box/inference/coercionToUnitForLambdaReturnTypeWithFlexibleConstraint.kt"); + } + + @Test + @TestMetadata("coercionToUnitWithLastLambdaExpression.kt") + public void testCoercionToUnitWithLastLambdaExpression() throws Exception { + runTest("compiler/testData/codegen/box/inference/coercionToUnitWithLastLambdaExpression.kt"); + } + + @Test + @TestMetadata("coerctionToUnitForLastExpressionWithStarProjection.kt") + public void testCoerctionToUnitForLastExpressionWithStarProjection() throws Exception { + runTest("compiler/testData/codegen/box/inference/coerctionToUnitForLastExpressionWithStarProjection.kt"); + } + + @Test + @TestMetadata("earlyReturnInsideCrossinlineLambda.kt") + public void testEarlyReturnInsideCrossinlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt"); + } + + @Test + @TestMetadata("inferenceWithTypeVariableInsideCapturedType.kt") + public void testInferenceWithTypeVariableInsideCapturedType() throws Exception { + runTest("compiler/testData/codegen/box/inference/inferenceWithTypeVariableInsideCapturedType.kt"); + } + + @Test + @TestMetadata("integerLiteralTypeInLamdaReturnType.kt") + public void testIntegerLiteralTypeInLamdaReturnType() throws Exception { + runTest("compiler/testData/codegen/box/inference/integerLiteralTypeInLamdaReturnType.kt"); + } + + @Test + @TestMetadata("intersectionTypeInArguments.kt") + public void testIntersectionTypeInArguments() throws Exception { + runTest("compiler/testData/codegen/box/inference/intersectionTypeInArguments.kt"); + } + + @Test + @TestMetadata("intersectionWithInvisibleComponent.kt") + public void testIntersectionWithInvisibleComponent() throws Exception { + runTest("compiler/testData/codegen/box/inference/intersectionWithInvisibleComponent.kt"); + } + + @Test + @TestMetadata("kt10822.kt") + public void testKt10822() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt10822.kt"); + } + + @Test + @TestMetadata("kt26345.kt") + public void testKt26345() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt26345.kt"); + } + + @Test + @TestMetadata("kt32429.kt") + public void testKt32429() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt32429.kt"); + } + + @Test + @TestMetadata("kt35684.kt") + public void testKt35684() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt35684.kt"); + } + + @Test + @TestMetadata("kt36446.kt") + public void testKt36446() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt36446.kt"); + } + + @Test + @TestMetadata("kt38664.kt") + public void testKt38664() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt38664.kt"); + } + + @Test + @TestMetadata("kt39824.kt") + public void testKt39824() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt39824.kt"); + } + + @Test + @TestMetadata("kt42042.kt") + public void testKt42042() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt42042.kt"); + } + + @Test + @TestMetadata("kt42130.kt") + public void testKt42130() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt42130.kt"); + } + + @Test + @TestMetadata("kt45118.kt") + public void testKt45118() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt45118.kt"); + } + + @Test + @TestMetadata("kt47316.kt") + public void testKt47316() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt47316.kt"); + } + + @Test + @TestMetadata("kt49838.kt") + public void testKt49838() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt49838.kt"); + } + + @Test + @TestMetadata("kt51040.kt") + public void testKt51040() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt51040.kt"); + } + + @Test + @TestMetadata("lambdaWithStarReturn.kt") + public void testLambdaWithStarReturn() throws Exception { + runTest("compiler/testData/codegen/box/inference/lambdaWithStarReturn.kt"); + } + + @Test + @TestMetadata("lambdasWithExtensionFunctionType.kt") + public void testLambdasWithExtensionFunctionType() throws Exception { + runTest("compiler/testData/codegen/box/inference/lambdasWithExtensionFunctionType.kt"); + } + + @Test + @TestMetadata("lastExpressionOfLambdaWithNothingConstraint.kt") + public void testLastExpressionOfLambdaWithNothingConstraint() throws Exception { + runTest("compiler/testData/codegen/box/inference/lastExpressionOfLambdaWithNothingConstraint.kt"); + } + + @Test + @TestMetadata("manyConstraintsDueToFlexibleRawTypes.kt") + public void testManyConstraintsDueToFlexibleRawTypes() throws Exception { + runTest("compiler/testData/codegen/box/inference/manyConstraintsDueToFlexibleRawTypes.kt"); + } + + @Test + @TestMetadata("manyFlexibleTypeParametersFromJavaAndConversions.kt") + public void testManyFlexibleTypeParametersFromJavaAndConversions() throws Exception { + runTest("compiler/testData/codegen/box/inference/manyFlexibleTypeParametersFromJavaAndConversions.kt"); + } + + @Test + @TestMetadata("mapCollectChainWithNullResult.kt") + public void testMapCollectChainWithNullResult() throws Exception { + runTest("compiler/testData/codegen/box/inference/mapCollectChainWithNullResult.kt"); + } + + @Test + @TestMetadata("noCoercionToUniForNullableLambdaReturnType.kt") + public void testNoCoercionToUniForNullableLambdaReturnType() throws Exception { + runTest("compiler/testData/codegen/box/inference/noCoercionToUniForNullableLambdaReturnType.kt"); + } + + @Test + @TestMetadata("noCoercionToUnitWithEqualityConstraintForNullableReturnType.kt") + public void testNoCoercionToUnitWithEqualityConstraintForNullableReturnType() throws Exception { + runTest("compiler/testData/codegen/box/inference/noCoercionToUnitWithEqualityConstraintForNullableReturnType.kt"); + } + + @Test + @TestMetadata("noNothingValueInsideSpecialCall.kt") + public void testNoNothingValueInsideSpecialCall() throws Exception { + runTest("compiler/testData/codegen/box/inference/noNothingValueInsideSpecialCall.kt"); + } + + @Test + @TestMetadata("overrideDefaultProperty.kt") + public void testOverrideDefaultProperty() throws Exception { + runTest("compiler/testData/codegen/box/inference/overrideDefaultProperty.kt"); + } + + @Test + @TestMetadata("overrideGenericDefaultMethod.kt") + public void testOverrideGenericDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/box/inference/overrideGenericDefaultMethod.kt"); + } + + @Test + @TestMetadata("plusAssignInsideLambda.kt") + public void testPlusAssignInsideLambda() throws Exception { + runTest("compiler/testData/codegen/box/inference/plusAssignInsideLambda.kt"); + } + + @Test + @TestMetadata("recursiveConstraintInsideTypeArgumentWithStarProjection.kt") + public void testRecursiveConstraintInsideTypeArgumentWithStarProjection() throws Exception { + runTest("compiler/testData/codegen/box/inference/recursiveConstraintInsideTypeArgumentWithStarProjection.kt"); + } + + @Test + @TestMetadata("referenceToCatchParameterFromLambdaExpression.kt") + public void testReferenceToCatchParameterFromLambdaExpression() throws Exception { + runTest("compiler/testData/codegen/box/inference/referenceToCatchParameterFromLambdaExpression.kt"); + } + + @Test + @TestMetadata("specialCallsWithCallableReferences.kt") + public void testSpecialCallsWithCallableReferences() throws Exception { + runTest("compiler/testData/codegen/box/inference/specialCallsWithCallableReferences.kt"); + } + + @Test + @TestMetadata("substituteIntersectionTypeInsideCapType.kt") + public void testSubstituteIntersectionTypeInsideCapType() throws Exception { + runTest("compiler/testData/codegen/box/inference/substituteIntersectionTypeInsideCapType.kt"); + } + + @Test + @TestMetadata("subtypingOfIntersectionIltInsideFlexible.kt") + public void testSubtypingOfIntersectionIltInsideFlexible() throws Exception { + runTest("compiler/testData/codegen/box/inference/subtypingOfIntersectionIltInsideFlexible.kt"); + } + + @Test + @TestMetadata("sumOfOverloads.kt") + public void testSumOfOverloads() throws Exception { + runTest("compiler/testData/codegen/box/inference/sumOfOverloads.kt"); + } + + @Test + @TestMetadata("suspendExtensionRecevierFromConstraint.kt") + public void testSuspendExtensionRecevierFromConstraint() throws Exception { + runTest("compiler/testData/codegen/box/inference/suspendExtensionRecevierFromConstraint.kt"); + } + + @Test + @TestMetadata("unsafeVarianceCodegen.kt") + public void testUnsafeVarianceCodegen() throws Exception { + runTest("compiler/testData/codegen/box/inference/unsafeVarianceCodegen.kt"); + } + + @Test + @TestMetadata("violatingUpperBoundForSelfType.kt") + public void testViolatingUpperBoundForSelfType() throws Exception { + runTest("compiler/testData/codegen/box/inference/violatingUpperBoundForSelfType.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inference/builderInference") + @TestDataPath("$PROJECT_ROOT") + public class BuilderInference { + @Test + public void testAllFilesPresentInBuilderInference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inference/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("builderCallAsReturnTypeInLocalClass.kt") + public void testBuilderCallAsReturnTypeInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/builderCallAsReturnTypeInLocalClass.kt"); + } + + @Test + @TestMetadata("callableReferenceAndCoercionToUnit.kt") + public void testCallableReferenceAndCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/callableReferenceAndCoercionToUnit.kt"); + } + + @Test + @TestMetadata("callableReferencesProperCompletion.kt") + public void testCallableReferencesProperCompletion() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/callableReferencesProperCompletion.kt"); + } + + @Test + @TestMetadata("capturedTypes.kt") + public void testCapturedTypes() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/capturedTypes.kt"); + } + + @Test + @TestMetadata("changingResolveIfDontUseBuilderInferenceDisabledFeature.kt") + public void testChangingResolveIfDontUseBuilderInferenceDisabledFeature() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/changingResolveIfDontUseBuilderInferenceDisabledFeature.kt"); + } + + @Test + @TestMetadata("commonSuperType.kt") + public void testCommonSuperType() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/commonSuperType.kt"); + } + + @Test + @TestMetadata("commonSuperTypeContravariant.kt") + public void testCommonSuperTypeContravariant() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/commonSuperTypeContravariant.kt"); + } + + @Test + @TestMetadata("commonSuperTypeCovariant.kt") + public void testCommonSuperTypeCovariant() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/commonSuperTypeCovariant.kt"); + } + + @Test + @TestMetadata("commonSuperTypeInvariant.kt") + public void testCommonSuperTypeInvariant() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/commonSuperTypeInvariant.kt"); + } + + @Test + @TestMetadata("commonSuperTypeNullable.kt") + public void testCommonSuperTypeNullable() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/commonSuperTypeNullable.kt"); + } + + @Test + @TestMetadata("constraintsBetweenTwoStubVariables.kt") + public void testConstraintsBetweenTwoStubVariables() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/constraintsBetweenTwoStubVariables.kt"); + } + + @Test + @TestMetadata("cstBasedOnTwoBuilderInferenceLambda.kt") + public void testCstBasedOnTwoBuilderInferenceLambda() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/cstBasedOnTwoBuilderInferenceLambda.kt"); + } + + @Test + @TestMetadata("inferFromExpectedType.kt") + public void testInferFromExpectedType() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/inferFromExpectedType.kt"); + } + + @Test + @TestMetadata("intersect.kt") + public void testIntersect() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/intersect.kt"); + } + + @Test + @TestMetadata("kt41164.kt") + public void testKt41164() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/kt41164.kt"); + } + + @Test + @TestMetadata("kt42139.kt") + public void testKt42139() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/kt42139.kt"); + } + + @Test + @TestMetadata("kt44241.kt") + public void testKt44241() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/kt44241.kt"); + } + + @Test + @TestMetadata("kt45083.kt") + public void testKt45083() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/kt45083.kt"); + } + + @Test + @TestMetadata("kt47052.kt") + public void testKt47052() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/kt47052.kt"); + } + + @Test + @TestMetadata("kt47744.kt") + public void testKt47744() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/kt47744.kt"); + } + + @Test + @TestMetadata("kt48633.kt") + public void testKt48633() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/kt48633.kt"); + } + + @Test + @TestMetadata("kt49887.kt") + public void testKt49887() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/kt49887.kt"); + } + + @Test + @TestMetadata("kt51988.kt") + public void testKt51988() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/kt51988.kt"); + } + + @Test + @TestMetadata("labaledCall.kt") + public void testLabaledCall() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/labaledCall.kt"); + } + + @Test + @TestMetadata("lackOfNullCheckOnNullableInsideBuild.kt") + public void testLackOfNullCheckOnNullableInsideBuild() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/lackOfNullCheckOnNullableInsideBuild.kt"); + } + + @Test + @TestMetadata("memberScope.kt") + public void testMemberScope() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/memberScope.kt"); + } + + @Test + @TestMetadata("nullability.kt") + public void testNullability() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/nullability.kt"); + } + + @Test + @TestMetadata("partiallyResolvedCallInReturnArgument.kt") + public void testPartiallyResolvedCallInReturnArgument() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/partiallyResolvedCallInReturnArgument.kt"); + } + + @Test + @TestMetadata("partiallyResolvedCallInReturnArgumentNonLast.kt") + public void testPartiallyResolvedCallInReturnArgumentNonLast() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/partiallyResolvedCallInReturnArgumentNonLast.kt"); + } + + @Test + @TestMetadata("partiallyResolvedCallInReturnArgumentNonUnit.kt") + public void testPartiallyResolvedCallInReturnArgumentNonUnit() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/partiallyResolvedCallInReturnArgumentNonUnit.kt"); + } + + @Test + @TestMetadata("propagateInferenceSessionIntoDeclarationAnalyzers.kt") + public void testPropagateInferenceSessionIntoDeclarationAnalyzers() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/propagateInferenceSessionIntoDeclarationAnalyzers.kt"); + } + + @Test + @TestMetadata("specialCallsWithCallableReferences.kt") + public void testSpecialCallsWithCallableReferences() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferences.kt"); + } + + @Test + @TestMetadata("specialCallsWithCallableReferencesDontRewriteAtSlice.kt") + public void testSpecialCallsWithCallableReferencesDontRewriteAtSlice() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesDontRewriteAtSlice.kt"); + } + + @Test + @TestMetadata("specialCallsWithCallableReferencesErrorType.kt") + public void testSpecialCallsWithCallableReferencesErrorType() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesErrorType.kt"); + } + + @Test + @TestMetadata("specialCallsWithCallableReferencesNonStrictOnlyInputTypes.kt") + public void testSpecialCallsWithCallableReferencesNonStrictOnlyInputTypes() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesNonStrictOnlyInputTypes.kt"); + } + + @Test + @TestMetadata("specialCallsWithLambdas.kt") + public void testSpecialCallsWithLambdas() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/specialCallsWithLambdas.kt"); + } + + @Test + @TestMetadata("substituteStubTypeIntoCR.kt") + public void testSubstituteStubTypeIntoCR() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/substituteStubTypeIntoCR.kt"); + } + + @Test + @TestMetadata("substituteStubTypeIntolambdaParameterDescriptor.kt") + public void testSubstituteStubTypeIntolambdaParameterDescriptor() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/substituteStubTypeIntolambdaParameterDescriptor.kt"); + } + + @Test + @TestMetadata("substituteTypeVariableIntolambdaParameterDescriptor.kt") + public void testSubstituteTypeVariableIntolambdaParameterDescriptor() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/substituteTypeVariableIntolambdaParameterDescriptor.kt"); + } + + @Test + @TestMetadata("substitutelambdaExtensionReceiverType.kt") + public void testSubstitutelambdaExtensionReceiverType() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/substitutelambdaExtensionReceiverType.kt"); + } + + @Test + @TestMetadata("topDownCompletionBreakedByNonBuilderInferenceSession.kt") + public void testTopDownCompletionBreakedByNonBuilderInferenceSession() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/topDownCompletionBreakedByNonBuilderInferenceSession.kt"); + } + + @Test + @TestMetadata("topDownCompletionWithThreeBuilderInferenceCalls.kt") + public void testTopDownCompletionWithThreeBuilderInferenceCalls() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/topDownCompletionWithThreeBuilderInferenceCalls.kt"); + } + + @Test + @TestMetadata("topDownCompletionWithThreeBuilderInferenceCallsSameLevel.kt") + public void testTopDownCompletionWithThreeBuilderInferenceCallsSameLevel() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/topDownCompletionWithThreeBuilderInferenceCallsSameLevel.kt"); + } + + @Test + @TestMetadata("topDownCompletionWithTwoBuilderInferenceCalls.kt") + public void testTopDownCompletionWithTwoBuilderInferenceCalls() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/topDownCompletionWithTwoBuilderInferenceCalls.kt"); + } + + @Test + @TestMetadata("withExpectedType.kt") + public void testWithExpectedType() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/withExpectedType.kt"); + } + + @Test + @TestMetadata("withoutAnnotation.kt") + public void testWithoutAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/withoutAnnotation.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") + @TestDataPath("$PROJECT_ROOT") + public class InlineArgsInPlace { + @Test + public void testAllFilesPresentInInlineArgsInPlace() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineArgsInPlace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayDequeRemoveAll.kt") + public void testArrayDequeRemoveAll() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.kt"); + } + + @Test + @TestMetadata("breakInArgumentExpression.kt") + public void testBreakInArgumentExpression() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/breakInArgumentExpression.kt"); + } + + @Test + @TestMetadata("continueInArgumentExpression.kt") + public void testContinueInArgumentExpression() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/continueInArgumentExpression.kt"); + } + + @Test + @TestMetadata("inlineCircularDedepency.kt") + public void testInlineCircularDedepency() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.kt"); + } + + @Test + @TestMetadata("kotlinReflect.kt") + public void testKotlinReflect() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/kotlinReflect.kt"); + } + + @Test + @TestMetadata("kt49370.kt") + public void testKt49370() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/kt49370.kt"); + } + + @Test + @TestMetadata("kt49407.kt") + public void testKt49407() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/kt49407.kt"); + } + + @Test + @TestMetadata("mapSet.kt") + public void testMapSet() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/mapSet.kt"); + } + + @Test + @TestMetadata("mutableCollectionPlusAssign.kt") + public void testMutableCollectionPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/mutableCollectionPlusAssign.kt"); + } + + @Test + @TestMetadata("noinlineParameter.kt") + public void testNoinlineParameter() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/noinlineParameter.kt"); + } + + @Test + @TestMetadata("suspensionPointInsideArgument.kt") + public void testSuspensionPointInsideArgument() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/suspensionPointInsideArgument.kt"); + } + + @Test + @TestMetadata("withLogFile.kt") + public void testWithLogFile() throws Exception { + runTest("compiler/testData/codegen/box/inlineArgsInPlace/withLogFile.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + public class InlineClasses { + @Test + public void testAllFilesPresentInInlineClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotatedMemberExtensionProperty.kt") + public void testAnnotatedMemberExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("annotatedMemberExtensionPropertyGeneric.kt") + public void testAnnotatedMemberExtensionPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anySuperCall.kt") + public void testAnySuperCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anySuperCallGeneric.kt") + public void testAnySuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundCallableReferencePassedToInlineFunction.kt") + public void testBoundCallableReferencePassedToInlineFunction() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric.kt") + public void testBoundCallableReferencePassedToInlineFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric2.kt") + public void testBoundCallableReferencePassedToInlineFunctionGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructor.kt") + public void testBoxImplDoesNotExecuteInSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt") + public void testBoxImplDoesNotExecuteInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxImplDoesNotExecuteInitBlock.kt") + public void testBoxImplDoesNotExecuteInitBlock() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxImplDoesNotExecuteInitBlockGeneric.kt") + public void testBoxImplDoesNotExecuteInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableForFakeOverride.kt") + public void testBoxNullableForFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableForFakeOverrideGeneric.kt") + public void testBoxNullableForFakeOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableForFakeOverrideGeneric2.kt") + public void testBoxNullableForFakeOverrideGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric2.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric2.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxResultInlineClassOfConstructorCall.kt") + public void testBoxResultInlineClassOfConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxResultInlineClassOfConstructorCallGeneric.kt") + public void testBoxResultInlineClassOfConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxResultInlineClassOfConstructorCallGeneric2.kt") + public void testBoxResultInlineClassOfConstructorCallGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSet.kt") + public void testBoxUnboxInlineClassesWithOperatorsGetSet() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt") + public void testBoxUnboxInlineClassesWithOperatorsGetSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxUnboxOfInlineClassForCapturedVars.kt") + public void testBoxUnboxOfInlineClassForCapturedVars() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxUnboxOfInlineClassForCapturedVarsGeneric.kt") + public void testBoxUnboxOfInlineClassForCapturedVarsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("bridgeForFunctionReturningInlineClass.kt") + public void testBridgeForFunctionReturningInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("bridgeForFunctionReturningInlineClassGeneric.kt") + public void testBridgeForFunctionReturningInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("bridgeGenerationWithInlineClassOverAny.kt") + public void testBridgeGenerationWithInlineClassOverAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric.kt") + public void testBridgeGenerationWithInlineClassOverAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric2.kt") + public void testBridgeGenerationWithInlineClassOverAnyGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterface.kt") + public void testBridgesWhenInlineClassImplementsGenericInterface() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt") + public void testBridgesWhenInlineClassImplementsGenericInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("callComputablePropertyInsideInlineClass.kt") + public void testCallComputablePropertyInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callComputablePropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("callSpecializedEqualsViaReflection.kt") + public void testCallSpecializedEqualsViaReflection() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("callSpecializedEqualsViaReflectionGeneric.kt") + public void testCallSpecializedEqualsViaReflectionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("callSpeciallyOverriddenPropertyOfInlineClass.kt") + public void testCallSpeciallyOverriddenPropertyOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt") + public void testCallSpeciallyOverriddenPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("callableReferencesWithInlineClasses.kt") + public void testCallableReferencesWithInlineClasses() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("callableReferencesWithInlineClassesGeneric.kt") + public void testCallableReferencesWithInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("castInsideWhenExpression.kt") + public void testCastInsideWhenExpression() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("castInsideWhenExpressionGeneric.kt") + public void testCastInsideWhenExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt") + public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt") + public void testCheckBoxUnboxOfArgumentsOnInlinedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingAfterAssertionOperator.kt") + public void testCheckBoxingAfterAssertionOperator() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingAfterAssertionOperatorGeneric.kt") + public void testCheckBoxingAfterAssertionOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingForComplexClassHierarchy.kt") + public void testCheckBoxingForComplexClassHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingForComplexClassHierarchyGeneric.kt") + public void testCheckBoxingForComplexClassHierarchyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingForNonLocalAndLabeledReturns.kt") + public void testCheckBoxingForNonLocalAndLabeledReturns() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingForNonLocalAndLabeledReturnsGeneric.kt") + public void testCheckBoxingForNonLocalAndLabeledReturnsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingFromReturnTypeForInlineClasses.kt") + public void testCheckBoxingFromReturnTypeForInlineClasses() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingFromReturnTypeForInlineClassesGeneric.kt") + public void testCheckBoxingFromReturnTypeForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingOnFunctionCalls.kt") + public void testCheckBoxingOnFunctionCalls() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingOnFunctionCallsGeneric.kt") + public void testCheckBoxingOnFunctionCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingOnLocalVariableAssignments.kt") + public void testCheckBoxingOnLocalVariableAssignments() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingOnLocalVariableAssignmentsGeneric.kt") + public void testCheckBoxingOnLocalVariableAssignmentsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt") + public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctions() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt") + public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkCallingMembersInsideInlineClass.kt") + public void testCheckCallingMembersInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkCallingMembersInsideInlineClassGeneric.kt") + public void testCheckCallingMembersInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkCastToInlineClass.kt") + public void testCheckCastToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkCastToInlineClassGeneric.kt") + public void testCheckCastToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkForInstanceOfInlineClass.kt") + public void testCheckForInstanceOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkForInstanceOfInlineClassGeneric.kt") + public void testCheckForInstanceOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkLambdaWithInlineClassesInFunctionalType.kt") + public void testCheckLambdaWithInlineClassesInFunctionalType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt") + public void testCheckLambdaWithInlineClassesInFunctionalTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkUnboxingResultFromTypeVariable.kt") + public void testCheckUnboxingResultFromTypeVariable() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkUnboxingResultFromTypeVariableGeneric.kt") + public void testCheckUnboxingResultFromTypeVariableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("checkUnboxingResultFromTypeVariableGeneric2.kt") + public void testCheckUnboxingResultFromTypeVariableGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("classInInlineClassInit.kt") + public void testClassInInlineClassInit() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("classInInlineClassInitGeneric.kt") + public void testClassInInlineClassInitGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("classLiteralOnInlineClass.kt") + public void testClassLiteralOnInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt"); + } + + @Test + @TestMetadata("classLiteralOnInlineClassGeneric.kt") + public void testClassLiteralOnInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("computablePropertyInsideInlineClass.kt") + public void testComputablePropertyInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/computablePropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("conformToComparableAndCallInterfaceMethod.kt") + public void testConformToComparableAndCallInterfaceMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("conformToComparableAndCallInterfaceMethodGeneric.kt") + public void testConformToComparableAndCallInterfaceMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("constructorCallableReference.kt") + public void testConstructorCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("constructorCallableReferenceGeneric.kt") + public void testConstructorCallableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("constructorImplVisibility.kt") + public void testConstructorImplVisibility() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("constructorImplVisibilityGeneric.kt") + public void testConstructorImplVisibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt"); + } + + @Test + @TestMetadata("correctBoxingForBranchExpressions.kt") + public void testCorrectBoxingForBranchExpressions() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("correctBoxingForBranchExpressionsGeneric.kt") + public void testCorrectBoxingForBranchExpressionsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("createInlineClassInArgumentPosition.kt") + public void testCreateInlineClassInArgumentPosition() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("createInlineClassInArgumentPositionGeneric.kt") + public void testCreateInlineClassInArgumentPositionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("crossinlineWithInlineClassInParameter.kt") + public void testCrossinlineWithInlineClassInParameter() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("crossinlineWithInlineClassInParameterGeneric.kt") + public void testCrossinlineWithInlineClassInParameterGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("crossinlineWithInlineClassInParameterGeneric2.kt") + public void testCrossinlineWithInlineClassInParameterGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("customIterator.kt") + public void testCustomIterator() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/customIterator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultFunctionsFromAnyForInlineClass.kt") + public void testDefaultFunctionsFromAnyForInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultFunctionsFromAnyForInlineClassGeneric.kt") + public void testDefaultFunctionsFromAnyForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") + public void testDefaultInterfaceMethodsInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultInterfaceMethodsInInlineClassGeneric.kt") + public void testDefaultInterfaceMethodsInInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultWithInlineClassArgument.kt") + public void testDefaultWithInlineClassArgument() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultWithInlineClassArgumentGeneric.kt") + public void testDefaultWithInlineClassArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateFromDifferentPackage.kt") + public void testDelegateFromDifferentPackage() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegateFromDifferentPackage.kt"); + } + + @Test + @TestMetadata("elvisWithInlineClassAndNullConstant.kt") + public void testElvisWithInlineClassAndNullConstant() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("elvisWithInlineClassAndNullConstantGeneric.kt") + public void testElvisWithInlineClassAndNullConstantGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("emptyConstructorForInlineClass.kt") + public void testEmptyConstructorForInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("emptyConstructorForInlineClassGeneric.kt") + public void testEmptyConstructorForInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksInlineClassNonNull.kt") + public void testEqualityChecksInlineClassNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksInlineClassNonNullGeneric.kt") + public void testEqualityChecksInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksMixedNullability.kt") + public void testEqualityChecksMixedNullability() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksMixedNullabilityGeneric.kt") + public void testEqualityChecksMixedNullabilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNegatedInlineClassNonNull.kt") + public void testEqualityChecksNegatedInlineClassNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNegatedInlineClassNonNullGeneric.kt") + public void testEqualityChecksNegatedInlineClassNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNegatedNonNull.kt") + public void testEqualityChecksNegatedNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNegatedNonNullGeneric.kt") + public void testEqualityChecksNegatedNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNegatedNullable.kt") + public void testEqualityChecksNegatedNullable() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNegatedNullableGeneric.kt") + public void testEqualityChecksNegatedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNegatedNullableGeneric2.kt") + public void testEqualityChecksNegatedNullableGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNegatedPrimitive.kt") + public void testEqualityChecksNegatedPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNegatedPrimitiveGeneric.kt") + public void testEqualityChecksNegatedPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNonNull.kt") + public void testEqualityChecksNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNonNullGeneric.kt") + public void testEqualityChecksNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNullable.kt") + public void testEqualityChecksNullable() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNullableGeneric.kt") + public void testEqualityChecksNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksNullableGeneric2.kt") + public void testEqualityChecksNullableGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksPrimitive.kt") + public void testEqualityChecksPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksPrimitiveGeneric.kt") + public void testEqualityChecksPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityChecksPrimitiveUnboxed.kt") + public void testEqualityChecksPrimitiveUnboxed() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveUnboxed.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt") + public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt") + public void testEqualityForBoxesOfNullableValuesOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsCallsLeftArgument.kt") + public void testEqualsCallsLeftArgument() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsCallsLeftArgumentGeneric.kt") + public void testEqualsCallsLeftArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsEvaluationOrderInlineClass.kt") + public void testEqualsEvaluationOrderInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsEvaluationOrderInlineClassGeneric.kt") + public void testEqualsEvaluationOrderInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsEvaluationOrderNonNull.kt") + public void testEqualsEvaluationOrderNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsEvaluationOrderNonNullGeneric.kt") + public void testEqualsEvaluationOrderNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsEvaluationOrderNullable.kt") + public void testEqualsEvaluationOrderNullable() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsEvaluationOrderNullableGeneric.kt") + public void testEqualsEvaluationOrderNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsEvaluationOrderNullableGeneric2.kt") + public void testEqualsEvaluationOrderNullableGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsEvaluationOrderPrimitive.kt") + public void testEqualsEvaluationOrderPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsEvaluationOrderPrimitiveGeneric.kt") + public void testEqualsEvaluationOrderPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsOperatorWithGenericCall.kt") + public void testEqualsOperatorWithGenericCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsOperatorWithGenericCallGeneric.kt") + public void testEqualsOperatorWithGenericCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("extLambdaInInlineClassFun.kt") + public void testExtLambdaInInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("extLambdaInInlineClassFun2.kt") + public void testExtLambdaInInlineClassFun2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("extLambdaInInlineClassFun2Generic.kt") + public void testExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("extLambdaInInlineClassFunGeneric.kt") + public void testExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("fieldNameClash.kt") + public void testFieldNameClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("fieldNameClashGeneric.kt") + public void testFieldNameClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("funInterfaceDoubleSuffux.kt") + public void testFunInterfaceDoubleSuffux() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterfaceDoubleSuffux.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("funInterfaceDoubleSuffux2.kt") + public void testFunInterfaceDoubleSuffux2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterfaceDoubleSuffux2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("functionExpression.kt") + public void testFunctionExpression() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("functionExpressionGeneric.kt") + public void testFunctionExpressionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericInlineClassSynthMembers.kt") + public void testGenericInlineClassSynthMembers() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/genericInlineClassSynthMembers.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericVararg2ndConstructor.kt") + public void testGenericVararg2ndConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/genericVararg2ndConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("implicitCastToNonValueClassType.kt") + public void testImplicitCastToNonValueClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/implicitCastToNonValueClassType.kt"); + } + + @Test + @TestMetadata("infixCompareToOptimization.kt") + public void testInfixCompareToOptimization() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/infixCompareToOptimization.kt"); + } + + @Test + @TestMetadata("initBlock.kt") + public void testInitBlock() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/initBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("initBlockGeneric.kt") + public void testInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("initInCompanion.kt") + public void testInitInCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/initInCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassAsLastExpressionInInLambda.kt") + public void testInlineClassAsLastExpressionInInLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassAsLastExpressionInInLambdaGeneric.kt") + public void testInlineClassAsLastExpressionInInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassBothEqualsOverride.kt") + public void testInlineClassBothEqualsOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassBothEqualsOverride.kt"); + } + + @Test + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt") + public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointData() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt") + public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassEqualsConsistency.kt") + public void testInlineClassEqualsConsistency() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsConsistency.kt"); + } + + @Test + @TestMetadata("inlineClassEqualsOverriddenForCollections.kt") + public void testInlineClassEqualsOverriddenForCollections() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverriddenForCollections.kt"); + } + + @Test + @TestMetadata("inlineClassEqualsOverride.kt") + public void testInlineClassEqualsOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverride.kt"); + } + + @Test + @TestMetadata("inlineClassFieldHandling.kt") + public void testInlineClassFieldHandling() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassFieldHandlingGeneric.kt") + public void testInlineClassFieldHandlingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassFunctionInvoke.kt") + public void testInlineClassFunctionInvoke() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassFunctionInvokeGeneric.kt") + public void testInlineClassFunctionInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassHashCodeOverride.kt") + public void testInlineClassHashCodeOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassHashCodeOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassImplementsCollection.kt") + public void testInlineClassImplementsCollection() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassImplementsCollectionGeneric.kt") + public void testInlineClassImplementsCollectionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassImplementsJavaLangInterface.kt") + public void testInlineClassImplementsJavaLangInterface() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsJavaLangInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassInInitBlock.kt") + public void testInlineClassInInitBlock() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassInInitBlockGeneric.kt") + public void testInlineClassInInitBlockGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassInStringTemplate.kt") + public void testInlineClassInStringTemplate() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassInStringTemplateGeneric.kt") + public void testInlineClassInStringTemplateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPropertyReferenceGetAndSet.kt") + public void testInlineClassPropertyReferenceGetAndSet() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPropertyReferenceGetAndSetGeneric.kt") + public void testInlineClassPropertyReferenceGetAndSetGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassTypedEqualsGenerics.kt") + public void testInlineClassTypedEqualsGenerics() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassTypedEqualsGenerics.kt"); + } + + @Test + @TestMetadata("inlineClassUntypedEqualsOverriden.kt") + public void testInlineClassUntypedEqualsOverriden() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassUntypedEqualsOverriden.kt"); + } + + @Test + @TestMetadata("inlineClassValueCapturedInInlineLambda.kt") + public void testInlineClassValueCapturedInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassValueCapturedInInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassValueCapturedInNonInlineLambda.kt") + public void testInlineClassValueCapturedInNonInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassValueCapturedInNonInlineLambdaGeneric.kt") + public void testInlineClassValueCapturedInNonInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassValuesInsideStrings.kt") + public void testInlineClassValuesInsideStrings() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassValuesInsideStringsGeneric.kt") + public void testInlineClassValuesInsideStringsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassWithCustomEquals.kt") + public void testInlineClassWithCustomEquals() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassWithCustomEqualsGeneric.kt") + public void testInlineClassWithCustomEqualsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassWithDefaultFunctionsFromAny.kt") + public void testInlineClassWithDefaultFunctionsFromAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassWithDefaultFunctionsFromAnyGeneric.kt") + public void testInlineClassWithDefaultFunctionsFromAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassesAsInlineFunParameters.kt") + public void testInlineClassesAsInlineFunParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassesAsInlineFunParametersGeneric.kt") + public void testInlineClassesAsInlineFunParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassesCheckCast.kt") + public void testInlineClassesCheckCast() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassesCheckCastGeneric.kt") + public void testInlineClassesCheckCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassesInInlineLambdaParameters.kt") + public void testInlineClassesInInlineLambdaParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassesRefTypesInInlineLambdaParameters.kt") + public void testInlineClassesRefTypesInInlineLambdaParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassesRefTypesInInlineLambdaParametersGeneric.kt") + public void testInlineClassesRefTypesInInlineLambdaParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineExtLambdaInInlineClassFun.kt") + public void testInlineExtLambdaInInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineExtLambdaInInlineClassFun2.kt") + public void testInlineExtLambdaInInlineClassFun2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineExtLambdaInInlineClassFun2Generic.kt") + public void testInlineExtLambdaInInlineClassFun2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineExtLambdaInInlineClassFunGeneric.kt") + public void testInlineExtLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineFunctionInsideInlineClass.kt") + public void testInlineFunctionInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineFunctionInsideInlineClassGeneric.kt") + public void testInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineInCompanion.kt") + public void testInlineInCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanion.kt"); + } + + @Test + @TestMetadata("inlineInCompanionGeneric.kt") + public void testInlineInCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanionGeneric.kt"); + } + + @Test + @TestMetadata("inlineOverInlineWithCustomEquals.kt") + public void testInlineOverInlineWithCustomEquals() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineOverInlineWithCustomEquals.kt"); + } + + @Test + @TestMetadata("inlineToString.kt") + public void testInlineToString() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineToString.kt"); + } + + @Test + @TestMetadata("iterateOverArrayOfInlineClassValues.kt") + public void testIterateOverArrayOfInlineClassValues() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("iterateOverArrayOfInlineClassValuesGeneric.kt") + public void testIterateOverArrayOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("iterateOverListOfInlineClassValues.kt") + public void testIterateOverListOfInlineClassValues() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("iterateOverListOfInlineClassValuesGeneric.kt") + public void testIterateOverListOfInlineClassValuesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("javaClassIntrinsicOnInlineClasses.kt") + public void testJavaClassIntrinsicOnInlineClasses() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("javaClassIntrinsicOnInlineClassesGeneric.kt") + public void testJavaClassIntrinsicOnInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("javaPrimitiveTypeIC.kt") + public void testJavaPrimitiveTypeIC() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt"); + } + + @Test + @TestMetadata("javaPrimitiveTypeICGeneric.kt") + public void testJavaPrimitiveTypeICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmFieldInInlineClassCompanion.kt") + public void testJvmFieldInInlineClassCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmFieldInInlineClassCompanionGeneric.kt") + public void testJvmFieldInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmInline.kt") + public void testJvmInline() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmInline.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt") + public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt"); + } + + @Test + @TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt") + public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt"); + } + + @Test + @TestMetadata("jvmStaticFunInInlineClassCompanion.kt") + public void testJvmStaticFunInInlineClassCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmStaticFunInInlineClassCompanionGeneric.kt") + public void testJvmStaticFunInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanion.kt") + public void testJvmStaticPropertyAccessorInInlineClassCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt") + public void testJvmStaticPropertyAccessorInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmStaticVarInInlineClassCompanion.kt") + public void testJvmStaticVarInInlineClassCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt"); + } + + @Test + @TestMetadata("jvmStaticVarInInlineClassCompanionGeneric.kt") + public void testJvmStaticVarInInlineClassCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kclassInAnnotation.kt") + public void testKclassInAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kclassInAnnotationGeneric.kt") + public void testKclassInAnnotationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt25246.kt") + public void testKt25246() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25246.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt25750.kt") + public void testKt25750() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25750.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt25750Generic.kt") + public void testKt25750Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt25771.kt") + public void testKt25771() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25771.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt26103.kt") + public void testKt26103() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt26103.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt26103_contravariantUnderlyingType.kt") + public void testKt26103_contravariantUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt26103_contravariantUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt26103_covariantUnderlyingType.kt") + public void testKt26103_covariantUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt26103_covariantUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt26103_original.kt") + public void testKt26103_original() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt26103_original.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096.kt") + public void testKt27096() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096Generic.kt") + public void testKt27096Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_enum.kt") + public void testKt27096_enum() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_enumGeneric.kt") + public void testKt27096_enumGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_functional.kt") + public void testKt27096_functional() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_functionalGeneric.kt") + public void testKt27096_functionalGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_innerClass.kt") + public void testKt27096_innerClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_innerClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_nullablePrimitive.kt") + public void testKt27096_nullablePrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_nullablePrimitiveGeneric.kt") + public void testKt27096_nullablePrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_nullablePrimitiveGeneric2.kt") + public void testKt27096_nullablePrimitiveGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_nullableReference.kt") + public void testKt27096_nullableReference() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_nullableReferenceGeneric.kt") + public void testKt27096_nullableReferenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_nullableReferenceGeneric2.kt") + public void testKt27096_nullableReferenceGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_primitive.kt") + public void testKt27096_primitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_primitiveGeneric.kt") + public void testKt27096_primitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_reference.kt") + public void testKt27096_reference() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27096_referenceGeneric.kt") + public void testKt27096_referenceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27113.kt") + public void testKt27113() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27113a.kt") + public void testKt27113a() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27113aGeneric.kt") + public void testKt27113aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27132.kt") + public void testKt27132() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27132.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27132Generic.kt") + public void testKt27132Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27140.kt") + public void testKt27140() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27140.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27140Generic.kt") + public void testKt27140Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27705.kt") + public void testKt27705() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27705.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27705Generic.kt") + public void testKt27705Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27706.kt") + public void testKt27706() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27706Generic.kt") + public void testKt27706Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt28405.kt") + public void testKt28405() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt28405.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt28585.kt") + public void testKt28585() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt28585.kt"); + } + + @Test + @TestMetadata("kt28879.kt") + public void testKt28879() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt28879.kt"); + } + + @Test + @TestMetadata("kt28920_javaObjectType.kt") + public void testKt28920_javaObjectType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt28920_javaObjectType.kt"); + } + + @Test + @TestMetadata("kt28920_javaPrimitiveType.kt") + public void testKt28920_javaPrimitiveType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt"); + } + + @Test + @TestMetadata("kt31994.kt") + public void testKt31994() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt"); + } + + @Test + @TestMetadata("kt32793.kt") + public void testKt32793() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt"); + } + + @Test + @TestMetadata("kt33119.kt") + public void testKt33119() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt33119Generic.kt") + public void testKt33119Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt34268.kt") + public void testKt34268() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt34268.kt"); + } + + @Test + @TestMetadata("kt34902.kt") + public void testKt34902() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt34902.kt"); + } + + @Test + @TestMetadata("kt37998.kt") + public void testKt37998() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt37998Generic.kt") + public void testKt37998Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt38680.kt") + public void testKt38680() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt38680Generic.kt") + public void testKt38680Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt38680a.kt") + public void testKt38680a() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt38680aGeneric.kt") + public void testKt38680aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt38680b.kt") + public void testKt38680b() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt38680bGeneric.kt") + public void testKt38680bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt44141.kt") + public void testKt44141() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44141.kt"); + } + + @Test + @TestMetadata("kt44701_jvmOverloads.kt") + public void testKt44701_jvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt44701_jvmOverloadsGeneric.kt") + public void testKt44701_jvmOverloadsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloadsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt44701_jvmOverloadsGeneric2.kt") + public void testKt44701_jvmOverloadsGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloadsGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt44867.kt") + public void testKt44867() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt"); + } + + @Test + @TestMetadata("kt44978.kt") + public void testKt44978() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt45084.kt") + public void testKt45084() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt45084.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt45084Generic.kt") + public void testKt45084Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt45991.kt") + public void testKt45991() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt46554.kt") + public void testKt46554() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt46554.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt46554Generic.kt") + public void testKt46554Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt47609.kt") + public void testKt47609() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt47609.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt47762.kt") + public void testKt47762() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt47762.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt47762Generic.kt") + public void testKt47762Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt47823.kt") + public void testKt47823() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt47823.kt"); + } + + @Test + @TestMetadata("kt48993.kt") + public void testKt48993() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt48993.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt48993Generic.kt") + public void testKt48993Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt48993Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt50909.kt") + public void testKt50909() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt50909.kt"); + } + + @Test + @TestMetadata("kt50974_resultMultiModule.kt") + public void testKt50974_resultMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt50974_resultMultiModule.kt"); + } + + @Test + @TestMetadata("kt51157.kt") + public void testKt51157() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt"); + } + + @Test + @TestMetadata("kt51254.kt") + public void testKt51254() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt51254.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt51353.kt") + public void testKt51353() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt51353.kt"); + } + + @Test + @TestMetadata("kt51672.kt") + public void testKt51672() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt51672.kt"); + } + + @Test + @TestMetadata("kt52394.kt") + public void testKt52394() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt52394.kt"); + } + + @Test + @TestMetadata("kt52913.kt") + public void testKt52913() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt52913.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt54455.kt") + public void testKt54455() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt54455.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt54536.kt") + public void testKt54536() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt54536.kt"); + } + + @Test + @TestMetadata("kt54603.kt") + public void testKt54603() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt54603.kt"); + } + + @Test + @TestMetadata("kt54656.kt") + public void testKt54656() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt54656.kt"); + } + + @Test + @TestMetadata("kt57242.kt") + public void testKt57242() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt57242.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt57261.kt") + public void testKt57261() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt57261.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt57973.kt") + public void testKt57973() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt57973.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("lateinitInlineClasses.kt") + public void testLateinitInlineClasses() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/lateinitInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledDefaultParameterFunction.kt") + public void testMangledDefaultParameterFunction() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledDefaultParameterFunctionGeneric.kt") + public void testMangledDefaultParameterFunctionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledSuperCalls.kt") + public void testMangledSuperCalls() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledSuperCallsGeneric.kt") + public void testMangledSuperCallsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mapInlineClassesWithSuppressWildcardsMode.kt") + public void testMapInlineClassesWithSuppressWildcardsMode() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mapInlineClassesWithSuppressWildcardsMode.kt"); + } + + @Test + @TestMetadata("mappingOfBoxedFlexibleInlineClassType.kt") + public void testMappingOfBoxedFlexibleInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mappingOfBoxedFlexibleInlineClassTypeGeneric.kt") + public void testMappingOfBoxedFlexibleInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("multifileClass.kt") + public void testMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/multifileClass.kt"); + } + + @Test + @TestMetadata("nestedInlineClass.kt") + public void testNestedInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("nestedInlineClassGeneric.kt") + public void testNestedInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt") + public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt") + public void testNoAssertionsOnInlineClassBasedOnNullableTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("noReturnTypeMangling.kt") + public void testNoReturnTypeMangling() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("noReturnTypeManglingGeneric.kt") + public void testNoReturnTypeManglingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("noReturnTypeManglingJvmName.kt") + public void testNoReturnTypeManglingJvmName() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("noReturnTypeManglingJvmNameGeneric.kt") + public void testNoReturnTypeManglingJvmNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("nonImmediateInlineClassUpperBound.kt") + public void testNonImmediateInlineClassUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nonImmediateInlineClassUpperBound.kt"); + } + + @Test + @TestMetadata("nullableEqeqNonNull.kt") + public void testNullableEqeqNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("nullableEqeqNonNullGeneric.kt") + public void testNullableEqeqNonNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("nullableWrapperEquality.kt") + public void testNullableWrapperEquality() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("nullableWrapperEqualityGeneric.kt") + public void testNullableWrapperEqualityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("nullableWrapperEqualityGeneric2.kt") + public void testNullableWrapperEqualityGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideReturnNothing.kt") + public void testOverrideReturnNothing() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/overrideReturnNothing.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overridingFunCallingPrivateFun.kt") + public void testOverridingFunCallingPrivateFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overridingFunCallingPrivateFunGeneric.kt") + public void testOverridingFunCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("passInlineClassAsVararg.kt") + public void testPassInlineClassAsVararg() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("passInlineClassAsVarargGeneric.kt") + public void testPassInlineClassAsVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("passInlineClassWithSpreadOperatorToVarargs.kt") + public void testPassInlineClassWithSpreadOperatorToVarargs() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("passInlineClassWithSpreadOperatorToVarargsGeneric.kt") + public void testPassInlineClassWithSpreadOperatorToVarargsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("privateConstructorFunInterfaceMultiModule.kt") + public void testPrivateConstructorFunInterfaceMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("privateConstructorFunInterfaceMultiModuleGeneric.kt") + public void testPrivateConstructorFunInterfaceMultiModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("propertyLoweringOrder.kt") + public void testPropertyLoweringOrder() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("propertyLoweringOrderGeneric.kt") + public void testPropertyLoweringOrderGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("referToPropertyInCompanionObjectOfInlineClass.kt") + public void testReferToPropertyInCompanionObjectOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("referToPropertyInCompanionObjectOfInlineClassGeneric.kt") + public void testReferToPropertyInCompanionObjectOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("referToUnderlyingPropertyInsideInlineClass.kt") + public void testReferToUnderlyingPropertyInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("referToUnderlyingPropertyInsideInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("referToUnderlyingPropertyOfInlineClass.kt") + public void testReferToUnderlyingPropertyOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("referToUnderlyingPropertyOfInlineClassGeneric.kt") + public void testReferToUnderlyingPropertyOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("removeInInlineCollectionOfInlineClassAsInt.kt") + public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/removeInInlineCollectionOfInlineClassAsInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("result.kt") + public void testResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/result.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("resultGeneric.kt") + public void testResultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("resultGeneric2.kt") + public void testResultGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("resultInlining.kt") + public void testResultInlining() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultInlining.kt"); + } + + @Test + @TestMetadata("resultRunCatchingOrElse.kt") + public void testResultRunCatchingOrElse() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultRunCatchingOrElse.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("safeAsOfTypeParameterWithInlineClassBound.kt") + public void testSafeAsOfTypeParameterWithInlineClassBound() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("safeAsOfTypeParameterWithInlineClassBoundGeneric.kt") + public void testSafeAsOfTypeParameterWithInlineClassBoundGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("samWrapperDifferentModule.kt") + public void testSamWrapperDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("samWrapperDifferentModuleGeneric.kt") + public void testSamWrapperDifferentModuleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorExpectActual.kt") + public void testSecondaryConstructorExpectActual() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorExpectActual.kt"); + } + + @Test + @TestMetadata("secondaryConstructorVisibilies.kt") + public void testSecondaryConstructorVisibilies() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorVisibilies.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorWithVararg.kt") + public void testSecondaryConstructorWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorWithVarargGeneric.kt") + public void testSecondaryConstructorWithVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorsInsideInlineClass.kt") + public void testSecondaryConstructorsInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt") + public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt") + public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorsWithBody.kt") + public void testSecondaryConstructorsWithBody() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsWithBody.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("simpleSecondaryConstructor.kt") + public void testSimpleSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("simpleSecondaryConstructorGeneric.kt") + public void testSimpleSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("smartCastOnThisOfInlineClassType.kt") + public void testSmartCastOnThisOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("smartCastOnThisOfInlineClassTypeGeneric.kt") + public void testSmartCastOnThisOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("stringPlus.kt") + public void testStringPlus() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/stringPlus.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("stringPlusGeneric.kt") + public void testStringPlusGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("toStringCallingPrivateFun.kt") + public void testToStringCallingPrivateFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("toStringCallingPrivateFunGeneric.kt") + public void testToStringCallingPrivateFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("toStringOfUnboxedNullable.kt") + public void testToStringOfUnboxedNullable() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("toStringOfUnboxedNullableGeneric.kt") + public void testToStringOfUnboxedNullableGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("typeChecksForInlineClasses.kt") + public void testTypeChecksForInlineClasses() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("typeChecksForInlineClassesGeneric.kt") + public void testTypeChecksForInlineClassesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("UIntArraySortExample.kt") + public void testUIntArraySortExample() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("UIntArraySortExampleGeneric.kt") + public void testUIntArraySortExampleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("UIntSafeAsInt.kt") + public void testUIntSafeAsInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/UIntSafeAsInt.kt"); + } + + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") + public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI.kt") + public void testUnboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI2.kt") + public void testUnboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingType.kt") + public void testUnboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI.kt") + public void testUnboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI2.kt") + public void testUnboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") + public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt") + public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvoke.kt") + public void testUnboxParameterOfSuspendLambdaBeforeInvoke() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt") + public void testUnboxParameterOfSuspendLambdaBeforeInvokeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClass.kt") + public void testUnboxReceiverOnCallingMethodFromInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClassGeneric.kt") + public void testUnboxReceiverOnCallingMethodFromInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxResultParameterWhenCapturingToCrossinlineLambda.kt") + public void testUnboxResultParameterWhenCapturingToCrossinlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxResultParameterWhenCapturingToCrossinlineLambda.kt"); + } + + @Test + @TestMetadata("unboxValueFromPlatformType.kt") + public void testUnboxValueFromPlatformType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxValueFromPlatformTypeGeneric.kt") + public void testUnboxValueFromPlatformTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt") + public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric.kt") + public void testUnboxValueOfAnyBeforeMethodInvocationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric2.kt") + public void testUnboxValueOfAnyBeforeMethodInvocationGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unboxValueOfNullableInlineClassUsingInlineFunction.kt") + public void testUnboxValueOfNullableInlineClassUsingInlineFunction() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfNullableInlineClassUsingInlineFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("useInlineClassesInsideElvisOperator.kt") + public void testUseInlineClassesInsideElvisOperator() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("useInlineClassesInsideElvisOperatorGeneric.kt") + public void testUseInlineClassesInsideElvisOperatorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("useInlineFunctionInsideInlineClass.kt") + public void testUseInlineFunctionInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("useInlineFunctionInsideInlineClassGeneric.kt") + public void testUseInlineFunctionInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("useOfInlineClassWithGenericMethodFromJava.kt") + public void testUseOfInlineClassWithGenericMethodFromJava() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt"); + } + + @Test + @TestMetadata("useOfInlineClassWithGenericMethodFromJavaGeneric.kt") + public void testUseOfInlineClassWithGenericMethodFromJavaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJavaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("useThisInsideInlineClass.kt") + public void testUseThisInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("useThisInsideInlineClassGeneric.kt") + public void testUseThisInsideInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("whenWithSubject.kt") + public void testWhenWithSubject() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("whenWithSubjectGeneric.kt") + public void testWhenWithSubjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda") + @TestDataPath("$PROJECT_ROOT") + public class BoxReturnValueInLambda { + @Test + public void testAllFilesPresentInBoxReturnValueInLambda() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxAny.kt") + public void testBoxAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxAnyGeneric.kt") + public void testBoxAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxFunLiteralAny.kt") + public void testBoxFunLiteralAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxFunLiteralAnyGeneric.kt") + public void testBoxFunLiteralAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxInt.kt") + public void testBoxInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxIntGeneric.kt") + public void testBoxIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableAny.kt") + public void testBoxNullableAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableAnyGeneric.kt") + public void testBoxNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableAnyGeneric2.kt") + public void testBoxNullableAnyGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableAnyNull.kt") + public void testBoxNullableAnyNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableAnyNullGeneric.kt") + public void testBoxNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableAnyNullGeneric2.kt") + public void testBoxNullableAnyNullGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableInt.kt") + public void testBoxNullableInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableIntGeneric.kt") + public void testBoxNullableIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableIntGeneric2.kt") + public void testBoxNullableIntGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableIntNull.kt") + public void testBoxNullableIntNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableIntNullGeneric.kt") + public void testBoxNullableIntNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableIntNullGeneric2.kt") + public void testBoxNullableIntNullGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableString.kt") + public void testBoxNullableString() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableStringGeneric.kt") + public void testBoxNullableStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableStringGeneric2.kt") + public void testBoxNullableStringGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableStringNull.kt") + public void testBoxNullableStringNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableStringNullGeneric.kt") + public void testBoxNullableStringNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxNullableStringNullGeneric2.kt") + public void testBoxNullableStringNullGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxString.kt") + public void testBoxString() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxStringGeneric.kt") + public void testBoxStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27586_1.kt") + public void testKt27586_1() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/kt27586_1.kt"); + } + + @Test + @TestMetadata("kt27586_2.kt") + public void testKt27586_2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/kt27586_2.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride") + @TestDataPath("$PROJECT_ROOT") + public class BoxReturnValueOnOverride { + @Test + public void testAllFilesPresentInBoxReturnValueOnOverride() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxReturnValueInDefaultMethod.kt") + public void testBoxReturnValueInDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boxReturnValueInDefaultMethodGenericInt.kt") + public void testBoxReturnValueInDefaultMethodGenericInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideChainErasedToAny.kt") + public void testCovariantOverrideChainErasedToAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideChainErasedToAnyGeneric.kt") + public void testCovariantOverrideChainErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideChainErasedToNullableAny.kt") + public void testCovariantOverrideChainErasedToNullableAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric.kt") + public void testCovariantOverrideChainErasedToNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric2.kt") + public void testCovariantOverrideChainErasedToNullableAnyGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideErasedToAny.kt") + public void testCovariantOverrideErasedToAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideErasedToAnyGeneric.kt") + public void testCovariantOverrideErasedToAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideErasedToInterface.kt") + public void testCovariantOverrideErasedToInterface() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideErasedToInterfaceGeneric.kt") + public void testCovariantOverrideErasedToInterfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideErasedToPrimitive.kt") + public void testCovariantOverrideErasedToPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideErasedToPrimitiveGeneric.kt") + public void testCovariantOverrideErasedToPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideListVsMutableList.kt") + public void testCovariantOverrideListVsMutableList() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideListVsMutableListGeneric.kt") + public void testCovariantOverrideListVsMutableListGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideUnrelatedInterfaces.kt") + public void testCovariantOverrideUnrelatedInterfaces() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("covariantOverrideUnrelatedInterfacesGeneric.kt") + public void testCovariantOverrideUnrelatedInterfacesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericOverride.kt") + public void testGenericOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericOverrideGeneric.kt") + public void testGenericOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericOverrideSpecialized.kt") + public void testGenericOverrideSpecialized() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericOverrideSpecializedGeneric.kt") + public void testGenericOverrideSpecializedGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassInOverriddenReturnTypes.kt") + public void testInlineClassInOverriddenReturnTypes() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassInOverriddenReturnTypesGeneric.kt") + public void testInlineClassInOverriddenReturnTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt28483.kt") + public void testKt28483() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt28483Generic.kt") + public void testKt28483Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt28483Generic2.kt") + public void testKt28483Generic2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt31585.kt") + public void testKt31585() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt31585Generic.kt") + public void testKt31585Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt35234.kt") + public void testKt35234() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt35234Generic.kt") + public void testKt35234Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt35234a.kt") + public void testKt35234a() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideGenericWithInlineClass.kt") + public void testOverrideGenericWithInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideGenericWithInlineClassGeneric.kt") + public void testOverrideGenericWithInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG2.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG2.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullAny.kt") + public void testOverrideNullableInlineClassWithNonNullAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAny.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric2.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNull.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric2.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("relatedReturnTypes1a.kt") + public void testRelatedReturnTypes1a() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("relatedReturnTypes1aGeneric.kt") + public void testRelatedReturnTypes1aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("relatedReturnTypes1b.kt") + public void testRelatedReturnTypes1b() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("relatedReturnTypes1bGeneric.kt") + public void testRelatedReturnTypes1bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("relatedReturnTypes2a.kt") + public void testRelatedReturnTypes2a() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("relatedReturnTypes2aGeneric.kt") + public void testRelatedReturnTypes2aGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("relatedReturnTypes2b.kt") + public void testRelatedReturnTypes2b() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("relatedReturnTypes2bGeneric.kt") + public void testRelatedReturnTypes2bGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("uncastInlineClassToAnyAndBack.kt") + public void testUncastInlineClassToAnyAndBack() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBack.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("uncastInlineClassToAnyAndBackGeneric.kt") + public void testUncastInlineClassToAnyAndBackGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unrelatedGenerics.kt") + public void testUnrelatedGenerics() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("unrelatedGenericsGeneric.kt") + public void testUnrelatedGenericsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences") + @TestDataPath("$PROJECT_ROOT") + public class CallableReferences { + @Test + public void testAllFilesPresentInCallableReferences() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boundInlineClassExtensionFun.kt") + public void testBoundInlineClassExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundInlineClassExtensionFunGeneric.kt") + public void testBoundInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundInlineClassExtensionVal.kt") + public void testBoundInlineClassExtensionVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundInlineClassExtensionValGeneric.kt") + public void testBoundInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundInlineClassMemberFun.kt") + public void testBoundInlineClassMemberFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundInlineClassMemberFunGeneric.kt") + public void testBoundInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundInlineClassMemberVal.kt") + public void testBoundInlineClassMemberVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundInlineClassMemberValGeneric.kt") + public void testBoundInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundInlineClassPrimaryVal.kt") + public void testBoundInlineClassPrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("boundInlineClassPrimaryValGeneric.kt") + public void testBoundInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("constructorWithInlineClassParameters.kt") + public void testConstructorWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("constructorWithInlineClassParametersGeneric.kt") + public void testConstructorWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsHashCodeToString.kt") + public void testEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("equalsHashCodeToStringGeneric.kt") + public void testEqualsHashCodeToStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("funWithInlineClassParameters.kt") + public void testFunWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("funWithInlineClassParametersGeneric.kt") + public void testFunWithInlineClassParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassExtensionFun.kt") + public void testInlineClassExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassExtensionFunGeneric.kt") + public void testInlineClassExtensionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassExtensionVal.kt") + public void testInlineClassExtensionVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassExtensionValGeneric.kt") + public void testInlineClassExtensionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassInternalPrimaryVal.kt") + public void testInlineClassInternalPrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassInternalPrimaryValGeneric.kt") + public void testInlineClassInternalPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassMemberFun.kt") + public void testInlineClassMemberFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassMemberFunGeneric.kt") + public void testInlineClassMemberFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassMemberVal.kt") + public void testInlineClassMemberVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassMemberValGeneric.kt") + public void testInlineClassMemberValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPrimaryConstructor.kt") + public void testInlineClassPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPrimaryConstructorGeneric.kt") + public void testInlineClassPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPrimaryVal.kt") + public void testInlineClassPrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPrimaryValGeneric.kt") + public void testInlineClassPrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPrivatePrimaryVal.kt") + public void testInlineClassPrivatePrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPrivatePrimaryValGeneric.kt") + public void testInlineClassPrivatePrimaryValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassTypeBoundMemberVar.kt") + public void testInlineClassTypeBoundMemberVar() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassTypeBoundMemberVarGeneric.kt") + public void testInlineClassTypeBoundMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassTypeMemberVar.kt") + public void testInlineClassTypeMemberVar() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassTypeMemberVarGeneric.kt") + public void testInlineClassTypeMemberVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassTypeTopLevelVar.kt") + public void testInlineClassTypeTopLevelVar() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassTypeTopLevelVarGeneric.kt") + public void testInlineClassTypeTopLevelVarGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt37986.kt") + public void testKt37986() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt37986Generic.kt") + public void testKt37986Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences/let") + @TestDataPath("$PROJECT_ROOT") + public class Let { + @Test + public void testAllFilesPresentInLet() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/callableReferences/let"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("any.kt") + public void testAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyN.kt") + public void testAnyN() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyNGeneric2.kt") + public void testAnyNGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("int.kt") + public void testInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("intGeneric.kt") + public void testIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("intN.kt") + public void testIntN() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("intNGeneric.kt") + public void testIntNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("intNGeneric2.kt") + public void testIntNGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("null.kt") + public void testNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("nullGeneric.kt") + public void testNullGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("result.kt") + public void testResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/result.kt"); + } + + @Test + @TestMetadata("string.kt") + public void testString() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("stringN.kt") + public void testStringN() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("stringNGeneric.kt") + public void testStringNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("stringNGeneric2.kt") + public void testStringNGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors") + @TestDataPath("$PROJECT_ROOT") + public class ContextsAndAccessors { + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethod.kt") + public void testAccessPrivateInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethod2.kt") + public void testAccessPrivateInlineClassCompanionMethod2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethod2Generic.kt") + public void testAccessPrivateInlineClassCompanionMethod2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromCompanion.kt") + public void testAccessPrivateInlineClassConstructorFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromLambda.kt") + public void testAccessPrivateInlineClassConstructorFromLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassConstructorFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassConstructorFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") + public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2Generic.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromCompanionGeneric.kt") + public void testAccessPrivateInlineClassMethodFromCompanionGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambda.kt") + public void testAccessPrivateInlineClassMethodFromLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambda2.kt") + public void testAccessPrivateInlineClassMethodFromLambda2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambda2Generic.kt") + public void testAccessPrivateInlineClassMethodFromLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateInlineClassMethodFromLambdaGeneric.kt") + public void testAccessPrivateInlineClassMethodFromLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt") + public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("accessPrivateStaticInlineClassCompanionMethodGeneric.kt") + public void testAccessPrivateStaticInlineClassCompanionMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + public void testAllFilesPresentInContextsAndAccessors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("captureInlineClassInstanceInLambda.kt") + public void testCaptureInlineClassInstanceInLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("captureInlineClassInstanceInLambda2.kt") + public void testCaptureInlineClassInstanceInLambda2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("captureInlineClassInstanceInLambda2Generic.kt") + public void testCaptureInlineClassInstanceInLambda2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("captureInlineClassInstanceInLambdaGeneric.kt") + public void testCaptureInlineClassInstanceInLambdaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("captureInlineClassInstanceInObject.kt") + public void testCaptureInlineClassInstanceInObject() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("captureInlineClassInstanceInObjectGeneric.kt") + public void testCaptureInlineClassInstanceInObjectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineLambdaInInlineClassFun.kt") + public void testInlineLambdaInInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineLambdaInInlineClassFunGeneric.kt") + public void testInlineLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt26858.kt") + public void testKt26858() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt26858Generic.kt") + public void testKt26858Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27513.kt") + public void testKt27513() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27513Generic.kt") + public void testKt27513Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt30780.kt") + public void testKt30780() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt30780Generic.kt") + public void testKt30780Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("lambdaInInlineClassFun.kt") + public void testLambdaInInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("lambdaInInlineClassFunGeneric.kt") + public void testLambdaInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("objectInInlineClassFun.kt") + public void testObjectInInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("objectInInlineClassFunGeneric.kt") + public void testObjectInInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("toPrivateCompanionFun.kt") + public void testToPrivateCompanionFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("toPrivateCompanionFunGeneric.kt") + public void testToPrivateCompanionFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("toPrivateCompanionVal.kt") + public void testToPrivateCompanionVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("toPrivateCompanionValGeneric.kt") + public void testToPrivateCompanionValGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/defaultParameterValues") + @TestDataPath("$PROJECT_ROOT") + public class DefaultParameterValues { + @Test + public void testAllFilesPresentInDefaultParameterValues() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultConstructorParameterValuesOfInlineClassType.kt") + public void testDefaultConstructorParameterValuesOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultConstructorParameterValuesOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultConstructorParameterValuesOfInlineClassTypeGeneric.kt") + public void testDefaultConstructorParameterValuesOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultConstructorParameterValuesOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultInterfaceFunParameterValuesOfInlineClassType.kt") + public void testDefaultInterfaceFunParameterValuesOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultInterfaceFunParameterValuesOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultInterfaceFunParameterValuesOfInlineClassTypeGeneric.kt") + public void testDefaultInterfaceFunParameterValuesOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultInterfaceFunParameterValuesOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultParameterValuesOfInlineClassType.kt") + public void testDefaultParameterValuesOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultParameterValuesOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultParameterValuesOfInlineClassTypeBoxing.kt") + public void testDefaultParameterValuesOfInlineClassTypeBoxing() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultParameterValuesOfInlineClassTypeBoxing.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultParameterValuesOfInlineClassTypeBoxingGeneric.kt") + public void testDefaultParameterValuesOfInlineClassTypeBoxingGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultParameterValuesOfInlineClassTypeBoxingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultParameterValuesOfInlineClassTypeGeneric.kt") + public void testDefaultParameterValuesOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultParameterValuesOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultValueOfInlineClassTypeInInlineFun.kt") + public void testDefaultValueOfInlineClassTypeInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultValueOfInlineClassTypeInInlineFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultValueOfInlineClassTypeInInlineFunGeneric.kt") + public void testDefaultValueOfInlineClassTypeInInlineFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultValueOfInlineClassTypeInInlineFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultValueOfInlineClassTypeInInlineFunInInlineClass.kt") + public void testDefaultValueOfInlineClassTypeInInlineFunInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultValueOfInlineClassTypeInInlineFunInInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultValueOfInlineClassTypeInInlineFunInInlineClassGeneric.kt") + public void testDefaultValueOfInlineClassTypeInInlineFunInInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultValueOfInlineClassTypeInInlineFunInInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassFun.kt") + public void testInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassFunGeneric.kt") + public void testInlineClassFunGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPrimaryConstructor.kt") + public void testInlineClassPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassPrimaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPrimaryConstructorGeneric.kt") + public void testInlineClassPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPrimaryConstructorWithInlineClassValue.kt") + public void testInlineClassPrimaryConstructorWithInlineClassValue() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassPrimaryConstructorWithInlineClassValue.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassPrimaryConstructorWithInlineClassValueGeneric.kt") + public void testInlineClassPrimaryConstructorWithInlineClassValueGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassPrimaryConstructorWithInlineClassValueGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassSecondaryConstructor.kt") + public void testInlineClassSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineClassSecondaryConstructorGeneric.kt") + public void testInlineClassSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt26554.kt") + public void testKt26554() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/kt26554.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27416.kt") + public void testKt27416() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/kt27416.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27416Generic.kt") + public void testKt27416Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/kt27416Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter") + @TestDataPath("$PROJECT_ROOT") + public class DefaultWithDefaultParameter { + @Test + @TestMetadata("all.kt") + public void testAll() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + public void testAllFilesPresentInDefaultWithDefaultParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("allGeneric.kt") + public void testAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("all-compatibility.kt") + public void testAll_compatibility() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("all-compatibilityGeneric.kt") + public void testAll_compatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("default.kt") + public void testDefault() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/defaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter") + @TestDataPath("$PROJECT_ROOT") + public class OverrideFunctionWithDefaultParameter { + @Test + @TestMetadata("all.kt") + public void testAll() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + public void testAllFilesPresentInOverrideFunctionWithDefaultParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("allGeneric.kt") + public void testAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("all-compatibility.kt") + public void testAll_compatibility() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("all-compatibilityGeneric.kt") + public void testAll_compatibilityGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("default.kt") + public void testDefault() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/defaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType") + @TestDataPath("$PROJECT_ROOT") + public class DelegationByUnderlyingType { + @Test + public void testAllFilesPresentInDelegationByUnderlyingType() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("default.kt") + public void testDefault() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/default.kt"); + } + + @Test + @TestMetadata("defaultArgument.kt") + public void testDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt"); + } + + @Test + @TestMetadata("defaultArgumentGeneric.kt") + public void testDefaultArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt"); + } + + @Test + @TestMetadata("defaultGeneric.kt") + public void testDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simple.kt"); + } + + @Test + @TestMetadata("simpleGeneric.kt") + public void testSimpleGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/funInterface") + @TestDataPath("$PROJECT_ROOT") + public class FunInterface { + @Test + public void testAllFilesPresentInFunInterface() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("argumentIC.kt") + public void testArgumentIC() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("argumentICGeneric.kt") + public void testArgumentICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("argumentICGeneric2.kt") + public void testArgumentICGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("argumentResult.kt") + public void testArgumentResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentResult.kt"); + } + + @Test + @TestMetadata("javaSam.kt") + public void testJavaSam() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/javaSam.kt"); + } + + @Test + @TestMetadata("javaSamReturnResult.kt") + public void testJavaSamReturnResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/javaSamReturnResult.kt"); + } + + @Test + @TestMetadata("kt51121.kt") + public void testKt51121() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/kt51121.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt51121_2.kt") + public void testKt51121_2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/kt51121_2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledSamWrappers.kt") + public void testMangledSamWrappers() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledSamWrappersGeneric.kt") + public void testMangledSamWrappersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("returnIC.kt") + public void testReturnIC() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("returnICGeneric.kt") + public void testReturnICGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("returnICGeneric2.kt") + public void testReturnICGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("returnResult.kt") + public void testReturnResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnResult.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/functionNameMangling") + @TestDataPath("$PROJECT_ROOT") + public class FunctionNameMangling { + @Test + public void testAllFilesPresentInFunctionNameMangling() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/functionNameMangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectInFunctionWithMangledName.kt") + public void testAnonymousObjectInFunctionWithMangledName() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anonymousObjectInFunctionWithMangledNameGeneric.kt") + public void testAnonymousObjectInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("extensionFunctionsDoNotClash.kt") + public void testExtensionFunctionsDoNotClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("extensionFunctionsDoNotClashGeneric.kt") + public void testExtensionFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("functionsWithDifferentNullabilityDoNotClash.kt") + public void testFunctionsWithDifferentNullabilityDoNotClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("functionsWithDifferentNullabilityDoNotClashGeneric.kt") + public void testFunctionsWithDifferentNullabilityDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericFunctionsDoNotClash.kt") + public void testGenericFunctionsDoNotClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericFunctionsDoNotClashGeneric.kt") + public void testGenericFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericSignatureOfFunctionWithMangledName.kt") + public void testGenericSignatureOfFunctionWithMangledName() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericSignatureOfFunctionWithMangledNameGeneric.kt") + public void testGenericSignatureOfFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("localClassInFunctionWithMangledName.kt") + public void testLocalClassInFunctionWithMangledName() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("localClassInFunctionWithMangledNameGeneric.kt") + public void testLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledFunctionsCanBeOverridden.kt") + public void testMangledFunctionsCanBeOverridden() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledFunctionsCanBeOverriddenGeneric.kt") + public void testMangledFunctionsCanBeOverriddenGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledFunctionsDoNotClash.kt") + public void testMangledFunctionsDoNotClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledFunctionsDoNotClashGeneric.kt") + public void testMangledFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledFunctionsPresentInStackTrace.kt") + public void testMangledFunctionsPresentInStackTrace() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mangledFunctionsPresentInStackTraceGeneric.kt") + public void testMangledFunctionsPresentInStackTraceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mixedSignatureFunctionsDoNotClash.kt") + public void testMixedSignatureFunctionsDoNotClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("mixedSignatureFunctionsDoNotClashGeneric.kt") + public void testMixedSignatureFunctionsDoNotClashGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overridingMethodInGenericClass.kt") + public void testOverridingMethodInGenericClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overridingMethodInGenericClass2.kt") + public void testOverridingMethodInGenericClass2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overridingMethodInGenericClass2Generic.kt") + public void testOverridingMethodInGenericClass2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overridingMethodInGenericClassGeneric.kt") + public void testOverridingMethodInGenericClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") + public void testPropertySetterWithInlineClassTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("propertySetterWithInlineClassTypeArgumentGeneric.kt") + public void testPropertySetterWithInlineClassTypeArgumentGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("reflectionForFunctionWithMangledName.kt") + public void testReflectionForFunctionWithMangledName() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("reflectionForFunctionWithMangledNameGeneric.kt") + public void testReflectionForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("reflectionForLocalClassInFunctionWithMangledName.kt") + public void testReflectionForLocalClassInFunctionWithMangledName() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("reflectionForLocalClassInFunctionWithMangledNameGeneric.kt") + public void testReflectionForLocalClassInFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("reflectionForPropertyOfInlineClassType.kt") + public void testReflectionForPropertyOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("reflectionForPropertyOfInlineClassTypeGeneric.kt") + public void testReflectionForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("syntheticAccessorForFunctionWithMangledName.kt") + public void testSyntheticAccessorForFunctionWithMangledName() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("syntheticAccessorForFunctionWithMangledNameGeneric.kt") + public void testSyntheticAccessorForFunctionWithMangledNameGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassType.kt") + public void testSyntheticAccessorsForPropertyOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt") + public void testSyntheticAccessorsForPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue") + @TestDataPath("$PROJECT_ROOT") + public class GenericUnderlyingValue { + @Test + public void testAllFilesPresentInGenericUnderlyingValue() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("array.kt") + public void testArray() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/array.kt"); + } + + @Test + @TestMetadata("arrayIC.kt") + public void testArrayIC() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/arrayIC.kt"); + } + + @Test + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/primitive.kt"); + } + + @Test + @TestMetadata("recursive.kt") + public void testRecursive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/recursive.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/simple.kt"); + } + + @Test + @TestMetadata("simple2.kt") + public void testSimple2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/simple2.kt"); + } + + @Test + @TestMetadata("upperBound.kt") + public void testUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/upperBound.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/hiddenConstructor") + @TestDataPath("$PROJECT_ROOT") + public class HiddenConstructor { + @Test + public void testAllFilesPresentInHiddenConstructor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/hiddenConstructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorReferencedFromOtherFile1.kt") + public void testConstructorReferencedFromOtherFile1() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("constructorReferencedFromOtherFile1Generic.kt") + public void testConstructorReferencedFromOtherFile1Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("constructorReferencedFromOtherFile2.kt") + public void testConstructorReferencedFromOtherFile2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("constructorReferencedFromOtherFile2Generic.kt") + public void testConstructorReferencedFromOtherFile2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("constructorWithDefaultParameters.kt") + public void testConstructorWithDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("constructorWithDefaultParametersGeneric.kt") + public void testConstructorWithDefaultParametersGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegatingSuperConstructorCall.kt") + public void testDelegatingSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegatingSuperConstructorCallGeneric.kt") + public void testDelegatingSuperConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructor.kt") + public void testDelegatingSuperConstructorCallInSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt") + public void testDelegatingSuperConstructorCallInSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegatingThisConstructorCall.kt") + public void testDelegatingThisConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegatingThisConstructorCallGeneric.kt") + public void testDelegatingThisConstructorCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("enumClassConstructor.kt") + public void testEnumClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("enumClassConstructorGeneric.kt") + public void testEnumClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("innerClassConstructorGeneric.kt") + public void testInnerClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt28855.kt") + public void testKt28855() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/kt28855.kt"); + } + + @Test + @TestMetadata("primaryConstructor.kt") + public void testPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("primaryConstructorGeneric.kt") + public void testPrimaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("privateConstructor.kt") + public void testPrivateConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("privateConstructorGeneric.kt") + public void testPrivateConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("sealedClassConstructor.kt") + public void testSealedClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("sealedClassConstructorGeneric.kt") + public void testSealedClassConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorGeneric.kt") + public void testSecondaryConstructorGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/inlineClassCollection") + @TestDataPath("$PROJECT_ROOT") + public class InlineClassCollection { + @Test + public void testAllFilesPresentInInlineClassCollection() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/inlineClassCollection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineCollectionOfInlineClass.kt") + public void testInlineCollectionOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineCollectionOfInlineClassGeneric.kt") + public void testInlineCollectionOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineListOfInlineClass.kt") + public void testInlineListOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineListOfInlineClassGeneric.kt") + public void testInlineListOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineMapOfInlineClass.kt") + public void testInlineMapOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineMapOfInlineClassGeneric.kt") + public void testInlineMapOfInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("inlineMutableCollectionBulkAdd.kt") + public void testInlineMutableCollectionBulkAdd() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMutableCollectionBulkAdd.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/interfaceDelegation") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceDelegation { + @Test + public void testAllFilesPresentInInterfaceDelegation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/interfaceDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("interfaceImplementationByDelegation.kt") + public void testInterfaceImplementationByDelegation() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("interfaceImplementationByDelegationGeneric.kt") + public void testInterfaceImplementationByDelegationGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt38337.kt") + public void testKt38337() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt38337Generic.kt") + public void testKt38337Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt") + public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberExtValDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("memberExtVarDelegationWithInlineClassParameterTypes.kt") + public void testMemberExtVarDelegationWithInlineClassParameterTypes() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("memberFunDelegatedToInlineClassInt.kt") + public void testMemberFunDelegatedToInlineClassInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("memberFunDelegatedToInlineClassIntGeneric.kt") + public void testMemberFunDelegatedToInlineClassIntGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("memberFunDelegatedToInlineClassLong.kt") + public void testMemberFunDelegatedToInlineClassLong() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("memberFunDelegatedToInlineClassLongGeneric.kt") + public void testMemberFunDelegatedToInlineClassLongGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt") + public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypes() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("memberFunDelegationWithInlineClassParameterTypes.kt") + public void testMemberFunDelegationWithInlineClassParameterTypes() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("memberFunDelegationWithInlineClassParameterTypesGeneric.kt") + public void testMemberFunDelegationWithInlineClassParameterTypesGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceMethodCalls { + @Test + public void testAllFilesPresentInInterfaceMethodCalls() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride.kt") + public void testComplexGenericMethodWithInlineClassOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride2.kt") + public void testComplexGenericMethodWithInlineClassOverride2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride2Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride2Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride3.kt") + public void testComplexGenericMethodWithInlineClassOverride3() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverride3Generic.kt") + public void testComplexGenericMethodWithInlineClassOverride3Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("complexGenericMethodWithInlineClassOverrideGeneric.kt") + public void testComplexGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultInterfaceExtensionFunCall.kt") + public void testDefaultInterfaceExtensionFunCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultInterfaceExtensionFunCallGeneric.kt") + public void testDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultInterfaceMethodCall.kt") + public void testDefaultInterfaceMethodCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("defaultInterfaceMethodCallGeneric.kt") + public void testDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericDefaultInterfaceExtensionFunCall.kt") + public void testGenericDefaultInterfaceExtensionFunCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericDefaultInterfaceExtensionFunCallGeneric.kt") + public void testGenericDefaultInterfaceExtensionFunCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericDefaultInterfaceMethodCall.kt") + public void testGenericDefaultInterfaceMethodCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericDefaultInterfaceMethodCallGeneric.kt") + public void testGenericDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericInterfaceMethodCall.kt") + public void testGenericInterfaceMethodCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericInterfaceMethodCallGeneric.kt") + public void testGenericInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericMethodWithInlineClassOverride.kt") + public void testGenericMethodWithInlineClassOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("genericMethodWithInlineClassOverrideGeneric.kt") + public void testGenericMethodWithInlineClassOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("interfaceSuperCall.kt") + public void testInterfaceSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("interfaceSuperCallGeneric.kt") + public void testInterfaceSuperCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overriddenDefaultInterfaceMethodCall.kt") + public void testOverriddenDefaultInterfaceMethodCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overriddenDefaultInterfaceMethodCallGeneric.kt") + public void testOverriddenDefaultInterfaceMethodCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/javaInterop") + @TestDataPath("$PROJECT_ROOT") + public class JavaInterop { + @Test + public void testAllFilesPresentInJavaInterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineClasInSignature.kt") + public void testInlineClasInSignature() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/inlineClasInSignature.kt"); + } + + @Test + @TestMetadata("inlineClasInSignatureNonNull.kt") + public void testInlineClasInSignatureNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/inlineClasInSignatureNonNull.kt"); + } + + @Test + @TestMetadata("inlineClasInSignatureNullable.kt") + public void testInlineClasInSignatureNullable() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/inlineClasInSignatureNullable.kt"); + } + + @Test + @TestMetadata("kt55945.kt") + public void testKt55945() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/kt55945.kt"); + } + + @Test + @TestMetadata("methodWithInlineClassDeclaredInJava.kt") + public void testMethodWithInlineClassDeclaredInJava() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/methodWithInlineClassDeclaredInJava.kt"); + } + + @Test + @TestMetadata("methodWithInlineClassDeclaredInJavaOverriddenInKotlin.kt") + public void testMethodWithInlineClassDeclaredInJavaOverriddenInKotlin() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/methodWithInlineClassDeclaredInJavaOverriddenInKotlin.kt"); + } + + @Test + @TestMetadata("methodWithInlineClassInheritedBothFromJavaAndKotlin.kt") + public void testMethodWithInlineClassInheritedBothFromJavaAndKotlin() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/methodWithInlineClassInheritedBothFromJavaAndKotlin.kt"); + } + + @Test + @TestMetadata("methodWithInlineClassInheritedInJavaOverriddenInKotlin.kt") + public void testMethodWithInlineClassInheritedInJavaOverriddenInKotlin() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/methodWithInlineClassInheritedInJavaOverriddenInKotlin.kt"); + } + + @Test + @TestMetadata("oldFunctionMangling.kt") + public void testOldFunctionMangling() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/oldFunctionMangling.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8DefaultInterfaceMethods { + @Test + public void testAllFilesPresentInJvm8DefaultInterfaceMethods() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineClassInheritingDefaultMethod.kt") + public void testInlineClassInheritingDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethod.kt"); + } + + @Test + @TestMetadata("inlineClassInheritingDefaultMethodAll.kt") + public void testInlineClassInheritingDefaultMethodAll() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAll.kt"); + } + + @Test + @TestMetadata("inlineClassInheritingDefaultMethodAllGeneric.kt") + public void testInlineClassInheritingDefaultMethodAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAllGeneric.kt"); + } + + @Test + @TestMetadata("inlineClassInheritingDefaultMethodGeneric.kt") + public void testInlineClassInheritingDefaultMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodGeneric.kt"); + } + + @Test + @TestMetadata("javaDefaultMethod.kt") + public void testJavaDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("javaDefaultMethodGeneric.kt") + public void testJavaDefaultMethodGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("javaDefaultMethodOverriddenByKotlin.kt") + public void testJavaDefaultMethodOverriddenByKotlin() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlin.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("javaDefaultMethodOverriddenByKotlinGeneric.kt") + public void testJavaDefaultMethodOverriddenByKotlinGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlinGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultAll.kt") + public void testJvmDefaultAll() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAll.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultAllGeneric.kt") + public void testJvmDefaultAllGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultAllPrimaryProperty.kt") + public void testJvmDefaultAllPrimaryProperty() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultAllPrimaryPropertyGeneric.kt") + public void testJvmDefaultAllPrimaryPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultAllProperty.kt") + public void testJvmDefaultAllProperty() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultAllPropertyGeneric.kt") + public void testJvmDefaultAllPropertyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultGeneric.kt") + public void testJvmDefaultGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultGenericGeneric.kt") + public void testJvmDefaultGenericGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGenericGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultSafeCall.kt") + public void testJvmDefaultSafeCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultSafeCallGeneric.kt") + public void testJvmDefaultSafeCallGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultSmartCast.kt") + public void testJvmDefaultSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultSmartCastGeneric.kt") + public void testJvmDefaultSmartCastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultSuspend.kt") + public void testJvmDefaultSuspend() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspend.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("jvmDefaultSuspendGeneric.kt") + public void testJvmDefaultSuspendGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspendGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/propertyDelegation") + @TestDataPath("$PROJECT_ROOT") + public class PropertyDelegation { + @Test + public void testAllFilesPresentInPropertyDelegation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/propertyDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("captureLocalVarDelegatedToInlineClass.kt") + public void testCaptureLocalVarDelegatedToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("captureLocalVarDelegatedToInlineClassGeneric.kt") + public void testCaptureLocalVarDelegatedToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateClassVarToInlineClass.kt") + public void testDelegateClassVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateClassVarToInlineClassGeneric.kt") + public void testDelegateClassVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegate.kt") + public void testDelegateClassVarToInlineClassWithProvideDelegate() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegateGeneric.kt") + public void testDelegateClassVarToInlineClassWithProvideDelegateGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateCompanionVarToInlineClass.kt") + public void testDelegateCompanionVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateCompanionVarToInlineClassGeneric.kt") + public void testDelegateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateJvmStaticCompanionVarToInlineClass.kt") + public void testDelegateJvmStaticCompanionVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateJvmStaticCompanionVarToInlineClassGeneric.kt") + public void testDelegateJvmStaticCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateLocalVarToInlineClass.kt") + public void testDelegateLocalVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateLocalVarToInlineClassGeneric.kt") + public void testDelegateLocalVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateObjectVarToInlineClass.kt") + public void testDelegateObjectVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateObjectVarToInlineClassGeneric.kt") + public void testDelegateObjectVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegatePrivateCompanionVarToInlineClass.kt") + public void testDelegatePrivateCompanionVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegatePrivateCompanionVarToInlineClassGeneric.kt") + public void testDelegatePrivateCompanionVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateTopLevelVarToInlineClass.kt") + public void testDelegateTopLevelVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegateTopLevelVarToInlineClassGeneric.kt") + public void testDelegateTopLevelVarToInlineClassGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegatedPropertyOfInlineClassType.kt") + public void testDelegatedPropertyOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("delegatedPropertyOfInlineClassTypeGeneric.kt") + public void testDelegatedPropertyOfInlineClassTypeGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27070.kt") + public void testKt27070() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt27070Generic.kt") + public void testKt27070Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt42933.kt") + public void testKt42933() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("kt42933Generic.kt") + public void testKt42933Generic() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/result") + @TestDataPath("$PROJECT_ROOT") + public class Result { + @Test + public void testAllFilesPresentInResult() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/result"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("directCall1.kt") + public void testDirectCall1() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/result/directCall1.kt"); + } + + @Test + @TestMetadata("directCall2.kt") + public void testDirectCall2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/result/directCall2.kt"); + } + + @Test + @TestMetadata("doubleOverride.kt") + public void testDoubleOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/result/doubleOverride.kt"); + } + + @Test + @TestMetadata("extensionOverride.kt") + public void testExtensionOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/result/extensionOverride.kt"); + } + + @Test + @TestMetadata("inlineMethodOnResult.kt") + public void testInlineMethodOnResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/result/inlineMethodOnResult.kt"); + } + + @Test + @TestMetadata("lambdaTakesResultThroughBridge.kt") + public void testLambdaTakesResultThroughBridge() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/result/lambdaTakesResultThroughBridge.kt"); + } + + @Test + @TestMetadata("returnGenericMultiModule.kt") + public void testReturnGenericMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/result/returnGenericMultiModule.kt"); + } + + @Test + @TestMetadata("returnGenericSingleModule.kt") + public void testReturnGenericSingleModule() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/result/returnGenericSingleModule.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/returnResult") + @TestDataPath("$PROJECT_ROOT") + public class ReturnResult { + @Test + public void testAllFilesPresentInReturnResult() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/returnResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/returnResult/class.kt"); + } + + @Test + @TestMetadata("classAnyOverride.kt") + public void testClassAnyOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/returnResult/classAnyOverride.kt"); + } + + @Test + @TestMetadata("classGenericOverride.kt") + public void testClassGenericOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/returnResult/classGenericOverride.kt"); + } + + @Test + @TestMetadata("classResultOverride.kt") + public void testClassResultOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/returnResult/classResultOverride.kt"); + } + + @Test + @TestMetadata("interface.kt") + public void testInterface() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/returnResult/interface.kt"); + } + + @Test + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/returnResult/topLevel.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter") + @TestDataPath("$PROJECT_ROOT") + public class UnboxGenericParameter { + @Test + public void testAllFilesPresentInUnboxGenericParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface") + @TestDataPath("$PROJECT_ROOT") + public class FunInterface { + @Test + public void testAllFilesPresentInFunInterface() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("any.kt") + public void testAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyN.kt") + public void testAnyN() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyNGeneric2.kt") + public void testAnyNGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("iface.kt") + public void testIface() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/iface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceChild.kt") + public void testIfaceChild() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("nullableResult.kt") + public void testNullableResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/nullableResult.kt"); + } + + @Test + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("result.kt") + public void testResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/result.kt"); + } + + @Test + @TestMetadata("resultAny.kt") + public void testResultAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("string.kt") + public void testString() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("any.kt") + public void testAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyN.kt") + public void testAnyN() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyNGeneric2.kt") + public void testAnyNGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("iface.kt") + public void testIface() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/iface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceChild.kt") + public void testIfaceChild() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("nullableResult.kt") + public void testNullableResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/nullableResult.kt"); + } + + @Test + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("result.kt") + public void testResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/result.kt"); + } + + @Test + @TestMetadata("resultAny.kt") + public void testResultAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("string.kt") + public void testString() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral") + @TestDataPath("$PROJECT_ROOT") + public class ObjectLiteral { + @Test + public void testAllFilesPresentInObjectLiteral() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("any.kt") + public void testAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyGeneric.kt") + public void testAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyN.kt") + public void testAnyN() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyNGeneric.kt") + public void testAnyNGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("anyNGeneric2.kt") + public void testAnyNGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("iface.kt") + public void testIface() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceChild.kt") + public void testIfaceChild() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceChildGeneric.kt") + public void testIfaceChildGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("ifaceGeneric.kt") + public void testIfaceGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("nullableResult.kt") + public void testNullableResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/nullableResult.kt"); + } + + @Test + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("primitiveGeneric.kt") + public void testPrimitiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("result.kt") + public void testResult() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/result.kt"); + } + + @Test + @TestMetadata("resultAny.kt") + public void testResultAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("resultAnyGeneric.kt") + public void testResultAnyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("string.kt") + public void testString() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("stringGeneric.kt") + public void testStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/innerNested") + @TestDataPath("$PROJECT_ROOT") + public class InnerNested { + @Test + public void testAllFilesPresentInInnerNested() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerNested"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("considerPropertyInitValueFromNestedClass.kt") + public void testConsiderPropertyInitValueFromNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/considerPropertyInitValueFromNestedClass.kt"); + } + + @Test + @TestMetadata("createNestedClass.kt") + public void testCreateNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/createNestedClass.kt"); + } + + @Test + @TestMetadata("createdNestedInOuterMember.kt") + public void testCreatedNestedInOuterMember() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/createdNestedInOuterMember.kt"); + } + + @Test + @TestMetadata("extenderNestedClass.kt") + public void testExtenderNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/extenderNestedClass.kt"); + } + + @Test + @TestMetadata("extensionFun.kt") + public void testExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/extensionFun.kt"); + } + + @Test + @TestMetadata("extensionToNested.kt") + public void testExtensionToNested() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/extensionToNested.kt"); + } + + @Test + @TestMetadata("importNestedClass.kt") + public void testImportNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/importNestedClass.kt"); + } + + @Test + @TestMetadata("innerGeneric.kt") + public void testInnerGeneric() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/innerGeneric.kt"); + } + + @Test + @TestMetadata("innerGenericClassFromJava.kt") + public void testInnerGenericClassFromJava() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/innerGenericClassFromJava.kt"); + } + + @Test + @TestMetadata("innerImplicitParameter.kt") + public void testInnerImplicitParameter() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/innerImplicitParameter.kt"); + } + + @Test + @TestMetadata("innerJavaClass.kt") + public void testInnerJavaClass() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/innerJavaClass.kt"); + } + + @Test + @TestMetadata("innerLabeledThis.kt") + public void testInnerLabeledThis() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/innerLabeledThis.kt"); + } + + @Test + @TestMetadata("innerSimple.kt") + public void testInnerSimple() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/innerSimple.kt"); + } + + @Test + @TestMetadata("innerWithDefaultArgument.kt") + public void testInnerWithDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/innerWithDefaultArgument.kt"); + } + + @Test + @TestMetadata("innerWithDefaultInner.kt") + public void testInnerWithDefaultInner() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/innerWithDefaultInner.kt"); + } + + @Test + @TestMetadata("kt3132.kt") + public void testKt3132() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt3132.kt"); + } + + @Test + @TestMetadata("kt3532.kt") + public void testKt3532() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt3532.kt"); + } + + @Test + @TestMetadata("kt3812.kt") + public void testKt3812() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt3812.kt"); + } + + @Test + @TestMetadata("kt3927.kt") + public void testKt3927() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt3927.kt"); + } + + @Test + @TestMetadata("kt4036.kt") + public void testKt4036() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt4036.kt"); + } + + @Test + @TestMetadata("kt46829.kt") + public void testKt46829() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt46829.kt"); + } + + @Test + @TestMetadata("kt5363.kt") + public void testKt5363() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); + } + + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + + @Test + @TestMetadata("kt6804.kt") + public void testKt6804() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt6804.kt"); + } + + @Test + @TestMetadata("nestedClassInObject.kt") + public void testNestedClassInObject() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedClassInObject.kt"); + } + + @Test + @TestMetadata("nestedClassObject.kt") + public void testNestedClassObject() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedClassObject.kt"); + } + + @Test + @TestMetadata("nestedEnumConstant.kt") + public void testNestedEnumConstant() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedEnumConstant.kt"); + } + + @Test + @TestMetadata("nestedGeneric.kt") + public void testNestedGeneric() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedGeneric.kt"); + } + + @Test + @TestMetadata("nestedInPackage.kt") + public void testNestedInPackage() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedInPackage.kt"); + } + + @Test + @TestMetadata("nestedInnerClass.kt") + public void testNestedInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedInnerClass.kt"); + } + + @Test + @TestMetadata("nestedObjects.kt") + public void testNestedObjects() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedObjects.kt"); + } + + @Test + @TestMetadata("nestedSimple.kt") + public void testNestedSimple() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedSimple.kt"); + } + + @Test + @TestMetadata("passingOuterRef.kt") + public void testPassingOuterRef() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/passingOuterRef.kt"); + } + + @Test + @TestMetadata("protectedNestedClass.kt") + public void testProtectedNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/protectedNestedClass.kt"); + } + + @Test + @TestMetadata("protectedNestedClassFromJava.kt") + public void testProtectedNestedClassFromJava() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/protectedNestedClassFromJava.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/innerNested/superConstructorCall") + @TestDataPath("$PROJECT_ROOT") + public class SuperConstructorCall { + @Test + public void testAllFilesPresentInSuperConstructorCall() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerNested/superConstructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deepInnerHierarchy.kt") + public void testDeepInnerHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/deepInnerHierarchy.kt"); + } + + @Test + @TestMetadata("deepLocalHierarchy.kt") + public void testDeepLocalHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/deepLocalHierarchy.kt"); + } + + @Test + @TestMetadata("innerExtendsInnerViaSecondaryConstuctor.kt") + public void testInnerExtendsInnerViaSecondaryConstuctor() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/innerExtendsInnerViaSecondaryConstuctor.kt"); + } + + @Test + @TestMetadata("innerExtendsInnerWithProperOuterCapture.kt") + public void testInnerExtendsInnerWithProperOuterCapture() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/innerExtendsInnerWithProperOuterCapture.kt"); + } + + @Test + @TestMetadata("innerExtendsOuter.kt") + public void testInnerExtendsOuter() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/innerExtendsOuter.kt"); + } + + @Test + @TestMetadata("kt11833_1.kt") + public void testKt11833_1() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/kt11833_1.kt"); + } + + @Test + @TestMetadata("kt11833_2.kt") + public void testKt11833_2() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/kt11833_2.kt"); + } + + @Test + @TestMetadata("localClassOuterDiffersFromInnerOuter.kt") + public void testLocalClassOuterDiffersFromInnerOuter() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/localClassOuterDiffersFromInnerOuter.kt"); + } + + @Test + @TestMetadata("localExtendsInner.kt") + public void testLocalExtendsInner() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/localExtendsInner.kt"); + } + + @Test + @TestMetadata("localExtendsLocalWithClosure.kt") + public void testLocalExtendsLocalWithClosure() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/localExtendsLocalWithClosure.kt"); + } + + @Test + @TestMetadata("localWithClosureExtendsLocalWithClosure.kt") + public void testLocalWithClosureExtendsLocalWithClosure() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/localWithClosureExtendsLocalWithClosure.kt"); + } + + @Test + @TestMetadata("objectExtendsClassDefaultArgument.kt") + public void testObjectExtendsClassDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsClassDefaultArgument.kt"); + } + + @Test + @TestMetadata("objectExtendsClassVararg.kt") + public void testObjectExtendsClassVararg() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsClassVararg.kt"); + } + + @Test + @TestMetadata("objectExtendsInner.kt") + public void testObjectExtendsInner() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInner.kt"); + } + + @Test + @TestMetadata("objectExtendsInnerDefaultArgument.kt") + public void testObjectExtendsInnerDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerDefaultArgument.kt"); + } + + @Test + @TestMetadata("objectExtendsInnerOfLocalVarargAndDefault.kt") + public void testObjectExtendsInnerOfLocalVarargAndDefault() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalVarargAndDefault.kt"); + } + + @Test + @TestMetadata("objectExtendsInnerOfLocalWithCapture.kt") + public void testObjectExtendsInnerOfLocalWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalWithCapture.kt"); + } + + @Test + @TestMetadata("objectExtendsInnerWithDelegatingConstructor.kt") + public void testObjectExtendsInnerWithDelegatingConstructor() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerWithDelegatingConstructor.kt"); + } + + @Test + @TestMetadata("objectExtendsLocalCaptureInSuperCall.kt") + public void testObjectExtendsLocalCaptureInSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocalCaptureInSuperCall.kt"); + } + + @Test + @TestMetadata("objectExtendsLocalWithClosure.kt") + public void testObjectExtendsLocalWithClosure() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocalWithClosure.kt"); + } + + @Test + @TestMetadata("objectExtendsLocal_kt16858.kt") + public void testObjectExtendsLocal_kt16858() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocal_kt16858.kt"); + } + + @Test + @TestMetadata("objectOuterDiffersFromInnerOuter.kt") + public void testObjectOuterDiffersFromInnerOuter() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectOuterDiffersFromInnerOuter.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/instructions") + @TestDataPath("$PROJECT_ROOT") + public class Instructions { + @Test + public void testAllFilesPresentInInstructions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/instructions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/instructions/swap") + @TestDataPath("$PROJECT_ROOT") + public class Swap { + @Test + public void testAllFilesPresentInSwap() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/instructions/swap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("swapRefToSharedVarInt.kt") + public void testSwapRefToSharedVarInt() throws Exception { + runTest("compiler/testData/codegen/box/instructions/swap/swapRefToSharedVarInt.kt"); + } + + @Test + @TestMetadata("swapRefToSharedVarLong.kt") + public void testSwapRefToSharedVarLong() throws Exception { + runTest("compiler/testData/codegen/box/instructions/swap/swapRefToSharedVarLong.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/intrinsics") + @TestDataPath("$PROJECT_ROOT") + public class Intrinsics { + @Test + public void testAllFilesPresentInIntrinsics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/intrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("charToInt.kt") + public void testCharToInt() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/charToInt.kt"); + } + + @Test + @TestMetadata("defaultObjectMapping.kt") + public void testDefaultObjectMapping() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/defaultObjectMapping.kt"); + } + + @Test + @TestMetadata("ea35953.kt") + public void testEa35953() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/ea35953.kt"); + } + + @Test + @TestMetadata("incWithLabel.kt") + public void testIncWithLabel() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/incWithLabel.kt"); + } + + @Test + @TestMetadata("javaObjectType.kt") + public void testJavaObjectType() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/javaObjectType.kt"); + } + + @Test + @TestMetadata("javaPrimitiveType.kt") + public void testJavaPrimitiveType() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/javaPrimitiveType.kt"); + } + + @Test + @TestMetadata("javaPrimitiveType_UnitAndNothing.kt") + public void testJavaPrimitiveType_UnitAndNothing() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/javaPrimitiveType_UnitAndNothing.kt"); + } + + @Test + @TestMetadata("kt10131.kt") + public void testKt10131() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt10131.kt"); + } + + @Test + @TestMetadata("kt10131a.kt") + public void testKt10131a() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt10131a.kt"); + } + + @Test + @TestMetadata("kt12125.kt") + public void testKt12125() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt12125.kt"); + } + + @Test + @TestMetadata("kt12125_2.kt") + public void testKt12125_2() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt12125_2.kt"); + } + + @Test + @TestMetadata("kt12125_inc.kt") + public void testKt12125_inc() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt12125_inc.kt"); + } + + @Test + @TestMetadata("kt12125_inc_2.kt") + public void testKt12125_inc_2() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt12125_inc_2.kt"); + } + + @Test + @TestMetadata("kt52163_boolean.kt") + public void testKt52163_boolean() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt52163_boolean.kt"); + } + + @Test + @TestMetadata("kt52163_doubleCompareToInt.kt") + public void testKt52163_doubleCompareToInt() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt52163_doubleCompareToInt.kt"); + } + + @Test + @TestMetadata("kt5937.kt") + public void testKt5937() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt5937.kt"); + } + + @Test + @TestMetadata("kt8666.kt") + public void testKt8666() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt8666.kt"); + } + + @Test + @TestMetadata("longRangeWithExplicitDot.kt") + public void testLongRangeWithExplicitDot() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/longRangeWithExplicitDot.kt"); + } + + @Test + @TestMetadata("monitorEnterMonitorExit.kt") + public void testMonitorEnterMonitorExit() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/monitorEnterMonitorExit.kt"); + } + + @Test + @TestMetadata("nonShortCircuitAnd.kt") + public void testNonShortCircuitAnd() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/nonShortCircuitAnd.kt"); + } + + @Test + @TestMetadata("nullPlusString.kt") + public void testNullPlusString() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/nullPlusString.kt"); + } + + @Test + @TestMetadata("prefixIncDec.kt") + public void testPrefixIncDec() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/prefixIncDec.kt"); + } + + @Test + @TestMetadata("rangeFromCollection.kt") + public void testRangeFromCollection() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/rangeFromCollection.kt"); + } + + @Test + @TestMetadata("stringFromCollection.kt") + public void testStringFromCollection() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/stringFromCollection.kt"); + } + + @Test + @TestMetadata("throwable.kt") + public void testThrowable() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/throwable.kt"); + } + + @Test + @TestMetadata("throwableCallableReference.kt") + public void testThrowableCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/throwableCallableReference.kt"); + } + + @Test + @TestMetadata("throwableParamOrder.kt") + public void testThrowableParamOrder() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/throwableParamOrder.kt"); + } + + @Test + @TestMetadata("tostring.kt") + public void testTostring() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/tostring.kt"); + } + + @Test + @TestMetadata("trimMarginWithBlankString.kt") + public void testTrimMarginWithBlankString() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/trimMarginWithBlankString.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/invokedynamic") + @TestDataPath("$PROJECT_ROOT") + public class Invokedynamic { + @Test + public void testAllFilesPresentInInvokedynamic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/invokedynamic/lambdas") + @TestDataPath("$PROJECT_ROOT") + public class Lambdas { + @Test + public void testAllFilesPresentInLambdas() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/lambdas"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anyAnnotationDisablesIndyLambdaGeneration.kt") + public void testAnyAnnotationDisablesIndyLambdaGeneration() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/anyAnnotationDisablesIndyLambdaGeneration.kt"); + } + + @Test + @TestMetadata("bigArityExtLambda.kt") + public void testBigArityExtLambda() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/bigArityExtLambda.kt"); + } + + @Test + @TestMetadata("bigArityLambda.kt") + public void testBigArityLambda() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/bigArityLambda.kt"); + } + + @Test + @TestMetadata("capturedDispatchReceiver.kt") + public void testCapturedDispatchReceiver() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/capturedDispatchReceiver.kt"); + } + + @Test + @TestMetadata("capturedExtensionReceiver.kt") + public void testCapturedExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/capturedExtensionReceiver.kt"); + } + + @Test + @TestMetadata("capturingValue.kt") + public void testCapturingValue() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/capturingValue.kt"); + } + + @Test + @TestMetadata("capturingVar.kt") + public void testCapturingVar() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/capturingVar.kt"); + } + + @Test + @TestMetadata("extensionLambda.kt") + public void testExtensionLambda() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/extensionLambda.kt"); + } + + @Test + @TestMetadata("genericLambdaSignature.kt") + public void testGenericLambdaSignature() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/genericLambdaSignature.kt"); + } + + @Test + @TestMetadata("jvmSerializableLambda.kt") + public void testJvmSerializableLambda() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/jvmSerializableLambda.kt"); + } + + @Test + @TestMetadata("kt52875.kt") + public void testKt52875() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/kt52875.kt"); + } + + @Test + @TestMetadata("lambdaMetadataFactoryIsNotUsed.kt") + public void testLambdaMetadataFactoryIsNotUsed() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/lambdaMetadataFactoryIsNotUsed.kt"); + } + + @Test + @TestMetadata("lambdaMetafactoryIsUsed.kt") + public void testLambdaMetafactoryIsUsed() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/lambdaMetafactoryIsUsed.kt"); + } + + @Test + @TestMetadata("lambdaSerializable.kt") + public void testLambdaSerializable() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/lambdaSerializable.kt"); + } + + @Test + @TestMetadata("lambdaToSting.kt") + public void testLambdaToSting() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/lambdaToSting.kt"); + } + + @Test + @TestMetadata("nestedIndyLambdas.kt") + public void testNestedIndyLambdas() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/nestedIndyLambdas.kt"); + } + + @Test + @TestMetadata("nullabilityAssertions.kt") + public void testNullabilityAssertions() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/nullabilityAssertions.kt"); + } + + @Test + @TestMetadata("primitiveValueParameters.kt") + public void testPrimitiveValueParameters() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/primitiveValueParameters.kt"); + } + + @Test + @TestMetadata("simpleIndyLambda.kt") + public void testSimpleIndyLambda() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/simpleIndyLambda.kt"); + } + + @Test + @TestMetadata("suspendLambda.kt") + public void testSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/suspendLambda.kt"); + } + + @Test + @TestMetadata("voidReturnType.kt") + public void testVoidReturnType() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/voidReturnType.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature") + @TestDataPath("$PROJECT_ROOT") + public class InlineClassInSignature { + @Test + public void testAllFilesPresentInInlineClassInSignature() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lambdaWithInlineAny.kt") + public void testLambdaWithInlineAny() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineAny.kt"); + } + + @Test + @TestMetadata("lambdaWithInlineInt.kt") + public void testLambdaWithInlineInt() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineInt.kt"); + } + + @Test + @TestMetadata("lambdaWithInlineNAny.kt") + public void testLambdaWithInlineNAny() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineNAny.kt"); + } + + @Test + @TestMetadata("lambdaWithInlineNInt.kt") + public void testLambdaWithInlineNInt() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineNInt.kt"); + } + + @Test + @TestMetadata("lambdaWithInlineNString.kt") + public void testLambdaWithInlineNString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineNString.kt"); + } + + @Test + @TestMetadata("lambdaWithInlineString.kt") + public void testLambdaWithInlineString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineString.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/invokedynamic/sam") + @TestDataPath("$PROJECT_ROOT") + public class Sam { + @Test + public void testAllFilesPresentInSam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boundFunctionReferenceEquality.kt") + public void testBoundFunctionReferenceEquality() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/boundFunctionReferenceEquality.kt"); + } + + @Test + @TestMetadata("boundReference.kt") + public void testBoundReference() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/boundReference.kt"); + } + + @Test + @TestMetadata("builtinMemberReference.kt") + public void testBuiltinMemberReference() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/builtinMemberReference.kt"); + } + + @Test + @TestMetadata("capturedDispatchReceiver.kt") + public void testCapturedDispatchReceiver() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/capturedDispatchReceiver.kt"); + } + + @Test + @TestMetadata("capturedExtensionReceiver.kt") + public void testCapturedExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/capturedExtensionReceiver.kt"); + } + + @Test + @TestMetadata("capturingIndyFunInterface.kt") + public void testCapturingIndyFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingIndyFunInterface.kt"); + } + + @Test + @TestMetadata("capturingIndySam.kt") + public void testCapturingIndySam() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingIndySam.kt"); + } + + @Test + @TestMetadata("capturingVar.kt") + public void testCapturingVar() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingVar.kt"); + } + + @Test + @TestMetadata("constructorReference.kt") + public void testConstructorReference() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/constructorReference.kt"); + } + + @Test + @TestMetadata("covariantOverrideWithPrimitive.kt") + public void testCovariantOverrideWithPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/covariantOverrideWithPrimitive.kt"); + } + + @Test + @TestMetadata("enhancedNullabilityMix.kt") + public void testEnhancedNullabilityMix() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/enhancedNullabilityMix.kt"); + } + + @Test + @TestMetadata("genericFunInterface.kt") + public void testGenericFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/genericFunInterface.kt"); + } + + @Test + @TestMetadata("genericFunInterfaceWithPrimitive.kt") + public void testGenericFunInterfaceWithPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/genericFunInterfaceWithPrimitive.kt"); + } + + @Test + @TestMetadata("genericLambdaSignature.kt") + public void testGenericLambdaSignature() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/genericLambdaSignature.kt"); + } + + @Test + @TestMetadata("inlineFunWithPrivateMethod.kt") + public void testInlineFunWithPrivateMethod() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineFunWithPrivateMethod.kt"); + } + + @Test + @TestMetadata("inlineOnly.kt") + public void testInlineOnly() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineOnly.kt"); + } + + @Test + @TestMetadata("insideInitBlock.kt") + public void testInsideInitBlock() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/insideInitBlock.kt"); + } + + @Test + @TestMetadata("intReturnTypeAsNumber.kt") + public void testIntReturnTypeAsNumber() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/intReturnTypeAsNumber.kt"); + } + + @Test + @TestMetadata("kt45779.kt") + public void testKt45779() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/kt45779.kt"); + } + + @Test + @TestMetadata("kt47510.kt") + public void testKt47510() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/kt47510.kt"); + } + + @Test + @TestMetadata("kt51282.kt") + public void testKt51282() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/kt51282.kt"); + } + + @Test + @TestMetadata("kt512832_inherit_multifile_parts.kt") + public void testKt512832_inherit_multifile_parts() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/kt512832_inherit_multifile_parts.kt"); + } + + @Test + @TestMetadata("kt51868_contravariantGenericSam.kt") + public void testKt51868_contravariantGenericSam() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/kt51868_contravariantGenericSam.kt"); + } + + @Test + @TestMetadata("kt52040_severalProxyFunsInInit.kt") + public void testKt52040_severalProxyFunsInInit() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/kt52040_severalProxyFunsInInit.kt"); + } + + @Test + @TestMetadata("nullabilityAssertions.kt") + public void testNullabilityAssertions() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/nullabilityAssertions.kt"); + } + + @Test + @TestMetadata("possibleOverrideClash.kt") + public void testPossibleOverrideClash() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/possibleOverrideClash.kt"); + } + + @Test + @TestMetadata("primitiveVsWrapperInSam.kt") + public void testPrimitiveVsWrapperInSam() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/primitiveVsWrapperInSam.kt"); + } + + @Test + @TestMetadata("reifiedTypeParameter.kt") + public void testReifiedTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/reifiedTypeParameter.kt"); + } + + @Test + @TestMetadata("samConversionInsideSamConvertedLambda.kt") + public void testSamConversionInsideSamConvertedLambda() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/samConversionInsideSamConvertedLambda.kt"); + } + + @Test + @TestMetadata("samConversionOnFunctionReference.kt") + public void testSamConversionOnFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/samConversionOnFunctionReference.kt"); + } + + @Test + @TestMetadata("samExtFunWithCapturingLambda.kt") + public void testSamExtFunWithCapturingLambda() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/samExtFunWithCapturingLambda.kt"); + } + + @Test + @TestMetadata("serializableSam1.kt") + public void testSerializableSam1() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/serializableSam1.kt"); + } + + @Test + @TestMetadata("serializableSam2.kt") + public void testSerializableSam2() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/serializableSam2.kt"); + } + + @Test + @TestMetadata("simpleFunInterfaceConstructor.kt") + public void testSimpleFunInterfaceConstructor() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleFunInterfaceConstructor.kt"); + } + + @Test + @TestMetadata("simpleIndyFunInterface.kt") + public void testSimpleIndyFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleIndyFunInterface.kt"); + } + + @Test + @TestMetadata("simpleIndySam.kt") + public void testSimpleIndySam() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleIndySam.kt"); + } + + @Test + @TestMetadata("starProjectionSam.kt") + public void testStarProjectionSam() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/starProjectionSam.kt"); + } + + @Test + @TestMetadata("streamApi1.kt") + public void testStreamApi1() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/streamApi1.kt"); + } + + @Test + @TestMetadata("streamApi2.kt") + public void testStreamApi2() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/streamApi2.kt"); + } + + @Test + @TestMetadata("suspendFunInterface.kt") + public void testSuspendFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/suspendFunInterface.kt"); + } + + @Test + @TestMetadata("unboundFunctionReferenceEquality.kt") + public void testUnboundFunctionReferenceEquality() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/unboundFunctionReferenceEquality.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface") + @TestDataPath("$PROJECT_ROOT") + public class FunctionExprToJavaInterface { + @Test + public void testAllFilesPresentInFunctionExprToJavaInterface() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("capturedSamArgument.kt") + public void testCapturedSamArgument() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/capturedSamArgument.kt"); + } + + @Test + @TestMetadata("capturingLambda.kt") + public void testCapturingLambda() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/capturingLambda.kt"); + } + + @Test + @TestMetadata("extensionLambda1.kt") + public void testExtensionLambda1() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/extensionLambda1.kt"); + } + + @Test + @TestMetadata("extensionLambda2.kt") + public void testExtensionLambda2() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/extensionLambda2.kt"); + } + + @Test + @TestMetadata("genericSam1.kt") + public void testGenericSam1() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/genericSam1.kt"); + } + + @Test + @TestMetadata("genericSam2.kt") + public void testGenericSam2() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/genericSam2.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface") + @TestDataPath("$PROJECT_ROOT") + public class FunctionRefToJavaInterface { + @Test + @TestMetadata("adaptedFunRefWithCoercionToUnit.kt") + public void testAdaptedFunRefWithCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/adaptedFunRefWithCoercionToUnit.kt"); + } + + @Test + @TestMetadata("adaptedFunRefWithDefaultParameters.kt") + public void testAdaptedFunRefWithDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/adaptedFunRefWithDefaultParameters.kt"); + } + + @Test + @TestMetadata("adaptedFunRefWithVararg.kt") + public void testAdaptedFunRefWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/adaptedFunRefWithVararg.kt"); + } + + @Test + public void testAllFilesPresentInFunctionRefToJavaInterface() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boundExtFun.kt") + public void testBoundExtFun() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundExtFun.kt"); + } + + @Test + @TestMetadata("boundInnerConstructorRef.kt") + public void testBoundInnerConstructorRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundInnerConstructorRef.kt"); + } + + @Test + @TestMetadata("boundLocalExtFun.kt") + public void testBoundLocalExtFun() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundLocalExtFun.kt"); + } + + @Test + @TestMetadata("boundMemberRef.kt") + public void testBoundMemberRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundMemberRef.kt"); + } + + @Test + @TestMetadata("boundRefToSuperClassMethod.kt") + public void testBoundRefToSuperClassMethod() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundRefToSuperClassMethod.kt"); + } + + @Test + @TestMetadata("boundRefToSuperInterfaceMethod.kt") + public void testBoundRefToSuperInterfaceMethod() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundRefToSuperInterfaceMethod.kt"); + } + + @Test + @TestMetadata("constructorRef.kt") + public void testConstructorRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/constructorRef.kt"); + } + + @Test + @TestMetadata("enhancedNullability.kt") + public void testEnhancedNullability() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/enhancedNullability.kt"); + } + + @Test + @TestMetadata("genericBoundInnerConstructorRef.kt") + public void testGenericBoundInnerConstructorRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/genericBoundInnerConstructorRef.kt"); + } + + @Test + @TestMetadata("genericFunRef.kt") + public void testGenericFunRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/genericFunRef.kt"); + } + + @Test + @TestMetadata("genericInnerConstructorRef.kt") + public void testGenericInnerConstructorRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/genericInnerConstructorRef.kt"); + } + + @Test + @TestMetadata("highOrderFunRef.kt") + public void testHighOrderFunRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/highOrderFunRef.kt"); + } + + @Test + @TestMetadata("inlineFunRef.kt") + public void testInlineFunRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/inlineFunRef.kt"); + } + + @Test + @TestMetadata("inlineFunWithReifiedTypeParameterRef.kt") + public void testInlineFunWithReifiedTypeParameterRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/inlineFunWithReifiedTypeParameterRef.kt"); + } + + @Test + @TestMetadata("inlineHighOrderFunRef.kt") + public void testInlineHighOrderFunRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/inlineHighOrderFunRef.kt"); + } + + @Test + @TestMetadata("innerConstructorRef.kt") + public void testInnerConstructorRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/innerConstructorRef.kt"); + } + + @Test + @TestMetadata("intReturnTypeAsNumber.kt") + public void testIntReturnTypeAsNumber() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/intReturnTypeAsNumber.kt"); + } + + @Test + @TestMetadata("interfaceMemberRef.kt") + public void testInterfaceMemberRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/interfaceMemberRef.kt"); + } + + @Test + @TestMetadata("kt45581.kt") + public void testKt45581() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/kt45581.kt"); + } + + @Test + @TestMetadata("kt46408.kt") + public void testKt46408() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/kt46408.kt"); + } + + @Test + @TestMetadata("kt49613.kt") + public void testKt49613() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/kt49613.kt"); + } + + @Test + @TestMetadata("kt50856.kt") + public void testKt50856() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/kt50856.kt"); + } + + @Test + @TestMetadata("localFunction1.kt") + public void testLocalFunction1() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/localFunction1.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/localFunction2.kt"); + } + + @Test + @TestMetadata("memberRef.kt") + public void testMemberRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/memberRef.kt"); + } + + @Test + @TestMetadata("multifileClassMemberFromStdlib.kt") + public void testMultifileClassMemberFromStdlib() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/multifileClassMemberFromStdlib.kt"); + } + + @Test + @TestMetadata("multipleProxyWrappersForSameFunction.kt") + public void testMultipleProxyWrappersForSameFunction() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/multipleProxyWrappersForSameFunction.kt"); + } + + @Test + @TestMetadata("nonTrivialReceiver.kt") + public void testNonTrivialReceiver() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/nonTrivialReceiver.kt"); + } + + @Test + @TestMetadata("nothingReturnTypeAsObject.kt") + public void testNothingReturnTypeAsObject() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/nothingReturnTypeAsObject.kt"); + } + + @Test + @TestMetadata("nothingReturnTypeAsString.kt") + public void testNothingReturnTypeAsString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/nothingReturnTypeAsString.kt"); + } + + @Test + @TestMetadata("nullableNothingReturnTypeAsObject.kt") + public void testNullableNothingReturnTypeAsObject() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/nullableNothingReturnTypeAsObject.kt"); + } + + @Test + @TestMetadata("nullableNothingReturnTypeAsString.kt") + public void testNullableNothingReturnTypeAsString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/nullableNothingReturnTypeAsString.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/simple.kt"); + } + + @Test + @TestMetadata("voidReturnTypeAsObject.kt") + public void testVoidReturnTypeAsObject() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/voidReturnTypeAsObject.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions") + @TestDataPath("$PROJECT_ROOT") + public class SpecialFunctions { + @Test + public void testAllFilesPresentInSpecialFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anyNToString.kt") + public void testAnyNToString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/anyNToString.kt"); + } + + @Test + @TestMetadata("arrayConstructor.kt") + public void testArrayConstructor() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/arrayConstructor.kt"); + } + + @Test + @TestMetadata("arrayOf.kt") + public void testArrayOf() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/arrayOf.kt"); + } + + @Test + @TestMetadata("charArrayOf.kt") + public void testCharArrayOf() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/charArrayOf.kt"); + } + + @Test + @TestMetadata("enumValueOf.kt") + public void testEnumValueOf() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/enumValueOf.kt"); + } + + @Test + @TestMetadata("enumValues.kt") + public void testEnumValues() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/enumValues.kt"); + } + + @Test + @TestMetadata("intArrayOf.kt") + public void testIntArrayOf() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/intArrayOf.kt"); + } + + @Test + @TestMetadata("intPlus.kt") + public void testIntPlus() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/intPlus.kt"); + } + + @Test + @TestMetadata("stringNPlus.kt") + public void testStringNPlus() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/stringNPlus.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor") + @TestDataPath("$PROJECT_ROOT") + public class WithAccessor { + @Test + public void testAllFilesPresentInWithAccessor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("privateBoundOuterClassMemberFun.kt") + public void testPrivateBoundOuterClassMemberFun() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateBoundOuterClassMemberFun.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectMember.kt") + public void testPrivateCompanionObjectMember() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateCompanionObjectMember.kt"); + } + + @Test + @TestMetadata("privateOuterClassConstructor.kt") + public void testPrivateOuterClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateOuterClassConstructor.kt"); + } + + @Test + @TestMetadata("privateOuterClassMemberFun.kt") + public void testPrivateOuterClassMemberFun() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateOuterClassMemberFun.kt"); + } + + @Test + @TestMetadata("privateTopLevelExtFun.kt") + public void testPrivateTopLevelExtFun() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateTopLevelExtFun.kt"); + } + + @Test + @TestMetadata("privateTopLevelFun.kt") + public void testPrivateTopLevelFun() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateTopLevelFun.kt"); + } + + @Test + @TestMetadata("protectedCompanionObjectStaticMember.kt") + public void testProtectedCompanionObjectStaticMember() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/protectedCompanionObjectStaticMember.kt"); + } + + @Test + @TestMetadata("protectedMember.kt") + public void testProtectedMember() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/protectedMember.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature") + @TestDataPath("$PROJECT_ROOT") + public class InlineClassInSignature { + @Test + public void testAllFilesPresentInInlineClassInSignature() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("funInterfaceWithInlineAny.kt") + public void testFunInterfaceWithInlineAny() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineAny.kt"); + } + + @Test + @TestMetadata("funInterfaceWithInlineInt.kt") + public void testFunInterfaceWithInlineInt() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineInt.kt"); + } + + @Test + @TestMetadata("funInterfaceWithInlineNAny.kt") + public void testFunInterfaceWithInlineNAny() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNAny.kt"); + } + + @Test + @TestMetadata("funInterfaceWithInlineNInt.kt") + public void testFunInterfaceWithInlineNInt() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNInt.kt"); + } + + @Test + @TestMetadata("funInterfaceWithInlineNString.kt") + public void testFunInterfaceWithInlineNString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNString.kt"); + } + + @Test + @TestMetadata("funInterfaceWithInlineString.kt") + public void testFunInterfaceWithInlineString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineString.kt"); + } + + @Test + @TestMetadata("genericFunInterfaceWithInlineAny.kt") + public void testGenericFunInterfaceWithInlineAny() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineAny.kt"); + } + + @Test + @TestMetadata("genericFunInterfaceWithInlineInt.kt") + public void testGenericFunInterfaceWithInlineInt() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineInt.kt"); + } + + @Test + @TestMetadata("genericFunInterfaceWithInlineNAny.kt") + public void testGenericFunInterfaceWithInlineNAny() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineNAny.kt"); + } + + @Test + @TestMetadata("genericFunInterfaceWithInlineNInt.kt") + public void testGenericFunInterfaceWithInlineNInt() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineNInt.kt"); + } + + @Test + @TestMetadata("genericFunInterfaceWithInlineNString.kt") + public void testGenericFunInterfaceWithInlineNString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineNString.kt"); + } + + @Test + @TestMetadata("genericFunInterfaceWithInlineString.kt") + public void testGenericFunInterfaceWithInlineString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineString.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics") + @TestDataPath("$PROJECT_ROOT") + public class SpecializedGenerics { + @Test + public void testAllFilesPresentInSpecializedGenerics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("covariantOverride.kt") + public void testCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/covariantOverride.kt"); + } + + @Test + @TestMetadata("covariantOverrideWithNNothing.kt") + public void testCovariantOverrideWithNNothing() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/covariantOverrideWithNNothing.kt"); + } + + @Test + @TestMetadata("genericWithInProjection.kt") + public void testGenericWithInProjection() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/genericWithInProjection.kt"); + } + + @Test + @TestMetadata("genericWithInProjectionWithIndyLambdas.kt") + public void testGenericWithInProjectionWithIndyLambdas() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/genericWithInProjectionWithIndyLambdas.kt"); + } + + @Test + @TestMetadata("genericWithStarProjection.kt") + public void testGenericWithStarProjection() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/genericWithStarProjection.kt"); + } + + @Test + @TestMetadata("inheritedWithChar.kt") + public void testInheritedWithChar() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithChar.kt"); + } + + @Test + @TestMetadata("inheritedWithCharDiamond.kt") + public void testInheritedWithCharDiamond() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithCharDiamond.kt"); + } + + @Test + @TestMetadata("inheritedWithCharExplicitlyOverridden.kt") + public void testInheritedWithCharExplicitlyOverridden() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithCharExplicitlyOverridden.kt"); + } + + @Test + @TestMetadata("inheritedWithInt.kt") + public void testInheritedWithInt() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithInt.kt"); + } + + @Test + @TestMetadata("inheritedWithString.kt") + public void testInheritedWithString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithString.kt"); + } + + @Test + @TestMetadata("inheritedWithUnit.kt") + public void testInheritedWithUnit() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithUnit.kt"); + } + + @Test + @TestMetadata("mixGenericAndIntArray.kt") + public void testMixGenericAndIntArray() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/mixGenericAndIntArray.kt"); + } + + @Test + @TestMetadata("mixGenericAndString.kt") + public void testMixGenericAndString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/mixGenericAndString.kt"); + } + + @Test + @TestMetadata("mixGenericArrayAndArrayOfString.kt") + public void testMixGenericArrayAndArrayOfString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/mixGenericArrayAndArrayOfString.kt"); + } + + @Test + @TestMetadata("mixPrimitiveAndBoxed.kt") + public void testMixPrimitiveAndBoxed() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/mixPrimitiveAndBoxed.kt"); + } + + @Test + @TestMetadata("nothingReturnTypeAsGeneric.kt") + public void testNothingReturnTypeAsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/nothingReturnTypeAsGeneric.kt"); + } + + @Test + @TestMetadata("nothingReturnTypeAsString.kt") + public void testNothingReturnTypeAsString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/nothingReturnTypeAsString.kt"); + } + + @Test + @TestMetadata("specializedWithChar.kt") + public void testSpecializedWithChar() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/specializedWithChar.kt"); + } + + @Test + @TestMetadata("specializedWithCharClass.kt") + public void testSpecializedWithCharClass() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/specializedWithCharClass.kt"); + } + + @Test + @TestMetadata("specializedWithReifiedTypeParameter.kt") + public void testSpecializedWithReifiedTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/specializedWithReifiedTypeParameter.kt"); + } + + @Test + @TestMetadata("specializedWithString.kt") + public void testSpecializedWithString() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/specializedWithString.kt"); + } + + @Test + @TestMetadata("voidReturnTypeAsGeneric.kt") + public void testVoidReturnTypeAsGeneric() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/voidReturnTypeAsGeneric.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/invokedynamic/serializable") + @TestDataPath("$PROJECT_ROOT") + public class Serializable { + @Test + public void testAllFilesPresentInSerializable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/serializable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("multipleTopLevelFunRefs.kt") + public void testMultipleTopLevelFunRefs() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/multipleTopLevelFunRefs.kt"); + } + + @Test + @TestMetadata("sameImplMethodDifferentInterfaces.kt") + public void testSameImplMethodDifferentInterfaces() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/sameImplMethodDifferentInterfaces.kt"); + } + + @Test + @TestMetadata("sameInterfaceDifferentCapturedValueTypes.kt") + public void testSameInterfaceDifferentCapturedValueTypes() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/sameInterfaceDifferentCapturedValueTypes.kt"); + } + + @Test + @TestMetadata("sameInterfaceDifferentCapturedValues.kt") + public void testSameInterfaceDifferentCapturedValues() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/sameInterfaceDifferentCapturedValues.kt"); + } + + @Test + @TestMetadata("serializableBoundClassMemberFunRef.kt") + public void testSerializableBoundClassMemberFunRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableBoundClassMemberFunRef.kt"); + } + + @Test + @TestMetadata("serializableBoundInnerConstructorRef.kt") + public void testSerializableBoundInnerConstructorRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableBoundInnerConstructorRef.kt"); + } + + @Test + @TestMetadata("serializableBoundInterfaceMemberFunRef.kt") + public void testSerializableBoundInterfaceMemberFunRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableBoundInterfaceMemberFunRef.kt"); + } + + @Test + @TestMetadata("serializableBoundTopLevelExtensionFunRef.kt") + public void testSerializableBoundTopLevelExtensionFunRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableBoundTopLevelExtensionFunRef.kt"); + } + + @Test + @TestMetadata("serializableBoundTopLevelExtensionFunRefPrimitiveReceiver.kt") + public void testSerializableBoundTopLevelExtensionFunRefPrimitiveReceiver() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableBoundTopLevelExtensionFunRefPrimitiveReceiver.kt"); + } + + @Test + @TestMetadata("serializableClassMemberFunRef.kt") + public void testSerializableClassMemberFunRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableClassMemberFunRef.kt"); + } + + @Test + @TestMetadata("serializableConstructorRef.kt") + public void testSerializableConstructorRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableConstructorRef.kt"); + } + + @Test + @TestMetadata("serializableFakeOverrideFunRef.kt") + public void testSerializableFakeOverrideFunRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableFakeOverrideFunRef.kt"); + } + + @Test + @TestMetadata("serializableInnerConstructorRef.kt") + public void testSerializableInnerConstructorRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableInnerConstructorRef.kt"); + } + + @Test + @TestMetadata("serializableInterfaceMemberFunRef.kt") + public void testSerializableInterfaceMemberFunRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableInterfaceMemberFunRef.kt"); + } + + @Test + @TestMetadata("serializableJavaStaticMethodRef.kt") + public void testSerializableJavaStaticMethodRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableJavaStaticMethodRef.kt"); + } + + @Test + @TestMetadata("serializableLambda.kt") + public void testSerializableLambda() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambda.kt"); + } + + @Test + @TestMetadata("serializableLambdaCapturingBoxedInlineClassAny.kt") + public void testSerializableLambdaCapturingBoxedInlineClassAny() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaCapturingBoxedInlineClassAny.kt"); + } + + @Test + @TestMetadata("serializableLambdaCapturingInlineClassAny.kt") + public void testSerializableLambdaCapturingInlineClassAny() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaCapturingInlineClassAny.kt"); + } + + @Test + @TestMetadata("serializableLambdaCapturingInlineClassInt.kt") + public void testSerializableLambdaCapturingInlineClassInt() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaCapturingInlineClassInt.kt"); + } + + @Test + @TestMetadata("serializableLambdaCapturingNullableInlineClassAny.kt") + public void testSerializableLambdaCapturingNullableInlineClassAny() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaCapturingNullableInlineClassAny.kt"); + } + + @Test + @TestMetadata("serializableLambdaToKotlinInterface.kt") + public void testSerializableLambdaToKotlinInterface() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaToKotlinInterface.kt"); + } + + @Test + @TestMetadata("serializableLambdaWithCapture.kt") + public void testSerializableLambdaWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaWithCapture.kt"); + } + + @Test + @TestMetadata("serializableTopLevelFunRef.kt") + public void testSerializableTopLevelFunRef() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableTopLevelFunRef.kt"); + } + + @Test + @TestMetadata("serializableTopLevelFunRefAsGenericInterface.kt") + public void testSerializableTopLevelFunRefAsGenericInterface() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableTopLevelFunRefAsGenericInterface.kt"); + } + + @Test + @TestMetadata("serializableWithBridge.kt") + public void testSerializableWithBridge() throws Exception { + runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableWithBridge.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/involvesIrInterpreter") + @TestDataPath("$PROJECT_ROOT") + public class InvolvesIrInterpreter { + @Test + public void testAllFilesPresentInInvolvesIrInterpreter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/involvesIrInterpreter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationClassWithInner.kt") + public void testAnnotationClassWithInner() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/annotationClassWithInner.kt"); + } + + @Test + @TestMetadata("booleanOperations.kt") + public void testBooleanOperations() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/booleanOperations.kt"); + } + + @Test + @TestMetadata("byteOperations.kt") + public void testByteOperations() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/byteOperations.kt"); + } + + @Test + @TestMetadata("charOperations.kt") + public void testCharOperations() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/charOperations.kt"); + } + + @Test + @TestMetadata("complexBooleanConstant.kt") + public void testComplexBooleanConstant() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/complexBooleanConstant.kt"); + } + + @Test + @TestMetadata("doubleOperations.kt") + public void testDoubleOperations() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/doubleOperations.kt"); + } + + @Test + @TestMetadata("enumRecursiveName.kt") + public void testEnumRecursiveName() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/enumRecursiveName.kt"); + } + + @Test + @TestMetadata("floatOperations.kt") + public void testFloatOperations() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/floatOperations.kt"); + } + + @Test + @TestMetadata("inJavaPackage.kt") + public void testInJavaPackage() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/inJavaPackage.kt"); + } + + @Test + @TestMetadata("intOperations.kt") + public void testIntOperations() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intOperations.kt"); + } + + @Test + @TestMetadata("jvmFloatDoubleToString.kt") + public void testJvmFloatDoubleToString() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/jvmFloatDoubleToString.kt"); + } + + @Test + @TestMetadata("kt53480.kt") + public void testKt53480() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt53480.kt"); + } + + @Test + @TestMetadata("kt55108.kt") + public void testKt55108() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt55108.kt"); + } + + @Test + @TestMetadata("kt55866.kt") + public void testKt55866() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt55866.kt"); + } + + @Test + @TestMetadata("kt55912.kt") + public void testKt55912() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt55912.kt"); + } + + @Test + @TestMetadata("kt56215.kt") + public void testKt56215() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt56215.kt"); + } + + @Test + @TestMetadata("kt57028.kt") + public void testKt57028() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt57028.kt"); + } + + @Test + @TestMetadata("kt57313.kt") + public void testKt57313() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt57313.kt"); + } + + @Test + @TestMetadata("kt58005.kt") + public void testKt58005() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt58005.kt"); + } + + @Test + @TestMetadata("longOperations.kt") + public void testLongOperations() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/longOperations.kt"); + } + + @Test + @TestMetadata("objectConstValInAnnotationArgument.kt") + public void testObjectConstValInAnnotationArgument() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/objectConstValInAnnotationArgument.kt"); + } + + @Test + @TestMetadata("referenceNameFromStaticInDifferentModule.kt") + public void testReferenceNameFromStaticInDifferentModule() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/referenceNameFromStaticInDifferentModule.kt"); + } + + @Test + @TestMetadata("shortOperations.kt") + public void testShortOperations() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/shortOperations.kt"); + } + + @Test + @TestMetadata("stdlibConst.kt") + public void testStdlibConst() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/stdlibConst.kt"); + } + + @Test + @TestMetadata("stringConcatenation.kt") + public void testStringConcatenation() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/stringConcatenation.kt"); + } + + @Test + @TestMetadata("stringConcatenationWithObject.kt") + public void testStringConcatenationWithObject() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/stringConcatenationWithObject.kt"); + } + + @Test + @TestMetadata("stringOperations.kt") + public void testStringOperations() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/stringOperations.kt"); + } + + @Test + @TestMetadata("thisPlusString.kt") + public void testThisPlusString() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/thisPlusString.kt"); + } + + @Test + @TestMetadata("thisPlusStringWithObject.kt") + public void testThisPlusStringWithObject() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/thisPlusStringWithObject.kt"); + } + + @Test + @TestMetadata("unsignedConst.kt") + public void testUnsignedConst() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/unsignedConst.kt"); + } + + @Test + @TestMetadata("useCorrectToString.kt") + public void testUseCorrectToString() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/useCorrectToString.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld") + @TestDataPath("$PROJECT_ROOT") + public class ConstEvaluationFromJavaWorld { + @Test + @TestMetadata("accessComplexConst.kt") + public void testAccessComplexConst() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/accessComplexConst.kt"); + } + + @Test + @TestMetadata("accessTopLevelConst.kt") + public void testAccessTopLevelConst() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/accessTopLevelConst.kt"); + } + + @Test + @TestMetadata("accessTopLevelConstWithCustomFileName.kt") + public void testAccessTopLevelConstWithCustomFileName() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/accessTopLevelConstWithCustomFileName.kt"); + } + + @Test + public void testAllFilesPresentInConstEvaluationFromJavaWorld() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("differentTypes.kt") + public void testDifferentTypes() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/differentTypes.kt"); + } + + @Test + @TestMetadata("kt57802_1.kt") + public void testKt57802_1() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/kt57802_1.kt"); + } + + @Test + @TestMetadata("kt57802_2.kt") + public void testKt57802_2() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/kt57802_2.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst") + @TestDataPath("$PROJECT_ROOT") + public class IntrinsicConst { + @Test + public void testAllFilesPresentInIntrinsicConst() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constTrimIndent.kt") + public void testConstTrimIndent() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/constTrimIndent.kt"); + } + + @Test + @TestMetadata("constTrimMargin.kt") + public void testConstTrimMargin() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/constTrimMargin.kt"); + } + + @Test + @TestMetadata("enumName.kt") + public void testEnumName() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/enumName.kt"); + } + + @Test + @TestMetadata("enumNameWithInit.kt") + public void testEnumNameWithInit() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/enumNameWithInit.kt"); + } + + @Test + @TestMetadata("equals_after.kt") + public void testEquals_after() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); + } + + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + + @Test + @TestMetadata("kCallableName.kt") + public void testKCallableName() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kCallableName.kt"); + } + + @Test + @TestMetadata("kCallableNameWithSideEffect.kt") + public void testKCallableNameWithSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kCallableNameWithSideEffect.kt"); + } + + @Test + @TestMetadata("kt53272.kt") + public void testKt53272() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kt53272.kt"); + } + + @Test + @TestMetadata("kt58717.kt") + public void testKt58717() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kt58717.kt"); + } + + @Test + @TestMetadata("nullableEnumName.kt") + public void testNullableEnumName() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/nullableEnumName.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/involvesIrInterpreter/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/involvesIrInterpreter/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationInArguments.kt") + public void testAnnotationInArguments() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/annotationInArguments.kt"); + } + + @Test + @TestMetadata("annotationSerialization.kt") + public void testAnnotationSerialization() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/annotationSerialization.kt"); + } + + @Test + @TestMetadata("annotationWithArray.kt") + public void testAnnotationWithArray() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/annotationWithArray.kt"); + } + + @Test + @TestMetadata("annotationWithDefaults.kt") + public void testAnnotationWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/annotationWithDefaults.kt"); + } + + @Test + @TestMetadata("nestedTypeAnnotation.kt") + public void testNestedTypeAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/nestedTypeAnnotation.kt"); + } + + @Test + @TestMetadata("typeAnnotation.kt") + public void testTypeAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/typeAnnotation.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ir") + @TestDataPath("$PROJECT_ROOT") + public class Ir { + @Test + public void testAllFilesPresentInIr() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousClassLeak.kt") + public void testAnonymousClassLeak() throws Exception { + runTest("compiler/testData/codegen/box/ir/anonymousClassLeak.kt"); + } + + @Test + @TestMetadata("anonymousObjectInForLoopIteratorAndBody.kt") + public void testAnonymousObjectInForLoopIteratorAndBody() throws Exception { + runTest("compiler/testData/codegen/box/ir/anonymousObjectInForLoopIteratorAndBody.kt"); + } + + @Test + @TestMetadata("anonymousObjectInGenericFun.kt") + public void testAnonymousObjectInGenericFun() throws Exception { + runTest("compiler/testData/codegen/box/ir/anonymousObjectInGenericFun.kt"); + } + + @Test + @TestMetadata("anonymousObjectInsideElvis.kt") + public void testAnonymousObjectInsideElvis() throws Exception { + runTest("compiler/testData/codegen/box/ir/anonymousObjectInsideElvis.kt"); + } + + @Test + @TestMetadata("clashingFakeOverrideSignatures.kt") + public void testClashingFakeOverrideSignatures() throws Exception { + runTest("compiler/testData/codegen/box/ir/clashingFakeOverrideSignatures.kt"); + } + + @Test + @TestMetadata("classInitializers.kt") + public void testClassInitializers() throws Exception { + runTest("compiler/testData/codegen/box/ir/classInitializers.kt"); + } + + @Test + @TestMetadata("enumClass.kt") + public void testEnumClass() throws Exception { + runTest("compiler/testData/codegen/box/ir/enumClass.kt"); + } + + @Test + @TestMetadata("enumClass2.kt") + public void testEnumClass2() throws Exception { + runTest("compiler/testData/codegen/box/ir/enumClass2.kt"); + } + + @Test + @TestMetadata("enumClass3.kt") + public void testEnumClass3() throws Exception { + runTest("compiler/testData/codegen/box/ir/enumClass3.kt"); + } + + @Test + @TestMetadata("fileClassInitializers.kt") + public void testFileClassInitializers() throws Exception { + runTest("compiler/testData/codegen/box/ir/fileClassInitializers.kt"); + } + + @Test + @TestMetadata("genericCompanion.kt") + public void testGenericCompanion() throws Exception { + runTest("compiler/testData/codegen/box/ir/genericCompanion.kt"); + } + + @Test + @TestMetadata("hashCodeOnGenericSubstitutedWithPrimitive.kt") + public void testHashCodeOnGenericSubstitutedWithPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/ir/hashCodeOnGenericSubstitutedWithPrimitive.kt"); + } + + @Test + @TestMetadata("kt25405.kt") + public void testKt25405() throws Exception { + runTest("compiler/testData/codegen/box/ir/kt25405.kt"); + } + + @Test + @TestMetadata("kt29833.kt") + public void testKt29833() throws Exception { + runTest("compiler/testData/codegen/box/ir/kt29833.kt"); + } + + @Test + @TestMetadata("kt40083.kt") + public void testKt40083() throws Exception { + runTest("compiler/testData/codegen/box/ir/kt40083.kt"); + } + + @Test + @TestMetadata("kt41765.kt") + public void testKt41765() throws Exception { + runTest("compiler/testData/codegen/box/ir/kt41765.kt"); + } + + @Test + @TestMetadata("kt52677.kt") + public void testKt52677() throws Exception { + runTest("compiler/testData/codegen/box/ir/kt52677.kt"); + } + + @Test + @TestMetadata("kt55318.kt") + public void testKt55318() throws Exception { + runTest("compiler/testData/codegen/box/ir/kt55318.kt"); + } + + @Test + @TestMetadata("lambdaWithLoop.kt") + public void testLambdaWithLoop() throws Exception { + runTest("compiler/testData/codegen/box/ir/lambdaWithLoop.kt"); + } + + @Test + @TestMetadata("objectClass.kt") + public void testObjectClass() throws Exception { + runTest("compiler/testData/codegen/box/ir/objectClass.kt"); + } + + @Test + @TestMetadata("recursiveGeneric.kt") + public void testRecursiveGeneric() throws Exception { + runTest("compiler/testData/codegen/box/ir/recursiveGeneric.kt"); + } + + @Test + @TestMetadata("recursiveGeneric2.kt") + public void testRecursiveGeneric2() throws Exception { + runTest("compiler/testData/codegen/box/ir/recursiveGeneric2.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/ir/simple.kt"); + } + + @Test + @TestMetadata("suppressConflictingSignatureErrors.kt") + public void testSuppressConflictingSignatureErrors() throws Exception { + runTest("compiler/testData/codegen/box/ir/suppressConflictingSignatureErrors.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ir/closureConversion") + @TestDataPath("$PROJECT_ROOT") + public class ClosureConversion { + @Test + public void testAllFilesPresentInClosureConversion() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/closureConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("closureConversion1.kt") + public void testClosureConversion1() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/closureConversion1.kt"); + } + + @Test + @TestMetadata("closureConversion2.kt") + public void testClosureConversion2() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/closureConversion2.kt"); + } + + @Test + @TestMetadata("closureConversion3.kt") + public void testClosureConversion3() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/closureConversion3.kt"); + } + + @Test + @TestMetadata("closureConversion4.kt") + public void testClosureConversion4() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/closureConversion4.kt"); + } + + @Test + @TestMetadata("innerClass1.kt") + public void testInnerClass1() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/innerClass1.kt"); + } + + @Test + @TestMetadata("innerClass2.kt") + public void testInnerClass2() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/innerClass2.kt"); + } + + @Test + @TestMetadata("mutable1.kt") + public void testMutable1() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/mutable1.kt"); + } + + @Test + @TestMetadata("mutablePrimitives.kt") + public void testMutablePrimitives() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/mutablePrimitives.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ir/primitiveNumberComparisons") + @TestDataPath("$PROJECT_ROOT") + public class PrimitiveNumberComparisons { + @Test + public void testAllFilesPresentInPrimitiveNumberComparisons() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/primitiveNumberComparisons"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("comparableToDouble.kt") + public void testComparableToDouble() throws Exception { + runTest("compiler/testData/codegen/box/ir/primitiveNumberComparisons/comparableToDouble.kt"); + } + + @Test + @TestMetadata("doubleEqeq.kt") + public void testDoubleEqeq() throws Exception { + runTest("compiler/testData/codegen/box/ir/primitiveNumberComparisons/doubleEqeq.kt"); + } + + @Test + @TestMetadata("floatEqeq.kt") + public void testFloatEqeq() throws Exception { + runTest("compiler/testData/codegen/box/ir/primitiveNumberComparisons/floatEqeq.kt"); + } + + @Test + @TestMetadata("mixedNumberTypes.kt") + public void testMixedNumberTypes() throws Exception { + runTest("compiler/testData/codegen/box/ir/primitiveNumberComparisons/mixedNumberTypes.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ir/privateSignatures") + @TestDataPath("$PROJECT_ROOT") + public class PrivateSignatures { + @Test + public void testAllFilesPresentInPrivateSignatures() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/privateSignatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("enumEntryArguments.kt") + public void testEnumEntryArguments() throws Exception { + runTest("compiler/testData/codegen/box/ir/privateSignatures/enumEntryArguments.kt"); + } + + @Test + @TestMetadata("privateLeakThroughInline.kt") + public void testPrivateLeakThroughInline() throws Exception { + runTest("compiler/testData/codegen/box/ir/privateSignatures/privateLeakThroughInline.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ir/serializationRegressions") + @TestDataPath("$PROJECT_ROOT") + public class SerializationRegressions { + @Test + public void testAllFilesPresentInSerializationRegressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/serializationRegressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonFakeOverride.kt") + public void testAnonFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/anonFakeOverride.kt"); + } + + @Test + @TestMetadata("deepGenericDelegatedProperty.kt") + public void testDeepGenericDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/deepGenericDelegatedProperty.kt"); + } + + @Test + @TestMetadata("dispatchReceiverValue.kt") + public void testDispatchReceiverValue() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/dispatchReceiverValue.kt"); + } + + @Test + @TestMetadata("genericProperty.kt") + public void testGenericProperty() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/genericProperty.kt"); + } + + @Test + @TestMetadata("innerClassInEnumEntryClass.kt") + public void testInnerClassInEnumEntryClass() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt"); + } + + @Test + @TestMetadata("signatureClash.kt") + public void testSignatureClash() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/signatureClash.kt"); + } + + @Test + @TestMetadata("transitiveClash.kt") + public void testTransitiveClash() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/transitiveClash.kt"); + } + + @Test + @TestMetadata("useImportedMember.kt") + public void testUseImportedMember() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/useImportedMember.kt"); + } + + @Test + @TestMetadata("varAsFunctionCall.kt") + public void testVarAsFunctionCall() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/varAsFunctionCall.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaFieldAndKotlinProperty") + @TestDataPath("$PROJECT_ROOT") + public class JavaFieldAndKotlinProperty { + @Test + public void testAllFilesPresentInJavaFieldAndKotlinProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaFieldAndKotlinProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaCloseFieldAndKotlinProperty.kt") + public void testJavaCloseFieldAndKotlinProperty() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaCloseFieldAndKotlinProperty.kt"); + } + + @Test + @TestMetadata("javaFieldAndCompanionProperty.kt") + public void testJavaFieldAndCompanionProperty() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndCompanionProperty.kt"); + } + + @Test + @TestMetadata("javaFieldAndKotlinInvisibleProperty.kt") + public void testJavaFieldAndKotlinInvisibleProperty() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinInvisibleProperty.kt"); + } + + @Test + @TestMetadata("javaFieldAndKotlinInvisiblePropertyViaTypeParameter.kt") + public void testJavaFieldAndKotlinInvisiblePropertyViaTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinInvisiblePropertyViaTypeParameter.kt"); + } + + @Test + @TestMetadata("javaFieldAndKotlinInvisiblePropertyWithGetter.kt") + public void testJavaFieldAndKotlinInvisiblePropertyWithGetter() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinInvisiblePropertyWithGetter.kt"); + } + + @Test + @TestMetadata("javaFieldAndKotlinLateinitProperty.kt") + public void testJavaFieldAndKotlinLateinitProperty() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinLateinitProperty.kt"); + } + + @Test + @TestMetadata("javaFieldAndKotlinPrivateProperty.kt") + public void testJavaFieldAndKotlinPrivateProperty() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPrivateProperty.kt"); + } + + @Test + @TestMetadata("javaFieldAndKotlinProperty.kt") + public void testJavaFieldAndKotlinProperty() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinProperty.kt"); + } + + @Test + @TestMetadata("javaFieldAndKotlinPropertyReference.kt") + public void testJavaFieldAndKotlinPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReference.kt"); + } + + @Test + @TestMetadata("javaFieldAndKotlinPropertyReferenceFromInner.kt") + public void testJavaFieldAndKotlinPropertyReferenceFromInner() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReferenceFromInner.kt"); + } + + @Test + @TestMetadata("javaFieldAndKotlinPropertySuperAccess.kt") + public void testJavaFieldAndKotlinPropertySuperAccess() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertySuperAccess.kt"); + } + + @Test + @TestMetadata("javaFieldAndKotlinPropertyWithComplexReceiver.kt") + public void testJavaFieldAndKotlinPropertyWithComplexReceiver() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyWithComplexReceiver.kt"); + } + + @Test + @TestMetadata("javaFieldAndKotlinPropertyWithSmartcast.kt") + public void testJavaFieldAndKotlinPropertyWithSmartcast() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyWithSmartcast.kt"); + } + + @Test + @TestMetadata("javaFieldKotlinPropertyJavaField.kt") + public void testJavaFieldKotlinPropertyJavaField() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldKotlinPropertyJavaField.kt"); + } + + @Test + @TestMetadata("javaFieldKotlinPropertyJavaPackagePrivate.kt") + public void testJavaFieldKotlinPropertyJavaPackagePrivate() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldKotlinPropertyJavaPackagePrivate.kt"); + } + + @Test + @TestMetadata("javaInvisibleFieldAndKotlinProperty.kt") + public void testJavaInvisibleFieldAndKotlinProperty() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaInvisibleFieldAndKotlinProperty.kt"); + } + + @Test + @TestMetadata("javaInvisibleFieldAndKotlinPropertyReference.kt") + public void testJavaInvisibleFieldAndKotlinPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaInvisibleFieldAndKotlinPropertyReference.kt"); + } + + @Test + @TestMetadata("javaPackagePrivateClassAndPublicField.kt") + public void testJavaPackagePrivateClassAndPublicField() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaPackagePrivateClassAndPublicField.kt"); + } + + @Test + @TestMetadata("javaPackagePrivateClassExposedViaProtectedStatic.kt") + public void testJavaPackagePrivateClassExposedViaProtectedStatic() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaPackagePrivateClassExposedViaProtectedStatic.kt"); + } + + @Test + @TestMetadata("javaProtectedFieldAndKotlinInvisibleProperty.kt") + public void testJavaProtectedFieldAndKotlinInvisibleProperty() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAndKotlinInvisibleProperty.kt"); + } + + @Test + @TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyReference.kt") + public void testJavaProtectedFieldAndKotlinInvisiblePropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt"); + } + + @Test + @TestMetadata("javaProtectedFieldAndKotlinPropertyReference.kt") + public void testJavaProtectedFieldAndKotlinPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAndKotlinPropertyReference.kt"); + } + + @Test + @TestMetadata("javaProtectedFieldAnotherPackageReference.kt") + public void testJavaProtectedFieldAnotherPackageReference() throws Exception { + runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAnotherPackageReference.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaInterop") + @TestDataPath("$PROJECT_ROOT") + public class JavaInterop { + @Test + @TestMetadata("abstractMethodsOfAny.kt") + public void testAbstractMethodsOfAny() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/abstractMethodsOfAny.kt"); + } + + @Test + public void testAllFilesPresentInJavaInterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ambiguousJavaVararg.kt") + public void testAmbiguousJavaVararg() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/ambiguousJavaVararg.kt"); + } + + @Test + @TestMetadata("conflictingOverloadsForThrowableInheritors.kt") + public void testConflictingOverloadsForThrowableInheritors() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/conflictingOverloadsForThrowableInheritors.kt"); + } + + @Test + @TestMetadata("conflictingOverloadsForThrowableInheritors2.kt") + public void testConflictingOverloadsForThrowableInheritors2() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/conflictingOverloadsForThrowableInheritors2.kt"); + } + + @Test + @TestMetadata("delegationToJavaDnn.kt") + public void testDelegationToJavaDnn() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/delegationToJavaDnn.kt"); + } + + @Test + @TestMetadata("genericSamProjectedOut.kt") + public void testGenericSamProjectedOut() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/genericSamProjectedOut.kt"); + } + + @Test + @TestMetadata("genericSamSmartcast.kt") + public void testGenericSamSmartcast() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/genericSamSmartcast.kt"); + } + + @Test + @TestMetadata("inheritanceWithWildcard.kt") + public void testInheritanceWithWildcard() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt"); + } + + @Test + @TestMetadata("javaInterfaceFieldDirectAccess.kt") + public void testJavaInterfaceFieldDirectAccess() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/javaInterfaceFieldDirectAccess.kt"); + } + + @Test + @TestMetadata("javaOuterClassDependsOnInner.kt") + public void testJavaOuterClassDependsOnInner() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/javaOuterClassDependsOnInner.kt"); + } + + @Test + @TestMetadata("kt43217.kt") + public void testKt43217() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/kt43217.kt"); + } + + @Test + @TestMetadata("kt48590.kt") + public void testKt48590() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/kt48590.kt"); + } + + @Test + @TestMetadata("lambdaInstanceOf.kt") + public void testLambdaInstanceOf() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/lambdaInstanceOf.kt"); + } + + @Test + @TestMetadata("notFoundClasses.kt") + public void testNotFoundClasses() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notFoundClasses.kt"); + } + + @Test + @TestMetadata("protectedField.kt") + public void testProtectedField() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/protectedField.kt"); + } + + @Test + @TestMetadata("samTypeParameter.kt") + public void testSamTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/samTypeParameter.kt"); + } + + @Test + @TestMetadata("samUnboundTypeParameter.kt") + public void testSamUnboundTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/samUnboundTypeParameter.kt"); + } + + @Test + @TestMetadata("superCallOfPrintStackTrace.kt") + public void testSuperCallOfPrintStackTrace() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/superCallOfPrintStackTrace.kt"); + } + + @Test + @TestMetadata("syntheticPropClashingWithJvmField.kt") + public void testSyntheticPropClashingWithJvmField() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/syntheticPropClashingWithJvmField.kt"); + } + + @Test + @TestMetadata("syntheticPropOverriddenGetter.kt") + public void testSyntheticPropOverriddenGetter() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/syntheticPropOverriddenGetter.kt"); + } + + @Test + @TestMetadata("unresolvedJavaClassInDifferentFile.kt") + public void testUnresolvedJavaClassInDifferentFile() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/unresolvedJavaClassInDifferentFile.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaInterop/foreignAnnotationsTests") + @TestDataPath("$PROJECT_ROOT") + public class ForeignAnnotationsTests { + @Test + public void testAllFilesPresentInForeignAnnotationsTests() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/foreignAnnotationsTests"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaInterop/foreignAnnotationsTests/tests") + @TestDataPath("$PROJECT_ROOT") + public class Tests { + @Test + public void testAllFilesPresentInTests() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/foreignAnnotationsTests/tests"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt53041.kt") + public void testKt53041() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/foreignAnnotationsTests/tests/kt53041.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaInterop/generics") + @TestDataPath("$PROJECT_ROOT") + public class Generics { + @Test + public void testAllFilesPresentInGenerics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/generics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("allWildcardsOnClass.kt") + public void testAllWildcardsOnClass() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/generics/allWildcardsOnClass.kt"); + } + + @Test + @TestMetadata("covariantOverrideWithDeclarationSiteProjection.kt") + public void testCovariantOverrideWithDeclarationSiteProjection() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/generics/covariantOverrideWithDeclarationSiteProjection.kt"); + } + + @Test + @TestMetadata("invariantArgumentsNoWildcard.kt") + public void testInvariantArgumentsNoWildcard() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/generics/invariantArgumentsNoWildcard.kt"); + } + + @Test + @TestMetadata("javaNestedSamInterface.kt") + public void testJavaNestedSamInterface() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/generics/javaNestedSamInterface.kt"); + } + + @Test + @TestMetadata("kt42824.kt") + public void testKt42824() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/generics/kt42824.kt"); + } + + @Test + @TestMetadata("kt42825.kt") + public void testKt42825() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/generics/kt42825.kt"); + } + + @Test + @TestMetadata("propertyVarianceConflict.kt") + public void testPropertyVarianceConflict() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/generics/propertyVarianceConflict.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaInterop/notNullAssertions") + @TestDataPath("$PROJECT_ROOT") + public class NotNullAssertions { + @Test + public void testAllFilesPresentInNotNullAssertions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("destructuringAssignmentWithNullabilityAssertionOnExtensionReceiver_lv12.kt") + public void testDestructuringAssignmentWithNullabilityAssertionOnExtensionReceiver_lv12() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/destructuringAssignmentWithNullabilityAssertionOnExtensionReceiver_lv12.kt"); + } + + @Test + @TestMetadata("extensionReceiverParameter.kt") + public void testExtensionReceiverParameter() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/extensionReceiverParameter.kt"); + } + + @Test + @TestMetadata("functionAssertion.kt") + public void testFunctionAssertion() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/functionAssertion.kt"); + } + + @Test + @TestMetadata("functionWithBigArity.kt") + public void testFunctionWithBigArity() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/functionWithBigArity.kt"); + } + + @Test + @TestMetadata("incWithNullabilityAssertionOnExtensionReceiver.kt") + public void testIncWithNullabilityAssertionOnExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/incWithNullabilityAssertionOnExtensionReceiver.kt"); + } + + @Test + @TestMetadata("incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator.kt") + public void testIncWithNullabilityAssertionOnExtensionReceiverInPrivateOperator() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator.kt"); + } + + @Test + @TestMetadata("kt18911.kt") + public void testKt18911() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/kt18911.kt"); + } + + @Test + @TestMetadata("kt24258.kt") + public void testKt24258() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/kt24258.kt"); + } + + @Test + @TestMetadata("kt24258nn.kt") + public void testKt24258nn() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/kt24258nn.kt"); + } + + @Test + @TestMetadata("localEntities.kt") + public void testLocalEntities() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/localEntities.kt"); + } + + @Test + @TestMetadata("mapPut.kt") + public void testMapPut() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/mapPut.kt"); + } + + @Test + @TestMetadata("nonNullableTypeParameter.kt") + public void testNonNullableTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nonNullableTypeParameter.kt"); + } + + @Test + @TestMetadata("nullabilityAssertionOnExtensionReceiver.kt") + public void testNullabilityAssertionOnExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullabilityAssertionOnExtensionReceiver.kt"); + } + + @Test + @TestMetadata("nullabilityAssertionOnInlineFunExtensionReceiver.kt") + public void testNullabilityAssertionOnInlineFunExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullabilityAssertionOnInlineFunExtensionReceiver.kt"); + } + + @Test + @TestMetadata("nullabilityAssertionOnMemberExtensionReceiver.kt") + public void testNullabilityAssertionOnMemberExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullabilityAssertionOnMemberExtensionReceiver.kt"); + } + + @Test + @TestMetadata("nullabilityAssertionOnPrivateMemberExtensionReceiver.kt") + public void testNullabilityAssertionOnPrivateMemberExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullabilityAssertionOnPrivateMemberExtensionReceiver.kt"); + } + + @Test + @TestMetadata("nullableTypeParameter.kt") + public void testNullableTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullableTypeParameter.kt"); + } + + @Test + @TestMetadata("paramAssertionMessage.kt") + public void testParamAssertionMessage() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/paramAssertionMessage.kt"); + } + + @Test + @TestMetadata("privateOperatorParameterAssertions.kt") + public void testPrivateOperatorParameterAssertions() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/privateOperatorParameterAssertions.kt"); + } + + @Test + @TestMetadata("typeParameterWithMixedNullableAndNotNullableBounds.kt") + public void testTypeParameterWithMixedNullableAndNotNullableBounds() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/typeParameterWithMixedNullableAndNotNullableBounds.kt"); + } + + @Test + @TestMetadata("typeParameterWithMultipleNotNullableBounds.kt") + public void testTypeParameterWithMultipleNotNullableBounds() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/typeParameterWithMultipleNotNullableBounds.kt"); + } + + @Test + @TestMetadata("typeParameterWithMultipleNullableBounds.kt") + public void testTypeParameterWithMultipleNullableBounds() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/typeParameterWithMultipleNullableBounds.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability") + @TestDataPath("$PROJECT_ROOT") + public class EnhancedNullability { + @Test + public void testAllFilesPresentInEnhancedNullability() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inFunctionWithExpressionBody.kt") + public void testInFunctionWithExpressionBody() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inFunctionWithExpressionBody.kt"); + } + + @Test + @TestMetadata("inFunctionWithExpressionBodyWithJavaGeneric.kt") + public void testInFunctionWithExpressionBodyWithJavaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inFunctionWithExpressionBodyWithJavaGeneric.kt"); + } + + @Test + @TestMetadata("inLambdaReturnWithExpectedType.kt") + public void testInLambdaReturnWithExpectedType() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inLambdaReturnWithExpectedType.kt"); + } + + @Test + @TestMetadata("inLocalFunctionWithExpressionBody.kt") + public void testInLocalFunctionWithExpressionBody() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inLocalFunctionWithExpressionBody.kt"); + } + + @Test + @TestMetadata("inLocalVariableInitializer.kt") + public void testInLocalVariableInitializer() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inLocalVariableInitializer.kt"); + } + + @Test + @TestMetadata("inMemberPropertyInitializer.kt") + public void testInMemberPropertyInitializer() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inMemberPropertyInitializer.kt"); + } + + @Test + @TestMetadata("inPropertyGetterWithExpressionBody.kt") + public void testInPropertyGetterWithExpressionBody() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inPropertyGetterWithExpressionBody.kt"); + } + + @Test + @TestMetadata("inTopLevelPropertyInitializer.kt") + public void testInTopLevelPropertyInitializer() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inTopLevelPropertyInitializer.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages") + @TestDataPath("$PROJECT_ROOT") + public class ExpressionAssertionMessages { + @Test + public void testAllFilesPresentInExpressionAssertionMessages() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("field_after.kt") + public void testField_after() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/field_after.kt"); + } + + @Test + @TestMetadata("field_before.kt") + public void testField_before() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/field_before.kt"); + } + + @Test + @TestMetadata("localVariable_after.kt") + public void testLocalVariable_after() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/localVariable_after.kt"); + } + + @Test + @TestMetadata("localVariable_before.kt") + public void testLocalVariable_before() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/localVariable_before.kt"); + } + + @Test + @TestMetadata("simple_after.kt") + public void testSimple_after() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/simple_after.kt"); + } + + @Test + @TestMetadata("simple_before.kt") + public void testSimple_before() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/simple_before.kt"); + } + + @Test + @TestMetadata("staticCall_after.kt") + public void testStaticCall_after() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/staticCall_after.kt"); + } + + @Test + @TestMetadata("staticCall_before.kt") + public void testStaticCall_before() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/staticCall_before.kt"); + } + + @Test + @TestMetadata("syntheticProperty_after.kt") + public void testSyntheticProperty_after() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/syntheticProperty_after.kt"); + } + + @Test + @TestMetadata("syntheticProperty_before.kt") + public void testSyntheticProperty_before() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/syntheticProperty_before.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue") + @TestDataPath("$PROJECT_ROOT") + public class NullCheckOnLambdaReturnValue { + @Test + public void testAllFilesPresentInNullCheckOnLambdaReturnValue() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("nnStringVsT.kt") + public void testNnStringVsT() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/nnStringVsT.kt"); + } + + @Test + @TestMetadata("nnStringVsTAny.kt") + public void testNnStringVsTAny() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/nnStringVsTAny.kt"); + } + + @Test + @TestMetadata("nnStringVsTConstrained.kt") + public void testNnStringVsTConstrained() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/nnStringVsTConstrained.kt"); + } + + @Test + @TestMetadata("nnStringVsTXArray.kt") + public void testNnStringVsTXArray() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/nnStringVsTXArray.kt"); + } + + @Test + @TestMetadata("nnStringVsTXString.kt") + public void testNnStringVsTXString() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/nnStringVsTXString.kt"); + } + + @Test + @TestMetadata("stringVsT.kt") + public void testStringVsT() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/stringVsT.kt"); + } + + @Test + @TestMetadata("stringVsTAny.kt") + public void testStringVsTAny() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/stringVsTAny.kt"); + } + + @Test + @TestMetadata("stringVsTConstrained.kt") + public void testStringVsTConstrained() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/stringVsTConstrained.kt"); + } + + @Test + @TestMetadata("stringVsTXArray.kt") + public void testStringVsTXArray() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/stringVsTXArray.kt"); + } + + @Test + @TestMetadata("stringVsTXString.kt") + public void testStringVsTXString() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/stringVsTXString.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaInterop/objectMethods") + @TestDataPath("$PROJECT_ROOT") + public class ObjectMethods { + @Test + public void testAllFilesPresentInObjectMethods() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/objectMethods"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("cloneCallsConstructor.kt") + public void testCloneCallsConstructor() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneCallsConstructor.kt"); + } + + @Test + @TestMetadata("cloneCallsSuper.kt") + public void testCloneCallsSuper() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneCallsSuper.kt"); + } + + @Test + @TestMetadata("cloneCallsSuperAndModifies.kt") + public void testCloneCallsSuperAndModifies() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneCallsSuperAndModifies.kt"); + } + + @Test + @TestMetadata("cloneHashSet.kt") + public void testCloneHashSet() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneHashSet.kt"); + } + + @Test + @TestMetadata("cloneHierarchy.kt") + public void testCloneHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneHierarchy.kt"); + } + + @Test + @TestMetadata("cloneableClassWithoutClone.kt") + public void testCloneableClassWithoutClone() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneableClassWithoutClone.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaVisibility") + @TestDataPath("$PROJECT_ROOT") + public class JavaVisibility { + @Test + public void testAllFilesPresentInJavaVisibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaVisibility/package") + @TestDataPath("$PROJECT_ROOT") + public class Package { + @Test + public void testAllFilesPresentInPackage() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("cannotAccessInterfaceMemberViaReceiver.kt") + public void testCannotAccessInterfaceMemberViaReceiver() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/package/cannotAccessInterfaceMemberViaReceiver.kt"); + } + + @Test + @TestMetadata("cannotAccessStaticMemberViaReceiver.kt") + public void testCannotAccessStaticMemberViaReceiver() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/package/cannotAccessStaticMemberViaReceiver.kt"); + } + + @Test + @TestMetadata("cannotAccessStaticMemberViaReceiver2.kt") + public void testCannotAccessStaticMemberViaReceiver2() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/package/cannotAccessStaticMemberViaReceiver2.kt"); + } + + @Test + @TestMetadata("cannotAccessStaticMemberViaTypeAlias.kt") + public void testCannotAccessStaticMemberViaTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/package/cannotAccessStaticMemberViaTypeAlias.kt"); + } + + @Test + @TestMetadata("inheritedPackageStaticField.kt") + public void testInheritedPackageStaticField() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/package/inheritedPackageStaticField.kt"); + } + + @Test + @TestMetadata("inheritedPackageStaticFunction.kt") + public void testInheritedPackageStaticFunction() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/package/inheritedPackageStaticFunction.kt"); + } + + @Test + @TestMetadata("kt2781.kt") + public void testKt2781() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/package/kt2781.kt"); + } + + @Test + @TestMetadata("packageClass.kt") + public void testPackageClass() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/package/packageClass.kt"); + } + + @Test + @TestMetadata("packageFun.kt") + public void testPackageFun() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/package/packageFun.kt"); + } + + @Test + @TestMetadata("packageProperty.kt") + public void testPackageProperty() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/package/packageProperty.kt"); + } + + @Test + @TestMetadata("publicInterfaceImplementedByPackagePrivateClass.kt") + public void testPublicInterfaceImplementedByPackagePrivateClass() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/package/publicInterfaceImplementedByPackagePrivateClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaVisibility/protectedAndPackage") + @TestDataPath("$PROJECT_ROOT") + public class ProtectedAndPackage { + @Test + public void testAllFilesPresentInProtectedAndPackage() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/protectedAndPackage"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt42012.kt") + public void testKt42012() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/kt42012.kt"); + } + + @Test + @TestMetadata("overrideProtectedFunInPackage.kt") + public void testOverrideProtectedFunInPackage() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/overrideProtectedFunInPackage.kt"); + } + + @Test + @TestMetadata("protectedAccessor.kt") + public void testProtectedAccessor() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedAccessor.kt"); + } + + @Test + @TestMetadata("protectedFunInPackage.kt") + public void testProtectedFunInPackage() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedFunInPackage.kt"); + } + + @Test + @TestMetadata("protectedPropertyInPackage.kt") + public void testProtectedPropertyInPackage() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedPropertyInPackage.kt"); + } + + @Test + @TestMetadata("protectedPropertyInPackageFromCrossinline.kt") + public void testProtectedPropertyInPackageFromCrossinline() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt"); + } + + @Test + @TestMetadata("protectedStaticClass.kt") + public void testProtectedStaticClass() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedStaticClass.kt"); + } + + @Test + @TestMetadata("protectedSuperField.kt") + public void testProtectedSuperField() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedSuperField.kt"); + } + + @Test + @TestMetadata("protectedSuperMethod.kt") + public void testProtectedSuperMethod() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedSuperMethod.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/javaVisibility/protectedStatic") + @TestDataPath("$PROJECT_ROOT") + public class ProtectedStatic { + @Test + public void testAllFilesPresentInProtectedStatic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/protectedStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("funCallInConstructor.kt") + public void testFunCallInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funCallInConstructor.kt"); + } + + @Test + @TestMetadata("funClassObject.kt") + public void testFunClassObject() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funClassObject.kt"); + } + + @Test + @TestMetadata("funGenericClass.kt") + public void testFunGenericClass() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funGenericClass.kt"); + } + + @Test + @TestMetadata("funNestedStaticClass.kt") + public void testFunNestedStaticClass() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNestedStaticClass.kt"); + } + + @Test + @TestMetadata("funNestedStaticClass2.kt") + public void testFunNestedStaticClass2() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNestedStaticClass2.kt"); + } + + @Test + @TestMetadata("funNestedStaticGenericClass.kt") + public void testFunNestedStaticGenericClass() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNestedStaticGenericClass.kt"); + } + + @Test + @TestMetadata("funNotDirectSuperClass.kt") + public void testFunNotDirectSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNotDirectSuperClass.kt"); + } + + @Test + @TestMetadata("funObject.kt") + public void testFunObject() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funObject.kt"); + } + + @Test + @TestMetadata("simpleClass.kt") + public void testSimpleClass() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleClass.kt"); + } + + @Test + @TestMetadata("simpleClass2.kt") + public void testSimpleClass2() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleClass2.kt"); + } + + @Test + @TestMetadata("simpleFun.kt") + public void testSimpleFun() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleFun.kt"); + } + + @Test + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleProperty.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jdk") + @TestDataPath("$PROJECT_ROOT") + public class Jdk { + @Test + public void testAllFilesPresentInJdk() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jdk"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayList.kt") + public void testArrayList() throws Exception { + runTest("compiler/testData/codegen/box/jdk/arrayList.kt"); + } + + @Test + @TestMetadata("hashMap.kt") + public void testHashMap() throws Exception { + runTest("compiler/testData/codegen/box/jdk/hashMap.kt"); + } + + @Test + @TestMetadata("iteratingOverHashMap.kt") + public void testIteratingOverHashMap() throws Exception { + runTest("compiler/testData/codegen/box/jdk/iteratingOverHashMap.kt"); + } + + @Test + @TestMetadata("kt1397.kt") + public void testKt1397() throws Exception { + runTest("compiler/testData/codegen/box/jdk/kt1397.kt"); + } + + @Test + @TestMetadata("noStringToCharArray.kt") + public void testNoStringToCharArray() throws Exception { + runTest("compiler/testData/codegen/box/jdk/noStringToCharArray.kt"); + } + + @Test + @TestMetadata("removeIf.kt") + public void testRemoveIf() throws Exception { + runTest("compiler/testData/codegen/box/jdk/removeIf.kt"); + } + + @Test + @TestMetadata("stream.kt") + public void testStream() throws Exception { + runTest("compiler/testData/codegen/box/jdk/stream.kt"); + } + + @Test + @TestMetadata("useStream.kt") + public void testUseStream() throws Exception { + runTest("compiler/testData/codegen/box/jdk/useStream.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/js") + @TestDataPath("$PROJECT_ROOT") + public class Js { + @Test + public void testAllFilesPresentInJs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8 { + @Test + public void testAllFilesPresentInJvm8() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bridgeInClass.kt") + public void testBridgeInClass() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/bridgeInClass.kt"); + } + + @Test + @TestMetadata("bridgeInInterface.kt") + public void testBridgeInInterface() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/bridgeInInterface.kt"); + } + + @Test + @TestMetadata("capturedSuperCall.kt") + public void testCapturedSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/capturedSuperCall.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaultArgs.kt"); + } + + @Test + @TestMetadata("inlineFromAnotherFile.kt") + public void testInlineFromAnotherFile() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/inlineFromAnotherFile.kt"); + } + + @Test + @TestMetadata("inlineFromStdlib.kt") + public void testInlineFromStdlib() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/inlineFromStdlib.kt"); + } + + @Test + @TestMetadata("kt11969.kt") + public void testKt11969() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/kt11969.kt"); + } + + @Test + @TestMetadata("kt14243.kt") + public void testKt14243() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/kt14243.kt"); + } + + @Test + @TestMetadata("kt14243_2.kt") + public void testKt14243_2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/kt14243_2.kt"); + } + + @Test + @TestMetadata("kt14243_prop.kt") + public void testKt14243_prop() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/kt14243_prop.kt"); + } + + @Test + @TestMetadata("kt16581.kt") + public void testKt16581() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/kt16581.kt"); + } + + @Test + @TestMetadata("kt16581_2.kt") + public void testKt16581_2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/kt16581_2.kt"); + } + + @Test + @TestMetadata("kt16588.kt") + public void testKt16588() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/kt16588.kt"); + } + + @Test + @TestMetadata("kt29242.kt") + public void testKt29242() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/kt29242.kt"); + } + + @Test + @TestMetadata("kt33054.kt") + public void testKt33054() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/kt33054.kt"); + } + + @Test + @TestMetadata("kt6301.kt") + public void testKt6301() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/kt6301.kt"); + } + + @Test + @TestMetadata("kt6301_2.kt") + public void testKt6301_2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/kt6301_2.kt"); + } + + @Test + @TestMetadata("oneImplementation.kt") + public void testOneImplementation() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/oneImplementation.kt"); + } + + @Test + @TestMetadata("oneImplementation2.kt") + public void testOneImplementation2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/oneImplementation2.kt"); + } + + @Test + @TestMetadata("simpleCall.kt") + public void testSimpleCall() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/simpleCall.kt"); + } + + @Test + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/simpleProperty.kt"); + } + + @Test + @TestMetadata("treeMapBridge.kt") + public void testTreeMapBridge() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/treeMapBridge.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults") + @TestDataPath("$PROJECT_ROOT") + public class Defaults { + @Test + public void testAllFilesPresentInDefaults() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("builtInsInherited.kt") + public void testBuiltInsInherited() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/builtInsInherited.kt"); + } + + @Test + @TestMetadata("kt26360.kt") + public void testKt26360() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/kt26360.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/allCompatibility") + @TestDataPath("$PROJECT_ROOT") + public class AllCompatibility { + @Test + @TestMetadata("accessor.kt") + public void testAccessor() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/accessor.kt"); + } + + @Test + @TestMetadata("accessorFromCompanion.kt") + public void testAccessorFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/accessorFromCompanion.kt"); + } + + @Test + public void testAllFilesPresentInAllCompatibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bridge.kt") + public void testBridge() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridge.kt"); + } + + @Test + @TestMetadata("bridge2.kt") + public void testBridge2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridge2.kt"); + } + + @Test + @TestMetadata("bridge3.kt") + public void testBridge3() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridge3.kt"); + } + + @Test + @TestMetadata("bridgeInClass.kt") + public void testBridgeInClass() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeInClass.kt"); + } + + @Test + @TestMetadata("bridgeInInterface.kt") + public void testBridgeInInterface() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeInInterface.kt"); + } + + @Test + @TestMetadata("bridgeInInterface2.kt") + public void testBridgeInInterface2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeInInterface2.kt"); + } + + @Test + @TestMetadata("bridgeInInterfaceWithProperties.kt") + public void testBridgeInInterfaceWithProperties() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeInInterfaceWithProperties.kt"); + } + + @Test + @TestMetadata("bridgeInInterfaceWithProperties2.kt") + public void testBridgeInInterfaceWithProperties2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeInInterfaceWithProperties2.kt"); + } + + @Test + @TestMetadata("bridgeWithJava.kt") + public void testBridgeWithJava() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeWithJava.kt"); + } + + @Test + @TestMetadata("bridgeWithProperties.kt") + public void testBridgeWithProperties() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeWithProperties.kt"); + } + + @Test + @TestMetadata("bridgeWithProperties2.kt") + public void testBridgeWithProperties2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeWithProperties2.kt"); + } + + @Test + @TestMetadata("bridgeWithProperties3.kt") + public void testBridgeWithProperties3() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeWithProperties3.kt"); + } + + @Test + @TestMetadata("callStackTrace.kt") + public void testCallStackTrace() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/callStackTrace.kt"); + } + + @Test + @TestMetadata("callableReference.kt") + public void testCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/callableReference.kt"); + } + + @Test + @TestMetadata("capturedSuperCall.kt") + public void testCapturedSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/capturedSuperCall.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsViaAnonymousObject.kt") + public void testDefaultArgsViaAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/defaultArgsViaAnonymousObject.kt"); + } + + @Test + @TestMetadata("deprecatedAnnotation.kt") + public void testDeprecatedAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/deprecatedAnnotation.kt"); + } + + @Test + @TestMetadata("deprecatedDefaultMethod.kt") + public void testDeprecatedDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/deprecatedDefaultMethod.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/diamond.kt"); + } + + @Test + @TestMetadata("funInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/funInterface.kt"); + } + + @Test + @TestMetadata("inheritedFunctionWithDefaultParameters.kt") + public void testInheritedFunctionWithDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/inheritedFunctionWithDefaultParameters.kt"); + } + + @Test + @TestMetadata("inheritedJvmDefault.kt") + public void testInheritedJvmDefault() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/inheritedJvmDefault.kt"); + } + + @Test + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/inline.kt"); + } + + @Test + @TestMetadata("inlineProperty.kt") + public void testInlineProperty() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/inlineProperty.kt"); + } + + @Test + @TestMetadata("interfaceExtension.kt") + public void testInterfaceExtension() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/interfaceExtension.kt"); + } + + @Test + @TestMetadata("kt11969.kt") + public void testKt11969() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt11969.kt"); + } + + @Test + @TestMetadata("kt14243.kt") + public void testKt14243() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt14243.kt"); + } + + @Test + @TestMetadata("kt14243_2.kt") + public void testKt14243_2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt14243_2.kt"); + } + + @Test + @TestMetadata("kt14243_prop.kt") + public void testKt14243_prop() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt14243_prop.kt"); + } + + @Test + @TestMetadata("kt40920.kt") + public void testKt40920() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt40920.kt"); + } + + @Test + @TestMetadata("kt42674.kt") + public void testKt42674() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt42674.kt"); + } + + @Test + @TestMetadata("localDelegatedProperties.kt") + public void testLocalDelegatedProperties() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/localDelegatedProperties.kt"); + } + + @Test + @TestMetadata("oneImplementation.kt") + public void testOneImplementation() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/oneImplementation.kt"); + } + + @Test + @TestMetadata("oneImplementation2.kt") + public void testOneImplementation2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/oneImplementation2.kt"); + } + + @Test + @TestMetadata("privateFunInInterface.kt") + public void testPrivateFunInInterface() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateFunInInterface.kt"); + } + + @Test + @TestMetadata("privateFunWithDefaultArg.kt") + public void testPrivateFunWithDefaultArg() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateFunWithDefaultArg.kt"); + } + + @Test + @TestMetadata("privateFunWithDefaultArg2.kt") + public void testPrivateFunWithDefaultArg2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateFunWithDefaultArg2.kt"); + } + + @Test + @TestMetadata("privateSuspend.kt") + public void testPrivateSuspend() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateSuspend.kt"); + } + + @Test + @TestMetadata("propertyAnnotation.kt") + public void testPropertyAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/propertyAnnotation.kt"); + } + + @Test + @TestMetadata("simpleFunction.kt") + public void testSimpleFunction() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/simpleFunction.kt"); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/superCall.kt"); + } + + @Test + @TestMetadata("suspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/suspendFunction.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy") + @TestDataPath("$PROJECT_ROOT") + public class DelegationBy { + @Test + public void testAllFilesPresentInDelegationBy() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/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/jvm8/defaults/allCompatibility/delegationBy/simple.kt"); + } + + @Test + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/delegationBy") + @TestDataPath("$PROJECT_ROOT") + public class DelegationBy { + @Test + public void testAllFilesPresentInDelegationBy() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaDefaultMethod.kt") + public void testJavaDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/delegationBy/javaDefaultMethod.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls") + @TestDataPath("$PROJECT_ROOT") + public class NoDefaultImpls { + @Test + @TestMetadata("accessor.kt") + public void testAccessor() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/accessor.kt"); + } + + @Test + @TestMetadata("accessorFromCompanion.kt") + public void testAccessorFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/accessorFromCompanion.kt"); + } + + @Test + public void testAllFilesPresentInNoDefaultImpls() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bridge.kt") + public void testBridge() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridge.kt"); + } + + @Test + @TestMetadata("bridge2.kt") + public void testBridge2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridge2.kt"); + } + + @Test + @TestMetadata("bridge3.kt") + public void testBridge3() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridge3.kt"); + } + + @Test + @TestMetadata("bridgeInClass.kt") + public void testBridgeInClass() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeInClass.kt"); + } + + @Test + @TestMetadata("bridgeInInterface.kt") + public void testBridgeInInterface() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeInInterface.kt"); + } + + @Test + @TestMetadata("bridgeInInterface2.kt") + public void testBridgeInInterface2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeInInterface2.kt"); + } + + @Test + @TestMetadata("bridgeInInterfaceWithProperties.kt") + public void testBridgeInInterfaceWithProperties() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeInInterfaceWithProperties.kt"); + } + + @Test + @TestMetadata("bridgeInInterfaceWithProperties2.kt") + public void testBridgeInInterfaceWithProperties2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeInInterfaceWithProperties2.kt"); + } + + @Test + @TestMetadata("bridgeWithJava.kt") + public void testBridgeWithJava() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeWithJava.kt"); + } + + @Test + @TestMetadata("bridgeWithProperties.kt") + public void testBridgeWithProperties() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeWithProperties.kt"); + } + + @Test + @TestMetadata("bridgeWithProperties2.kt") + public void testBridgeWithProperties2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeWithProperties2.kt"); + } + + @Test + @TestMetadata("bridgeWithProperties3.kt") + public void testBridgeWithProperties3() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeWithProperties3.kt"); + } + + @Test + @TestMetadata("callableReference.kt") + public void testCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/callableReference.kt"); + } + + @Test + @TestMetadata("capturedSuperCall.kt") + public void testCapturedSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/capturedSuperCall.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsViaAnonymousObject.kt") + public void testDefaultArgsViaAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/defaultArgsViaAnonymousObject.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/diamond.kt"); + } + + @Test + @TestMetadata("funInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/funInterface.kt"); + } + + @Test + @TestMetadata("inheritedFunctionWithDefaultParameters.kt") + public void testInheritedFunctionWithDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/inheritedFunctionWithDefaultParameters.kt"); + } + + @Test + @TestMetadata("inheritedJvmDefault.kt") + public void testInheritedJvmDefault() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/inheritedJvmDefault.kt"); + } + + @Test + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/inline.kt"); + } + + @Test + @TestMetadata("inlineProperty.kt") + public void testInlineProperty() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/inlineProperty.kt"); + } + + @Test + @TestMetadata("interfaceExtension.kt") + public void testInterfaceExtension() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/interfaceExtension.kt"); + } + + @Test + @TestMetadata("kt11969.kt") + public void testKt11969() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt11969.kt"); + } + + @Test + @TestMetadata("kt14243.kt") + public void testKt14243() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt14243.kt"); + } + + @Test + @TestMetadata("kt14243_2.kt") + public void testKt14243_2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt14243_2.kt"); + } + + @Test + @TestMetadata("kt14243_prop.kt") + public void testKt14243_prop() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt14243_prop.kt"); + } + + @Test + @TestMetadata("kt40920.kt") + public void testKt40920() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt40920.kt"); + } + + @Test + @TestMetadata("kt42674.kt") + public void testKt42674() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt42674.kt"); + } + + @Test + @TestMetadata("kt42967_all.kt") + public void testKt42967_all() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt42967_all.kt"); + } + + @Test + @TestMetadata("localDelegatedProperties.kt") + public void testLocalDelegatedProperties() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/localDelegatedProperties.kt"); + } + + @Test + @TestMetadata("localDelegatedProperties2.kt") + public void testLocalDelegatedProperties2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/localDelegatedProperties2.kt"); + } + + @Test + @TestMetadata("oneImplementation.kt") + public void testOneImplementation() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/oneImplementation.kt"); + } + + @Test + @TestMetadata("oneImplementation2.kt") + public void testOneImplementation2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/oneImplementation2.kt"); + } + + @Test + @TestMetadata("privateFunInInterface.kt") + public void testPrivateFunInInterface() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/privateFunInInterface.kt"); + } + + @Test + @TestMetadata("privateFunWithDefaultArg.kt") + public void testPrivateFunWithDefaultArg() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/privateFunWithDefaultArg.kt"); + } + + @Test + @TestMetadata("privateSuspend.kt") + public void testPrivateSuspend() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/privateSuspend.kt"); + } + + @Test + @TestMetadata("propertyAnnotation.kt") + public void testPropertyAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/propertyAnnotation.kt"); + } + + @Test + @TestMetadata("simpleFunction.kt") + public void testSimpleFunction() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/simpleFunction.kt"); + } + + @Test + @TestMetadata("suspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/suspendFunction.kt"); + } + + @Test + @TestMetadata("suspendSuperCall.kt") + public void testSuspendSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/suspendSuperCall.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy") + @TestDataPath("$PROJECT_ROOT") + public class DelegationBy { + @Test + public void testAllFilesPresentInDelegationBy() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simple.kt"); + } + + @Test + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simpleProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/specialization") + @TestDataPath("$PROJECT_ROOT") + public class Specialization { + @Test + public void testAllFilesPresentInSpecialization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/specialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/specialization/basic.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility") + @TestDataPath("$PROJECT_ROOT") + public class WithCompatibility { + @Test + public void testAllFilesPresentInWithCompatibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/defaultArgs.kt"); + } + + @Test + @TestMetadata("differentCases.kt") + public void testDifferentCases() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/differentCases.kt"); + } + + @Test + @TestMetadata("javaInheritance.kt") + public void testJavaInheritance() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/javaInheritance.kt"); + } + + @Test + @TestMetadata("propertyAnnotation.kt") + public void testPropertyAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/propertyAnnotation.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/simple.kt"); + } + + @Test + @TestMetadata("suspend.kt") + public void testSuspend() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/suspend.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance") + @TestDataPath("$PROJECT_ROOT") + public class NonDefaultInheritance { + @Test + public void testAllFilesPresentInNonDefaultInheritance() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("diamondWithJava.kt") + public void testDiamondWithJava() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/diamondWithJava.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/simple.kt"); + } + + @Test + @TestMetadata("simple2.kt") + public void testSimple2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/simple2.kt"); + } + + @Test + @TestMetadata("specialization.kt") + public void testSpecialization() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/specialization.kt"); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/superCall.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/reflection") + @TestDataPath("$PROJECT_ROOT") + public class Reflection { + @Test + public void testAllFilesPresentInReflection() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/reflection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("propertyAnnotations.kt") + public void testPropertyAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/defaults/reflection/propertyAnnotations.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/interfaceFlag") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceFlag { + @Test + public void testAllFilesPresentInInterfaceFlag() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/interfaceFlag"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/interfaceFlag/superCall.kt"); + } + + @Test + @TestMetadata("superCallIndirect.kt") + public void testSuperCallIndirect() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/interfaceFlag/superCallIndirect.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvm8/javaDefaults") + @TestDataPath("$PROJECT_ROOT") + public class JavaDefaults { + @Test + public void testAllFilesPresentInJavaDefaults() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/javaDefaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("capturedSuperCall.kt") + public void testCapturedSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/capturedSuperCall.kt"); + } + + @Test + @TestMetadata("defaultMethodCallFromInterface.kt") + public void testDefaultMethodCallFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/defaultMethodCallFromInterface.kt"); + } + + @Test + @TestMetadata("defaultMethodCallViaClass.kt") + public void testDefaultMethodCallViaClass() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/defaultMethodCallViaClass.kt"); + } + + @Test + @TestMetadata("defaultMethodCallViaInterface.kt") + public void testDefaultMethodCallViaInterface() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/defaultMethodCallViaInterface.kt"); + } + + @Test + @TestMetadata("defaultMethodOverride.kt") + public void testDefaultMethodOverride() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/defaultMethodOverride.kt"); + } + + @Test + @TestMetadata("dontDelegateToDefaultMethods.kt") + public void testDontDelegateToDefaultMethods() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/dontDelegateToDefaultMethods.kt"); + } + + @Test + @TestMetadata("inheritKotlin.kt") + public void testInheritKotlin() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/inheritKotlin.kt"); + } + + @Test + @TestMetadata("invokeDefaultViaSuper.kt") + public void testInvokeDefaultViaSuper() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/invokeDefaultViaSuper.kt"); + } + + @Test + @TestMetadata("kt40920.kt") + public void testKt40920() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/kt40920.kt"); + } + + @Test + @TestMetadata("kt40920_java.kt") + public void testKt40920_java() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_java.kt"); + } + + @Test + @TestMetadata("kt40920_java2.kt") + public void testKt40920_java2() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_java2.kt"); + } + + @Test + @TestMetadata("kt40920_map.kt") + public void testKt40920_map() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_map.kt"); + } + + @Test + @TestMetadata("kt42967.kt") + public void testKt42967() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/kt42967.kt"); + } + + @Test + @TestMetadata("longChainOfKotlinExtendsFromJavaWithDefault.kt") + public void testLongChainOfKotlinExtendsFromJavaWithDefault() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/longChainOfKotlinExtendsFromJavaWithDefault.kt"); + } + + @Test + @TestMetadata("samOnInterfaceWithDefaultMethod.kt") + public void testSamOnInterfaceWithDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/box/jvm8/javaDefaults/samOnInterfaceWithDefaultMethod.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvmField") + @TestDataPath("$PROJECT_ROOT") + public class JvmField { + @Test + public void testAllFilesPresentInJvmField() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationCompanion.kt") + public void testAnnotationCompanion() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/annotationCompanion.kt"); + } + + @Test + @TestMetadata("annotationCompanionWithJava.kt") + public void testAnnotationCompanionWithJava() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/annotationCompanionWithJava.kt"); + } + + @Test + @TestMetadata("captureClassFields.kt") + public void testCaptureClassFields() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/captureClassFields.kt"); + } + + @Test + @TestMetadata("capturePackageFields.kt") + public void testCapturePackageFields() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/capturePackageFields.kt"); + } + + @Test + @TestMetadata("checkNoAccessors.kt") + public void testCheckNoAccessors() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/checkNoAccessors.kt"); + } + + @Test + @TestMetadata("clashWithJavaSuperClassField.kt") + public void testClashWithJavaSuperClassField() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/clashWithJavaSuperClassField.kt"); + } + + @Test + @TestMetadata("classFieldReference.kt") + public void testClassFieldReference() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/classFieldReference.kt"); + } + + @Test + @TestMetadata("classFieldReflection.kt") + public void testClassFieldReflection() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/classFieldReflection.kt"); + } + + @Test + @TestMetadata("compoundAccess.kt") + public void testCompoundAccess() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/compoundAccess.kt"); + } + + @Test + @TestMetadata("constructorProperty.kt") + public void testConstructorProperty() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/constructorProperty.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/diamond.kt"); + } + + @Test + @TestMetadata("fileOrder.kt") + public void testFileOrder() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/fileOrder.kt"); + } + + @Test + @TestMetadata("fileOrderWithCopying.kt") + public void testFileOrderWithCopying() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/fileOrderWithCopying.kt"); + } + + @Test + @TestMetadata("initializersOrder.kt") + public void testInitializersOrder() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/initializersOrder.kt"); + } + + @Test + @TestMetadata("interfaceCompanion.kt") + public void testInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/interfaceCompanion.kt"); + } + + @Test + @TestMetadata("interfaceCompanionWithJava.kt") + public void testInterfaceCompanionWithJava() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/interfaceCompanionWithJava.kt"); + } + + @Test + @TestMetadata("kt12189_noClashOnDifferentCase.kt") + public void testKt12189_noClashOnDifferentCase() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt12189_noClashOnDifferentCase.kt"); + } + + @Test + @TestMetadata("kt47328.kt") + public void testKt47328() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt47328.kt"); + } + + @Test + @TestMetadata("kt47328_inherited.kt") + public void testKt47328_inherited() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt47328_inherited.kt"); + } + + @Test + @TestMetadata("kt47328_super.kt") + public void testKt47328_super() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt47328_super.kt"); + } + + @Test + @TestMetadata("kt47328_var.kt") + public void testKt47328_var() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt47328_var.kt"); + } + + @Test + @TestMetadata("kt47739.kt") + public void testKt47739() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt47739.kt"); + } + + @Test + @TestMetadata("kt48295.kt") + public void testKt48295() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt48295.kt"); + } + + @Test + @TestMetadata("kt48295a.kt") + public void testKt48295a() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/kt48295a.kt"); + } + + @Test + @TestMetadata("publicField.kt") + public void testPublicField() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/publicField.kt"); + } + + @Test + @TestMetadata("publicFieldJava.kt") + public void testPublicFieldJava() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/publicFieldJava.kt"); + } + + @Test + @TestMetadata("simpleMemberProperty.kt") + public void testSimpleMemberProperty() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/simpleMemberProperty.kt"); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/superCall.kt"); + } + + @Test + @TestMetadata("superCall2.kt") + public void testSuperCall2() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/superCall2.kt"); + } + + @Test + @TestMetadata("topLevelFieldReference.kt") + public void testTopLevelFieldReference() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/topLevelFieldReference.kt"); + } + + @Test + @TestMetadata("topLevelFieldReflection.kt") + public void testTopLevelFieldReflection() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/topLevelFieldReflection.kt"); + } + + @Test + @TestMetadata("visibility.kt") + public void testVisibility() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/visibility.kt"); + } + + @Test + @TestMetadata("writeFieldReference.kt") + public void testWriteFieldReference() throws Exception { + runTest("compiler/testData/codegen/box/jvmField/writeFieldReference.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvmName") + @TestDataPath("$PROJECT_ROOT") + public class JvmName { + @Test + public void testAllFilesPresentInJvmName() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationProperties.kt") + public void testAnnotationProperties() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/annotationProperties.kt"); + } + + @Test + @TestMetadata("callableReference.kt") + public void testCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/callableReference.kt"); + } + + @Test + @TestMetadata("clashingErasure.kt") + public void testClashingErasure() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/clashingErasure.kt"); + } + + @Test + @TestMetadata("classMembers.kt") + public void testClassMembers() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/classMembers.kt"); + } + + @Test + @TestMetadata("fakeJvmNameInJava.kt") + public void testFakeJvmNameInJava() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/fakeJvmNameInJava.kt"); + } + + @Test + @TestMetadata("fakeOverrideOfProperty.kt") + public void testFakeOverrideOfProperty() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/fakeOverrideOfProperty.kt"); + } + + @Test + @TestMetadata("functionName.kt") + public void testFunctionName() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/functionName.kt"); + } + + @Test + @TestMetadata("functionWithDefault.kt") + public void testFunctionWithDefault() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/functionWithDefault.kt"); + } + + @Test + @TestMetadata("kt23974.kt") + public void testKt23974() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/kt23974.kt"); + } + + @Test + @TestMetadata("loadJvmName.kt") + public void testLoadJvmName() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/loadJvmName.kt"); + } + + @Test + @TestMetadata("multifileClass.kt") + public void testMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/multifileClass.kt"); + } + + @Test + @TestMetadata("multifileClassWithLocalClass.kt") + public void testMultifileClassWithLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/multifileClassWithLocalClass.kt"); + } + + @Test + @TestMetadata("multifileClassWithLocalGeneric.kt") + public void testMultifileClassWithLocalGeneric() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/multifileClassWithLocalGeneric.kt"); + } + + @Test + @TestMetadata("propertyAccessorsUseSite.kt") + public void testPropertyAccessorsUseSite() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/propertyAccessorsUseSite.kt"); + } + + @Test + @TestMetadata("propertyName.kt") + public void testPropertyName() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/propertyName.kt"); + } + + @Test + @TestMetadata("propertySyntheticMethod.kt") + public void testPropertySyntheticMethod() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/propertySyntheticMethod.kt"); + } + + @Test + @TestMetadata("renamedFileClass.kt") + public void testRenamedFileClass() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/renamedFileClass.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvmName/fileFacades") + @TestDataPath("$PROJECT_ROOT") + public class FileFacades { + @Test + public void testAllFilesPresentInFileFacades() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmName/fileFacades"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("differentFiles.kt") + public void testDifferentFiles() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/fileFacades/differentFiles.kt"); + } + + @Test + @TestMetadata("javaAnnotationOnFileFacade.kt") + public void testJavaAnnotationOnFileFacade() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/fileFacades/javaAnnotationOnFileFacade.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/jvmName/fileFacades/simple.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvmOverloads") + @TestDataPath("$PROJECT_ROOT") + public class JvmOverloads { + @Test + public void testAllFilesPresentInJvmOverloads() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmOverloads"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/companionObject.kt"); + } + + @Test + @TestMetadata("constructorWithTypeParams.kt") + public void testConstructorWithTypeParams() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/constructorWithTypeParams.kt"); + } + + @Test + @TestMetadata("defaultsNotAtEnd.kt") + public void testDefaultsNotAtEnd() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/defaultsNotAtEnd.kt"); + } + + @Test + @TestMetadata("doubleParameters.kt") + public void testDoubleParameters() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/doubleParameters.kt"); + } + + @Test + @TestMetadata("extensionMethod.kt") + public void testExtensionMethod() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/extensionMethod.kt"); + } + + @Test + @TestMetadata("generics.kt") + public void testGenerics() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/generics.kt"); + } + + @Test + @TestMetadata("innerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/innerClass.kt"); + } + + @Test + @TestMetadata("manyParameters.kt") + public void testManyParameters() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/manyParameters.kt"); + } + + @Test + @TestMetadata("multifileClass.kt") + public void testMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/multifileClass.kt"); + } + + @Test + @TestMetadata("multipleDefaultParameters.kt") + public void testMultipleDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/multipleDefaultParameters.kt"); + } + + @Test + @TestMetadata("noRedundantVarargs.kt") + public void testNoRedundantVarargs() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/noRedundantVarargs.kt"); + } + + @Test + @TestMetadata("nonDefaultParameter.kt") + public void testNonDefaultParameter() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/nonDefaultParameter.kt"); + } + + @Test + @TestMetadata("primaryConstructor.kt") + public void testPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/primaryConstructor.kt"); + } + + @Test + @TestMetadata("primaryConstructorWithAllDefaults.kt") + public void testPrimaryConstructorWithAllDefaults() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/primaryConstructorWithAllDefaults.kt"); + } + + @Test + @TestMetadata("privateClass.kt") + public void testPrivateClass() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/privateClass.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/simple.kt"); + } + + @Test + @TestMetadata("simpleJavaCall.kt") + public void testSimpleJavaCall() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/simpleJavaCall.kt"); + } + + @Test + @TestMetadata("subClass.kt") + public void testSubClass() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/subClass.kt"); + } + + @Test + @TestMetadata("typeParameters.kt") + public void testTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/typeParameters.kt"); + } + + @Test + @TestMetadata("varargs.kt") + public void testVarargs() throws Exception { + runTest("compiler/testData/codegen/box/jvmOverloads/varargs.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvmPackageName") + @TestDataPath("$PROJECT_ROOT") + public class JvmPackageName { + @Test + public void testAllFilesPresentInJvmPackageName() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/jvmPackageName/anonymousObject.kt"); + } + + @Test + @TestMetadata("anonymousObjectInInheritedMultifilePart.kt") + public void testAnonymousObjectInInheritedMultifilePart() throws Exception { + runTest("compiler/testData/codegen/box/jvmPackageName/anonymousObjectInInheritedMultifilePart.kt"); + } + + @Test + @TestMetadata("anonymousObjectInMultifilePart.kt") + public void testAnonymousObjectInMultifilePart() throws Exception { + runTest("compiler/testData/codegen/box/jvmPackageName/anonymousObjectInMultifilePart.kt"); + } + + @Test + @TestMetadata("localClass.kt") + public void testLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/jvmPackageName/localClass.kt"); + } + + @Test + @TestMetadata("metadataField.kt") + public void testMetadataField() throws Exception { + runTest("compiler/testData/codegen/box/jvmPackageName/metadataField.kt"); + } + + @Test + @TestMetadata("multifileClass.kt") + public void testMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/jvmPackageName/multifileClass.kt"); + } + + @Test + @TestMetadata("rootPackage.kt") + public void testRootPackage() throws Exception { + runTest("compiler/testData/codegen/box/jvmPackageName/rootPackage.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/jvmPackageName/simple.kt"); + } + + @Test + @TestMetadata("withJvmName.kt") + public void testWithJvmName() throws Exception { + runTest("compiler/testData/codegen/box/jvmPackageName/withJvmName.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvmStatic") + @TestDataPath("$PROJECT_ROOT") + public class JvmStatic { + @Test + public void testAllFilesPresentInJvmStatic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotations.kt") + public void testAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/annotations.kt"); + } + + @Test + @TestMetadata("closure.kt") + public void testClosure() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/closure.kt"); + } + + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/companionObject.kt"); + } + + @Test + @TestMetadata("convention.kt") + public void testConvention() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/convention.kt"); + } + + @Test + @TestMetadata("default.kt") + public void testDefault() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/default.kt"); + } + + @Test + @TestMetadata("defaultCrossFile.kt") + public void testDefaultCrossFile() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/defaultCrossFile.kt"); + } + + @Test + @TestMetadata("enumCompanion.kt") + public void testEnumCompanion() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/enumCompanion.kt"); + } + + @Test + @TestMetadata("explicitObject.kt") + public void testExplicitObject() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/explicitObject.kt"); + } + + @Test + @TestMetadata("extensionPropertyGetter.kt") + public void testExtensionPropertyGetter() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/extensionPropertyGetter.kt"); + } + + @Test + @TestMetadata("funAccess.kt") + public void testFunAccess() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/funAccess.kt"); + } + + @Test + @TestMetadata("functionReference.kt") + public void testFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/functionReference.kt"); + } + + @Test + @TestMetadata("importStaticMemberFromObject.kt") + public void testImportStaticMemberFromObject() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/importStaticMemberFromObject.kt"); + } + + @Test + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/inline.kt"); + } + + @Test + @TestMetadata("inlinePropertyAccessors.kt") + public void testInlinePropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/inlinePropertyAccessors.kt"); + } + + @Test + @TestMetadata("interfaceCompanion.kt") + public void testInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/interfaceCompanion.kt"); + } + + @Test + @TestMetadata("jvmNameForAccessor.kt") + public void testJvmNameForAccessor() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/jvmNameForAccessor.kt"); + } + + @Test + @TestMetadata("kt21246.kt") + public void testKt21246() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/kt21246.kt"); + } + + @Test + @TestMetadata("kt21246a.kt") + public void testKt21246a() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/kt21246a.kt"); + } + + @Test + @TestMetadata("kt31389.kt") + public void testKt31389() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/kt31389.kt"); + } + + @Test + @TestMetadata("kt35716.kt") + public void testKt35716() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/kt35716.kt"); + } + + @Test + @TestMetadata("kt45408.kt") + public void testKt45408() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/kt45408.kt"); + } + + @Test + @TestMetadata("kt46568.kt") + public void testKt46568() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/kt46568.kt"); + } + + @Test + @TestMetadata("kt9897_static.kt") + public void testKt9897_static() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/kt9897_static.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/object.kt"); + } + + @Test + @TestMetadata("postfixInc.kt") + public void testPostfixInc() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/postfixInc.kt"); + } + + @Test + @TestMetadata("prefixInc.kt") + public void testPrefixInc() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/prefixInc.kt"); + } + + @Test + @TestMetadata("privateMethod.kt") + public void testPrivateMethod() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/privateMethod.kt"); + } + + @Test + @TestMetadata("privateSetter.kt") + public void testPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/privateSetter.kt"); + } + + @Test + @TestMetadata("propertyAccess.kt") + public void testPropertyAccess() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/propertyAccess.kt"); + } + + @Test + @TestMetadata("propertyAccessorsCompanion.kt") + public void testPropertyAccessorsCompanion() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/propertyAccessorsCompanion.kt"); + } + + @Test + @TestMetadata("propertyAccessorsObject.kt") + public void testPropertyAccessorsObject() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/propertyAccessorsObject.kt"); + } + + @Test + @TestMetadata("propertyAsDefault.kt") + public void testPropertyAsDefault() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/propertyAsDefault.kt"); + } + + @Test + @TestMetadata("propertyGetterDelegatesToAnother.kt") + public void testPropertyGetterDelegatesToAnother() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/propertyGetterDelegatesToAnother.kt"); + } + + @Test + @TestMetadata("propertyReference.kt") + public void testPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/propertyReference.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/simple.kt"); + } + + @Test + @TestMetadata("syntheticAccessor.kt") + public void testSyntheticAccessor() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/syntheticAccessor.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass") + @TestDataPath("$PROJECT_ROOT") + public class ProtectedInSuperClass { + @Test + public void testAllFilesPresentInProtectedInSuperClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultArguments.kt") + public void testDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/defaultArguments.kt"); + } + + @Test + @TestMetadata("simpleFunction.kt") + public void testSimpleFunction() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleFunction.kt"); + } + + @Test + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/labels") + @TestDataPath("$PROJECT_ROOT") + public class Labels { + @Test + public void testAllFilesPresentInLabels() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/labels"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("controlLabelClashesWithFuncitonName.kt") + public void testControlLabelClashesWithFuncitonName() throws Exception { + runTest("compiler/testData/codegen/box/labels/controlLabelClashesWithFuncitonName.kt"); + } + + @Test + @TestMetadata("infixCallLabelling.kt") + public void testInfixCallLabelling() throws Exception { + runTest("compiler/testData/codegen/box/labels/infixCallLabelling.kt"); + } + + @Test + @TestMetadata("labeledDeclarations.kt") + public void testLabeledDeclarations() throws Exception { + runTest("compiler/testData/codegen/box/labels/labeledDeclarations.kt"); + } + + @Test + @TestMetadata("propertyAccessor.kt") + public void testPropertyAccessor() throws Exception { + runTest("compiler/testData/codegen/box/labels/propertyAccessor.kt"); + } + + @Test + @TestMetadata("propertyAccessorFunctionLiteral.kt") + public void testPropertyAccessorFunctionLiteral() throws Exception { + runTest("compiler/testData/codegen/box/labels/propertyAccessorFunctionLiteral.kt"); + } + + @Test + @TestMetadata("propertyAccessorInnerExtensionFun.kt") + public void testPropertyAccessorInnerExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/labels/propertyAccessorInnerExtensionFun.kt"); + } + + @Test + @TestMetadata("propertyAccessorObject.kt") + public void testPropertyAccessorObject() throws Exception { + runTest("compiler/testData/codegen/box/labels/propertyAccessorObject.kt"); + } + + @Test + @TestMetadata("propertyInClassAccessor.kt") + public void testPropertyInClassAccessor() throws Exception { + runTest("compiler/testData/codegen/box/labels/propertyInClassAccessor.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lazyCodegen") + @TestDataPath("$PROJECT_ROOT") + public class LazyCodegen { + @Test + public void testAllFilesPresentInLazyCodegen() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lazyCodegen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("exceptionInFieldInitializer.kt") + public void testExceptionInFieldInitializer() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/exceptionInFieldInitializer.kt"); + } + + @Test + @TestMetadata("ifElse.kt") + public void testIfElse() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/ifElse.kt"); + } + + @Test + @TestMetadata("increment.kt") + public void testIncrement() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/increment.kt"); + } + + @Test + @TestMetadata("safeAssign.kt") + public void testSafeAssign() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/safeAssign.kt"); + } + + @Test + @TestMetadata("safeAssignComplex.kt") + public void testSafeAssignComplex() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/safeAssignComplex.kt"); + } + + @Test + @TestMetadata("safeCallAndArray.kt") + public void testSafeCallAndArray() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/safeCallAndArray.kt"); + } + + @Test + @TestMetadata("toString.kt") + public void testToString() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/toString.kt"); + } + + @Test + @TestMetadata("tryCatchExpression.kt") + public void testTryCatchExpression() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/tryCatchExpression.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/when.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lazyCodegen/optimizations") + @TestDataPath("$PROJECT_ROOT") + public class Optimizations { + @Test + public void testAllFilesPresentInOptimizations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lazyCodegen/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("negateConstantCompare.kt") + public void testNegateConstantCompare() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateConstantCompare.kt"); + } + + @Test + @TestMetadata("negateFalse.kt") + public void testNegateFalse() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateFalse.kt"); + } + + @Test + @TestMetadata("negateFalseVar.kt") + public void testNegateFalseVar() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateFalseVar.kt"); + } + + @Test + @TestMetadata("negateFalseVarChain.kt") + public void testNegateFalseVarChain() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateFalseVarChain.kt"); + } + + @Test + @TestMetadata("negateObjectComp.kt") + public void testNegateObjectComp() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateObjectComp.kt"); + } + + @Test + @TestMetadata("negateObjectComp2.kt") + public void testNegateObjectComp2() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateObjectComp2.kt"); + } + + @Test + @TestMetadata("negateTrue.kt") + public void testNegateTrue() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateTrue.kt"); + } + + @Test + @TestMetadata("negateTrueVar.kt") + public void testNegateTrueVar() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateTrueVar.kt"); + } + + @Test + @TestMetadata("noOptimization.kt") + public void testNoOptimization() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/noOptimization.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClasses") + @TestDataPath("$PROJECT_ROOT") + public class LocalClasses { + @Test + public void testAllFilesPresentInLocalClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectInExtension.kt") + public void testAnonymousObjectInExtension() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInExtension.kt"); + } + + @Test + @TestMetadata("anonymousObjectInInitializer.kt") + public void testAnonymousObjectInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInInitializer.kt"); + } + + @Test + @TestMetadata("anonymousObjectInParameterInitializer.kt") + public void testAnonymousObjectInParameterInitializer() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInParameterInitializer.kt"); + } + + @Test + @TestMetadata("capturingInDefaultConstructorParameter.kt") + public void testCapturingInDefaultConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt"); + } + + @Test + @TestMetadata("closureOfInnerLocalClass.kt") + public void testClosureOfInnerLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt"); + } + + @Test + @TestMetadata("closureOfLambdaInLocalClass.kt") + public void testClosureOfLambdaInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/closureOfLambdaInLocalClass.kt"); + } + + @Test + @TestMetadata("closureWithSelfInstantiation.kt") + public void testClosureWithSelfInstantiation() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/closureWithSelfInstantiation.kt"); + } + + @Test + @TestMetadata("defaultParameterInConstructor.kt") + public void testDefaultParameterInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/defaultParameterInConstructor.kt"); + } + + @Test + @TestMetadata("inExtensionFunction.kt") + public void testInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/inExtensionFunction.kt"); + } + + @Test + @TestMetadata("inExtensionProperty.kt") + public void testInExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/inExtensionProperty.kt"); + } + + @Test + @TestMetadata("inLocalExtensionFunction.kt") + public void testInLocalExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/inLocalExtensionFunction.kt"); + } + + @Test + @TestMetadata("inLocalExtensionProperty.kt") + public void testInLocalExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/inLocalExtensionProperty.kt"); + } + + @Test + @TestMetadata("innerClassInLocalClass.kt") + public void testInnerClassInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/innerClassInLocalClass.kt"); + } + + @Test + @TestMetadata("innerOfLocalCaptureExtensionReceiver.kt") + public void testInnerOfLocalCaptureExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/innerOfLocalCaptureExtensionReceiver.kt"); + } + + @Test + @TestMetadata("kt10835.kt") + public void testKt10835() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835.kt"); + } + + @Test + @TestMetadata("kt10835a.kt") + public void testKt10835a() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt"); + } + + @Test + @TestMetadata("kt2700.kt") + public void testKt2700() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt2700.kt"); + } + + @Test + @TestMetadata("kt2873.kt") + public void testKt2873() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt2873.kt"); + } + + @Test + @TestMetadata("kt3210.kt") + public void testKt3210() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt3210.kt"); + } + + @Test + @TestMetadata("kt3389.kt") + public void testKt3389() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt3389.kt"); + } + + @Test + @TestMetadata("kt3584.kt") + public void testKt3584() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt3584.kt"); + } + + @Test + @TestMetadata("kt4174.kt") + public void testKt4174() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt4174.kt"); + } + + @Test + @TestMetadata("kt45383.kt") + public void testKt45383() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt45383.kt"); + } + + @Test + @TestMetadata("localClass.kt") + public void testLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localClass.kt"); + } + + @Test + @TestMetadata("localClassCaptureExtensionReceiver.kt") + public void testLocalClassCaptureExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localClassCaptureExtensionReceiver.kt"); + } + + @Test + @TestMetadata("localClassInInitializer.kt") + public void testLocalClassInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localClassInInitializer.kt"); + } + + @Test + @TestMetadata("localClassInParameterInitializer.kt") + public void testLocalClassInParameterInitializer() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localClassInParameterInitializer.kt"); + } + + @Test + @TestMetadata("localClassUsedBeforeDeclaration.kt") + public void testLocalClassUsedBeforeDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localClassUsedBeforeDeclaration.kt"); + } + + @Test + @TestMetadata("localDataClass.kt") + public void testLocalDataClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localDataClass.kt"); + } + + @Test + @TestMetadata("localExtendsInnerAndReferencesOuterMember.kt") + public void testLocalExtendsInnerAndReferencesOuterMember() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localExtendsInnerAndReferencesOuterMember.kt"); + } + + @Test + @TestMetadata("localGenericWithTypeParameters.kt") + public void testLocalGenericWithTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localGenericWithTypeParameters.kt"); + } + + @Test + @TestMetadata("nameWithWhitespace.kt") + public void testNameWithWhitespace() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/nameWithWhitespace.kt"); + } + + @Test + @TestMetadata("noclosure.kt") + public void testNoclosure() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/noclosure.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/object.kt"); + } + + @Test + @TestMetadata("ownClosureOfInnerLocalClass.kt") + public void testOwnClosureOfInnerLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/ownClosureOfInnerLocalClass.kt"); + } + + @Test + @TestMetadata("recaptureVarCapturedInLocalClass1.kt") + public void testRecaptureVarCapturedInLocalClass1() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/recaptureVarCapturedInLocalClass1.kt"); + } + + @Test + @TestMetadata("recaptureVarCapturedInLocalClass2.kt") + public void testRecaptureVarCapturedInLocalClass2() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/recaptureVarCapturedInLocalClass2.kt"); + } + + @Test + @TestMetadata("recaptureVarCapturedInLocalClass3.kt") + public void testRecaptureVarCapturedInLocalClass3() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/recaptureVarCapturedInLocalClass3.kt"); + } + + @Test + @TestMetadata("subclassingExtensionReceiverClass.kt") + public void testSubclassingExtensionReceiverClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/subclassingExtensionReceiverClass.kt"); + } + + @Test + @TestMetadata("withclosure.kt") + public void testWithclosure() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/withclosure.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/mangling") + @TestDataPath("$PROJECT_ROOT") + public class Mangling { + @Test + public void testAllFilesPresentInMangling() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/mangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("field.kt") + public void testField() throws Exception { + runTest("compiler/testData/codegen/box/mangling/field.kt"); + } + + @Test + @TestMetadata("fun.kt") + public void testFun() throws Exception { + runTest("compiler/testData/codegen/box/mangling/fun.kt"); + } + + @Test + @TestMetadata("internal.kt") + public void testInternal() throws Exception { + runTest("compiler/testData/codegen/box/mangling/internal.kt"); + } + + @Test + @TestMetadata("internalOverride.kt") + public void testInternalOverride() throws Exception { + runTest("compiler/testData/codegen/box/mangling/internalOverride.kt"); + } + + @Test + @TestMetadata("internalOverrideSuperCall.kt") + public void testInternalOverrideSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); + } + + @Test + @TestMetadata("noOverrideWithJava.kt") + public void testNoOverrideWithJava() throws Exception { + runTest("compiler/testData/codegen/box/mangling/noOverrideWithJava.kt"); + } + + @Test + @TestMetadata("parentheses.kt") + public void testParentheses() throws Exception { + runTest("compiler/testData/codegen/box/mangling/parentheses.kt"); + } + + @Test + @TestMetadata("publicOverride.kt") + public void testPublicOverride() throws Exception { + runTest("compiler/testData/codegen/box/mangling/publicOverride.kt"); + } + + @Test + @TestMetadata("publicOverrideSuperCall.kt") + public void testPublicOverrideSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/mangling/publicOverrideSuperCall.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/mixedNamedPosition") + @TestDataPath("$PROJECT_ROOT") + public class MixedNamedPosition { + @Test + public void testAllFilesPresentInMixedNamedPosition() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/mixedNamedPosition"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() throws Exception { + runTest("compiler/testData/codegen/box/mixedNamedPosition/defaults.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/mixedNamedPosition/simple.kt"); + } + + @Test + @TestMetadata("varargs.kt") + public void testVarargs() throws Exception { + runTest("compiler/testData/codegen/box/mixedNamedPosition/varargs.kt"); + } + + @Test + @TestMetadata("varargsEvaluationOrder.kt") + public void testVarargsEvaluationOrder() throws Exception { + runTest("compiler/testData/codegen/box/mixedNamedPosition/varargsEvaluationOrder.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl") + @TestDataPath("$PROJECT_ROOT") + public class MultiDecl { + @Test + public void testAllFilesPresentInMultiDecl() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ComplexInitializer.kt") + public void testComplexInitializer() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/ComplexInitializer.kt"); + } + + @Test + @TestMetadata("component.kt") + public void testComponent() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/component.kt"); + } + + @Test + @TestMetadata("kt9828_hashMap.kt") + public void testKt9828_hashMap() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/kt9828_hashMap.kt"); + } + + @Test + @TestMetadata("returnInElvis.kt") + public void testReturnInElvis() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/returnInElvis.kt"); + } + + @Test + @TestMetadata("SimpleVals.kt") + public void testSimpleVals() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/SimpleVals.kt"); + } + + @Test + @TestMetadata("SimpleValsExtensions.kt") + public void testSimpleValsExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/SimpleValsExtensions.kt"); + } + + @Test + @TestMetadata("SimpleVarsExtensions.kt") + public void testSimpleVarsExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/SimpleVarsExtensions.kt"); + } + + @Test + @TestMetadata("UnderscoreNames.kt") + public void testUnderscoreNames() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/UnderscoreNames.kt"); + } + + @Test + @TestMetadata("ValCapturedInFunctionLiteral.kt") + public void testValCapturedInFunctionLiteral() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/ValCapturedInFunctionLiteral.kt"); + } + + @Test + @TestMetadata("ValCapturedInLocalFunction.kt") + public void testValCapturedInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/ValCapturedInLocalFunction.kt"); + } + + @Test + @TestMetadata("ValCapturedInObjectLiteral.kt") + public void testValCapturedInObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/ValCapturedInObjectLiteral.kt"); + } + + @Test + @TestMetadata("VarCapturedInFunctionLiteral.kt") + public void testVarCapturedInFunctionLiteral() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/VarCapturedInFunctionLiteral.kt"); + } + + @Test + @TestMetadata("VarCapturedInLocalFunction.kt") + public void testVarCapturedInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/VarCapturedInLocalFunction.kt"); + } + + @Test + @TestMetadata("VarCapturedInObjectLiteral.kt") + public void testVarCapturedInObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/VarCapturedInObjectLiteral.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl/forIterator") + @TestDataPath("$PROJECT_ROOT") + public class ForIterator { + @Test + public void testAllFilesPresentInForIterator() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forIterator"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclFor.kt") + public void testMultiDeclFor() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclFor.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + + @Test + @TestMetadata("MultiDeclForValCaptured.kt") + public void testMultiDeclForValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForValCaptured.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl/forIterator/longIterator") + @TestDataPath("$PROJECT_ROOT") + public class LongIterator { + @Test + public void testAllFilesPresentInLongIterator() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forIterator/longIterator"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange") + @TestDataPath("$PROJECT_ROOT") + public class ForRange { + @Test + public void testAllFilesPresentInForRange() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclFor.kt") + public void testMultiDeclFor() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/MultiDeclFor.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + + @Test + @TestMetadata("MultiDeclForValCaptured.kt") + public void testMultiDeclForValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/MultiDeclForValCaptured.kt"); + } + + @Test + @TestMetadata("UnderscoreNames.kt") + public void testUnderscoreNames() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/UnderscoreNames.kt"); + } + + @Test + @TestMetadata("UnderscoreNamesDontCallComponent.kt") + public void testUnderscoreNamesDontCallComponent() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/UnderscoreNamesDontCallComponent.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo") + @TestDataPath("$PROJECT_ROOT") + public class ExplicitRangeTo { + @Test + public void testAllFilesPresentInExplicitRangeTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclFor.kt") + public void testMultiDeclFor() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/MultiDeclFor.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + + @Test + @TestMetadata("MultiDeclForValCaptured.kt") + public void testMultiDeclForValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/MultiDeclForValCaptured.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int") + @TestDataPath("$PROJECT_ROOT") + public class Int { + @Test + public void testAllFilesPresentInInt() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long") + @TestDataPath("$PROJECT_ROOT") + public class Long { + @Test + public void testAllFilesPresentInLong() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot") + @TestDataPath("$PROJECT_ROOT") + public class ExplicitRangeToWithDot { + @Test + public void testAllFilesPresentInExplicitRangeToWithDot() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclFor.kt") + public void testMultiDeclFor() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/MultiDeclFor.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + + @Test + @TestMetadata("MultiDeclForValCaptured.kt") + public void testMultiDeclForValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/MultiDeclForValCaptured.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int") + @TestDataPath("$PROJECT_ROOT") + public class Int { + @Test + public void testAllFilesPresentInInt() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long") + @TestDataPath("$PROJECT_ROOT") + public class Long { + @Test + public void testAllFilesPresentInLong() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/int") + @TestDataPath("$PROJECT_ROOT") + public class Int { + @Test + public void testAllFilesPresentInInt() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/int/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/int/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/int/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/int/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/long") + @TestDataPath("$PROJECT_ROOT") + public class Long { + @Test + public void testAllFilesPresentInLong() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/long/MultiDeclForComponentExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/long/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/long/MultiDeclForComponentMemberExtensions.kt"); + } + + @Test + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/long/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multifileClasses") + @TestDataPath("$PROJECT_ROOT") + public class MultifileClasses { + @Test + public void testAllFilesPresentInMultifileClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callMultifileClassMemberFromOtherPackage.kt") + public void testCallMultifileClassMemberFromOtherPackage() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/callMultifileClassMemberFromOtherPackage.kt"); + } + + @Test + @TestMetadata("callsToMultifileClassFromOtherPackage.kt") + public void testCallsToMultifileClassFromOtherPackage() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/callsToMultifileClassFromOtherPackage.kt"); + } + + @Test + @TestMetadata("constPropertyReferenceFromMultifileClass.kt") + public void testConstPropertyReferenceFromMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/constPropertyReferenceFromMultifileClass.kt"); + } + + @Test + @TestMetadata("genericProperty.kt") + public void testGenericProperty() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/genericProperty.kt"); + } + + @Test + @TestMetadata("inlineMultifileClassMemberFromOtherPackage.kt") + public void testInlineMultifileClassMemberFromOtherPackage() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/inlineMultifileClassMemberFromOtherPackage.kt"); + } + + @Test + @TestMetadata("kt16077.kt") + public void testKt16077() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/kt16077.kt"); + } + + @Test + @TestMetadata("metadataFlag.kt") + public void testMetadataFlag() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/metadataFlag.kt"); + } + + @Test + @TestMetadata("multifileClassPartsInitialization.kt") + public void testMultifileClassPartsInitialization() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/multifileClassPartsInitialization.kt"); + } + + @Test + @TestMetadata("multifileClassWith2Files.kt") + public void testMultifileClassWith2Files() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/multifileClassWith2Files.kt"); + } + + @Test + @TestMetadata("multifileClassWithCrossCall.kt") + public void testMultifileClassWithCrossCall() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/multifileClassWithCrossCall.kt"); + } + + @Test + @TestMetadata("multifileClassWithPrivate.kt") + public void testMultifileClassWithPrivate() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/multifileClassWithPrivate.kt"); + } + + @Test + @TestMetadata("namesInMetadataAreSorted.kt") + public void testNamesInMetadataAreSorted() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/namesInMetadataAreSorted.kt"); + } + + @Test + @TestMetadata("privateConstVal.kt") + public void testPrivateConstVal() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/privateConstVal.kt"); + } + + @Test + @TestMetadata("samePartNameDifferentFacades.kt") + public void testSamePartNameDifferentFacades() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/samePartNameDifferentFacades.kt"); + } + + @Test + @TestMetadata("sealedClassHierarchy.kt") + public void testSealedClassHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/sealedClassHierarchy.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multifileClasses/optimized") + @TestDataPath("$PROJECT_ROOT") + public class Optimized { + @Test + public void testAllFilesPresentInOptimized() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multifileClasses/optimized"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callInInlineLambda.kt") + public void testCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/optimized/callInInlineLambda.kt"); + } + + @Test + @TestMetadata("callableRefToConstVal.kt") + public void testCallableRefToConstVal() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToConstVal.kt"); + } + + @Test + @TestMetadata("callableRefToFun.kt") + public void testCallableRefToFun() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToFun.kt"); + } + + @Test + @TestMetadata("callableRefToInternalConstValInline.kt") + public void testCallableRefToInternalConstValInline() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToInternalConstValInline.kt"); + } + + @Test + @TestMetadata("callableRefToPrivateConstVal.kt") + public void testCallableRefToPrivateConstVal() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToPrivateConstVal.kt"); + } + + @Test + @TestMetadata("callableReferencesToSameFunctionsFromDifferentPackages.kt") + public void testCallableReferencesToSameFunctionsFromDifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableReferencesToSameFunctionsFromDifferentPackages.kt"); + } + + @Test + @TestMetadata("callableReferencesToSamePropertiesFromDifferentPackages.kt") + public void testCallableReferencesToSamePropertiesFromDifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableReferencesToSamePropertiesFromDifferentPackages.kt"); + } + + @Test + @TestMetadata("calls.kt") + public void testCalls() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/optimized/calls.kt"); + } + + @Test + @TestMetadata("internalFunction.kt") + public void testInternalFunction() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/optimized/internalFunction.kt"); + } + + @Test + @TestMetadata("namesInMetadataAreSorted.kt") + public void testNamesInMetadataAreSorted() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/optimized/namesInMetadataAreSorted.kt"); + } + + @Test + @TestMetadata("overlappingFuns.kt") + public void testOverlappingFuns() throws Exception { + runTest("compiler/testData/codegen/box/multifileClasses/optimized/overlappingFuns.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiplatform") + @TestDataPath("$PROJECT_ROOT") + public class Multiplatform { + @Test + public void testAllFilesPresentInMultiplatform() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "k2"); + } + + @Test + @TestMetadata("annotationsViaActualTypeAliasFromBinary.kt") + public void testAnnotationsViaActualTypeAliasFromBinary() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/annotationsViaActualTypeAliasFromBinary.kt"); + } + + @Test + @TestMetadata("annotationsViaActualTypeAliasFromBinary2.kt") + public void testAnnotationsViaActualTypeAliasFromBinary2() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/annotationsViaActualTypeAliasFromBinary2.kt"); + } + + @Test + @TestMetadata("callToJavaSuper.kt") + public void testCallToJavaSuper() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/callToJavaSuper.kt"); + } + + @Test + @TestMetadata("commonInternal.kt") + public void testCommonInternal() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/commonInternal.kt"); + } + + @Test + @TestMetadata("expectClassInJvmMultifileFacade.kt") + public void testExpectClassInJvmMultifileFacade() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/expectClassInJvmMultifileFacade.kt"); + } + + @Test + @TestMetadata("expectProperty.kt") + public void testExpectProperty() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt"); + } + + @Test + @TestMetadata("kt59613.kt") + public void testKt59613() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/kt59613.kt"); + } + + @Test + @TestMetadata("kt60854.kt") + public void testKt60854() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/kt60854.kt"); + } + + @Test + @TestMetadata("kt61166.kt") + public void testKt61166() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/kt61166.kt"); + } + + @Test + @TestMetadata("noArgActualConstructor.kt") + public void testNoArgActualConstructor() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/noArgActualConstructor.kt"); + } + + @Test + @TestMetadata("optionalExpectation.kt") + public void testOptionalExpectation() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/optionalExpectation.kt"); + } + + @Test + @TestMetadata("optionalExpectationJvm.kt") + public void testOptionalExpectationJvm() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/optionalExpectationJvm.kt"); + } + + @Test + @TestMetadata("starImportOfExpectEnumWithActualTypeAlias.kt") + public void testStarImportOfExpectEnumWithActualTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/starImportOfExpectEnumWithActualTypeAlias.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiplatform/complexMatchings") + @TestDataPath("$PROJECT_ROOT") + public class ComplexMatchings { + @Test + public void testAllFilesPresentInComplexMatchings() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/complexMatchings"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("expectCtorlessFinalToActualObject.kt") + public void testExpectCtorlessFinalToActualObject() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/complexMatchings/expectCtorlessFinalToActualObject.kt"); + } + + @Test + @TestMetadata("expectCtorlessFinalToActualUnit.kt") + public void testExpectCtorlessFinalToActualUnit() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/complexMatchings/expectCtorlessFinalToActualUnit.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiplatform/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + public class DefaultArguments { + @Test + public void testAllFilesPresentInDefaultArguments() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotations.kt") + public void testAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/annotations.kt"); + } + + @Test + @TestMetadata("bothInExpectAndActual.kt") + public void testBothInExpectAndActual() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/bothInExpectAndActual.kt"); + } + + @Test + @TestMetadata("bothInExpectAndActual2.kt") + public void testBothInExpectAndActual2() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/bothInExpectAndActual2.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/constructor.kt"); + } + + @Test + @TestMetadata("delegatedExpectedInterface.kt") + public void testDelegatedExpectedInterface() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/delegatedExpectedInterface.kt"); + } + + @Test + @TestMetadata("dispatchReceiverValue.kt") + public void testDispatchReceiverValue() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/dispatchReceiverValue.kt"); + } + + @Test + @TestMetadata("extensionReceiverValue.kt") + public void testExtensionReceiverValue() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/extensionReceiverValue.kt"); + } + + @Test + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/function.kt"); + } + + @Test + @TestMetadata("functionFromOtherModule.kt") + public void testFunctionFromOtherModule() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/functionFromOtherModule.kt"); + } + + @Test + @TestMetadata("inheritedFromCommonClass.kt") + public void testInheritedFromCommonClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedFromCommonClass.kt"); + } + + @Test + @TestMetadata("inheritedFromExpectedClass.kt") + public void testInheritedFromExpectedClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedFromExpectedClass.kt"); + } + + @Test + @TestMetadata("inheritedFromExpectedInterface.kt") + public void testInheritedFromExpectedInterface() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedFromExpectedInterface.kt"); + } + + @Test + @TestMetadata("inheritedFromExpectedMethod.kt") + public void testInheritedFromExpectedMethod() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedFromExpectedMethod.kt"); + } + + @Test + @TestMetadata("inheritedInExpectedDeclarations.kt") + public void testInheritedInExpectedDeclarations() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedInExpectedDeclarations.kt"); + } + + @Test + @TestMetadata("inheritedViaAnotherInterfaceIndirectly.kt") + public void testInheritedViaAnotherInterfaceIndirectly() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedViaAnotherInterfaceIndirectly.kt"); + } + + @Test + @TestMetadata("inlineFunctionWithDefaultLambda.kt") + public void testInlineFunctionWithDefaultLambda() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inlineFunctionWithDefaultLambda.kt"); + } + + @Test + @TestMetadata("jvmOverloads.kt") + public void testJvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/jvmOverloads.kt"); + } + + @Test + @TestMetadata("kt23239.kt") + public void testKt23239() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/kt23239.kt"); + } + + @Test + @TestMetadata("kt23739.kt") + public void testKt23739() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/kt23739.kt"); + } + + @Test + @TestMetadata("nestedEnumEntryValue.kt") + public void testNestedEnumEntryValue() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/nestedEnumEntryValue.kt"); + } + + @Test + @TestMetadata("parametersInArgumentValues.kt") + public void testParametersInArgumentValues() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/parametersInArgumentValues.kt"); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/superCall.kt"); + } + + @Test + @TestMetadata("suspend.kt") + public void testSuspend() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/suspend.kt"); + } + + @Test + @TestMetadata("typeAlias.kt") + public void testTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/typeAlias.kt"); + } + + @Test + @TestMetadata("typeAlias2.kt") + public void testTypeAlias2() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/typeAlias2.kt"); + } + + @Test + @TestMetadata("withTypeParameter.kt") + public void testWithTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/withTypeParameter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiplatform/exhaustiveness") + @TestDataPath("$PROJECT_ROOT") + public class Exhaustiveness { + @Test + public void testAllFilesPresentInExhaustiveness() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/exhaustiveness"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("commonEnum.kt") + public void testCommonEnum() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/exhaustiveness/commonEnum.kt"); + } + + @Test + @TestMetadata("commonSealedClass.kt") + public void testCommonSealedClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/exhaustiveness/commonSealedClass.kt"); + } + + @Test + @TestMetadata("commonSealedInterface.kt") + public void testCommonSealedInterface() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/exhaustiveness/commonSealedInterface.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiplatform/hmpp") + @TestDataPath("$PROJECT_ROOT") + public class Hmpp { + @Test + public void testAllFilesPresentInHmpp() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/hmpp"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/hmpp/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiplatform/migratedOldTests") + @TestDataPath("$PROJECT_ROOT") + public class MigratedOldTests { + @Test + public void testAllFilesPresentInMigratedOldTests() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/migratedOldTests"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("mpp1.kt") + public void testMpp1() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/mpp1.kt"); + } + + @Test + @TestMetadata("mpp2.kt") + public void testMpp2() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/mpp2.kt"); + } + + @Test + @TestMetadata("mpp_default_args.kt") + public void testMpp_default_args() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/mpp_default_args.kt"); + } + + @Test + @TestMetadata("remap_expect_property_ref.kt") + public void testRemap_expect_property_ref() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/remap_expect_property_ref.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/multiplatform/multiModule") + @TestDataPath("$PROJECT_ROOT") + public class MultiModule { + @Test + public void testAllFilesPresentInMultiModule() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("expectInterfaceInheritance.kt") + public void testExpectInterfaceInheritance() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/multiModule/expectInterfaceInheritance.kt"); + } + + @Test + @TestMetadata("hmppSimple.kt") + public void testHmppSimple() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/multiModule/hmppSimple.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/nonLocalReturns") + @TestDataPath("$PROJECT_ROOT") + public class NonLocalReturns { + @Test + public void testAllFilesPresentInNonLocalReturns() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt6895.kt") + public void testKt6895() throws Exception { + runTest("compiler/testData/codegen/box/nonLocalReturns/kt6895.kt"); + } + + @Test + @TestMetadata("kt9644let.kt") + public void testKt9644let() throws Exception { + runTest("compiler/testData/codegen/box/nonLocalReturns/kt9644let.kt"); + } + + @Test + @TestMetadata("localReturnInsideProperty.kt") + public void testLocalReturnInsideProperty() throws Exception { + runTest("compiler/testData/codegen/box/nonLocalReturns/localReturnInsideProperty.kt"); + } + + @Test + @TestMetadata("returnInsideTwoLambdas.kt") + public void testReturnInsideTwoLambdas() throws Exception { + runTest("compiler/testData/codegen/box/nonLocalReturns/returnInsideTwoLambdas.kt"); + } + + @Test + @TestMetadata("use.kt") + public void testUse() throws Exception { + runTest("compiler/testData/codegen/box/nonLocalReturns/use.kt"); + } + + @Test + @TestMetadata("useWithException.kt") + public void testUseWithException() throws Exception { + runTest("compiler/testData/codegen/box/nonLocalReturns/useWithException.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/notNullAssertions") + @TestDataPath("$PROJECT_ROOT") + public class NotNullAssertions { + @Test + public void testAllFilesPresentInNotNullAssertions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callAssertions.kt") + public void testCallAssertions() throws Exception { + runTest("compiler/testData/codegen/box/notNullAssertions/callAssertions.kt"); + } + + @Test + @TestMetadata("constructorWithMangledParams.kt") + public void testConstructorWithMangledParams() throws Exception { + runTest("compiler/testData/codegen/box/notNullAssertions/constructorWithMangledParams.kt"); + } + + @Test + @TestMetadata("definitelyNotNullTypes.kt") + public void testDefinitelyNotNullTypes() throws Exception { + runTest("compiler/testData/codegen/box/notNullAssertions/definitelyNotNullTypes.kt"); + } + + @Test + @TestMetadata("delegation.kt") + public void testDelegation() throws Exception { + runTest("compiler/testData/codegen/box/notNullAssertions/delegation.kt"); + } + + @Test + @TestMetadata("doGenerateParamAssertions.kt") + public void testDoGenerateParamAssertions() throws Exception { + runTest("compiler/testData/codegen/box/notNullAssertions/doGenerateParamAssertions.kt"); + } + + @Test + @TestMetadata("inFunctionWithExpressionBodyWithJavaGeneric.kt") + public void testInFunctionWithExpressionBodyWithJavaGeneric() throws Exception { + runTest("compiler/testData/codegen/box/notNullAssertions/inFunctionWithExpressionBodyWithJavaGeneric.kt"); + } + + @Test + @TestMetadata("messageLength.kt") + public void testMessageLength() throws Exception { + runTest("compiler/testData/codegen/box/notNullAssertions/messageLength.kt"); + } + + @Test + @TestMetadata("noCallAssertions.kt") + public void testNoCallAssertions() throws Exception { + runTest("compiler/testData/codegen/box/notNullAssertions/noCallAssertions.kt"); + } + + @Test + @TestMetadata("rightElvisOperand.kt") + public void testRightElvisOperand() throws Exception { + runTest("compiler/testData/codegen/box/notNullAssertions/rightElvisOperand.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/nothingValue") + @TestDataPath("$PROJECT_ROOT") + public class NothingValue { + @Test + public void testAllFilesPresentInNothingValue() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nothingValue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inNestedCall.kt") + public void testInNestedCall() throws Exception { + runTest("compiler/testData/codegen/box/nothingValue/inNestedCall.kt"); + } + + @Test + @TestMetadata("nothingValueException.kt") + public void testNothingValueException() throws Exception { + runTest("compiler/testData/codegen/box/nothingValue/nothingValueException.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/nullCheckOptimization") + @TestDataPath("$PROJECT_ROOT") + public class NullCheckOptimization { + @Test + public void testAllFilesPresentInNullCheckOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nullCheckOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("exclExclThrowsKnpe_1_3.kt") + public void testExclExclThrowsKnpe_1_3() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/exclExclThrowsKnpe_1_3.kt"); + } + + @Test + @TestMetadata("exclExclThrowsNpe.kt") + public void testExclExclThrowsNpe() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/exclExclThrowsNpe.kt"); + } + + @Test + @TestMetadata("isNullable.kt") + public void testIsNullable() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/isNullable.kt"); + } + + @Test + @TestMetadata("javaNullCheckThrowsIse_1_3.kt") + public void testJavaNullCheckThrowsIse_1_3() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/javaNullCheckThrowsIse_1_3.kt"); + } + + @Test + @TestMetadata("javaNullCheckThrowsNpe.kt") + public void testJavaNullCheckThrowsNpe() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/javaNullCheckThrowsNpe.kt"); + } + + @Test + @TestMetadata("kt22410.kt") + public void testKt22410() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/kt22410.kt"); + } + + @Test + @TestMetadata("kt49136.kt") + public void testKt49136() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/kt49136.kt"); + } + + @Test + @TestMetadata("kt49136a.kt") + public void testKt49136a() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/kt49136a.kt"); + } + + @Test + @TestMetadata("kt7774.kt") + public void testKt7774() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/kt7774.kt"); + } + + @Test + @TestMetadata("parameterNullCheckThrowsIae_1_3.kt") + public void testParameterNullCheckThrowsIae_1_3() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/parameterNullCheckThrowsIae_1_3.kt"); + } + + @Test + @TestMetadata("parameterNullCheckThrowsNpe.kt") + public void testParameterNullCheckThrowsNpe() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/parameterNullCheckThrowsNpe.kt"); + } + + @Test + @TestMetadata("primitiveCheckWithSideEffect.kt") + public void testPrimitiveCheckWithSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/primitiveCheckWithSideEffect.kt"); + } + + @Test + @TestMetadata("trivialInstanceOf.kt") + public void testTrivialInstanceOf() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/trivialInstanceOf.kt"); + } + + @Test + @TestMetadata("varModifiedAfterCheck.kt") + public void testVarModifiedAfterCheck() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/varModifiedAfterCheck.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") + @TestDataPath("$PROJECT_ROOT") + public class ObjectIntrinsics { + @Test + public void testAllFilesPresentInObjectIntrinsics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectIntrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("objects.kt") + public void testObjects() throws Exception { + runTest("compiler/testData/codegen/box/objectIntrinsics/objects.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objects") + @TestDataPath("$PROJECT_ROOT") + public class Objects { + @Test + public void testAllFilesPresentInObjects() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectAndContrvariantProjection.kt") + public void testAnonymousObjectAndContrvariantProjection() throws Exception { + runTest("compiler/testData/codegen/box/objects/anonymousObjectAndContrvariantProjection.kt"); + } + + @Test + @TestMetadata("anonymousObjectPropertyInitialization.kt") + public void testAnonymousObjectPropertyInitialization() throws Exception { + runTest("compiler/testData/codegen/box/objects/anonymousObjectPropertyInitialization.kt"); + } + + @Test + @TestMetadata("anonymousObjectReturnsFromTopLevelFun.kt") + public void testAnonymousObjectReturnsFromTopLevelFun() throws Exception { + runTest("compiler/testData/codegen/box/objects/anonymousObjectReturnsFromTopLevelFun.kt"); + } + + @Test + @TestMetadata("classCallsProtectedInheritedByCompanion.kt") + public void testClassCallsProtectedInheritedByCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/classCallsProtectedInheritedByCompanion.kt"); + } + + @Test + @TestMetadata("classCompanion.kt") + public void testClassCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/classCompanion.kt"); + } + + @Test + @TestMetadata("compoundAssignmentToArrayAccessToExtensionPropertyImportedFromObject.kt") + public void testCompoundAssignmentToArrayAccessToExtensionPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToArrayAccessToExtensionPropertyImportedFromObject.kt"); + } + + @Test + @TestMetadata("compoundAssignmentToArrayAccessToPropertyImportedFromObject.kt") + public void testCompoundAssignmentToArrayAccessToPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToArrayAccessToPropertyImportedFromObject.kt"); + } + + @Test + @TestMetadata("compoundAssignmentToExtensionPropertyImportedFromObject.kt") + public void testCompoundAssignmentToExtensionPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToExtensionPropertyImportedFromObject.kt"); + } + + @Test + @TestMetadata("compoundAssignmentToObjectFromCall.kt") + public void testCompoundAssignmentToObjectFromCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToObjectFromCall.kt"); + } + + @Test + @TestMetadata("compoundAssignmentToPropertyImportedFromObject.kt") + public void testCompoundAssignmentToPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToPropertyImportedFromObject.kt"); + } + + @Test + @TestMetadata("compoundAssignmentToPropertyWithQualifier.kt") + public void testCompoundAssignmentToPropertyWithQualifier() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToPropertyWithQualifier.kt"); + } + + @Test + @TestMetadata("flist.kt") + public void testFlist() throws Exception { + runTest("compiler/testData/codegen/box/objects/flist.kt"); + } + + @Test + @TestMetadata("initializationOrder.kt") + public void testInitializationOrder() throws Exception { + runTest("compiler/testData/codegen/box/objects/initializationOrder.kt"); + } + + @Test + @TestMetadata("initializationOrderConsts.kt") + public void testInitializationOrderConsts() throws Exception { + runTest("compiler/testData/codegen/box/objects/initializationOrderConsts.kt"); + } + + @Test + @TestMetadata("initializerBlockResetToDefault.kt") + public void testInitializerBlockResetToDefault() throws Exception { + runTest("compiler/testData/codegen/box/objects/initializerBlockResetToDefault.kt"); + } + + @Test + @TestMetadata("interfaceCompanion.kt") + public void testInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/interfaceCompanion.kt"); + } + + @Test + @TestMetadata("interfaceCompanionObjectReference.kt") + public void testInterfaceCompanionObjectReference() throws Exception { + runTest("compiler/testData/codegen/box/objects/interfaceCompanionObjectReference.kt"); + } + + @Test + @TestMetadata("kt1047.kt") + public void testKt1047() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt1047.kt"); + } + + @Test + @TestMetadata("kt1047a.kt") + public void testKt1047a() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt1047a.kt"); + } + + @Test + @TestMetadata("kt11117.kt") + public void testKt11117() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt11117.kt"); + } + + @Test + @TestMetadata("kt1136.kt") + public void testKt1136() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt1136.kt"); + } + + @Test + @TestMetadata("kt1186.kt") + public void testKt1186() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt1186.kt"); + } + + @Test + @TestMetadata("kt1600.kt") + public void testKt1600() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt1600.kt"); + } + + @Test + @TestMetadata("kt1737.kt") + public void testKt1737() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt1737.kt"); + } + + @Test + @TestMetadata("kt18982.kt") + public void testKt18982() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt18982.kt"); + } + + @Test + @TestMetadata("kt2398.kt") + public void testKt2398() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2398.kt"); + } + + @Test + @TestMetadata("kt2663.kt") + public void testKt2663() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2663.kt"); + } + + @Test + @TestMetadata("kt2663_2.kt") + public void testKt2663_2() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2663_2.kt"); + } + + @Test + @TestMetadata("kt2663_3.kt") + public void testKt2663_3() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2663_3.kt"); + } + + @Test + @TestMetadata("kt2675.kt") + public void testKt2675() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2675.kt"); + } + + @Test + @TestMetadata("kt2719.kt") + public void testKt2719() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2719.kt"); + } + + @Test + @TestMetadata("kt2822.kt") + public void testKt2822() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2822.kt"); + } + + @Test + @TestMetadata("kt32351.kt") + public void testKt32351() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt32351.kt"); + } + + @Test + @TestMetadata("kt3238.kt") + public void testKt3238() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt3238.kt"); + } + + @Test + @TestMetadata("kt32749.kt") + public void testKt32749() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt32749.kt"); + } + + @Test + @TestMetadata("kt3684.kt") + public void testKt3684() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt3684.kt"); + } + + @Test + @TestMetadata("kt4086.kt") + public void testKt4086() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt4086.kt"); + } + + @Test + @TestMetadata("kt42758.kt") + public void testKt42758() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt42758.kt"); + } + + @Test + @TestMetadata("kt45170.kt") + public void testKt45170() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt45170.kt"); + } + + @Test + @TestMetadata("kt46136.kt") + public void testKt46136() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt46136.kt"); + } + + @Test + @TestMetadata("kt52540.kt") + public void testKt52540() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt52540.kt"); + } + + @Test + @TestMetadata("kt535.kt") + public void testKt535() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt535.kt"); + } + + @Test + @TestMetadata("kt560.kt") + public void testKt560() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt560.kt"); + } + + @Test + @TestMetadata("kt694.kt") + public void testKt694() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt694.kt"); + } + + @Test + @TestMetadata("localFunctionInObjectInitializer_kt4516.kt") + public void testLocalFunctionInObjectInitializer_kt4516() throws Exception { + runTest("compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt"); + } + + @Test + @TestMetadata("methodOnObject.kt") + public void testMethodOnObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/methodOnObject.kt"); + } + + @Test + @TestMetadata("nestedDerivedClassCallsProtectedFromCompanion.kt") + public void testNestedDerivedClassCallsProtectedFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/nestedDerivedClassCallsProtectedFromCompanion.kt"); + } + + @Test + @TestMetadata("nestedObjectWithSuperclass.kt") + public void testNestedObjectWithSuperclass() throws Exception { + runTest("compiler/testData/codegen/box/objects/nestedObjectWithSuperclass.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/object.kt"); + } + + @Test + @TestMetadata("objectExtendsInnerAndReferencesOuterMember.kt") + public void testObjectExtendsInnerAndReferencesOuterMember() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectExtendsInnerAndReferencesOuterMember.kt"); + } + + @Test + @TestMetadata("objectInLocalAnonymousObject.kt") + public void testObjectInLocalAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectInLocalAnonymousObject.kt"); + } + + @Test + @TestMetadata("objectInitialization_kt5523.kt") + public void testObjectInitialization_kt5523() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectInitialization_kt5523.kt"); + } + + @Test + @TestMetadata("objectLiteral.kt") + public void testObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectLiteral.kt"); + } + + @Test + @TestMetadata("objectLiteralInClass.kt") + public void testObjectLiteralInClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectLiteralInClass.kt"); + } + + @Test + @TestMetadata("objectLiteralInClosure.kt") + public void testObjectLiteralInClosure() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectLiteralInClosure.kt"); + } + + @Test + @TestMetadata("objectVsClassInitialization_kt5291.kt") + public void testObjectVsClassInitialization_kt5291() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.kt"); + } + + @Test + @TestMetadata("objectWithSuperclass.kt") + public void testObjectWithSuperclass() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectWithSuperclass.kt"); + } + + @Test + @TestMetadata("objectWithSuperclassAndTrait.kt") + public void testObjectWithSuperclassAndTrait() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectWithSuperclassAndTrait.kt"); + } + + @Test + @TestMetadata("privateExtensionFromInitializer_kt4543.kt") + public void testPrivateExtensionFromInitializer_kt4543() throws Exception { + runTest("compiler/testData/codegen/box/objects/privateExtensionFromInitializer_kt4543.kt"); + } + + @Test + @TestMetadata("privateFunctionFromClosureInInitializer_kt5582.kt") + public void testPrivateFunctionFromClosureInInitializer_kt5582() throws Exception { + runTest("compiler/testData/codegen/box/objects/privateFunctionFromClosureInInitializer_kt5582.kt"); + } + + @Test + @TestMetadata("receiverInConstructor.kt") + public void testReceiverInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/objects/receiverInConstructor.kt"); + } + + @Test + @TestMetadata("safeAccess.kt") + public void testSafeAccess() throws Exception { + runTest("compiler/testData/codegen/box/objects/safeAccess.kt"); + } + + @Test + @TestMetadata("selfReferenceToCompanionObjectInAnonymousObjectInSuperConstructorCall.kt") + public void testSelfReferenceToCompanionObjectInAnonymousObjectInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToCompanionObjectInAnonymousObjectInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("selfReferenceToCompanionObjectInInlineLambdaInConstructorBody.kt") + public void testSelfReferenceToCompanionObjectInInlineLambdaInConstructorBody() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToCompanionObjectInInlineLambdaInConstructorBody.kt"); + } + + @Test + @TestMetadata("selfReferenceToCompanionObjectInInlineLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToCompanionObjectInInlineLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToCompanionObjectInInlineLambdaInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("selfReferenceToCompanionObjectInLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToCompanionObjectInLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToCompanionObjectInLambdaInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("selfReferenceToInterfaceCompanionObjectInAnonymousObjectInSuperConstructorCall.kt") + public void testSelfReferenceToInterfaceCompanionObjectInAnonymousObjectInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInAnonymousObjectInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("selfReferenceToInterfaceCompanionObjectInInlineLambdaInConstructorBody.kt") + public void testSelfReferenceToInterfaceCompanionObjectInInlineLambdaInConstructorBody() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInInlineLambdaInConstructorBody.kt"); + } + + @Test + @TestMetadata("selfReferenceToInterfaceCompanionObjectInInlineLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToInterfaceCompanionObjectInInlineLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInInlineLambdaInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("selfReferenceToInterfaceCompanionObjectInLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToInterfaceCompanionObjectInLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInLambdaInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("selfReferenceToObjectInAnonymousObjectInSuperConstructorCall.kt") + public void testSelfReferenceToObjectInAnonymousObjectInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToObjectInAnonymousObjectInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("selfReferenceToObjectInInlineLambdaInConstructorBody.kt") + public void testSelfReferenceToObjectInInlineLambdaInConstructorBody() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToObjectInInlineLambdaInConstructorBody.kt"); + } + + @Test + @TestMetadata("selfReferenceToObjectInInlineLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToObjectInInlineLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToObjectInInlineLambdaInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("selfReferenceToObjectInLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToObjectInLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToObjectInLambdaInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("simpleObject.kt") + public void testSimpleObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/simpleObject.kt"); + } + + @Test + @TestMetadata("substitutionFunctionFromSuper.kt") + public void testSubstitutionFunctionFromSuper() throws Exception { + runTest("compiler/testData/codegen/box/objects/substitutionFunctionFromSuper.kt"); + } + + @Test + @TestMetadata("thisInConstructor.kt") + public void testThisInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/objects/thisInConstructor.kt"); + } + + @Test + @TestMetadata("thisRefToObjectInNestedClassConstructorCall.kt") + public void testThisRefToObjectInNestedClassConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/thisRefToObjectInNestedClassConstructorCall.kt"); + } + + @Test + @TestMetadata("useAnonymousObjectAsIterator.kt") + public void testUseAnonymousObjectAsIterator() throws Exception { + runTest("compiler/testData/codegen/box/objects/useAnonymousObjectAsIterator.kt"); + } + + @Test + @TestMetadata("useAnonymousObjectFunction.kt") + public void testUseAnonymousObjectFunction() throws Exception { + runTest("compiler/testData/codegen/box/objects/useAnonymousObjectFunction.kt"); + } + + @Test + @TestMetadata("useImportedMember.kt") + public void testUseImportedMember() throws Exception { + runTest("compiler/testData/codegen/box/objects/useImportedMember.kt"); + } + + @Test + @TestMetadata("useImportedMemberFromCompanion.kt") + public void testUseImportedMemberFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/useImportedMemberFromCompanion.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objects/companionObjectAccess") + @TestDataPath("$PROJECT_ROOT") + public class CompanionObjectAccess { + @Test + public void testAllFilesPresentInCompanionObjectAccess() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects/companionObjectAccess"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt27117.kt") + public void testKt27117() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27117.kt"); + } + + @Test + @TestMetadata("kt27117_lv12.kt") + public void testKt27117_lv12() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27117_lv12.kt"); + } + + @Test + @TestMetadata("kt27117_lv13.kt") + public void testKt27117_lv13() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27117_lv13.kt"); + } + + @Test + @TestMetadata("kt27121.kt") + public void testKt27121() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27121.kt"); + } + + @Test + @TestMetadata("kt27121_lv12.kt") + public void testKt27121_lv12() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27121_lv12.kt"); + } + + @Test + @TestMetadata("kt27121_lv13.kt") + public void testKt27121_lv13() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27121_lv13.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectAccessedFromAnonymousObjectInNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromAnonymousObjectInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromAnonymousObjectInNestedClass.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectAccessedFromInitBlock.kt") + public void testPrivateCompanionObjectAccessedFromInitBlock() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromInitBlock.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectAccessedFromInitBlockOfNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromInitBlockOfNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromInitBlockOfNestedClass.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectAccessedFromInlineLambdaInNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromInlineLambdaInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromInlineLambdaInNestedClass.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectAccessedFromLambdaInNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromLambdaInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromLambdaInNestedClass.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectAccessedFromMethodInlinedInNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromMethodInlinedInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromMethodInlinedInNestedClass.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectAccessedFromNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromNestedClass.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectAccessedFromNestedClassSeveralTimes.kt") + public void testPrivateCompanionObjectAccessedFromNestedClassSeveralTimes() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromNestedClassSeveralTimes.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectUsedInNestedClass.kt") + public void testPrivateCompanionObjectUsedInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectUsedInNestedClass.kt"); + } + + @Test + @TestMetadata("protectedCompanionObjectAccessedFromNestedClass.kt") + public void testProtectedCompanionObjectAccessedFromNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/protectedCompanionObjectAccessedFromNestedClass.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors") + @TestDataPath("$PROJECT_ROOT") + public class MultipleCompanionsWithAccessors { + @Test + @TestMetadata("accessFromInlineLambda.kt") + public void testAccessFromInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/accessFromInlineLambda.kt"); + } + + @Test + public void testAllFilesPresentInMultipleCompanionsWithAccessors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectInPropertyInitializer.kt") + public void testAnonymousObjectInPropertyInitializer() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/anonymousObjectInPropertyInitializer.kt"); + } + + @Test + @TestMetadata("fromAnonymousObjectInNestedClass.kt") + public void testFromAnonymousObjectInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/fromAnonymousObjectInNestedClass.kt"); + } + + @Test + @TestMetadata("fromInitBlock.kt") + public void testFromInitBlock() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/fromInitBlock.kt"); + } + + @Test + @TestMetadata("fromInitBlockOfNestedClass.kt") + public void testFromInitBlockOfNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/fromInitBlockOfNestedClass.kt"); + } + + @Test + @TestMetadata("fromInlineLambdaInNestedClass.kt") + public void testFromInlineLambdaInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/fromInlineLambdaInNestedClass.kt"); + } + + @Test + @TestMetadata("inheritedProtectedCompanionAndOwnPrivateCompanion.kt") + public void testInheritedProtectedCompanionAndOwnPrivateCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/inheritedProtectedCompanionAndOwnPrivateCompanion.kt"); + } + + @Test + @TestMetadata("inheritedProtectedCompanionsReferencedByName.kt") + public void testInheritedProtectedCompanionsReferencedByName() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/inheritedProtectedCompanionsReferencedByName.kt"); + } + + @Test + @TestMetadata("lambdaInPropertyInitializer.kt") + public void testLambdaInPropertyInitializer() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/lambdaInPropertyInitializer.kt"); + } + + @Test + @TestMetadata("twoInheritedProtectedCompanions.kt") + public void testTwoInheritedProtectedCompanions() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/twoInheritedProtectedCompanions.kt"); + } + + @Test + @TestMetadata("withCompanionObjectBase.kt") + public void testWithCompanionObjectBase() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/withCompanionObjectBase.kt"); + } + + @Test + @TestMetadata("withMultipleNestedCompanionObjectBases.kt") + public void testWithMultipleNestedCompanionObjectBases() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/withMultipleNestedCompanionObjectBases.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion") + @TestDataPath("$PROJECT_ROOT") + public class PrimitiveCompanion { + @Test + public void testAllFilesPresentInPrimitiveCompanion() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("byteCompanionObject.kt") + public void testByteCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/byteCompanionObject.kt"); + } + + @Test + @TestMetadata("charCompanionObject.kt") + public void testCharCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/charCompanionObject.kt"); + } + + @Test + @TestMetadata("doubleCompanionObject.kt") + public void testDoubleCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/doubleCompanionObject.kt"); + } + + @Test + @TestMetadata("floatCompanionObject.kt") + public void testFloatCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/floatCompanionObject.kt"); + } + + @Test + @TestMetadata("intCompanionObject.kt") + public void testIntCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/intCompanionObject.kt"); + } + + @Test + @TestMetadata("longCompanionObject.kt") + public void testLongCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/longCompanionObject.kt"); + } + + @Test + @TestMetadata("shortCompanionObject.kt") + public void testShortCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/shortCompanionObject.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/operatorConventions") + @TestDataPath("$PROJECT_ROOT") + public class OperatorConventions { + @Test + public void testAllFilesPresentInOperatorConventions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/operatorConventions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotatedAssignment.kt") + public void testAnnotatedAssignment() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/annotatedAssignment.kt"); + } + + @Test + @TestMetadata("assignToDotQualifiedWithSideEffect.kt") + public void testAssignToDotQualifiedWithSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/assignToDotQualifiedWithSideEffect.kt"); + } + + @Test + @TestMetadata("assignmentOperations.kt") + public void testAssignmentOperations() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/assignmentOperations.kt"); + } + + @Test + @TestMetadata("augmentedAssigmentPlusLhsCount.kt") + public void testAugmentedAssigmentPlusLhsCount() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/augmentedAssigmentPlusLhsCount.kt"); + } + + @Test + @TestMetadata("augmentedAssignmentInInitializer.kt") + public void testAugmentedAssignmentInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/augmentedAssignmentInInitializer.kt"); + } + + @Test + @TestMetadata("augmentedAssignmentWithArrayLHS.kt") + public void testAugmentedAssignmentWithArrayLHS() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/augmentedAssignmentWithArrayLHS.kt"); + } + + @Test + @TestMetadata("genericArrayAccessCall.kt") + public void testGenericArrayAccessCall() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/genericArrayAccessCall.kt"); + } + + @Test + @TestMetadata("incDecOnObject.kt") + public void testIncDecOnObject() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/incDecOnObject.kt"); + } + + @Test + @TestMetadata("infixFunctionOverBuiltinMember.kt") + public void testInfixFunctionOverBuiltinMember() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/infixFunctionOverBuiltinMember.kt"); + } + + @Test + @TestMetadata("kt14201.kt") + public void testKt14201() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt14201.kt"); + } + + @Test + @TestMetadata("kt14201_2.kt") + public void testKt14201_2() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt14201_2.kt"); + } + + @Test + @TestMetadata("kt14227.kt") + public void testKt14227() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt14227.kt"); + } + + @Test + @TestMetadata("kt20387.kt") + public void testKt20387() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt20387.kt"); + } + + @Test + @TestMetadata("kt39880.kt") + public void testKt39880() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt39880.kt"); + } + + @Test + @TestMetadata("kt4152.kt") + public void testKt4152() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt4152.kt"); + } + + @Test + @TestMetadata("kt42722.kt") + public void testKt42722() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt42722.kt"); + } + + @Test + @TestMetadata("kt44647.kt") + public void testKt44647() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt44647.kt"); + } + + @Test + @TestMetadata("kt45022.kt") + public void testKt45022() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt45022.kt"); + } + + @Test + @TestMetadata("kt4987.kt") + public void testKt4987() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt4987.kt"); + } + + @Test + @TestMetadata("nestedMaps.kt") + public void testNestedMaps() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/nestedMaps.kt"); + } + + @Test + @TestMetadata("operatorSetLambda.kt") + public void testOperatorSetLambda() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/operatorSetLambda.kt"); + } + + @Test + @TestMetadata("overloadedSet.kt") + public void testOverloadedSet() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/overloadedSet.kt"); + } + + @Test + @TestMetadata("plusAssignWithComplexRHS.kt") + public void testPlusAssignWithComplexRHS() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt"); + } + + @Test + @TestMetadata("plusExplicit.kt") + public void testPlusExplicit() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/plusExplicit.kt"); + } + + @Test + @TestMetadata("reassignmentLhsCaching.kt") + public void testReassignmentLhsCaching() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/reassignmentLhsCaching.kt"); + } + + @Test + @TestMetadata("remAssignmentOperation.kt") + public void testRemAssignmentOperation() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/remAssignmentOperation.kt"); + } + + @Test + @TestMetadata("remOverModOperation.kt") + public void testRemOverModOperation() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/remOverModOperation.kt"); + } + + @Test + @TestMetadata("suspendOperators.kt") + public void testSuspendOperators() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/suspendOperators.kt"); + } + + @Test + @TestMetadata("untilOperator.kt") + public void testUntilOperator() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/untilOperator.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/operatorConventions/compareTo") + @TestDataPath("$PROJECT_ROOT") + public class CompareTo { + @Test + public void testAllFilesPresentInCompareTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/operatorConventions/compareTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/boolean.kt"); + } + + @Test + @TestMetadata("comparable.kt") + public void testComparable() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/comparable.kt"); + } + + @Test + @TestMetadata("customCompareTo.kt") + public void testCustomCompareTo() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/customCompareTo.kt"); + } + + @Test + @TestMetadata("doubleInt.kt") + public void testDoubleInt() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/doubleInt.kt"); + } + + @Test + @TestMetadata("doubleLong.kt") + public void testDoubleLong() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/doubleLong.kt"); + } + + @Test + @TestMetadata("extensionArray.kt") + public void testExtensionArray() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/extensionArray.kt"); + } + + @Test + @TestMetadata("extensionObject.kt") + public void testExtensionObject() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/extensionObject.kt"); + } + + @Test + @TestMetadata("intDouble.kt") + public void testIntDouble() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/intDouble.kt"); + } + + @Test + @TestMetadata("intLong.kt") + public void testIntLong() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/intLong.kt"); + } + + @Test + @TestMetadata("longDouble.kt") + public void testLongDouble() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/longDouble.kt"); + } + + @Test + @TestMetadata("longInt.kt") + public void testLongInt() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/longInt.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/optimizations") + @TestDataPath("$PROJECT_ROOT") + public class Optimizations { + @Test + public void testAllFilesPresentInOptimizations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("hashCode.kt") + public void testHashCode() throws Exception { + runTest("compiler/testData/codegen/box/optimizations/hashCode.kt"); + } + + @Test + @TestMetadata("kt20844.kt") + public void testKt20844() throws Exception { + runTest("compiler/testData/codegen/box/optimizations/kt20844.kt"); + } + + @Test + @TestMetadata("kt46921.kt") + public void testKt46921() throws Exception { + runTest("compiler/testData/codegen/box/optimizations/kt46921.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/package") + @TestDataPath("$PROJECT_ROOT") + public class Package { + @Test + public void testAllFilesPresentInPackage() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxPrimitiveTypeInClinit.kt") + public void testBoxPrimitiveTypeInClinit() throws Exception { + runTest("compiler/testData/codegen/box/package/boxPrimitiveTypeInClinit.kt"); + } + + @Test + @TestMetadata("checkCast.kt") + public void testCheckCast() throws Exception { + runTest("compiler/testData/codegen/box/package/checkCast.kt"); + } + + @Test + @TestMetadata("incrementProperty.kt") + public void testIncrementProperty() throws Exception { + runTest("compiler/testData/codegen/box/package/incrementProperty.kt"); + } + + @Test + @TestMetadata("initializationOrder.kt") + public void testInitializationOrder() throws Exception { + runTest("compiler/testData/codegen/box/package/initializationOrder.kt"); + } + + @Test + @TestMetadata("invokespecial.kt") + public void testInvokespecial() throws Exception { + runTest("compiler/testData/codegen/box/package/invokespecial.kt"); + } + + @Test + @TestMetadata("kt57353.kt") + public void testKt57353() throws Exception { + runTest("compiler/testData/codegen/box/package/kt57353.kt"); + } + + @Test + @TestMetadata("kt62017.kt") + public void testKt62017() throws Exception { + runTest("compiler/testData/codegen/box/package/kt62017.kt"); + } + + @Test + @TestMetadata("mainInFiles.kt") + public void testMainInFiles() throws Exception { + runTest("compiler/testData/codegen/box/package/mainInFiles.kt"); + } + + @Test + @TestMetadata("nullablePrimitiveNoFieldInitializer.kt") + public void testNullablePrimitiveNoFieldInitializer() throws Exception { + runTest("compiler/testData/codegen/box/package/nullablePrimitiveNoFieldInitializer.kt"); + } + + @Test + @TestMetadata("packageLocalClassNotImportedWithDefaultImport.kt") + public void testPackageLocalClassNotImportedWithDefaultImport() throws Exception { + runTest("compiler/testData/codegen/box/package/packageLocalClassNotImportedWithDefaultImport.kt"); + } + + @Test + @TestMetadata("packageOrNestedClass.kt") + public void testPackageOrNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/package/packageOrNestedClass.kt"); + } + + @Test + @TestMetadata("packageQualifiedMethod.kt") + public void testPackageQualifiedMethod() throws Exception { + runTest("compiler/testData/codegen/box/package/packageQualifiedMethod.kt"); + } + + @Test + @TestMetadata("privateMembersInImportList.kt") + public void testPrivateMembersInImportList() throws Exception { + runTest("compiler/testData/codegen/box/package/privateMembersInImportList.kt"); + } + + @Test + @TestMetadata("privateTopLevelPropAndVarInInner.kt") + public void testPrivateTopLevelPropAndVarInInner() throws Exception { + runTest("compiler/testData/codegen/box/package/privateTopLevelPropAndVarInInner.kt"); + } + + @Test + @TestMetadata("referenceWithTheSameNameAsPackage.kt") + public void testReferenceWithTheSameNameAsPackage() throws Exception { + runTest("compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/parametersMetadata") + @TestDataPath("$PROJECT_ROOT") + public class ParametersMetadata { + @Test + public void testAllFilesPresentInParametersMetadata() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/parametersMetadata"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultImpls.kt") + public void testDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/defaultImpls.kt"); + } + + @Test + @TestMetadata("delegation.kt") + public void testDelegation() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/delegation.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/enum.kt"); + } + + @Test + @TestMetadata("extensionFunction.kt") + public void testExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/extensionFunction.kt"); + } + + @Test + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/function.kt"); + } + + @Test + @TestMetadata("inlineClassMethodParameterModifiers.kt") + public void testInlineClassMethodParameterModifiers() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/inlineClassMethodParameterModifiers.kt"); + } + + @Test + @TestMetadata("inlineClassMethodParameterNames.kt") + public void testInlineClassMethodParameterNames() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/inlineClassMethodParameterNames.kt"); + } + + @Test + @TestMetadata("innerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/innerClass.kt"); + } + + @Test + @TestMetadata("jvmOverloads.kt") + public void testJvmOverloads() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/jvmOverloads.kt"); + } + + @Test + @TestMetadata("kt40857_parameterizedExtensionReceiver.kt") + public void testKt40857_parameterizedExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/kt40857_parameterizedExtensionReceiver.kt"); + } + + @Test + @TestMetadata("superParams.kt") + public void testSuperParams() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/superParams.kt"); + } + + @Test + @TestMetadata("suspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/codegen/box/parametersMetadata/suspendFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/platformTypes") + @TestDataPath("$PROJECT_ROOT") + public class PlatformTypes { + @Test + public void testAllFilesPresentInPlatformTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericUnit.kt") + public void testGenericUnit() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/genericUnit.kt"); + } + + @Test + @TestMetadata("inferenceFlexibleTToNullable.kt") + public void testInferenceFlexibleTToNullable() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/inferenceFlexibleTToNullable.kt"); + } + + @Test + @TestMetadata("kt14989.kt") + public void testKt14989() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/kt14989.kt"); + } + + @Test + @TestMetadata("kt47785.kt") + public void testKt47785() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/kt47785.kt"); + } + + @Test + @TestMetadata("kt49209.kt") + public void testKt49209() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/kt49209.kt"); + } + + @Test + @TestMetadata("rawTypeWithNestedClass.kt") + public void testRawTypeWithNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/rawTypeWithNestedClass.kt"); + } + + @Test + @TestMetadata("specializedMapFull.kt") + public void testSpecializedMapFull() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/specializedMapFull.kt"); + } + + @Test + @TestMetadata("specializedMapPut.kt") + public void testSpecializedMapPut() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/specializedMapPut.kt"); + } + + @Test + @TestMetadata("stopComputingOnInterdependentTypeParameters.kt") + public void testStopComputingOnInterdependentTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/stopComputingOnInterdependentTypeParameters.kt"); + } + + @Test + @TestMetadata("unsafeNullCheck.kt") + public void testUnsafeNullCheck() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/unsafeNullCheck.kt"); + } + + @Test + @TestMetadata("unsafeNullCheckWithPrimitive.kt") + public void testUnsafeNullCheckWithPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/unsafeNullCheckWithPrimitive.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/platformTypes/primitives") + @TestDataPath("$PROJECT_ROOT") + public class Primitives { + @Test + public void testAllFilesPresentInPrimitives() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes/primitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("assign.kt") + public void testAssign() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/assign.kt"); + } + + @Test + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/compareTo.kt"); + } + + @Test + @TestMetadata("dec.kt") + public void testDec() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/dec.kt"); + } + + @Test + @TestMetadata("div.kt") + public void testDiv() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/div.kt"); + } + + @Test + @TestMetadata("equals.kt") + public void testEquals() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/equals.kt"); + } + + @Test + @TestMetadata("equalsNull.kt") + public void testEqualsNull() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/equalsNull.kt"); + } + + @Test + @TestMetadata("hashCode.kt") + public void testHashCode() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/hashCode.kt"); + } + + @Test + @TestMetadata("identityEquals.kt") + public void testIdentityEquals() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/identityEquals.kt"); + } + + @Test + @TestMetadata("inc.kt") + public void testInc() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/inc.kt"); + } + + @Test + @TestMetadata("minus.kt") + public void testMinus() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/minus.kt"); + } + + @Test + @TestMetadata("mod.kt") + public void testMod() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/mod.kt"); + } + + @Test + @TestMetadata("not.kt") + public void testNot() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/not.kt"); + } + + @Test + @TestMetadata("notEquals.kt") + public void testNotEquals() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/notEquals.kt"); + } + + @Test + @TestMetadata("plus.kt") + public void testPlus() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/plus.kt"); + } + + @Test + @TestMetadata("plusAssign.kt") + public void testPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/plusAssign.kt"); + } + + @Test + @TestMetadata("rangeTo.kt") + public void testRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/rangeTo.kt"); + } + + @Test + @TestMetadata("times.kt") + public void testTimes() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/times.kt"); + } + + @Test + @TestMetadata("toShort.kt") + public void testToShort() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/toShort.kt"); + } + + @Test + @TestMetadata("toString.kt") + public void testToString() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/toString.kt"); + } + + @Test + @TestMetadata("unaryMinus.kt") + public void testUnaryMinus() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/unaryMinus.kt"); + } + + @Test + @TestMetadata("unaryPlus.kt") + public void testUnaryPlus() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/unaryPlus.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/polymorphicSignature") + @TestDataPath("$PROJECT_ROOT") + public class PolymorphicSignature { + @Test + public void testAllFilesPresentInPolymorphicSignature() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/polymorphicSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousSubclass.kt") + public void testAnonymousSubclass() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/anonymousSubclass.kt"); + } + + @Test + @TestMetadata("insideComplexExpression.kt") + public void testInsideComplexExpression() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/insideComplexExpression.kt"); + } + + @Test + @TestMetadata("insideIf.kt") + public void testInsideIf() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/insideIf.kt"); + } + + @Test + @TestMetadata("insideTry.kt") + public void testInsideTry() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/insideTry.kt"); + } + + @Test + @TestMetadata("insideWhen.kt") + public void testInsideWhen() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/insideWhen.kt"); + } + + @Test + @TestMetadata("invoke.kt") + public void testInvoke() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/invoke.kt"); + } + + @Test + @TestMetadata("invokeExact.kt") + public void testInvokeExact() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/invokeExact.kt"); + } + + @Test + @TestMetadata("invokeExactWithInlineClass.kt") + public void testInvokeExactWithInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/invokeExactWithInlineClass.kt"); + } + + @Test + @TestMetadata("nullArgument.kt") + public void testNullArgument() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/nullArgument.kt"); + } + + @Test + @TestMetadata("varargOfObjects_after.kt") + public void testVarargOfObjects_after() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/varargOfObjects_after.kt"); + } + + @Test + @TestMetadata("varargOfObjects_before.kt") + public void testVarargOfObjects_before() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/varargOfObjects_before.kt"); + } + + @Test + @TestMetadata("voidReturnType.kt") + public void testVoidReturnType() throws Exception { + runTest("compiler/testData/codegen/box/polymorphicSignature/voidReturnType.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/primitiveTypes") + @TestDataPath("$PROJECT_ROOT") + public class PrimitiveTypes { + @Test + public void testAllFilesPresentInPrimitiveTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("booleanHashCode.kt") + public void testBooleanHashCode() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/booleanHashCode.kt"); + } + + @Test + @TestMetadata("comparisonWithNaN.kt") + public void testComparisonWithNaN() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/comparisonWithNaN.kt"); + } + + @Test + @TestMetadata("comparisonWithNullCallsFun.kt") + public void testComparisonWithNullCallsFun() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/comparisonWithNullCallsFun.kt"); + } + + @Test + @TestMetadata("conversions.kt") + public void testConversions() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/conversions.kt"); + } + + @Test + @TestMetadata("ea35963.kt") + public void testEa35963() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/ea35963.kt"); + } + + @Test + @TestMetadata("equalsHashCodeToString.kt") + public void testEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalsHashCodeToString.kt"); + } + + @Test + @TestMetadata("incrementByteCharShort.kt") + public void testIncrementByteCharShort() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/incrementByteCharShort.kt"); + } + + @Test + @TestMetadata("intLiteralIsNotNull.kt") + public void testIntLiteralIsNotNull() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/intLiteralIsNotNull.kt"); + } + + @Test + @TestMetadata("kt1054.kt") + public void testKt1054() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt1054.kt"); + } + + @Test + @TestMetadata("kt1055.kt") + public void testKt1055() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt1055.kt"); + } + + @Test + @TestMetadata("kt1093.kt") + public void testKt1093() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt1093.kt"); + } + + @Test + @TestMetadata("kt13023.kt") + public void testKt13023() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt13023.kt"); + } + + @Test + @TestMetadata("kt14868.kt") + public void testKt14868() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt14868.kt"); + } + + @Test + @TestMetadata("kt1508.kt") + public void testKt1508() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt1508.kt"); + } + + @Test + @TestMetadata("kt1634.kt") + public void testKt1634() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt1634.kt"); + } + + @Test + @TestMetadata("kt16732.kt") + public void testKt16732() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt16732.kt"); + } + + @Test + @TestMetadata("kt2251.kt") + public void testKt2251() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2251.kt"); + } + + @Test + @TestMetadata("kt2269.kt") + public void testKt2269() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2269.kt"); + } + + @Test + @TestMetadata("kt2269NotOptimizable.kt") + public void testKt2269NotOptimizable() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2269NotOptimizable.kt"); + } + + @Test + @TestMetadata("kt2275.kt") + public void testKt2275() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2275.kt"); + } + + @Test + @TestMetadata("kt239.kt") + public void testKt239() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt239.kt"); + } + + @Test + @TestMetadata("kt242.kt") + public void testKt242() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt242.kt"); + } + + @Test + @TestMetadata("kt243.kt") + public void testKt243() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt243.kt"); + } + + @Test + @TestMetadata("kt248.kt") + public void testKt248() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt248.kt"); + } + + @Test + @TestMetadata("kt2768.kt") + public void testKt2768() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2768.kt"); + } + + @Test + @TestMetadata("kt2794.kt") + public void testKt2794() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2794.kt"); + } + + @Test + @TestMetadata("kt3078.kt") + public void testKt3078() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt3078.kt"); + } + + @Test + @TestMetadata("kt3517.kt") + public void testKt3517() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt3517.kt"); + } + + @Test + @TestMetadata("kt3576.kt") + public void testKt3576() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt3576.kt"); + } + + @Test + @TestMetadata("kt3613.kt") + public void testKt3613() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt"); + } + + @Test + @TestMetadata("kt36952_identityEqualsWithBooleanInLocalFunction.kt") + public void testKt36952_identityEqualsWithBooleanInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.kt"); + } + + @Test + @TestMetadata("kt37505.kt") + public void testKt37505() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt"); + } + + @Test + @TestMetadata("kt4097.kt") + public void testKt4097() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt"); + } + + @Test + @TestMetadata("kt4098.kt") + public void testKt4098() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt4098.kt"); + } + + @Test + @TestMetadata("kt4210.kt") + public void testKt4210() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt4210.kt"); + } + + @Test + @TestMetadata("kt42415_javaClassOfLongLiteral.kt") + public void testKt42415_javaClassOfLongLiteral() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt42415_javaClassOfLongLiteral.kt"); + } + + @Test + @TestMetadata("kt4251.kt") + public void testKt4251() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt4251.kt"); + } + + @Test + @TestMetadata("kt446.kt") + public void testKt446() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt446.kt"); + } + + @Test + @TestMetadata("kt46864_double.kt") + public void testKt46864_double() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt46864_double.kt"); + } + + @Test + @TestMetadata("kt46864_long.kt") + public void testKt46864_long() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt46864_long.kt"); + } + + @Test + @TestMetadata("kt48659_identityEqualsWithCastToAny.kt") + public void testKt48659_identityEqualsWithCastToAny() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt48659_identityEqualsWithCastToAny.kt"); + } + + @Test + @TestMetadata("kt518.kt") + public void testKt518() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt518.kt"); + } + + @Test + @TestMetadata("kt6590_identityEquals.kt") + public void testKt6590_identityEquals() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt6590_identityEquals.kt"); + } + + @Test + @TestMetadata("kt665.kt") + public void testKt665() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt665.kt"); + } + + @Test + @TestMetadata("kt684.kt") + public void testKt684() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt684.kt"); + } + + @Test + @TestMetadata("kt711.kt") + public void testKt711() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt711.kt"); + } + + @Test + @TestMetadata("kt737.kt") + public void testKt737() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt737.kt"); + } + + @Test + @TestMetadata("kt752.kt") + public void testKt752() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt752.kt"); + } + + @Test + @TestMetadata("kt753.kt") + public void testKt753() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt753.kt"); + } + + @Test + @TestMetadata("kt756.kt") + public void testKt756() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt756.kt"); + } + + @Test + @TestMetadata("kt757.kt") + public void testKt757() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt757.kt"); + } + + @Test + @TestMetadata("kt828.kt") + public void testKt828() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt828.kt"); + } + + @Test + @TestMetadata("kt877.kt") + public void testKt877() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt877.kt"); + } + + @Test + @TestMetadata("kt882.kt") + public void testKt882() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt882.kt"); + } + + @Test + @TestMetadata("kt887.kt") + public void testKt887() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt887.kt"); + } + + @Test + @TestMetadata("kt935.kt") + public void testKt935() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt935.kt"); + } + + @Test + @TestMetadata("nullAsNullableIntIsNull.kt") + public void testNullAsNullableIntIsNull() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/nullAsNullableIntIsNull.kt"); + } + + @Test + @TestMetadata("nullableAsIndex.kt") + public void testNullableAsIndex() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/nullableAsIndex.kt"); + } + + @Test + @TestMetadata("nullableCharBoolean.kt") + public void testNullableCharBoolean() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/nullableCharBoolean.kt"); + } + + @Test + @TestMetadata("number.kt") + public void testNumber() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/number.kt"); + } + + @Test + @TestMetadata("numberEqualsHashCodeToString.kt") + public void testNumberEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/numberEqualsHashCodeToString.kt"); + } + + @Test + @TestMetadata("rangeTo.kt") + public void testRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/rangeTo.kt"); + } + + @Test + @TestMetadata("stringEqualsHashCodeToString.kt") + public void testStringEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/stringEqualsHashCodeToString.kt"); + } + + @Test + @TestMetadata("substituteIntForGeneric.kt") + public void testSubstituteIntForGeneric() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/substituteIntForGeneric.kt"); + } + + @Test + @TestMetadata("unboxComparable.kt") + public void testUnboxComparable() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/unboxComparable.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/primitiveTypes/equalityWithObject") + @TestDataPath("$PROJECT_ROOT") + public class EqualityWithObject { + @Test + public void testAllFilesPresentInEqualityWithObject() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/equalityWithObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxedEqPrimitiveEvaluationOrder.kt") + public void testBoxedEqPrimitiveEvaluationOrder() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/boxedEqPrimitiveEvaluationOrder.kt"); + } + + @Test + @TestMetadata("boxedLongEqualsLong.kt") + public void testBoxedLongEqualsLong() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/boxedLongEqualsLong.kt"); + } + + @Test + @TestMetadata("intEqualsNull.kt") + public void testIntEqualsNull() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/intEqualsNull.kt"); + } + + @Test + @TestMetadata("intEqualsNullableInt.kt") + public void testIntEqualsNullableInt() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/intEqualsNullableInt.kt"); + } + + @Test + @TestMetadata("intEqualsNullableIntWithSmartCasts.kt") + public void testIntEqualsNullableIntWithSmartCasts() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/intEqualsNullableIntWithSmartCasts.kt"); + } + + @Test + @TestMetadata("kt42281.kt") + public void testKt42281() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/kt42281.kt"); + } + + @Test + @TestMetadata("objectWithAsymmetricEqualsEqPrimitive.kt") + public void testObjectWithAsymmetricEqualsEqPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/objectWithAsymmetricEqualsEqPrimitive.kt"); + } + + @Test + @TestMetadata("whenIntAsNullableAny.kt") + public void testWhenIntAsNullableAny() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/whenIntAsNullableAny.kt"); + } + + @Test + @TestMetadata("whenNullableBoxed.kt") + public void testWhenNullableBoxed() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/whenNullableBoxed.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated") + @TestDataPath("$PROJECT_ROOT") + public class Generated { + @Test + public void testAllFilesPresentInGenerated() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxedEqPrimitiveBoolean.kt") + public void testBoxedEqPrimitiveBoolean() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveBoolean.kt"); + } + + @Test + @TestMetadata("boxedEqPrimitiveByte.kt") + public void testBoxedEqPrimitiveByte() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveByte.kt"); + } + + @Test + @TestMetadata("boxedEqPrimitiveChar.kt") + public void testBoxedEqPrimitiveChar() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveChar.kt"); + } + + @Test + @TestMetadata("boxedEqPrimitiveInt.kt") + public void testBoxedEqPrimitiveInt() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveInt.kt"); + } + + @Test + @TestMetadata("boxedEqPrimitiveLong.kt") + public void testBoxedEqPrimitiveLong() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveLong.kt"); + } + + @Test + @TestMetadata("boxedEqPrimitiveShort.kt") + public void testBoxedEqPrimitiveShort() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveShort.kt"); + } + + @Test + @TestMetadata("primitiveEqBoxedBoolean.kt") + public void testPrimitiveEqBoxedBoolean() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedBoolean.kt"); + } + + @Test + @TestMetadata("primitiveEqBoxedByte.kt") + public void testPrimitiveEqBoxedByte() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedByte.kt"); + } + + @Test + @TestMetadata("primitiveEqBoxedChar.kt") + public void testPrimitiveEqBoxedChar() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedChar.kt"); + } + + @Test + @TestMetadata("primitiveEqBoxedInt.kt") + public void testPrimitiveEqBoxedInt() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedInt.kt"); + } + + @Test + @TestMetadata("primitiveEqBoxedLong.kt") + public void testPrimitiveEqBoxedLong() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedLong.kt"); + } + + @Test + @TestMetadata("primitiveEqBoxedShort.kt") + public void testPrimitiveEqBoxedShort() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedShort.kt"); + } + + @Test + @TestMetadata("primitiveEqObjectBoolean.kt") + public void testPrimitiveEqObjectBoolean() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectBoolean.kt"); + } + + @Test + @TestMetadata("primitiveEqObjectByte.kt") + public void testPrimitiveEqObjectByte() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectByte.kt"); + } + + @Test + @TestMetadata("primitiveEqObjectChar.kt") + public void testPrimitiveEqObjectChar() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectChar.kt"); + } + + @Test + @TestMetadata("primitiveEqObjectInt.kt") + public void testPrimitiveEqObjectInt() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectInt.kt"); + } + + @Test + @TestMetadata("primitiveEqObjectLong.kt") + public void testPrimitiveEqObjectLong() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectLong.kt"); + } + + @Test + @TestMetadata("primitiveEqObjectShort.kt") + public void testPrimitiveEqObjectShort() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectShort.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/primitiveTypes/numberToChar") + @TestDataPath("$PROJECT_ROOT") + public class NumberToChar { + @Test + @TestMetadata("abstractMethodInSuperinterface.kt") + public void testAbstractMethodInSuperinterface() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/abstractMethodInSuperinterface.kt"); + } + + @Test + public void testAllFilesPresentInNumberToChar() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/numberToChar"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("fakeOverride.kt") + public void testFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/fakeOverride.kt"); + } + + @Test + @TestMetadata("javaSubclass.kt") + public void testJavaSubclass() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/javaSubclass.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/simple.kt"); + } + + @Test + @TestMetadata("superCallToClass.kt") + public void testSuperCallToClass() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToClass.kt"); + } + + @Test + @TestMetadata("superCallToInterface.kt") + public void testSuperCallToInterface() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToInterface.kt"); + } + + @Test + @TestMetadata("superCallToNumber.kt") + public void testSuperCallToNumber() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToNumber.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/private") + @TestDataPath("$PROJECT_ROOT") + public class Private { + @Test + public void testAllFilesPresentInPrivate() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayConvention.kt") + public void testArrayConvention() throws Exception { + runTest("compiler/testData/codegen/box/private/arrayConvention.kt"); + } + + @Test + @TestMetadata("kt9855.kt") + public void testKt9855() throws Exception { + runTest("compiler/testData/codegen/box/private/kt9855.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/privateConstructors") + @TestDataPath("$PROJECT_ROOT") + public class PrivateConstructors { + @Test + public void testAllFilesPresentInPrivateConstructors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/privateConstructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("base.kt") + public void testBase() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/base.kt"); + } + + @Test + @TestMetadata("captured.kt") + public void testCaptured() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/captured.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/companion.kt"); + } + + @Test + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/inline.kt"); + } + + @Test + @TestMetadata("inner.kt") + public void testInner() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/inner.kt"); + } + + @Test + @TestMetadata("kt4860.kt") + public void testKt4860() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/kt4860.kt"); + } + + @Test + @TestMetadata("secondary.kt") + public void testSecondary() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/secondary.kt"); + } + + @Test + @TestMetadata("synthetic.kt") + public void testSynthetic() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/synthetic.kt"); + } + + @Test + @TestMetadata("withArguments.kt") + public void testWithArguments() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/withArguments.kt"); + } + + @Test + @TestMetadata("withDefault.kt") + public void testWithDefault() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/withDefault.kt"); + } + + @Test + @TestMetadata("withLinkedClasses.kt") + public void testWithLinkedClasses() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/withLinkedClasses.kt"); + } + + @Test + @TestMetadata("withLinkedObjects.kt") + public void testWithLinkedObjects() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/withLinkedObjects.kt"); + } + + @Test + @TestMetadata("withVarargs.kt") + public void testWithVarargs() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/withVarargs.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/properties") + @TestDataPath("$PROJECT_ROOT") + public class Properties { + @Test + @TestMetadata("accessToPrivateProperty.kt") + public void testAccessToPrivateProperty() throws Exception { + runTest("compiler/testData/codegen/box/properties/accessToPrivateProperty.kt"); + } + + @Test + @TestMetadata("accessToPrivateSetter.kt") + public void testAccessToPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/accessToPrivateSetter.kt"); + } + + @Test + @TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt") + public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.kt"); + } + + @Test + @TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt") + public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt"); + } + + @Test + @TestMetadata("accessorForProtectedPropertyWithPrivateSetterViaSuper.kt") + public void testAccessorForProtectedPropertyWithPrivateSetterViaSuper() throws Exception { + runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.kt"); + } + + @Test + @TestMetadata("accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt") + public void testAccessorForProtectedPropertyWithPrivateSetterWithIntermediateClass() throws Exception { + runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt"); + } + + @Test + public void testAllFilesPresentInProperties() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("augmentedAssignmentsAndIncrements.kt") + public void testAugmentedAssignmentsAndIncrements() throws Exception { + runTest("compiler/testData/codegen/box/properties/augmentedAssignmentsAndIncrements.kt"); + } + + @Test + @TestMetadata("classArtificialFieldInsideNested.kt") + public void testClassArtificialFieldInsideNested() throws Exception { + runTest("compiler/testData/codegen/box/properties/classArtificialFieldInsideNested.kt"); + } + + @Test + @TestMetadata("classFieldInsideLambda.kt") + public void testClassFieldInsideLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/classFieldInsideLambda.kt"); + } + + @Test + @TestMetadata("classFieldInsideLocalInSetter.kt") + public void testClassFieldInsideLocalInSetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/classFieldInsideLocalInSetter.kt"); + } + + @Test + @TestMetadata("classFieldInsideNested.kt") + public void testClassFieldInsideNested() throws Exception { + runTest("compiler/testData/codegen/box/properties/classFieldInsideNested.kt"); + } + + @Test + @TestMetadata("classFieldInsideNestedLambda.kt") + public void testClassFieldInsideNestedLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/classFieldInsideNestedLambda.kt"); + } + + @Test + @TestMetadata("classFieldInsideNestedNestedLambda.kt") + public void testClassFieldInsideNestedNestedLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/classFieldInsideNestedNestedLambda.kt"); + } + + @Test + @TestMetadata("classObjectProperties.kt") + public void testClassObjectProperties() throws Exception { + runTest("compiler/testData/codegen/box/properties/classObjectProperties.kt"); + } + + @Test + @TestMetadata("classPrivateArtificialFieldInsideNested.kt") + public void testClassPrivateArtificialFieldInsideNested() throws Exception { + runTest("compiler/testData/codegen/box/properties/classPrivateArtificialFieldInsideNested.kt"); + } + + @Test + @TestMetadata("collectionSize.kt") + public void testCollectionSize() throws Exception { + runTest("compiler/testData/codegen/box/properties/collectionSize.kt"); + } + + @Test + @TestMetadata("commonPropertiesKJK.kt") + public void testCommonPropertiesKJK() throws Exception { + runTest("compiler/testData/codegen/box/properties/commonPropertiesKJK.kt"); + } + + @Test + @TestMetadata("companionFieldInsideLambda.kt") + public void testCompanionFieldInsideLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/companionFieldInsideLambda.kt"); + } + + @Test + @TestMetadata("companionObjectAccessor.kt") + public void testCompanionObjectAccessor() throws Exception { + runTest("compiler/testData/codegen/box/properties/companionObjectAccessor.kt"); + } + + @Test + @TestMetadata("companionObjectPropertiesFromJava.kt") + public void testCompanionObjectPropertiesFromJava() throws Exception { + runTest("compiler/testData/codegen/box/properties/companionObjectPropertiesFromJava.kt"); + } + + @Test + @TestMetadata("companionPrivateField.kt") + public void testCompanionPrivateField() throws Exception { + runTest("compiler/testData/codegen/box/properties/companionPrivateField.kt"); + } + + @Test + @TestMetadata("companionPrivateFieldInsideLambda.kt") + public void testCompanionPrivateFieldInsideLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/companionPrivateFieldInsideLambda.kt"); + } + + @Test + @TestMetadata("complexPropertyInitializer.kt") + public void testComplexPropertyInitializer() throws Exception { + runTest("compiler/testData/codegen/box/properties/complexPropertyInitializer.kt"); + } + + @Test + @TestMetadata("field.kt") + public void testField() throws Exception { + runTest("compiler/testData/codegen/box/properties/field.kt"); + } + + @Test + @TestMetadata("fieldAccessFromExtensionInTraitImpl.kt") + public void testFieldAccessFromExtensionInTraitImpl() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldAccessFromExtensionInTraitImpl.kt"); + } + + @Test + @TestMetadata("fieldAccessViaSubclass.kt") + public void testFieldAccessViaSubclass() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldAccessViaSubclass.kt"); + } + + @Test + @TestMetadata("fieldInClass.kt") + public void testFieldInClass() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldInClass.kt"); + } + + @Test + @TestMetadata("fieldInsideField.kt") + public void testFieldInsideField() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldInsideField.kt"); + } + + @Test + @TestMetadata("fieldInsideLambda.kt") + public void testFieldInsideLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldInsideLambda.kt"); + } + + @Test + @TestMetadata("fieldInsideNested.kt") + public void testFieldInsideNested() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldInsideNested.kt"); + } + + @Test + @TestMetadata("fieldSimple.kt") + public void testFieldSimple() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldSimple.kt"); + } + + @Test + @TestMetadata("generalAccess.kt") + public void testGeneralAccess() throws Exception { + runTest("compiler/testData/codegen/box/properties/generalAccess.kt"); + } + + @Test + @TestMetadata("genericPropertyMultiModule.kt") + public void testGenericPropertyMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/properties/genericPropertyMultiModule.kt"); + } + + @Test + @TestMetadata("genericWithSameName.kt") + public void testGenericWithSameName() throws Exception { + runTest("compiler/testData/codegen/box/properties/genericWithSameName.kt"); + } + + @Test + @TestMetadata("initOrderMultiModule.kt") + public void testInitOrderMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/properties/initOrderMultiModule.kt"); + } + + @Test + @TestMetadata("initializerOfConstValWithConst.kt") + public void testInitializerOfConstValWithConst() throws Exception { + runTest("compiler/testData/codegen/box/properties/initializerOfConstValWithConst.kt"); + } + + @Test + @TestMetadata("initializerOfConstValWithConstExpr.kt") + public void testInitializerOfConstValWithConstExpr() throws Exception { + runTest("compiler/testData/codegen/box/properties/initializerOfConstValWithConstExpr.kt"); + } + + @Test + @TestMetadata("initializerOfValWithConstExpr.kt") + public void testInitializerOfValWithConstExpr() throws Exception { + runTest("compiler/testData/codegen/box/properties/initializerOfValWithConstExpr.kt"); + } + + @Test + @TestMetadata("initializerOfValWithNonConstExpr.kt") + public void testInitializerOfValWithNonConstExpr() throws Exception { + runTest("compiler/testData/codegen/box/properties/initializerOfValWithNonConstExpr.kt"); + } + + @Test + @TestMetadata("javaGenericSynthProperty.kt") + public void testJavaGenericSynthProperty() throws Exception { + runTest("compiler/testData/codegen/box/properties/javaGenericSynthProperty.kt"); + } + + @Test + @TestMetadata("javaPropertyBoxedGetter.kt") + public void testJavaPropertyBoxedGetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/javaPropertyBoxedGetter.kt"); + } + + @Test + @TestMetadata("javaPropertyBoxedSetter.kt") + public void testJavaPropertyBoxedSetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/javaPropertyBoxedSetter.kt"); + } + + @Test + @TestMetadata("kt10715.kt") + public void testKt10715() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt10715.kt"); + } + + @Test + @TestMetadata("kt10729.kt") + public void testKt10729() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt10729.kt"); + } + + @Test + @TestMetadata("kt1159.kt") + public void testKt1159() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1159.kt"); + } + + @Test + @TestMetadata("kt1165.kt") + public void testKt1165() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1165.kt"); + } + + @Test + @TestMetadata("kt1168.kt") + public void testKt1168() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1168.kt"); + } + + @Test + @TestMetadata("kt1170.kt") + public void testKt1170() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1170.kt"); + } + + @Test + @TestMetadata("kt12200.kt") + public void testKt12200() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt12200.kt"); + } + + @Test + @TestMetadata("kt1398.kt") + public void testKt1398() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1398.kt"); + } + + @Test + @TestMetadata("kt1417.kt") + public void testKt1417() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1417.kt"); + } + + @Test + @TestMetadata("kt1482_2279.kt") + public void testKt1482_2279() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1482_2279.kt"); + } + + @Test + @TestMetadata("kt1714.kt") + public void testKt1714() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1714.kt"); + } + + @Test + @TestMetadata("kt1714_minimal.kt") + public void testKt1714_minimal() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1714_minimal.kt"); + } + + @Test + @TestMetadata("kt1892.kt") + public void testKt1892() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1892.kt"); + } + + @Test + @TestMetadata("kt2331.kt") + public void testKt2331() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt2331.kt"); + } + + @Test + @TestMetadata("kt257.kt") + public void testKt257() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt257.kt"); + } + + @Test + @TestMetadata("kt2655.kt") + public void testKt2655() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt2655.kt"); + } + + @Test + @TestMetadata("kt2786.kt") + public void testKt2786() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt2786.kt"); + } + + @Test + @TestMetadata("kt2892.kt") + public void testKt2892() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt2892.kt"); + } + + @Test + @TestMetadata("kt3118.kt") + public void testKt3118() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt3118.kt"); + } + + @Test + @TestMetadata("kt3524.kt") + public void testKt3524() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt3524.kt"); + } + + @Test + @TestMetadata("kt3551.kt") + public void testKt3551() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt3551.kt"); + } + + @Test + @TestMetadata("kt3556.kt") + public void testKt3556() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt3556.kt"); + } + + @Test + @TestMetadata("kt3930.kt") + public void testKt3930() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt3930.kt"); + } + + @Test + @TestMetadata("kt4140.kt") + public void testKt4140() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4140.kt"); + } + + @Test + @TestMetadata("kt4252.kt") + public void testKt4252() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4252.kt"); + } + + @Test + @TestMetadata("kt4252_2.kt") + public void testKt4252_2() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4252_2.kt"); + } + + @Test + @TestMetadata("kt4340.kt") + public void testKt4340() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4340.kt"); + } + + @Test + @TestMetadata("kt4373.kt") + public void testKt4373() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4373.kt"); + } + + @Test + @TestMetadata("kt4383.kt") + public void testKt4383() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4383.kt"); + } + + @Test + @TestMetadata("kt49203_lateinit.kt") + public void testKt49203_lateinit() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt49203_lateinit.kt"); + } + + @Test + @TestMetadata("kt49203_var.kt") + public void testKt49203_var() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt49203_var.kt"); + } + + @Test + @TestMetadata("kt613.kt") + public void testKt613() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt613.kt"); + } + + @Test + @TestMetadata("kt8928.kt") + public void testKt8928() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt8928.kt"); + } + + @Test + @TestMetadata("kt9603.kt") + public void testKt9603() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt9603.kt"); + } + + @Test + @TestMetadata("lazyInitialization.kt") + public void testLazyInitialization() throws Exception { + runTest("compiler/testData/codegen/box/properties/lazyInitialization.kt"); + } + + @Test + @TestMetadata("lazyInitializationCyclicImports.kt") + public void testLazyInitializationCyclicImports() throws Exception { + runTest("compiler/testData/codegen/box/properties/lazyInitializationCyclicImports.kt"); + } + + @Test + @TestMetadata("lazyInitializationMultiModule.kt") + public void testLazyInitializationMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/properties/lazyInitializationMultiModule.kt"); + } + + @Test + @TestMetadata("lazyInitializationOrder.kt") + public void testLazyInitializationOrder() throws Exception { + runTest("compiler/testData/codegen/box/properties/lazyInitializationOrder.kt"); + } + + @Test + @TestMetadata("lazyInitializationSplitPerModule.kt") + public void testLazyInitializationSplitPerModule() throws Exception { + runTest("compiler/testData/codegen/box/properties/lazyInitializationSplitPerModule.kt"); + } + + @Test + @TestMetadata("primitiveOverrideDefaultAccessor.kt") + public void testPrimitiveOverrideDefaultAccessor() throws Exception { + runTest("compiler/testData/codegen/box/properties/primitiveOverrideDefaultAccessor.kt"); + } + + @Test + @TestMetadata("primitiveOverrideDelegateAccessor.kt") + public void testPrimitiveOverrideDelegateAccessor() throws Exception { + runTest("compiler/testData/codegen/box/properties/primitiveOverrideDelegateAccessor.kt"); + } + + @Test + @TestMetadata("privateAccessorOfOverriddenProperty.kt") + public void testPrivateAccessorOfOverriddenProperty() throws Exception { + runTest("compiler/testData/codegen/box/properties/privateAccessorOfOverriddenProperty.kt"); + } + + @Test + @TestMetadata("privatePropertyInConstructor.kt") + public void testPrivatePropertyInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/properties/privatePropertyInConstructor.kt"); + } + + @Test + @TestMetadata("PrivatePropertyOfComplexGenericFunctionType.kt") + public void testPrivatePropertyOfComplexGenericFunctionType() throws Exception { + runTest("compiler/testData/codegen/box/properties/PrivatePropertyOfComplexGenericFunctionType.kt"); + } + + @Test + @TestMetadata("PrivatePropertyOfGenericContravariantFunctionType.kt") + public void testPrivatePropertyOfGenericContravariantFunctionType() throws Exception { + runTest("compiler/testData/codegen/box/properties/PrivatePropertyOfGenericContravariantFunctionType.kt"); + } + + @Test + @TestMetadata("PrivatePropertyOfGenericCovariantFunctionType.kt") + public void testPrivatePropertyOfGenericCovariantFunctionType() throws Exception { + runTest("compiler/testData/codegen/box/properties/PrivatePropertyOfGenericCovariantFunctionType.kt"); + } + + @Test + @TestMetadata("privatePropertyWithoutBackingField.kt") + public void testPrivatePropertyWithoutBackingField() throws Exception { + runTest("compiler/testData/codegen/box/properties/privatePropertyWithoutBackingField.kt"); + } + + @Test + @TestMetadata("propertyInUpperCaseWithJava.kt") + public void testPropertyInUpperCaseWithJava() throws Exception { + runTest("compiler/testData/codegen/box/properties/propertyInUpperCaseWithJava.kt"); + } + + @Test + @TestMetadata("protectedJavaFieldInInline.kt") + public void testProtectedJavaFieldInInline() throws Exception { + runTest("compiler/testData/codegen/box/properties/protectedJavaFieldInInline.kt"); + } + + @Test + @TestMetadata("protectedJavaProperty.kt") + public void testProtectedJavaProperty() throws Exception { + runTest("compiler/testData/codegen/box/properties/protectedJavaProperty.kt"); + } + + @Test + @TestMetadata("protectedJavaPropertyInCompanion.kt") + public void testProtectedJavaPropertyInCompanion() throws Exception { + runTest("compiler/testData/codegen/box/properties/protectedJavaPropertyInCompanion.kt"); + } + + @Test + @TestMetadata("referenceToJavaFieldViaBridge.kt") + public void testReferenceToJavaFieldViaBridge() throws Exception { + runTest("compiler/testData/codegen/box/properties/referenceToJavaFieldViaBridge.kt"); + } + + @Test + @TestMetadata("substituteJavaSuperField.kt") + public void testSubstituteJavaSuperField() throws Exception { + runTest("compiler/testData/codegen/box/properties/substituteJavaSuperField.kt"); + } + + @Test + @TestMetadata("twoAnnotatedExtensionPropertiesWithoutBackingFields.kt") + public void testTwoAnnotatedExtensionPropertiesWithoutBackingFields() throws Exception { + runTest("compiler/testData/codegen/box/properties/twoAnnotatedExtensionPropertiesWithoutBackingFields.kt"); + } + + @Test + @TestMetadata("typeInferredFromGetter.kt") + public void testTypeInferredFromGetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/typeInferredFromGetter.kt"); + } + + @Test + @TestMetadata("unreachableUninitializedProperty.kt") + public void testUnreachableUninitializedProperty() throws Exception { + runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/properties/backingField") + @TestDataPath("$PROJECT_ROOT") + public class BackingField { + @Test + public void testAllFilesPresentInBackingField() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("backingFieldVisibility.kt") + public void testBackingFieldVisibility() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/backingFieldVisibility.kt"); + } + + @Test + @TestMetadata("backingFieldWithSmartTypeParameters.kt") + public void testBackingFieldWithSmartTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/backingFieldWithSmartTypeParameters.kt"); + } + + @Test + @TestMetadata("charSequenceWithBackingField1.kt") + public void testCharSequenceWithBackingField1() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt"); + } + + @Test + @TestMetadata("charSequenceWithBackingField2.kt") + public void testCharSequenceWithBackingField2() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt"); + } + + @Test + @TestMetadata("charSequenceWithBackingField3.kt") + public void testCharSequenceWithBackingField3() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt"); + } + + @Test + @TestMetadata("charSequenceWithBackingField4.kt") + public void testCharSequenceWithBackingField4() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt"); + } + + @Test + @TestMetadata("charSequenceWithBackingField5.kt") + public void testCharSequenceWithBackingField5() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt"); + } + + @Test + @TestMetadata("explicitBackingFieldInAnonymous.kt") + public void testExplicitBackingFieldInAnonymous() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt"); + } + + @Test + @TestMetadata("getterReturnTypeWithBackingField.kt") + public void testGetterReturnTypeWithBackingField() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt"); + } + + @Test + @TestMetadata("independentBackingFieldType.kt") + public void testIndependentBackingFieldType() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/independentBackingFieldType.kt"); + } + + @Test + @TestMetadata("lateinitBackingFields.kt") + public void testLateinitBackingFields() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/lateinitBackingFields.kt"); + } + + @Test + @TestMetadata("overriddenPropertiesWithExplicitBackingFields.kt") + public void testOverriddenPropertiesWithExplicitBackingFields() throws Exception { + runTest("compiler/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/properties/const") + @TestDataPath("$PROJECT_ROOT") + public class Const { + @Test + public void testAllFilesPresentInConst() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/const"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anotherFile.kt") + public void testAnotherFile() throws Exception { + runTest("compiler/testData/codegen/box/properties/const/anotherFile.kt"); + } + + @Test + @TestMetadata("constFlags.kt") + public void testConstFlags() throws Exception { + runTest("compiler/testData/codegen/box/properties/const/constFlags.kt"); + } + + @Test + @TestMetadata("constInObjectWithInit.kt") + public void testConstInObjectWithInit() throws Exception { + runTest("compiler/testData/codegen/box/properties/const/constInObjectWithInit.kt"); + } + + @Test + @TestMetadata("constPropertyAccessor.kt") + public void testConstPropertyAccessor() throws Exception { + runTest("compiler/testData/codegen/box/properties/const/constPropertyAccessor.kt"); + } + + @Test + @TestMetadata("constValInAnnotationDefault.kt") + public void testConstValInAnnotationDefault() throws Exception { + runTest("compiler/testData/codegen/box/properties/const/constValInAnnotationDefault.kt"); + } + + @Test + @TestMetadata("fpNonConstValProperlyInitialized.kt") + public void testFpNonConstValProperlyInitialized() throws Exception { + runTest("compiler/testData/codegen/box/properties/const/fpNonConstValProperlyInitialized.kt"); + } + + @Test + @TestMetadata("interfaceCompanion.kt") + public void testInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/box/properties/const/interfaceCompanion.kt"); + } + + @Test + @TestMetadata("intermoduleInlineConst.kt") + public void testIntermoduleInlineConst() throws Exception { + runTest("compiler/testData/codegen/box/properties/const/intermoduleInlineConst.kt"); + } + + @Test + @TestMetadata("kt52970.kt") + public void testKt52970() throws Exception { + runTest("compiler/testData/codegen/box/properties/const/kt52970.kt"); + } + + @Test + @TestMetadata("nonConstValsAreProperlyInitialized.kt") + public void testNonConstValsAreProperlyInitialized() throws Exception { + runTest("compiler/testData/codegen/box/properties/const/nonConstValsAreProperlyInitialized.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/properties/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + @TestMetadata("accessor.kt") + public void testAccessor() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/accessor.kt"); + } + + @Test + @TestMetadata("accessorException.kt") + public void testAccessorException() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/accessorException.kt"); + } + + @Test + @TestMetadata("accessorExceptionPublic.kt") + public void testAccessorExceptionPublic() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/accessorExceptionPublic.kt"); + } + + @Test + public void testAllFilesPresentInLateinit() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("exceptionField.kt") + public void testExceptionField() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/exceptionField.kt"); + } + + @Test + @TestMetadata("exceptionGetter.kt") + public void testExceptionGetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/exceptionGetter.kt"); + } + + @Test + @TestMetadata("kt30548.kt") + public void testKt30548() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/kt30548.kt"); + } + + @Test + @TestMetadata("kt46267.kt") + public void testKt46267() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/kt46267.kt"); + } + + @Test + @TestMetadata("localClass.kt") + public void testLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/localClass.kt"); + } + + @Test + @TestMetadata("nameClash.kt") + public void testNameClash() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/nameClash.kt"); + } + + @Test + @TestMetadata("override.kt") + public void testOverride() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/override.kt"); + } + + @Test + @TestMetadata("overrideException.kt") + public void testOverrideException() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/overrideException.kt"); + } + + @Test + @TestMetadata("privateSetter.kt") + public void testPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/privateSetter.kt"); + } + + @Test + @TestMetadata("privateSetterFromLambda.kt") + public void testPrivateSetterFromLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/privateSetterFromLambda.kt"); + } + + @Test + @TestMetadata("privateSetterViaSubclass.kt") + public void testPrivateSetterViaSubclass() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.kt"); + } + + @Test + @TestMetadata("privateVarInCompanion.kt") + public void testPrivateVarInCompanion() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/simpleVar.kt"); + } + + @Test + @TestMetadata("visibility.kt") + public void testVisibility() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/visibility.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize") + @TestDataPath("$PROJECT_ROOT") + public class IsInitializedAndDeinitialize { + @Test + public void testAllFilesPresentInIsInitializedAndDeinitialize() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("companionObjectField.kt") + public void testCompanionObjectField() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/companionObjectField.kt"); + } + + @Test + @TestMetadata("emptyLhs.kt") + public void testEmptyLhs() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/emptyLhs.kt"); + } + + @Test + @TestMetadata("innerSubclass.kt") + public void testInnerSubclass() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/innerSubclass.kt"); + } + + @Test + @TestMetadata("isInitializedMultiFile.kt") + public void testIsInitializedMultiFile() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/isInitializedMultiFile.kt"); + } + + @Test + @TestMetadata("jvmStatic.kt") + public void testJvmStatic() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/jvmStatic.kt"); + } + + @Test + @TestMetadata("nonInlineLambda.kt") + public void testNonInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/nonInlineLambda.kt"); + } + + @Test + @TestMetadata("propertyImportedFromObject.kt") + public void testPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/propertyImportedFromObject.kt"); + } + + @Test + @TestMetadata("sideEffects.kt") + public void testSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/sideEffects.kt"); + } + + @Test + @TestMetadata("simpleIsInitialized.kt") + public void testSimpleIsInitialized() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/simpleIsInitialized.kt"); + } + + @Test + @TestMetadata("topLevelProperty.kt") + public void testTopLevelProperty() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/topLevelProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/properties/lateinit/local") + @TestDataPath("$PROJECT_ROOT") + public class Local { + @Test + public void testAllFilesPresentInLocal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("capturedLocalLateinit.kt") + public void testCapturedLocalLateinit() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/capturedLocalLateinit.kt"); + } + + @Test + @TestMetadata("kt23260.kt") + public void testKt23260() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/kt23260.kt"); + } + + @Test + @TestMetadata("localLateinit.kt") + public void testLocalLateinit() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/localLateinit.kt"); + } + + @Test + @TestMetadata("uninitializedCapturedMemberAccess.kt") + public void testUninitializedCapturedMemberAccess() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/uninitializedCapturedMemberAccess.kt"); + } + + @Test + @TestMetadata("uninitializedCapturedRead.kt") + public void testUninitializedCapturedRead() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/uninitializedCapturedRead.kt"); + } + + @Test + @TestMetadata("uninitializedMemberAccess.kt") + public void testUninitializedMemberAccess() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/uninitializedMemberAccess.kt"); + } + + @Test + @TestMetadata("uninitializedRead.kt") + public void testUninitializedRead() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/uninitializedRead.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/properties/lateinit/topLevel") + @TestDataPath("$PROJECT_ROOT") + public class TopLevel { + @Test + @TestMetadata("accessorException.kt") + public void testAccessorException() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/topLevel/accessorException.kt"); + } + + @Test + @TestMetadata("accessorForTopLevelLateinit.kt") + public void testAccessorForTopLevelLateinit() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/topLevel/accessorForTopLevelLateinit.kt"); + } + + @Test + public void testAllFilesPresentInTopLevel() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit/topLevel"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("topLevelLateinit.kt") + public void testTopLevelLateinit() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/topLevel/topLevelLateinit.kt"); + } + + @Test + @TestMetadata("uninitializedMemberAccess.kt") + public void testUninitializedMemberAccess() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/topLevel/uninitializedMemberAccess.kt"); + } + + @Test + @TestMetadata("uninitializedRead.kt") + public void testUninitializedRead() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/topLevel/uninitializedRead.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/publishedApi") + @TestDataPath("$PROJECT_ROOT") + public class PublishedApi { + @Test + public void testAllFilesPresentInPublishedApi() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/publishedApi"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineFromFriendModule.kt") + public void testInlineFromFriendModule() throws Exception { + runTest("compiler/testData/codegen/box/publishedApi/inlineFromFriendModule.kt"); + } + + @Test + @TestMetadata("noMangling.kt") + public void testNoMangling() throws Exception { + runTest("compiler/testData/codegen/box/publishedApi/noMangling.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/publishedApi/simple.kt"); + } + + @Test + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/publishedApi/topLevel.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges") + @TestDataPath("$PROJECT_ROOT") + public class Ranges { + @Test + public void testAllFilesPresentInRanges() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("capturedLoopVar.kt") + public void testCapturedLoopVar() throws Exception { + runTest("compiler/testData/codegen/box/ranges/capturedLoopVar.kt"); + } + + @Test + @TestMetadata("forByteProgressionWithIntIncrement.kt") + public void testForByteProgressionWithIntIncrement() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forByteProgressionWithIntIncrement.kt"); + } + + @Test + @TestMetadata("forInCharSequenceLengthDecreasedInLoopBody.kt") + public void testForInCharSequenceLengthDecreasedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCharSequenceLengthDecreasedInLoopBody.kt"); + } + + @Test + @TestMetadata("forInCharSequenceLengthIncreasedInLoopBody.kt") + public void testForInCharSequenceLengthIncreasedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCharSequenceLengthIncreasedInLoopBody.kt"); + } + + @Test + @TestMetadata("forInCharSequenceWithCustomIterator.kt") + public void testForInCharSequenceWithCustomIterator() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCharSequenceWithCustomIterator.kt"); + } + + @Test + @TestMetadata("forInCharSequenceWithMultipleGetFunctions.kt") + public void testForInCharSequenceWithMultipleGetFunctions() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCharSequenceWithMultipleGetFunctions.kt"); + } + + @Test + @TestMetadata("forInCustomCharSequence.kt") + public void testForInCustomCharSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCustomCharSequence.kt"); + } + + @Test + @TestMetadata("forInCustomIterable.kt") + public void testForInCustomIterable() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCustomIterable.kt"); + } + + @Test + @TestMetadata("forInDoubleRangeWithCustomIterator.kt") + public void testForInDoubleRangeWithCustomIterator() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDoubleRangeWithCustomIterator.kt"); + } + + @Test + @TestMetadata("forInFloatRangeWithCustomIterator.kt") + public void testForInFloatRangeWithCustomIterator() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInFloatRangeWithCustomIterator.kt"); + } + + @Test + @TestMetadata("forInIntRangeToConstWithBreak.kt") + public void testForInIntRangeToConstWithBreak() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIntRangeToConstWithBreak.kt"); + } + + @Test + @TestMetadata("forInIntRangeToConstWithContinue.kt") + public void testForInIntRangeToConstWithContinue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIntRangeToConstWithContinue.kt"); + } + + @Test + @TestMetadata("forInRangeLiteralWithMixedTypeBounds.kt") + public void testForInRangeLiteralWithMixedTypeBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInRangeLiteralWithMixedTypeBounds.kt"); + } + + @Test + @TestMetadata("forInRangeWithImplicitReceiver.kt") + public void testForInRangeWithImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInRangeWithImplicitReceiver.kt"); + } + + @Test + @TestMetadata("forInRangeWithUpperBoundMinus1.kt") + public void testForInRangeWithUpperBoundMinus1() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInRangeWithUpperBoundMinus1.kt"); + } + + @Test + @TestMetadata("forInStringVarUpdatedInLoopBody.kt") + public void testForInStringVarUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInStringVarUpdatedInLoopBody.kt"); + } + + @Test + @TestMetadata("forInStringWithCustomIterator.kt") + public void testForInStringWithCustomIterator() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInStringWithCustomIterator.kt"); + } + + @Test + @TestMetadata("forIntRange.kt") + public void testForIntRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forIntRange.kt"); + } + + @Test + @TestMetadata("forNullableIntInRangeWithImplicitReceiver.kt") + public void testForNullableIntInRangeWithImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forNullableIntInRangeWithImplicitReceiver.kt"); + } + + @Test + @TestMetadata("kt37370.kt") + public void testKt37370() throws Exception { + runTest("compiler/testData/codegen/box/ranges/kt37370.kt"); + } + + @Test + @TestMetadata("kt37370a.kt") + public void testKt37370a() throws Exception { + runTest("compiler/testData/codegen/box/ranges/kt37370a.kt"); + } + + @Test + @TestMetadata("kt47492.kt") + public void testKt47492() throws Exception { + runTest("compiler/testData/codegen/box/ranges/kt47492.kt"); + } + + @Test + @TestMetadata("kt47492a.kt") + public void testKt47492a() throws Exception { + runTest("compiler/testData/codegen/box/ranges/kt47492a.kt"); + } + + @Test + @TestMetadata("kt47492b.kt") + public void testKt47492b() throws Exception { + runTest("compiler/testData/codegen/box/ranges/kt47492b.kt"); + } + + @Test + @TestMetadata("multiAssignmentIterationOverIntRange.kt") + public void testMultiAssignmentIterationOverIntRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/multiAssignmentIterationOverIntRange.kt"); + } + + @Test + @TestMetadata("safeCallRangeTo.kt") + public void testSafeCallRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/safeCallRangeTo.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/contains") + @TestDataPath("$PROJECT_ROOT") + public class Contains { + @Test + public void testAllFilesPresentInContains() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/contains"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("charInCharRangeWithPossibleOverflow.kt") + public void testCharInCharRangeWithPossibleOverflow() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/charInCharRangeWithPossibleOverflow.kt"); + } + + @Test + @TestMetadata("comparisonWithRangeBoundEliminated.kt") + public void testComparisonWithRangeBoundEliminated() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/comparisonWithRangeBoundEliminated.kt"); + } + + @Test + @TestMetadata("evaluationOrderForCollection.kt") + public void testEvaluationOrderForCollection() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.kt"); + } + + @Test + @TestMetadata("evaluationOrderForComparableRange.kt") + public void testEvaluationOrderForComparableRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.kt"); + } + + @Test + @TestMetadata("evaluationOrderForDownTo.kt") + public void testEvaluationOrderForDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.kt"); + } + + @Test + @TestMetadata("evaluationOrderForDownToReversed.kt") + public void testEvaluationOrderForDownToReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownToReversed.kt"); + } + + @Test + @TestMetadata("evaluationOrderForNullableArgument.kt") + public void testEvaluationOrderForNullableArgument() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForNullableArgument.kt"); + } + + @Test + @TestMetadata("evaluationOrderForRangeLiteral.kt") + public void testEvaluationOrderForRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt"); + } + + @Test + @TestMetadata("evaluationOrderForRangeLiteralReversed.kt") + public void testEvaluationOrderForRangeLiteralReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteralReversed.kt"); + } + + @Test + @TestMetadata("evaluationOrderForUntil.kt") + public void testEvaluationOrderForUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntil.kt"); + } + + @Test + @TestMetadata("evaluationOrderForUntilReversed.kt") + public void testEvaluationOrderForUntilReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntilReversed.kt"); + } + + @Test + @TestMetadata("genericCharInRangeLiteral.kt") + public void testGenericCharInRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/genericCharInRangeLiteral.kt"); + } + + @Test + @TestMetadata("inArray.kt") + public void testInArray() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inArray.kt"); + } + + @Test + @TestMetadata("inCharSequence.kt") + public void testInCharSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inCharSequence.kt"); + } + + @Test + @TestMetadata("inComparableRange.kt") + public void testInComparableRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inComparableRange.kt"); + } + + @Test + @TestMetadata("inCustomObjectRange.kt") + public void testInCustomObjectRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inCustomObjectRange.kt"); + } + + @Test + @TestMetadata("inDoubleRangeLiteralVsComparableRangeLiteral.kt") + public void testInDoubleRangeLiteralVsComparableRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inDoubleRangeLiteralVsComparableRangeLiteral.kt"); + } + + @Test + @TestMetadata("inExtensionRange.kt") + public void testInExtensionRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inExtensionRange.kt"); + } + + @Test + @TestMetadata("inFloatingPointRangeWithNaNBound.kt") + public void testInFloatingPointRangeWithNaNBound() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inFloatingPointRangeWithNaNBound.kt"); + } + + @Test + @TestMetadata("inIntRange.kt") + public void testInIntRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inIntRange.kt"); + } + + @Test + @TestMetadata("inIterable.kt") + public void testInIterable() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inIterable.kt"); + } + + @Test + @TestMetadata("inNonMatchingRange.kt") + public void testInNonMatchingRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inNonMatchingRange.kt"); + } + + @Test + @TestMetadata("inOptimizableDoubleRange.kt") + public void testInOptimizableDoubleRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inOptimizableDoubleRange.kt"); + } + + @Test + @TestMetadata("inOptimizableFloatRange.kt") + public void testInOptimizableFloatRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inOptimizableFloatRange.kt"); + } + + @Test + @TestMetadata("inOptimizableIntRange.kt") + public void testInOptimizableIntRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inOptimizableIntRange.kt"); + } + + @Test + @TestMetadata("inOptimizableLongRange.kt") + public void testInOptimizableLongRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inOptimizableLongRange.kt"); + } + + @Test + @TestMetadata("inPrimitiveProgression.kt") + public void testInPrimitiveProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inPrimitiveProgression.kt"); + } + + @Test + @TestMetadata("inPrimitiveRange.kt") + public void testInPrimitiveRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inPrimitiveRange.kt"); + } + + @Test + @TestMetadata("inRangeLiteralComposition.kt") + public void testInRangeLiteralComposition() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inRangeLiteralComposition.kt"); + } + + @Test + @TestMetadata("inRangeWithCustomContains.kt") + public void testInRangeWithCustomContains() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inRangeWithCustomContains.kt"); + } + + @Test + @TestMetadata("inRangeWithImplicitReceiver.kt") + public void testInRangeWithImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inRangeWithImplicitReceiver.kt"); + } + + @Test + @TestMetadata("inRangeWithNonmatchingArguments.kt") + public void testInRangeWithNonmatchingArguments() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inRangeWithNonmatchingArguments.kt"); + } + + @Test + @TestMetadata("inRangeWithSmartCast.kt") + public void testInRangeWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inRangeWithSmartCast.kt"); + } + + @Test + @TestMetadata("inUntil.kt") + public void testInUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inUntil.kt"); + } + + @Test + @TestMetadata("inUntilMaxValue.kt") + public void testInUntilMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inUntilMaxValue.kt"); + } + + @Test + @TestMetadata("inUntilMinValue.kt") + public void testInUntilMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inUntilMinValue.kt"); + } + + @Test + @TestMetadata("inUntilMinValueNonConst.kt") + public void testInUntilMinValueNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inUntilMinValueNonConst.kt"); + } + + @Test + @TestMetadata("intInByteRangeWithPossibleOverflow.kt") + public void testIntInByteRangeWithPossibleOverflow() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/intInByteRangeWithPossibleOverflow.kt"); + } + + @Test + @TestMetadata("intInIntRangeWithPossibleOverflow.kt") + public void testIntInIntRangeWithPossibleOverflow() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/intInIntRangeWithPossibleOverflow.kt"); + } + + @Test + @TestMetadata("intInShortRangeWithPossibleOverflow.kt") + public void testIntInShortRangeWithPossibleOverflow() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/intInShortRangeWithPossibleOverflow.kt"); + } + + @Test + @TestMetadata("jvmStaticContainsInObject.kt") + public void testJvmStaticContainsInObject() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/jvmStaticContainsInObject.kt"); + } + + @Test + @TestMetadata("kt20106.kt") + public void testKt20106() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/kt20106.kt"); + } + + @Test + @TestMetadata("longInLongRangeWithPossibleOverflow.kt") + public void testLongInLongRangeWithPossibleOverflow() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/longInLongRangeWithPossibleOverflow.kt"); + } + + @Test + @TestMetadata("nullableInPrimitiveRange.kt") + public void testNullableInPrimitiveRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/nullableInPrimitiveRange.kt"); + } + + @Test + @TestMetadata("rangeContainsString.kt") + public void testRangeContainsString() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/rangeContainsString.kt"); + } + + @Test + @TestMetadata("smartCastOnBothEnds.kt") + public void testSmartCastOnBothEnds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/smartCastOnBothEnds.kt"); + } + + @Test + @TestMetadata("uintInUByteRangeWithPossibleOverflow.kt") + public void testUintInUByteRangeWithPossibleOverflow() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/uintInUByteRangeWithPossibleOverflow.kt"); + } + + @Test + @TestMetadata("uintInUIntRangeWithPossibleOverflow.kt") + public void testUintInUIntRangeWithPossibleOverflow() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/uintInUIntRangeWithPossibleOverflow.kt"); + } + + @Test + @TestMetadata("uintInUShortRangeWithPossibleOverflow.kt") + public void testUintInUShortRangeWithPossibleOverflow() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/uintInUShortRangeWithPossibleOverflow.kt"); + } + + @Test + @TestMetadata("ulongInULongRangeWithPossibleOverflow.kt") + public void testUlongInULongRangeWithPossibleOverflow() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/ulongInULongRangeWithPossibleOverflow.kt"); + } + + @Test + @TestMetadata("userDefinedContainsExtension.kt") + public void testUserDefinedContainsExtension() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/userDefinedContainsExtension.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/contains/generated") + @TestDataPath("$PROJECT_ROOT") + public class Generated { + @Test + public void testAllFilesPresentInGenerated() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/contains/generated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayIndices.kt") + public void testArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/arrayIndices.kt"); + } + + @Test + @TestMetadata("charDownTo.kt") + public void testCharDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/charDownTo.kt"); + } + + @Test + @TestMetadata("charRangeTo.kt") + public void testCharRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/charRangeTo.kt"); + } + + @Test + @TestMetadata("charRangeUntil.kt") + public void testCharRangeUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/charRangeUntil.kt"); + } + + @Test + @TestMetadata("charSequenceIndices.kt") + public void testCharSequenceIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/charSequenceIndices.kt"); + } + + @Test + @TestMetadata("charUntil.kt") + public void testCharUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/charUntil.kt"); + } + + @Test + @TestMetadata("collectionIndices.kt") + public void testCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/collectionIndices.kt"); + } + + @Test + @TestMetadata("doubleRangeTo.kt") + public void testDoubleRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/doubleRangeTo.kt"); + } + + @Test + @TestMetadata("doubleRangeUntil.kt") + public void testDoubleRangeUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/doubleRangeUntil.kt"); + } + + @Test + @TestMetadata("floatRangeTo.kt") + public void testFloatRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/floatRangeTo.kt"); + } + + @Test + @TestMetadata("floatRangeUntil.kt") + public void testFloatRangeUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/floatRangeUntil.kt"); + } + + @Test + @TestMetadata("intDownTo.kt") + public void testIntDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/intDownTo.kt"); + } + + @Test + @TestMetadata("intRangeTo.kt") + public void testIntRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/intRangeTo.kt"); + } + + @Test + @TestMetadata("intRangeUntil.kt") + public void testIntRangeUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/intRangeUntil.kt"); + } + + @Test + @TestMetadata("intUntil.kt") + public void testIntUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/intUntil.kt"); + } + + @Test + @TestMetadata("longDownTo.kt") + public void testLongDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/longDownTo.kt"); + } + + @Test + @TestMetadata("longRangeTo.kt") + public void testLongRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/longRangeTo.kt"); + } + + @Test + @TestMetadata("longRangeUntil.kt") + public void testLongRangeUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/longRangeUntil.kt"); + } + + @Test + @TestMetadata("longUntil.kt") + public void testLongUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/longUntil.kt"); + } + + @Test + @TestMetadata("uintDownTo.kt") + public void testUintDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/uintDownTo.kt"); + } + + @Test + @TestMetadata("uintRangeTo.kt") + public void testUintRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/uintRangeTo.kt"); + } + + @Test + @TestMetadata("uintRangeUntil.kt") + public void testUintRangeUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/uintRangeUntil.kt"); + } + + @Test + @TestMetadata("uintUntil.kt") + public void testUintUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/uintUntil.kt"); + } + + @Test + @TestMetadata("ulongDownTo.kt") + public void testUlongDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/ulongDownTo.kt"); + } + + @Test + @TestMetadata("ulongRangeTo.kt") + public void testUlongRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/ulongRangeTo.kt"); + } + + @Test + @TestMetadata("ulongRangeUntil.kt") + public void testUlongRangeUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/ulongRangeUntil.kt"); + } + + @Test + @TestMetadata("ulongUntil.kt") + public void testUlongUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/ulongUntil.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder") + @TestDataPath("$PROJECT_ROOT") + public class EvaluationOrder { + @Test + public void testAllFilesPresentInEvaluationOrder() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInDownTo.kt") + public void testForInDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.kt"); + } + + @Test + @TestMetadata("forInDownToReversed.kt") + public void testForInDownToReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.kt"); + } + + @Test + @TestMetadata("forInDownToReversedReversed.kt") + public void testForInDownToReversedReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.kt"); + } + + @Test + @TestMetadata("forInRangeLiteral.kt") + public void testForInRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.kt"); + } + + @Test + @TestMetadata("forInRangeLiteralReversed.kt") + public void testForInRangeLiteralReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.kt"); + } + + @Test + @TestMetadata("forInRangeLiteralReversedReversed.kt") + public void testForInRangeLiteralReversedReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.kt"); + } + + @Test + @TestMetadata("forInUntil.kt") + public void testForInUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.kt"); + } + + @Test + @TestMetadata("forInUntilReversed.kt") + public void testForInUntilReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.kt"); + } + + @Test + @TestMetadata("forInUntilReversedReversed.kt") + public void testForInUntilReversedReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped") + @TestDataPath("$PROJECT_ROOT") + public class Stepped { + @Test + public void testAllFilesPresentInStepped() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo") + @TestDataPath("$PROJECT_ROOT") + public class ForInDownTo { + @Test + public void testAllFilesPresentInForInDownTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInDownToReversedStep.kt") + public void testForInDownToReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.kt"); + } + + @Test + @TestMetadata("forInDownToReversedStepReversed.kt") + public void testForInDownToReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.kt"); + } + + @Test + @TestMetadata("forInDownToReversedStepReversedStep.kt") + public void testForInDownToReversedStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.kt"); + } + + @Test + @TestMetadata("forInDownToStep.kt") + public void testForInDownToStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.kt"); + } + + @Test + @TestMetadata("forInDownToStepReversed.kt") + public void testForInDownToStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.kt"); + } + + @Test + @TestMetadata("forInDownToStepReversedStep.kt") + public void testForInDownToStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.kt"); + } + + @Test + @TestMetadata("forInDownToStepReversedStepReversed.kt") + public void testForInDownToStepReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.kt"); + } + + @Test + @TestMetadata("forInDownToStepStep.kt") + public void testForInDownToStepStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral") + @TestDataPath("$PROJECT_ROOT") + public class ForInRangeLiteral { + @Test + public void testAllFilesPresentInForInRangeLiteral() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInRangeLiteralReversedStep.kt") + public void testForInRangeLiteralReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.kt"); + } + + @Test + @TestMetadata("forInRangeLiteralReversedStepReversed.kt") + public void testForInRangeLiteralReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.kt"); + } + + @Test + @TestMetadata("forInRangeLiteralReversedStepReversedStep.kt") + public void testForInRangeLiteralReversedStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.kt"); + } + + @Test + @TestMetadata("forInRangeLiteralStep.kt") + public void testForInRangeLiteralStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.kt"); + } + + @Test + @TestMetadata("forInRangeLiteralStepReversed.kt") + public void testForInRangeLiteralStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.kt"); + } + + @Test + @TestMetadata("forInRangeLiteralStepReversedStep.kt") + public void testForInRangeLiteralStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.kt"); + } + + @Test + @TestMetadata("forInRangeLiteralStepReversedStepReversed.kt") + public void testForInRangeLiteralStepReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.kt"); + } + + @Test + @TestMetadata("forInRangeLiteralStepStep.kt") + public void testForInRangeLiteralStepStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil") + @TestDataPath("$PROJECT_ROOT") + public class ForInUntil { + @Test + public void testAllFilesPresentInForInUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInUntilReversedStep.kt") + public void testForInUntilReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.kt"); + } + + @Test + @TestMetadata("forInUntilReversedStepReversed.kt") + public void testForInUntilReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.kt"); + } + + @Test + @TestMetadata("forInUntilReversedStepReversedStep.kt") + public void testForInUntilReversedStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.kt"); + } + + @Test + @TestMetadata("forInUntilStep.kt") + public void testForInUntilStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.kt"); + } + + @Test + @TestMetadata("forInUntilStepReversed.kt") + public void testForInUntilStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.kt"); + } + + @Test + @TestMetadata("forInUntilStepReversedStep.kt") + public void testForInUntilStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.kt"); + } + + @Test + @TestMetadata("forInUntilStepReversedStepReversed.kt") + public void testForInUntilStepReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.kt"); + } + + @Test + @TestMetadata("forInUntilStepStep.kt") + public void testForInUntilStepStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/expression") + @TestDataPath("$PROJECT_ROOT") + public class Expression { + @Test + public void testAllFilesPresentInExpression() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/expression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyDownto.kt") + public void testEmptyDownto() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/emptyDownto.kt"); + } + + @Test + @TestMetadata("emptyRange.kt") + public void testEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/emptyRange.kt"); + } + + @Test + @TestMetadata("inexactDownToMinValue.kt") + public void testInexactDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/inexactDownToMinValue.kt"); + } + + @Test + @TestMetadata("inexactSteppedDownTo.kt") + public void testInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/inexactSteppedDownTo.kt"); + } + + @Test + @TestMetadata("inexactSteppedRange.kt") + public void testInexactSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/inexactSteppedRange.kt"); + } + + @Test + @TestMetadata("inexactToMaxValue.kt") + public void testInexactToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/inexactToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueMinusTwoToMaxValue.kt") + public void testMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/maxValueMinusTwoToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToMaxValue.kt") + public void testMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/maxValueToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToMinValue.kt") + public void testMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/maxValueToMinValue.kt"); + } + + @Test + @TestMetadata("oneElementDownTo.kt") + public void testOneElementDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/oneElementDownTo.kt"); + } + + @Test + @TestMetadata("oneElementRange.kt") + public void testOneElementRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/oneElementRange.kt"); + } + + @Test + @TestMetadata("openRange.kt") + public void testOpenRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/openRange.kt"); + } + + @Test + @TestMetadata("openRangeUntil.kt") + public void testOpenRangeUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/openRangeUntil.kt"); + } + + @Test + @TestMetadata("overflowZeroDownToMaxValue.kt") + public void testOverflowZeroDownToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/overflowZeroDownToMaxValue.kt"); + } + + @Test + @TestMetadata("overflowZeroToMinValue.kt") + public void testOverflowZeroToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/overflowZeroToMinValue.kt"); + } + + @Test + @TestMetadata("progressionDownToMinValue.kt") + public void testProgressionDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/progressionDownToMinValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueMinusTwoToMaxValue.kt") + public void testProgressionMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/progressionMaxValueMinusTwoToMaxValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueToMaxValue.kt") + public void testProgressionMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMaxValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueToMinValue.kt") + public void testProgressionMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMinValue.kt"); + } + + @Test + @TestMetadata("progressionMinValueToMinValue.kt") + public void testProgressionMinValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/progressionMinValueToMinValue.kt"); + } + + @Test + @TestMetadata("reversedBackSequence.kt") + public void testReversedBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedBackSequence.kt"); + } + + @Test + @TestMetadata("reversedEmptyBackSequence.kt") + public void testReversedEmptyBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedEmptyBackSequence.kt"); + } + + @Test + @TestMetadata("reversedEmptyRange.kt") + public void testReversedEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedEmptyRange.kt"); + } + + @Test + @TestMetadata("reversedInexactSteppedDownTo.kt") + public void testReversedInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedInexactSteppedDownTo.kt"); + } + + @Test + @TestMetadata("reversedRange.kt") + public void testReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedRange.kt"); + } + + @Test + @TestMetadata("reversedSimpleSteppedRange.kt") + public void testReversedSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedSimpleSteppedRange.kt"); + } + + @Test + @TestMetadata("simpleDownTo.kt") + public void testSimpleDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/simpleDownTo.kt"); + } + + @Test + @TestMetadata("simpleRange.kt") + public void testSimpleRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/simpleRange.kt"); + } + + @Test + @TestMetadata("simpleRangeWithNonConstantEnds.kt") + public void testSimpleRangeWithNonConstantEnds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/simpleRangeWithNonConstantEnds.kt"); + } + + @Test + @TestMetadata("simpleSteppedDownTo.kt") + public void testSimpleSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/simpleSteppedDownTo.kt"); + } + + @Test + @TestMetadata("simpleSteppedRange.kt") + public void testSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/simpleSteppedRange.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/forInDownTo") + @TestDataPath("$PROJECT_ROOT") + public class ForInDownTo { + @Test + public void testAllFilesPresentInForInDownTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInDownTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInDownToWithPossibleUnderflow.kt") + public void testForInDownToWithPossibleUnderflow() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forInDownToWithPossibleUnderflow.kt"); + } + + @Test + @TestMetadata("forInSumDownToSum.kt") + public void testForInSumDownToSum() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forInSumDownToSum.kt"); + } + + @Test + @TestMetadata("forIntInDownTo.kt") + public void testForIntInDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forIntInDownTo.kt"); + } + + @Test + @TestMetadata("forIntInDownToWithNonConstBounds.kt") + public void testForIntInDownToWithNonConstBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forIntInDownToWithNonConstBounds.kt"); + } + + @Test + @TestMetadata("forIntInNonOptimizedDownTo.kt") + public void testForIntInNonOptimizedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forIntInNonOptimizedDownTo.kt"); + } + + @Test + @TestMetadata("forLongInDownTo.kt") + public void testForLongInDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forLongInDownTo.kt"); + } + + @Test + @TestMetadata("forNullableIntInDownTo.kt") + public void testForNullableIntInDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt"); + } + + @Test + @TestMetadata("kt49411.kt") + public void testKt49411() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/kt49411.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/forInIndices") + @TestDataPath("$PROJECT_ROOT") + public class ForInIndices { + @Test + public void testAllFilesPresentInForInIndices() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInIndices"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInArrayListIndices.kt") + public void testForInArrayListIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInArrayListIndices.kt"); + } + + @Test + @TestMetadata("forInCharSequenceIndices.kt") + public void testForInCharSequenceIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInCharSequenceIndices.kt"); + } + + @Test + @TestMetadata("forInCharSequenceTypeParameterIndices.kt") + public void testForInCharSequenceTypeParameterIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInCharSequenceTypeParameterIndices.kt"); + } + + @Test + @TestMetadata("forInCollectionImplicitReceiverIndices.kt") + public void testForInCollectionImplicitReceiverIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInCollectionImplicitReceiverIndices.kt"); + } + + @Test + @TestMetadata("forInCollectionIndices.kt") + public void testForInCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInCollectionIndices.kt"); + } + + @Test + @TestMetadata("forInCollectionTypeParameterIndices.kt") + public void testForInCollectionTypeParameterIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInCollectionTypeParameterIndices.kt"); + } + + @Test + @TestMetadata("forInListIndices.kt") + public void testForInListIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInListIndices.kt"); + } + + @Test + @TestMetadata("forInListIndicesBreak.kt") + public void testForInListIndicesBreak() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInListIndicesBreak.kt"); + } + + @Test + @TestMetadata("forInListIndicesContinue.kt") + public void testForInListIndicesContinue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInListIndicesContinue.kt"); + } + + @Test + @TestMetadata("forInNonOptimizedIndices.kt") + public void testForInNonOptimizedIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInNonOptimizedIndices.kt"); + } + + @Test + @TestMetadata("forInObjectArrayIndices.kt") + public void testForInObjectArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInObjectArrayIndices.kt"); + } + + @Test + @TestMetadata("forInPrimitiveArrayIndices.kt") + public void testForInPrimitiveArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInPrimitiveArrayIndices.kt"); + } + + @Test + @TestMetadata("forNullableIntInArrayIndices.kt") + public void testForNullableIntInArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInArrayIndices.kt"); + } + + @Test + @TestMetadata("forNullableIntInCollectionIndices.kt") + public void testForNullableIntInCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInCollectionIndices.kt"); + } + + @Test + @TestMetadata("indexOfLast.kt") + public void testIndexOfLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/indexOfLast.kt"); + } + + @Test + @TestMetadata("kt12983_forInGenericArrayIndices.kt") + public void testKt12983_forInGenericArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt12983_forInGenericArrayIndices.kt"); + } + + @Test + @TestMetadata("kt12983_forInGenericCollectionIndices.kt") + public void testKt12983_forInGenericCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt12983_forInGenericCollectionIndices.kt"); + } + + @Test + @TestMetadata("kt12983_forInSpecificArrayIndices.kt") + public void testKt12983_forInSpecificArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt12983_forInSpecificArrayIndices.kt"); + } + + @Test + @TestMetadata("kt12983_forInSpecificCollectionIndices.kt") + public void testKt12983_forInSpecificCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt12983_forInSpecificCollectionIndices.kt"); + } + + @Test + @TestMetadata("kt13241_Array.kt") + public void testKt13241_Array() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt13241_Array.kt"); + } + + @Test + @TestMetadata("kt13241_CharSequence.kt") + public void testKt13241_CharSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt13241_CharSequence.kt"); + } + + @Test + @TestMetadata("kt13241_Collection.kt") + public void testKt13241_Collection() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt13241_Collection.kt"); + } + + @Test + @TestMetadata("kt43159_ArrayUpperBound.kt") + public void testKt43159_ArrayUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt43159_ArrayUpperBound.kt"); + } + + @Test + @TestMetadata("kt43159_GenericArray.kt") + public void testKt43159_GenericArray() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt43159_GenericArray.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/forInProgressionWithIndex") + @TestDataPath("$PROJECT_ROOT") + public class ForInProgressionWithIndex { + @Test + public void testAllFilesPresentInForInProgressionWithIndex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInProgressionWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInDownToWithIndex.kt") + public void testForInDownToWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInDownToWithIndex.kt"); + } + + @Test + @TestMetadata("forInIndicesWithIndex.kt") + public void testForInIndicesWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInIndicesWithIndex.kt"); + } + + @Test + @TestMetadata("forInRangeToWithIndex.kt") + public void testForInRangeToWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInRangeToWithIndex.kt"); + } + + @Test + @TestMetadata("forInReversedStepWithIndex.kt") + public void testForInReversedStepWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedStepWithIndex.kt"); + } + + @Test + @TestMetadata("forInReversedWithIndex.kt") + public void testForInReversedWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedWithIndex.kt"); + } + + @Test + @TestMetadata("forInStepReversedWithIndex.kt") + public void testForInStepReversedWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepReversedWithIndex.kt"); + } + + @Test + @TestMetadata("forInStepWithIndex.kt") + public void testForInStepWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepWithIndex.kt"); + } + + @Test + @TestMetadata("forInUntilWithIndex.kt") + public void testForInUntilWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInUntilWithIndex.kt"); + } + + @Test + @TestMetadata("forInWithIndexBreakAndContinue.kt") + public void testForInWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexBreakAndContinue.kt"); + } + + @Test + @TestMetadata("forInWithIndexNoIndexOrElementVar.kt") + public void testForInWithIndexNoIndexOrElementVar() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNoIndexOrElementVar.kt"); + } + + @Test + @TestMetadata("forInWithIndexNotDestructured.kt") + public void testForInWithIndexNotDestructured() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNotDestructured.kt"); + } + + @Test + @TestMetadata("forInWithIndexReversed.kt") + public void testForInWithIndexReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexReversed.kt"); + } + + @Test + @TestMetadata("forInWithIndexWithDestructuringInLoop.kt") + public void testForInWithIndexWithDestructuringInLoop() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithDestructuringInLoop.kt"); + } + + @Test + @TestMetadata("forInWithIndexWithIndex.kt") + public void testForInWithIndexWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithIndex.kt"); + } + + @Test + @TestMetadata("kt42909.kt") + public void testKt42909() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/kt42909.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/forInReversed") + @TestDataPath("$PROJECT_ROOT") + public class ForInReversed { + @Test + public void testAllFilesPresentInForInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInReversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInReversedArrayIndices.kt") + public void testForInReversedArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedArrayIndices.kt"); + } + + @Test + @TestMetadata("forInReversedCharSequenceIndices.kt") + public void testForInReversedCharSequenceIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedCharSequenceIndices.kt"); + } + + @Test + @TestMetadata("forInReversedCollectionIndices.kt") + public void testForInReversedCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedCollectionIndices.kt"); + } + + @Test + @TestMetadata("forInReversedDownTo.kt") + public void testForInReversedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedDownTo.kt"); + } + + @Test + @TestMetadata("forInReversedEmptyRange.kt") + public void testForInReversedEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedEmptyRange.kt"); + } + + @Test + @TestMetadata("forInReversedEmptyRangeLiteral.kt") + public void testForInReversedEmptyRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedEmptyRangeLiteral.kt"); + } + + @Test + @TestMetadata("forInReversedEmptyRangeLiteralWithNonConstBounds.kt") + public void testForInReversedEmptyRangeLiteralWithNonConstBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedEmptyRangeLiteralWithNonConstBounds.kt"); + } + + @Test + @TestMetadata("forInReversedRange.kt") + public void testForInReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedRange.kt"); + } + + @Test + @TestMetadata("forInReversedRangeLiteral.kt") + public void testForInReversedRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedRangeLiteral.kt"); + } + + @Test + @TestMetadata("forInReversedRangeLiteralWithNonConstBounds.kt") + public void testForInReversedRangeLiteralWithNonConstBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedRangeLiteralWithNonConstBounds.kt"); + } + + @Test + @TestMetadata("forInReversedReversedArrayIndices.kt") + public void testForInReversedReversedArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedReversedArrayIndices.kt"); + } + + @Test + @TestMetadata("forInReversedReversedDownTo.kt") + public void testForInReversedReversedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedReversedDownTo.kt"); + } + + @Test + @TestMetadata("ForInReversedReversedRange.kt") + public void testForInReversedReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/ForInReversedReversedRange.kt"); + } + + @Test + @TestMetadata("forInReversedReversedReversedRange.kt") + public void testForInReversedReversedReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedReversedReversedRange.kt"); + } + + @Test + @TestMetadata("forInReversedReversedUntil.kt") + public void testForInReversedReversedUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedReversedUntil.kt"); + } + + @Test + @TestMetadata("forInReversedReversedUntilWithNonConstBounds.kt") + public void testForInReversedReversedUntilWithNonConstBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedReversedUntilWithNonConstBounds.kt"); + } + + @Test + @TestMetadata("forInReversedUntil.kt") + public void testForInReversedUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedUntil.kt"); + } + + @Test + @TestMetadata("forInReversedUntilWithNonConstBounds.kt") + public void testForInReversedUntilWithNonConstBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedUntilWithNonConstBounds.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/forInUntil") + @TestDataPath("$PROJECT_ROOT") + public class ForInUntil { + @Test + public void testAllFilesPresentInForInUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInUntilChar.kt") + public void testForInUntilChar() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilChar.kt"); + } + + @Test + @TestMetadata("forInUntilCharMaxValue.kt") + public void testForInUntilCharMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMaxValue.kt"); + } + + @Test + @TestMetadata("forInUntilCharMinValue.kt") + public void testForInUntilCharMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValue.kt"); + } + + @Test + @TestMetadata("forInUntilCharMinValueNonConst.kt") + public void testForInUntilCharMinValueNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValueNonConst.kt"); + } + + @Test + @TestMetadata("forInUntilInt.kt") + public void testForInUntilInt() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilInt.kt"); + } + + @Test + @TestMetadata("forInUntilIntMaxValue.kt") + public void testForInUntilIntMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMaxValue.kt"); + } + + @Test + @TestMetadata("forInUntilIntMinValue.kt") + public void testForInUntilIntMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValue.kt"); + } + + @Test + @TestMetadata("forInUntilIntMinValueNonConst.kt") + public void testForInUntilIntMinValueNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValueNonConst.kt"); + } + + @Test + @TestMetadata("forInUntilLesserInt.kt") + public void testForInUntilLesserInt() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilLesserInt.kt"); + } + + @Test + @TestMetadata("forInUntilLong.kt") + public void testForInUntilLong() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilLong.kt"); + } + + @Test + @TestMetadata("forInUntilLongMaxValue.kt") + public void testForInUntilLongMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMaxValue.kt"); + } + + @Test + @TestMetadata("forInUntilLongMinValue.kt") + public void testForInUntilLongMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValue.kt"); + } + + @Test + @TestMetadata("forInUntilLongMinValueNonConst.kt") + public void testForInUntilLongMinValueNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValueNonConst.kt"); + } + + @Test + @TestMetadata("forIntInIntUntilSmartcastInt.kt") + public void testForIntInIntUntilSmartcastInt() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forIntInIntUntilSmartcastInt.kt"); + } + + @Test + @TestMetadata("kt42533.kt") + public void testKt42533() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/kt42533.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/forWithPossibleOverflow") + @TestDataPath("$PROJECT_ROOT") + public class ForWithPossibleOverflow { + @Test + public void testAllFilesPresentInForWithPossibleOverflow() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forWithPossibleOverflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInDownToCharMinValue.kt") + public void testForInDownToCharMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValue.kt"); + } + + @Test + @TestMetadata("forInDownToCharMinValueReversed.kt") + public void testForInDownToCharMinValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValueReversed.kt"); + } + + @Test + @TestMetadata("forInDownToIntMinValue.kt") + public void testForInDownToIntMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValue.kt"); + } + + @Test + @TestMetadata("forInDownToIntMinValueReversed.kt") + public void testForInDownToIntMinValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValueReversed.kt"); + } + + @Test + @TestMetadata("forInDownToLongMinValue.kt") + public void testForInDownToLongMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValue.kt"); + } + + @Test + @TestMetadata("forInDownToLongMinValueReversed.kt") + public void testForInDownToLongMinValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValueReversed.kt"); + } + + @Test + @TestMetadata("forInRangeToCharMaxValue.kt") + public void testForInRangeToCharMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValue.kt"); + } + + @Test + @TestMetadata("forInRangeToCharMaxValueReversed.kt") + public void testForInRangeToCharMaxValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValueReversed.kt"); + } + + @Test + @TestMetadata("forInRangeToIntMaxValue.kt") + public void testForInRangeToIntMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValue.kt"); + } + + @Test + @TestMetadata("forInRangeToIntMaxValueReversed.kt") + public void testForInRangeToIntMaxValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValueReversed.kt"); + } + + @Test + @TestMetadata("forInRangeToLongMaxValue.kt") + public void testForInRangeToLongMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValue.kt"); + } + + @Test + @TestMetadata("forInRangeToLongMaxValueReversed.kt") + public void testForInRangeToLongMaxValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValueReversed.kt"); + } + + @Test + @TestMetadata("forInUntilIntMinValueReversed.kt") + public void testForInUntilIntMinValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInUntilIntMinValueReversed.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/javaInterop") + @TestDataPath("$PROJECT_ROOT") + public class JavaInterop { + @Test + public void testAllFilesPresentInJavaInterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaArrayOfInheritedNotNull.kt") + public void testJavaArrayOfInheritedNotNull() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaArrayOfInheritedNotNull.kt"); + } + + @Test + @TestMetadata("javaArrayOfInheritedNotNullFailFast.kt") + public void testJavaArrayOfInheritedNotNullFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaArrayOfInheritedNotNullFailFast.kt"); + } + + @Test + @TestMetadata("javaArrayOfMaybeNullable.kt") + public void testJavaArrayOfMaybeNullable() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaArrayOfMaybeNullable.kt"); + } + + @Test + @TestMetadata("javaArrayOfMaybeNullableWithNotNullLoopVariable.kt") + public void testJavaArrayOfMaybeNullableWithNotNullLoopVariable() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaArrayOfMaybeNullableWithNotNullLoopVariable.kt"); + } + + @Test + @TestMetadata("javaArrayOfMaybeNullableWithNotNullLoopVariableFailFast.kt") + public void testJavaArrayOfMaybeNullableWithNotNullLoopVariableFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaArrayOfMaybeNullableWithNotNullLoopVariableFailFast.kt"); + } + + @Test + @TestMetadata("javaCollectionOfExplicitNotNull.kt") + public void testJavaCollectionOfExplicitNotNull() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfExplicitNotNull.kt"); + } + + @Test + @TestMetadata("javaCollectionOfExplicitNotNullFailFast.kt") + public void testJavaCollectionOfExplicitNotNullFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfExplicitNotNullFailFast.kt"); + } + + @Test + @TestMetadata("javaCollectionOfExplicitNullable.kt") + public void testJavaCollectionOfExplicitNullable() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfExplicitNullable.kt"); + } + + @Test + @TestMetadata("javaCollectionOfInheritedNotNull.kt") + public void testJavaCollectionOfInheritedNotNull() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfInheritedNotNull.kt"); + } + + @Test + @TestMetadata("javaCollectionOfInheritedNotNullFailFast.kt") + public void testJavaCollectionOfInheritedNotNullFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfInheritedNotNullFailFast.kt"); + } + + @Test + @TestMetadata("javaCollectionOfMaybeNullable.kt") + public void testJavaCollectionOfMaybeNullable() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfMaybeNullable.kt"); + } + + @Test + @TestMetadata("javaCollectionOfMaybeNullableWithNotNullLoopVariable.kt") + public void testJavaCollectionOfMaybeNullableWithNotNullLoopVariable() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfMaybeNullableWithNotNullLoopVariable.kt"); + } + + @Test + @TestMetadata("javaCollectionOfMaybeNullableWithNotNullLoopVariableFailFast.kt") + public void testJavaCollectionOfMaybeNullableWithNotNullLoopVariableFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfMaybeNullableWithNotNullLoopVariableFailFast.kt"); + } + + @Test + @TestMetadata("javaCollectionOfNotNullFromStdlib.kt") + public void testJavaCollectionOfNotNullFromStdlib() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfNotNullFromStdlib.kt"); + } + + @Test + @TestMetadata("javaCollectionOfNotNullFromStdlibToTypedArray.kt") + public void testJavaCollectionOfNotNullFromStdlibToTypedArray() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfNotNullFromStdlibToTypedArray.kt"); + } + + @Test + @TestMetadata("javaCollectionOfNotNullToTypedArray.kt") + public void testJavaCollectionOfNotNullToTypedArray() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfNotNullToTypedArray.kt"); + } + + @Test + @TestMetadata("javaCollectionOfNotNullToTypedArrayFailFast.kt") + public void testJavaCollectionOfNotNullToTypedArrayFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfNotNullToTypedArrayFailFast.kt"); + } + + @Test + @TestMetadata("javaIteratorOfNotNull.kt") + public void testJavaIteratorOfNotNull() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaIteratorOfNotNull.kt"); + } + + @Test + @TestMetadata("javaIteratorOfNotNullFailFast.kt") + public void testJavaIteratorOfNotNullFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/javaIteratorOfNotNullFailFast.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/javaInterop/withIndex") + @TestDataPath("$PROJECT_ROOT") + public class WithIndex { + @Test + public void testAllFilesPresentInWithIndex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/javaInterop/withIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaArrayOfInheritedNotNullWithIndex.kt") + public void testJavaArrayOfInheritedNotNullWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaArrayOfInheritedNotNullWithIndex.kt"); + } + + @Test + @TestMetadata("javaArrayOfInheritedNotNullWithIndexFailFast.kt") + public void testJavaArrayOfInheritedNotNullWithIndexFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaArrayOfInheritedNotNullWithIndexFailFast.kt"); + } + + @Test + @TestMetadata("javaArrayOfMaybeNullableWithIndex.kt") + public void testJavaArrayOfMaybeNullableWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaArrayOfMaybeNullableWithIndex.kt"); + } + + @Test + @TestMetadata("javaArrayOfMaybeNullableWithIndexWithNotNullLoopVariable.kt") + public void testJavaArrayOfMaybeNullableWithIndexWithNotNullLoopVariable() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaArrayOfMaybeNullableWithIndexWithNotNullLoopVariable.kt"); + } + + @Test + @TestMetadata("javaArrayOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast.kt") + public void testJavaArrayOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaArrayOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast.kt"); + } + + @Test + @TestMetadata("javaCollectionOfExplicitNotNullWithIndex.kt") + public void testJavaCollectionOfExplicitNotNullWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfExplicitNotNullWithIndex.kt"); + } + + @Test + @TestMetadata("javaCollectionOfExplicitNotNullWithIndexFailFast.kt") + public void testJavaCollectionOfExplicitNotNullWithIndexFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfExplicitNotNullWithIndexFailFast.kt"); + } + + @Test + @TestMetadata("javaCollectionOfExplicitNullableWithIndex.kt") + public void testJavaCollectionOfExplicitNullableWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfExplicitNullableWithIndex.kt"); + } + + @Test + @TestMetadata("javaCollectionOfMaybeNullableWithIndex.kt") + public void testJavaCollectionOfMaybeNullableWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfMaybeNullableWithIndex.kt"); + } + + @Test + @TestMetadata("javaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariable.kt") + public void testJavaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariable() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariable.kt"); + } + + @Test + @TestMetadata("javaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast.kt") + public void testJavaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast.kt"); + } + + @Test + @TestMetadata("javaIteratorOfNotNullWithIndex.kt") + public void testJavaIteratorOfNotNullWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaIteratorOfNotNullWithIndex.kt"); + } + + @Test + @TestMetadata("javaIteratorOfNotNullWithIndexFailFast.kt") + public void testJavaIteratorOfNotNullWithIndexFailFast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaIteratorOfNotNullWithIndexFailFast.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/literal") + @TestDataPath("$PROJECT_ROOT") + public class Literal { + @Test + public void testAllFilesPresentInLiteral() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/literal"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyDownto.kt") + public void testEmptyDownto() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/emptyDownto.kt"); + } + + @Test + @TestMetadata("emptyRange.kt") + public void testEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/emptyRange.kt"); + } + + @Test + @TestMetadata("inexactDownToMinValue.kt") + public void testInexactDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/inexactDownToMinValue.kt"); + } + + @Test + @TestMetadata("inexactSteppedDownTo.kt") + public void testInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/inexactSteppedDownTo.kt"); + } + + @Test + @TestMetadata("inexactSteppedRange.kt") + public void testInexactSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/inexactSteppedRange.kt"); + } + + @Test + @TestMetadata("inexactToMaxValue.kt") + public void testInexactToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/inexactToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueMinusTwoToMaxValue.kt") + public void testMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/maxValueMinusTwoToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToMaxValue.kt") + public void testMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/maxValueToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToMinValue.kt") + public void testMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/maxValueToMinValue.kt"); + } + + @Test + @TestMetadata("oneElementDownTo.kt") + public void testOneElementDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/oneElementDownTo.kt"); + } + + @Test + @TestMetadata("oneElementRange.kt") + public void testOneElementRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/oneElementRange.kt"); + } + + @Test + @TestMetadata("openRange.kt") + public void testOpenRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/openRange.kt"); + } + + @Test + @TestMetadata("openRangeUntil.kt") + public void testOpenRangeUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/openRangeUntil.kt"); + } + + @Test + @TestMetadata("overflowZeroDownToMaxValue.kt") + public void testOverflowZeroDownToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/overflowZeroDownToMaxValue.kt"); + } + + @Test + @TestMetadata("overflowZeroToMinValue.kt") + public void testOverflowZeroToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/overflowZeroToMinValue.kt"); + } + + @Test + @TestMetadata("progressionDownToMinValue.kt") + public void testProgressionDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/progressionDownToMinValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueMinusTwoToMaxValue.kt") + public void testProgressionMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/progressionMaxValueMinusTwoToMaxValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueToMaxValue.kt") + public void testProgressionMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMaxValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueToMinValue.kt") + public void testProgressionMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMinValue.kt"); + } + + @Test + @TestMetadata("progressionMinValueToMinValue.kt") + public void testProgressionMinValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/progressionMinValueToMinValue.kt"); + } + + @Test + @TestMetadata("reversedBackSequence.kt") + public void testReversedBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedBackSequence.kt"); + } + + @Test + @TestMetadata("reversedEmptyBackSequence.kt") + public void testReversedEmptyBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedEmptyBackSequence.kt"); + } + + @Test + @TestMetadata("reversedEmptyRange.kt") + public void testReversedEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedEmptyRange.kt"); + } + + @Test + @TestMetadata("reversedInexactSteppedDownTo.kt") + public void testReversedInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedInexactSteppedDownTo.kt"); + } + + @Test + @TestMetadata("reversedRange.kt") + public void testReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedRange.kt"); + } + + @Test + @TestMetadata("reversedSimpleSteppedRange.kt") + public void testReversedSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedSimpleSteppedRange.kt"); + } + + @Test + @TestMetadata("simpleDownTo.kt") + public void testSimpleDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/simpleDownTo.kt"); + } + + @Test + @TestMetadata("simpleRange.kt") + public void testSimpleRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/simpleRange.kt"); + } + + @Test + @TestMetadata("simpleRangeWithNonConstantEnds.kt") + public void testSimpleRangeWithNonConstantEnds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/simpleRangeWithNonConstantEnds.kt"); + } + + @Test + @TestMetadata("simpleSteppedDownTo.kt") + public void testSimpleSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/simpleSteppedDownTo.kt"); + } + + @Test + @TestMetadata("simpleSteppedRange.kt") + public void testSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/simpleSteppedRange.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/nullableLoopParameter") + @TestDataPath("$PROJECT_ROOT") + public class NullableLoopParameter { + @Test + public void testAllFilesPresentInNullableLoopParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/nullableLoopParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("progressionExpression.kt") + public void testProgressionExpression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/nullableLoopParameter/progressionExpression.kt"); + } + + @Test + @TestMetadata("rangeExpression.kt") + public void testRangeExpression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/nullableLoopParameter/rangeExpression.kt"); + } + + @Test + @TestMetadata("rangeLiteral.kt") + public void testRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/nullableLoopParameter/rangeLiteral.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped") + @TestDataPath("$PROJECT_ROOT") + public class Stepped { + @Test + public void testAllFilesPresentInStepped() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression") + @TestDataPath("$PROJECT_ROOT") + public class Expression { + @Test + public void testAllFilesPresentInExpression() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/downTo") + @TestDataPath("$PROJECT_ROOT") + public class DownTo { + @Test + public void testAllFilesPresentInDownTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/downTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("maxValueToMinValueStepMaxValue.kt") + public void testMaxValueToMinValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToMinValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToOneStepMaxValue.kt") + public void testMaxValueToOneStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToOneStepMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToZeroStepMaxValue.kt") + public void testMaxValueToZeroStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToZeroStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/stepToSmallerLast.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo") + @TestDataPath("$PROJECT_ROOT") + public class RangeTo { + @Test + public void testAllFilesPresentInRangeTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/minValueToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("oneToMaxValueStepMaxValue.kt") + public void testOneToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/oneToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/stepToSmallerLast.kt"); + } + + @Test + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/zeroToMaxValueStepMaxValue.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil") + @TestDataPath("$PROJECT_ROOT") + public class RangeUntil { + @Test + public void testAllFilesPresentInRangeUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/stepToSmallerLast.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/until") + @TestDataPath("$PROJECT_ROOT") + public class Until { + @Test + public void testAllFilesPresentInUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/until"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/emptyProgression.kt"); + } + + @Test + @TestMetadata("emptyProgressionToMinValue.kt") + public void testEmptyProgressionToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/emptyProgressionToMinValue.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/minValueToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("progressionToNonConst.kt") + public void testProgressionToNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/progressionToNonConst.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/stepToSmallerLast.kt"); + } + + @Test + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/zeroToMaxValueStepMaxValue.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal") + @TestDataPath("$PROJECT_ROOT") + public class Literal { + @Test + public void testAllFilesPresentInLiteral() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/downTo") + @TestDataPath("$PROJECT_ROOT") + public class DownTo { + @Test + public void testAllFilesPresentInDownTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/downTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("maxValueToMinValueStepMaxValue.kt") + public void testMaxValueToMinValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToMinValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToOneStepMaxValue.kt") + public void testMaxValueToOneStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToOneStepMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToZeroStepMaxValue.kt") + public void testMaxValueToZeroStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToZeroStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/stepToSmallerLast.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo") + @TestDataPath("$PROJECT_ROOT") + public class RangeTo { + @Test + public void testAllFilesPresentInRangeTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/minValueToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("oneToMaxValueStepMaxValue.kt") + public void testOneToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/oneToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/stepToSmallerLast.kt"); + } + + @Test + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/zeroToMaxValueStepMaxValue.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil") + @TestDataPath("$PROJECT_ROOT") + public class RangeUntil { + @Test + public void testAllFilesPresentInRangeUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/stepToSmallerLast.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/until") + @TestDataPath("$PROJECT_ROOT") + public class Until { + @Test + public void testAllFilesPresentInUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/until"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/emptyProgression.kt"); + } + + @Test + @TestMetadata("emptyProgressionToMinValue.kt") + public void testEmptyProgressionToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/emptyProgressionToMinValue.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/minValueToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("progressionToNonConst.kt") + public void testProgressionToNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/progressionToNonConst.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/stepToSmallerLast.kt"); + } + + @Test + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/zeroToMaxValueStepMaxValue.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned") + @TestDataPath("$PROJECT_ROOT") + public class Unsigned { + @Test + public void testAllFilesPresentInUnsigned() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression") + @TestDataPath("$PROJECT_ROOT") + public class Expression { + @Test + public void testAllFilesPresentInExpression() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo") + @TestDataPath("$PROJECT_ROOT") + public class DownTo { + @Test + public void testAllFilesPresentInDownTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("maxValueToMinValueStepMaxValue.kt") + public void testMaxValueToMinValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToMinValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToOneStepMaxValue.kt") + public void testMaxValueToOneStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToOneStepMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToZeroStepMaxValue.kt") + public void testMaxValueToZeroStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToZeroStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/stepToSmallerLast.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo") + @TestDataPath("$PROJECT_ROOT") + public class RangeTo { + @Test + public void testAllFilesPresentInRangeTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/minValueToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("oneToMaxValueStepMaxValue.kt") + public void testOneToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/oneToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/stepToSmallerLast.kt"); + } + + @Test + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/zeroToMaxValueStepMaxValue.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil") + @TestDataPath("$PROJECT_ROOT") + public class RangeUntil { + @Test + public void testAllFilesPresentInRangeUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/stepToSmallerLast.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until") + @TestDataPath("$PROJECT_ROOT") + public class Until { + @Test + public void testAllFilesPresentInUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/emptyProgression.kt"); + } + + @Test + @TestMetadata("emptyProgressionToMinValue.kt") + public void testEmptyProgressionToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/emptyProgressionToMinValue.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/minValueToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("progressionToNonConst.kt") + public void testProgressionToNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/progressionToNonConst.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/stepToSmallerLast.kt"); + } + + @Test + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/zeroToMaxValueStepMaxValue.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal") + @TestDataPath("$PROJECT_ROOT") + public class Literal { + @Test + public void testAllFilesPresentInLiteral() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo") + @TestDataPath("$PROJECT_ROOT") + public class DownTo { + @Test + public void testAllFilesPresentInDownTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("maxValueToMinValueStepMaxValue.kt") + public void testMaxValueToMinValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToMinValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToOneStepMaxValue.kt") + public void testMaxValueToOneStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToOneStepMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToZeroStepMaxValue.kt") + public void testMaxValueToZeroStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToZeroStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/stepToSmallerLast.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo") + @TestDataPath("$PROJECT_ROOT") + public class RangeTo { + @Test + public void testAllFilesPresentInRangeTo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/minValueToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("oneToMaxValueStepMaxValue.kt") + public void testOneToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/oneToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/stepToSmallerLast.kt"); + } + + @Test + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/zeroToMaxValueStepMaxValue.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil") + @TestDataPath("$PROJECT_ROOT") + public class RangeUntil { + @Test + public void testAllFilesPresentInRangeUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/emptyProgression.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/stepToSmallerLast.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until") + @TestDataPath("$PROJECT_ROOT") + public class Until { + @Test + public void testAllFilesPresentInUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/emptyProgression.kt"); + } + + @Test + @TestMetadata("emptyProgressionToMinValue.kt") + public void testEmptyProgressionToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/emptyProgressionToMinValue.kt"); + } + + @Test + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/illegalStepNegative.kt"); + } + + @Test + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/illegalStepNonConst.kt"); + } + + @Test + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/illegalStepThenLegalStep.kt"); + } + + @Test + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/illegalStepZero.kt"); + } + + @Test + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/legalStepThenIllegalStep.kt"); + } + + @Test + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/minValueToMaxValueStepMaxValue.kt"); + } + + @Test + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/mixedTypeStep.kt"); + } + + @Test + @TestMetadata("progressionToNonConst.kt") + public void testProgressionToNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/progressionToNonConst.kt"); + } + + @Test + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/singleElementStepTwo.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/stepOne.kt"); + } + + @Test + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/stepToOutsideRange.kt"); + } + + @Test + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/stepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/stepToSmallerLast.kt"); + } + + @Test + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/zeroToMaxValueStepMaxValue.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep") + @TestDataPath("$PROJECT_ROOT") + public class NestedStep { + @Test + public void testAllFilesPresentInNestedStep() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @Test + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed") + @TestDataPath("$PROJECT_ROOT") + public class Reversed { + @Test + public void testAllFilesPresentInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/reversedThenStep.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/reversedThenStepThenReversed.kt"); + } + + @Test + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/stepThenReversedThenStep.kt"); + } + + @Test + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/unsigned") + @TestDataPath("$PROJECT_ROOT") + public class Unsigned { + @Test + public void testAllFilesPresentInUnsigned() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bitShifting.kt") + public void testBitShifting() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/bitShifting.kt"); + } + + @Test + @TestMetadata("inMixedUnsignedRange.kt") + public void testInMixedUnsignedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/inMixedUnsignedRange.kt"); + } + + @Test + @TestMetadata("kt35004.kt") + public void testKt35004() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/kt35004.kt"); + } + + @Test + @TestMetadata("kt36953.kt") + public void testKt36953() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/kt36953.kt"); + } + + @Test + @TestMetadata("kt36953_continue.kt") + public void testKt36953_continue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/kt36953_continue.kt"); + } + + @Test + @TestMetadata("outOfBoundsInMixedContains.kt") + public void testOutOfBoundsInMixedContains() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/outOfBoundsInMixedContains.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/unsigned/expression") + @TestDataPath("$PROJECT_ROOT") + public class Expression { + @Test + public void testAllFilesPresentInExpression() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned/expression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyDownto.kt") + public void testEmptyDownto() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/emptyDownto.kt"); + } + + @Test + @TestMetadata("emptyRange.kt") + public void testEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/emptyRange.kt"); + } + + @Test + @TestMetadata("inexactDownToMinValue.kt") + public void testInexactDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/inexactDownToMinValue.kt"); + } + + @Test + @TestMetadata("inexactSteppedDownTo.kt") + public void testInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/inexactSteppedDownTo.kt"); + } + + @Test + @TestMetadata("inexactSteppedRange.kt") + public void testInexactSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/inexactSteppedRange.kt"); + } + + @Test + @TestMetadata("inexactToMaxValue.kt") + public void testInexactToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/inexactToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueMinusTwoToMaxValue.kt") + public void testMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/maxValueMinusTwoToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToMaxValue.kt") + public void testMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/maxValueToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToMinValue.kt") + public void testMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/maxValueToMinValue.kt"); + } + + @Test + @TestMetadata("oneElementDownTo.kt") + public void testOneElementDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/oneElementDownTo.kt"); + } + + @Test + @TestMetadata("oneElementRange.kt") + public void testOneElementRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/oneElementRange.kt"); + } + + @Test + @TestMetadata("openRange.kt") + public void testOpenRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/openRange.kt"); + } + + @Test + @TestMetadata("openRangeUntil.kt") + public void testOpenRangeUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/openRangeUntil.kt"); + } + + @Test + @TestMetadata("overflowZeroDownToMaxValue.kt") + public void testOverflowZeroDownToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/overflowZeroDownToMaxValue.kt"); + } + + @Test + @TestMetadata("overflowZeroToMinValue.kt") + public void testOverflowZeroToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/overflowZeroToMinValue.kt"); + } + + @Test + @TestMetadata("progressionDownToMinValue.kt") + public void testProgressionDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/progressionDownToMinValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueMinusTwoToMaxValue.kt") + public void testProgressionMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/progressionMaxValueMinusTwoToMaxValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueToMaxValue.kt") + public void testProgressionMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/progressionMaxValueToMaxValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueToMinValue.kt") + public void testProgressionMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/progressionMaxValueToMinValue.kt"); + } + + @Test + @TestMetadata("progressionMinValueToMinValue.kt") + public void testProgressionMinValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/progressionMinValueToMinValue.kt"); + } + + @Test + @TestMetadata("reversedBackSequence.kt") + public void testReversedBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedBackSequence.kt"); + } + + @Test + @TestMetadata("reversedEmptyBackSequence.kt") + public void testReversedEmptyBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedEmptyBackSequence.kt"); + } + + @Test + @TestMetadata("reversedEmptyRange.kt") + public void testReversedEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedEmptyRange.kt"); + } + + @Test + @TestMetadata("reversedInexactSteppedDownTo.kt") + public void testReversedInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedInexactSteppedDownTo.kt"); + } + + @Test + @TestMetadata("reversedRange.kt") + public void testReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedRange.kt"); + } + + @Test + @TestMetadata("reversedSimpleSteppedRange.kt") + public void testReversedSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedSimpleSteppedRange.kt"); + } + + @Test + @TestMetadata("simpleDownTo.kt") + public void testSimpleDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/simpleDownTo.kt"); + } + + @Test + @TestMetadata("simpleRange.kt") + public void testSimpleRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/simpleRange.kt"); + } + + @Test + @TestMetadata("simpleRangeWithNonConstantEnds.kt") + public void testSimpleRangeWithNonConstantEnds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/simpleRangeWithNonConstantEnds.kt"); + } + + @Test + @TestMetadata("simpleSteppedDownTo.kt") + public void testSimpleSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/simpleSteppedDownTo.kt"); + } + + @Test + @TestMetadata("simpleSteppedRange.kt") + public void testSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/simpleSteppedRange.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/unsigned/literal") + @TestDataPath("$PROJECT_ROOT") + public class Literal { + @Test + public void testAllFilesPresentInLiteral() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned/literal"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyDownto.kt") + public void testEmptyDownto() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/emptyDownto.kt"); + } + + @Test + @TestMetadata("emptyRange.kt") + public void testEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/emptyRange.kt"); + } + + @Test + @TestMetadata("inexactDownToMinValue.kt") + public void testInexactDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/inexactDownToMinValue.kt"); + } + + @Test + @TestMetadata("inexactSteppedDownTo.kt") + public void testInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/inexactSteppedDownTo.kt"); + } + + @Test + @TestMetadata("inexactSteppedRange.kt") + public void testInexactSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/inexactSteppedRange.kt"); + } + + @Test + @TestMetadata("inexactToMaxValue.kt") + public void testInexactToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/inexactToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueMinusTwoToMaxValue.kt") + public void testMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/maxValueMinusTwoToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToMaxValue.kt") + public void testMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/maxValueToMaxValue.kt"); + } + + @Test + @TestMetadata("maxValueToMinValue.kt") + public void testMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/maxValueToMinValue.kt"); + } + + @Test + @TestMetadata("oneElementDownTo.kt") + public void testOneElementDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/oneElementDownTo.kt"); + } + + @Test + @TestMetadata("oneElementRange.kt") + public void testOneElementRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/oneElementRange.kt"); + } + + @Test + @TestMetadata("openRange.kt") + public void testOpenRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/openRange.kt"); + } + + @Test + @TestMetadata("openRangeUntil.kt") + public void testOpenRangeUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/openRangeUntil.kt"); + } + + @Test + @TestMetadata("overflowZeroDownToMaxValue.kt") + public void testOverflowZeroDownToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/overflowZeroDownToMaxValue.kt"); + } + + @Test + @TestMetadata("overflowZeroToMinValue.kt") + public void testOverflowZeroToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/overflowZeroToMinValue.kt"); + } + + @Test + @TestMetadata("progressionDownToMinValue.kt") + public void testProgressionDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/progressionDownToMinValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueMinusTwoToMaxValue.kt") + public void testProgressionMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/progressionMaxValueMinusTwoToMaxValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueToMaxValue.kt") + public void testProgressionMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/progressionMaxValueToMaxValue.kt"); + } + + @Test + @TestMetadata("progressionMaxValueToMinValue.kt") + public void testProgressionMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/progressionMaxValueToMinValue.kt"); + } + + @Test + @TestMetadata("progressionMinValueToMinValue.kt") + public void testProgressionMinValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/progressionMinValueToMinValue.kt"); + } + + @Test + @TestMetadata("reversedBackSequence.kt") + public void testReversedBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedBackSequence.kt"); + } + + @Test + @TestMetadata("reversedEmptyBackSequence.kt") + public void testReversedEmptyBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedEmptyBackSequence.kt"); + } + + @Test + @TestMetadata("reversedEmptyRange.kt") + public void testReversedEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedEmptyRange.kt"); + } + + @Test + @TestMetadata("reversedInexactSteppedDownTo.kt") + public void testReversedInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedInexactSteppedDownTo.kt"); + } + + @Test + @TestMetadata("reversedRange.kt") + public void testReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedRange.kt"); + } + + @Test + @TestMetadata("reversedSimpleSteppedRange.kt") + public void testReversedSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedSimpleSteppedRange.kt"); + } + + @Test + @TestMetadata("simpleDownTo.kt") + public void testSimpleDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/simpleDownTo.kt"); + } + + @Test + @TestMetadata("simpleRange.kt") + public void testSimpleRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/simpleRange.kt"); + } + + @Test + @TestMetadata("simpleRangeWithNonConstantEnds.kt") + public void testSimpleRangeWithNonConstantEnds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/simpleRangeWithNonConstantEnds.kt"); + } + + @Test + @TestMetadata("simpleSteppedDownTo.kt") + public void testSimpleSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/simpleSteppedDownTo.kt"); + } + + @Test + @TestMetadata("simpleSteppedRange.kt") + public void testSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/simpleSteppedRange.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter") + @TestDataPath("$PROJECT_ROOT") + public class NullableLoopParameter { + @Test + public void testAllFilesPresentInNullableLoopParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("progressionExpression.kt") + public void testProgressionExpression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/progressionExpression.kt"); + } + + @Test + @TestMetadata("rangeExpression.kt") + public void testRangeExpression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/rangeExpression.kt"); + } + + @Test + @TestMetadata("rangeLiteral.kt") + public void testRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/rangeLiteral.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/recursiveRawTypes") + @TestDataPath("$PROJECT_ROOT") + public class RecursiveRawTypes { + @Test + public void testAllFilesPresentInRecursiveRawTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/recursiveRawTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt16528.kt") + public void testKt16528() throws Exception { + runTest("compiler/testData/codegen/box/recursiveRawTypes/kt16528.kt"); + } + + @Test + @TestMetadata("kt16639.kt") + public void testKt16639() throws Exception { + runTest("compiler/testData/codegen/box/recursiveRawTypes/kt16639.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection") + @TestDataPath("$PROJECT_ROOT") + public class Reflection { + @Test + public void testAllFilesPresentInReflection() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("jvmKPackageCaching.kt") + public void testJvmKPackageCaching() throws Exception { + runTest("compiler/testData/codegen/box/reflection/jvmKPackageCaching.kt"); + } + + @Test + @TestMetadata("jvmKTypeCaching.kt") + public void testJvmKTypeCaching() throws Exception { + runTest("compiler/testData/codegen/box/reflection/jvmKTypeCaching.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationRetentionAnnotation.kt") + public void testAnnotationRetentionAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/annotationRetentionAnnotation.kt"); + } + + @Test + @TestMetadata("annotationsOnJavaMembers.kt") + public void testAnnotationsOnJavaMembers() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/annotationsOnJavaMembers.kt"); + } + + @Test + @TestMetadata("classLiteralWithVoidDefault.kt") + public void testClassLiteralWithVoidDefault() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/classLiteralWithVoidDefault.kt"); + } + + @Test + @TestMetadata("findAnnotation.kt") + public void testFindAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/findAnnotation.kt"); + } + + @Test + @TestMetadata("genericExtensionProperty.kt") + public void testGenericExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/genericExtensionProperty.kt"); + } + + @Test + @TestMetadata("hasAnnotation.kt") + public void testHasAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/hasAnnotation.kt"); + } + + @Test + @TestMetadata("localClassLiteral.kt") + public void testLocalClassLiteral() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/localClassLiteral.kt"); + } + + @Test + @TestMetadata("localClassParameterAnnotation.kt") + public void testLocalClassParameterAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/localClassParameterAnnotation.kt"); + } + + @Test + @TestMetadata("openSuspendFun.kt") + public void testOpenSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/openSuspendFun.kt"); + } + + @Test + @TestMetadata("privateAnnotation.kt") + public void testPrivateAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/privateAnnotation.kt"); + } + + @Test + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/propertyAccessors.kt"); + } + + @Test + @TestMetadata("propertyWithoutBackingField.kt") + public void testPropertyWithoutBackingField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/propertyWithoutBackingField.kt"); + } + + @Test + @TestMetadata("retentions.kt") + public void testRetentions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/retentions.kt"); + } + + @Test + @TestMetadata("setparam.kt") + public void testSetparam() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/setparam.kt"); + } + + @Test + @TestMetadata("simpleClassAnnotation.kt") + public void testSimpleClassAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/simpleClassAnnotation.kt"); + } + + @Test + @TestMetadata("simpleConstructorAnnotation.kt") + public void testSimpleConstructorAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/simpleConstructorAnnotation.kt"); + } + + @Test + @TestMetadata("simpleFunAnnotation.kt") + public void testSimpleFunAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/simpleFunAnnotation.kt"); + } + + @Test + @TestMetadata("simpleParamAnnotation.kt") + public void testSimpleParamAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/simpleParamAnnotation.kt"); + } + + @Test + @TestMetadata("simpleValAnnotation.kt") + public void testSimpleValAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/simpleValAnnotation.kt"); + } + + @Test + @TestMetadata("spread.kt") + public void testSpread() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/spread.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/annotations/onTypes") + @TestDataPath("$PROJECT_ROOT") + public class OnTypes { + @Test + public void testAllFilesPresentInOnTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/annotations/onTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayKClass.kt") + public void testArrayKClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/arrayKClass.kt"); + } + + @Test + @TestMetadata("arrayTypeInDefaultPackage.kt") + public void testArrayTypeInDefaultPackage() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/arrayTypeInDefaultPackage.kt"); + } + + @Test + @TestMetadata("classLiteralWithExpectedType.kt") + public void testClassLiteralWithExpectedType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/classLiteralWithExpectedType.kt"); + } + + @Test + @TestMetadata("differentArgumentTypes.kt") + public void testDifferentArgumentTypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/differentArgumentTypes.kt"); + } + + @Test + @TestMetadata("differentPositions.kt") + public void testDifferentPositions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/differentPositions.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/annotations/repeatable") + @TestDataPath("$PROJECT_ROOT") + public class Repeatable { + @Test + public void testAllFilesPresentInRepeatable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaAnnotation.kt") + public void testJavaAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/javaAnnotation.kt"); + } + + @Test + @TestMetadata("jvmRepeatableKotlinAnnotation.kt") + public void testJvmRepeatableKotlinAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/jvmRepeatableKotlinAnnotation.kt"); + } + + @Test + @TestMetadata("kotlinAnnotation.kt") + public void testKotlinAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/kotlinAnnotation.kt"); + } + + @Test + @TestMetadata("kotlinAnnotationOnType.kt") + public void testKotlinAnnotationOnType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/kotlinAnnotationOnType.kt"); + } + + @Test + @TestMetadata("kt49335.kt") + public void testKt49335() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/kt49335.kt"); + } + + @Test + @TestMetadata("kt53279_explicitContainer.kt") + public void testKt53279_explicitContainer() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/kt53279_explicitContainer.kt"); + } + + @Test + @TestMetadata("kt53279_implicitContainer.kt") + public void testKt53279_implicitContainer() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/kt53279_implicitContainer.kt"); + } + + @Test + @TestMetadata("nonRepeatedAnnotationWithItsContainer.kt") + public void testNonRepeatedAnnotationWithItsContainer() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/nonRepeatedAnnotationWithItsContainer.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/builtins") + @TestDataPath("$PROJECT_ROOT") + public class Builtins { + @Test + public void testAllFilesPresentInBuiltins() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/builtins"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("collections.kt") + public void testCollections() throws Exception { + runTest("compiler/testData/codegen/box/reflection/builtins/collections.kt"); + } + + @Test + @TestMetadata("enumNameOrdinal.kt") + public void testEnumNameOrdinal() throws Exception { + runTest("compiler/testData/codegen/box/reflection/builtins/enumNameOrdinal.kt"); + } + + @Test + @TestMetadata("stringLength.kt") + public void testStringLength() throws Exception { + runTest("compiler/testData/codegen/box/reflection/builtins/stringLength.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/call") + @TestDataPath("$PROJECT_ROOT") + public class Call { + @Test + public void testAllFilesPresentInCall() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bigArity.kt") + public void testBigArity() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bigArity.kt"); + } + + @Test + @TestMetadata("callInstanceJavaMethod.kt") + public void testCallInstanceJavaMethod() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/callInstanceJavaMethod.kt"); + } + + @Test + @TestMetadata("callPrivateJavaMethod.kt") + public void testCallPrivateJavaMethod() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/callPrivateJavaMethod.kt"); + } + + @Test + @TestMetadata("callStaticJavaMethod.kt") + public void testCallStaticJavaMethod() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/callStaticJavaMethod.kt"); + } + + @Test + @TestMetadata("cannotCallEnumConstructor.kt") + public void testCannotCallEnumConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/cannotCallEnumConstructor.kt"); + } + + @Test + @TestMetadata("disallowNullValueForNotNullField.kt") + public void testDisallowNullValueForNotNullField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/disallowNullValueForNotNullField.kt"); + } + + @Test + @TestMetadata("equalsHashCodeToString.kt") + public void testEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/equalsHashCodeToString.kt"); + } + + @Test + @TestMetadata("exceptionHappened.kt") + public void testExceptionHappened() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/exceptionHappened.kt"); + } + + @Test + @TestMetadata("fakeOverride.kt") + public void testFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/fakeOverride.kt"); + } + + @Test + @TestMetadata("fakeOverrideSubstituted.kt") + public void testFakeOverrideSubstituted() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/fakeOverrideSubstituted.kt"); + } + + @Test + @TestMetadata("incorrectNumberOfArguments.kt") + public void testIncorrectNumberOfArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/incorrectNumberOfArguments.kt"); + } + + @Test + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/innerClassConstructor.kt"); + } + + @Test + @TestMetadata("jvmStatic.kt") + public void testJvmStatic() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/jvmStatic.kt"); + } + + @Test + @TestMetadata("jvmStaticInObjectIncorrectReceiver.kt") + public void testJvmStaticInObjectIncorrectReceiver() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/jvmStaticInObjectIncorrectReceiver.kt"); + } + + @Test + @TestMetadata("localClassMember.kt") + public void testLocalClassMember() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/localClassMember.kt"); + } + + @Test + @TestMetadata("memberOfGenericClass.kt") + public void testMemberOfGenericClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/memberOfGenericClass.kt"); + } + + @Test + @TestMetadata("privateProperty.kt") + public void testPrivateProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/privateProperty.kt"); + } + + @Test + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/propertyAccessors.kt"); + } + + @Test + @TestMetadata("propertyGetterAndGetFunctionDifferentReturnType.kt") + public void testPropertyGetterAndGetFunctionDifferentReturnType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/propertyGetterAndGetFunctionDifferentReturnType.kt"); + } + + @Test + @TestMetadata("protectedMembers.kt") + public void testProtectedMembers() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/protectedMembers.kt"); + } + + @Test + @TestMetadata("returnUnit.kt") + public void testReturnUnit() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/returnUnit.kt"); + } + + @Test + @TestMetadata("simpleConstructor.kt") + public void testSimpleConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/simpleConstructor.kt"); + } + + @Test + @TestMetadata("simpleMemberFunction.kt") + public void testSimpleMemberFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/simpleMemberFunction.kt"); + } + + @Test + @TestMetadata("simpleTopLevelFunctions.kt") + public void testSimpleTopLevelFunctions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/simpleTopLevelFunctions.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/call/bound") + @TestDataPath("$PROJECT_ROOT") + public class Bound { + @Test + public void testAllFilesPresentInBound() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("companionObjectPropertyAccessors.kt") + public void testCompanionObjectPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/companionObjectPropertyAccessors.kt"); + } + + @Test + @TestMetadata("extensionFunction.kt") + public void testExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/extensionFunction.kt"); + } + + @Test + @TestMetadata("extensionPropertyAccessors.kt") + public void testExtensionPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/extensionPropertyAccessors.kt"); + } + + @Test + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/innerClassConstructor.kt"); + } + + @Test + @TestMetadata("javaInstanceField.kt") + public void testJavaInstanceField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/javaInstanceField.kt"); + } + + @Test + @TestMetadata("javaInstanceMethod.kt") + public void testJavaInstanceMethod() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/javaInstanceMethod.kt"); + } + + @Test + @TestMetadata("jvmStaticCompanionObjectPropertyAccessors.kt") + public void testJvmStaticCompanionObjectPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/jvmStaticCompanionObjectPropertyAccessors.kt"); + } + + @Test + @TestMetadata("jvmStaticObjectFunction.kt") + public void testJvmStaticObjectFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/jvmStaticObjectFunction.kt"); + } + + @Test + @TestMetadata("jvmStaticObjectPropertyAccessors.kt") + public void testJvmStaticObjectPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/jvmStaticObjectPropertyAccessors.kt"); + } + + @Test + @TestMetadata("memberFunction.kt") + public void testMemberFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/memberFunction.kt"); + } + + @Test + @TestMetadata("memberPropertyAccessors.kt") + public void testMemberPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/memberPropertyAccessors.kt"); + } + + @Test + @TestMetadata("objectFunction.kt") + public void testObjectFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/objectFunction.kt"); + } + + @Test + @TestMetadata("objectPropertyAccessors.kt") + public void testObjectPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/objectPropertyAccessors.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + public class InlineClasses { + @Test + public void testAllFilesPresentInInlineClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineClassConstructor.kt") + public void testInlineClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/inlineClassConstructor.kt"); + } + + @Test + @TestMetadata("internalPrimaryValOfInlineClass.kt") + public void testInternalPrimaryValOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/internalPrimaryValOfInlineClass.kt"); + } + + @Test + @TestMetadata("kt58887.kt") + public void testKt58887() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/kt58887.kt"); + } + + @Test + @TestMetadata("primaryValOfInlineClass.kt") + public void testPrimaryValOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt"); + } + + @Test + @TestMetadata("secondaryConstructorVisibilies.kt") + public void testSecondaryConstructorVisibilies() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/secondaryConstructorVisibilies.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("simpleConstructorWithInlineClassParameter.kt") + public void testSimpleConstructorWithInlineClassParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/simpleConstructorWithInlineClassParameter.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject") + @TestDataPath("$PROJECT_ROOT") + public class NonNullObject { + @Test + public void testAllFilesPresentInNonNullObject() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorWithInlineClassParameters.kt") + public void testConstructorWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/constructorWithInlineClassParameters.kt"); + } + + @Test + @TestMetadata("fieldAccessors.kt") + public void testFieldAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/fieldAccessors.kt"); + } + + @Test + @TestMetadata("functionsWithInlineClassParameters.kt") + public void testFunctionsWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/functionsWithInlineClassParameters.kt"); + } + + @Test + @TestMetadata("jvmStaticFieldInObject.kt") + public void testJvmStaticFieldInObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/jvmStaticFieldInObject.kt"); + } + + @Test + @TestMetadata("jvmStaticFunction.kt") + public void testJvmStaticFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/jvmStaticFunction.kt"); + } + + @Test + @TestMetadata("nonOverridingFunOfInlineClass.kt") + public void testNonOverridingFunOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/nonOverridingFunOfInlineClass.kt"); + } + + @Test + @TestMetadata("nonOverridingVarOfInlineClass.kt") + public void testNonOverridingVarOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/nonOverridingVarOfInlineClass.kt"); + } + + @Test + @TestMetadata("overridingFunOfInlineClass.kt") + public void testOverridingFunOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/overridingFunOfInlineClass.kt"); + } + + @Test + @TestMetadata("overridingVarOfInlineClass.kt") + public void testOverridingVarOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/overridingVarOfInlineClass.kt"); + } + + @Test + @TestMetadata("properties.kt") + public void testProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/properties.kt"); + } + + @Test + @TestMetadata("suspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/suspendFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject") + @TestDataPath("$PROJECT_ROOT") + public class NullableObject { + @Test + public void testAllFilesPresentInNullableObject() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorWithInlineClassParameters.kt") + public void testConstructorWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/constructorWithInlineClassParameters.kt"); + } + + @Test + @TestMetadata("fieldAccessors.kt") + public void testFieldAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/fieldAccessors.kt"); + } + + @Test + @TestMetadata("functionsWithInlineClassParameters.kt") + public void testFunctionsWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/functionsWithInlineClassParameters.kt"); + } + + @Test + @TestMetadata("jvmStaticFieldInObject.kt") + public void testJvmStaticFieldInObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/jvmStaticFieldInObject.kt"); + } + + @Test + @TestMetadata("jvmStaticFunction.kt") + public void testJvmStaticFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/jvmStaticFunction.kt"); + } + + @Test + @TestMetadata("nonOverridingFunOfInlineClass.kt") + public void testNonOverridingFunOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/nonOverridingFunOfInlineClass.kt"); + } + + @Test + @TestMetadata("nonOverridingVarOfInlineClass.kt") + public void testNonOverridingVarOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/nonOverridingVarOfInlineClass.kt"); + } + + @Test + @TestMetadata("overridingFunOfInlineClass.kt") + public void testOverridingFunOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/overridingFunOfInlineClass.kt"); + } + + @Test + @TestMetadata("overridingVarOfInlineClass.kt") + public void testOverridingVarOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/overridingVarOfInlineClass.kt"); + } + + @Test + @TestMetadata("properties.kt") + public void testProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/properties.kt"); + } + + @Test + @TestMetadata("suspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/suspendFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive") + @TestDataPath("$PROJECT_ROOT") + public class Primitive { + @Test + public void testAllFilesPresentInPrimitive() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorWithInlineClassParameters.kt") + public void testConstructorWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/constructorWithInlineClassParameters.kt"); + } + + @Test + @TestMetadata("fieldAccessors.kt") + public void testFieldAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/fieldAccessors.kt"); + } + + @Test + @TestMetadata("functionsWithInlineClassParameters.kt") + public void testFunctionsWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/functionsWithInlineClassParameters.kt"); + } + + @Test + @TestMetadata("jvmStaticFieldInObject.kt") + public void testJvmStaticFieldInObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/jvmStaticFieldInObject.kt"); + } + + @Test + @TestMetadata("jvmStaticFunction.kt") + public void testJvmStaticFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/jvmStaticFunction.kt"); + } + + @Test + @TestMetadata("nonOverridingFunOfInlineClass.kt") + public void testNonOverridingFunOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/nonOverridingFunOfInlineClass.kt"); + } + + @Test + @TestMetadata("nonOverridingVarOfInlineClass.kt") + public void testNonOverridingVarOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/nonOverridingVarOfInlineClass.kt"); + } + + @Test + @TestMetadata("overridingFunOfInlineClass.kt") + public void testOverridingFunOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/overridingFunOfInlineClass.kt"); + } + + @Test + @TestMetadata("overridingVarOfInlineClass.kt") + public void testOverridingVarOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/overridingVarOfInlineClass.kt"); + } + + @Test + @TestMetadata("properties.kt") + public void testProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/properties.kt"); + } + + @Test + @TestMetadata("suspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/suspendFunction.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/call/valueClasses") + @TestDataPath("$PROJECT_ROOT") + public class ValueClasses { + @Test + public void testAllFilesPresentInValueClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/valueClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorWithMfvcParameters.kt") + public void testConstructorWithMfvcParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/constructorWithMfvcParameters.kt"); + } + + @Test + @TestMetadata("fieldAccessors.kt") + public void testFieldAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/fieldAccessors.kt"); + } + + @Test + @TestMetadata("functionsWithMfvcParameters.kt") + public void testFunctionsWithMfvcParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/functionsWithMfvcParameters.kt"); + } + + @Test + @TestMetadata("internalPrimaryValOfMfvc.kt") + public void testInternalPrimaryValOfMfvc() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/internalPrimaryValOfMfvc.kt"); + } + + @Test + @TestMetadata("jvmStaticFieldInObject.kt") + public void testJvmStaticFieldInObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/jvmStaticFieldInObject.kt"); + } + + @Test + @TestMetadata("jvmStaticFunction.kt") + public void testJvmStaticFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/jvmStaticFunction.kt"); + } + + @Test + @TestMetadata("mfvcConstructor.kt") + public void testMfvcConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/mfvcConstructor.kt"); + } + + @Test + @TestMetadata("nonOverridingFunOfMfvc.kt") + public void testNonOverridingFunOfMfvc() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/nonOverridingFunOfMfvc.kt"); + } + + @Test + @TestMetadata("nonOverridingVarOfMfvc.kt") + public void testNonOverridingVarOfMfvc() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/nonOverridingVarOfMfvc.kt"); + } + + @Test + @TestMetadata("overridingFunOfMfvc.kt") + public void testOverridingFunOfMfvc() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/overridingFunOfMfvc.kt"); + } + + @Test + @TestMetadata("overridingVarOfMfvc.kt") + public void testOverridingVarOfMfvc() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/overridingVarOfMfvc.kt"); + } + + @Test + @TestMetadata("primaryValOfMfvc.kt") + public void testPrimaryValOfMfvc() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/primaryValOfMfvc.kt"); + } + + @Test + @TestMetadata("properties.kt") + public void testProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/properties.kt"); + } + + @Test + @TestMetadata("secondaryConstructorVisibilies.kt") + public void testSecondaryConstructorVisibilies() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/secondaryConstructorVisibilies.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("suspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/valueClasses/suspendFunction.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/callBy") + @TestDataPath("$PROJECT_ROOT") + public class CallBy { + @Test + public void testAllFilesPresentInCallBy() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/callBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boundExtensionFunction.kt") + public void testBoundExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/boundExtensionFunction.kt"); + } + + @Test + @TestMetadata("boundExtensionPropertyAcessor.kt") + public void testBoundExtensionPropertyAcessor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/boundExtensionPropertyAcessor.kt"); + } + + @Test + @TestMetadata("boundJvmStaticInObject.kt") + public void testBoundJvmStaticInObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/boundJvmStaticInObject.kt"); + } + + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/companionObject.kt"); + } + + @Test + @TestMetadata("defaultAndNonDefaultIntertwined.kt") + public void testDefaultAndNonDefaultIntertwined() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/defaultAndNonDefaultIntertwined.kt"); + } + + @Test + @TestMetadata("defaultInSuperClass.kt") + public void testDefaultInSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/defaultInSuperClass.kt"); + } + + @Test + @TestMetadata("defaultInSuperInterface.kt") + public void testDefaultInSuperInterface() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/defaultInSuperInterface.kt"); + } + + @Test + @TestMetadata("emptyVarArg.kt") + public void testEmptyVarArg() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/emptyVarArg.kt"); + } + + @Test + @TestMetadata("extensionFunction.kt") + public void testExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/extensionFunction.kt"); + } + + @Test + @TestMetadata("inlineClassDefaultArguments.kt") + public void testInlineClassDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/inlineClassDefaultArguments.kt"); + } + + @Test + @TestMetadata("inlineClassFunctionsAndConstructors.kt") + public void testInlineClassFunctionsAndConstructors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/inlineClassFunctionsAndConstructors.kt"); + } + + @Test + @TestMetadata("inlineClassMembers.kt") + public void testInlineClassMembers() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/inlineClassMembers.kt"); + } + + @Test + @TestMetadata("jvmStaticInCompanionObject.kt") + public void testJvmStaticInCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/jvmStaticInCompanionObject.kt"); + } + + @Test + @TestMetadata("jvmStaticInObject.kt") + public void testJvmStaticInObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/jvmStaticInObject.kt"); + } + + @Test + @TestMetadata("kt60709.kt") + public void testKt60709() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/kt60709.kt"); + } + + @Test + @TestMetadata("kt61304.kt") + public void testKt61304() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/kt61304.kt"); + } + + @Test + @TestMetadata("manyArgumentsNoneDefaultConstructor.kt") + public void testManyArgumentsNoneDefaultConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/manyArgumentsNoneDefaultConstructor.kt"); + } + + @Test + @TestMetadata("manyArgumentsNoneDefaultFunction.kt") + public void testManyArgumentsNoneDefaultFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/manyArgumentsNoneDefaultFunction.kt"); + } + + @Test + @TestMetadata("manyArgumentsOnlyOneDefault.kt") + public void testManyArgumentsOnlyOneDefault() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/manyArgumentsOnlyOneDefault.kt"); + } + + @Test + @TestMetadata("manyMaskArguments.kt") + public void testManyMaskArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/manyMaskArguments.kt"); + } + + @Test + @TestMetadata("mfvcDefaultArguments.kt") + public void testMfvcDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/mfvcDefaultArguments.kt"); + } + + @Test + @TestMetadata("mfvcFunctionsAndConstructors.kt") + public void testMfvcFunctionsAndConstructors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/mfvcFunctionsAndConstructors.kt"); + } + + @Test + @TestMetadata("mfvcKt61304.kt") + public void testMfvcKt61304() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/mfvcKt61304.kt"); + } + + @Test + @TestMetadata("mfvcMembers.kt") + public void testMfvcMembers() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/mfvcMembers.kt"); + } + + @Test + @TestMetadata("nonDefaultParameterOmitted.kt") + public void testNonDefaultParameterOmitted() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/nonDefaultParameterOmitted.kt"); + } + + @Test + @TestMetadata("nullValue.kt") + public void testNullValue() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/nullValue.kt"); + } + + @Test + @TestMetadata("ordinaryMethodIsInvokedWhenNoDefaultValuesAreUsed.kt") + public void testOrdinaryMethodIsInvokedWhenNoDefaultValuesAreUsed() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/ordinaryMethodIsInvokedWhenNoDefaultValuesAreUsed.kt"); + } + + @Test + @TestMetadata("primitiveDefaultValues.kt") + public void testPrimitiveDefaultValues() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/primitiveDefaultValues.kt"); + } + + @Test + @TestMetadata("privateMemberFunction.kt") + public void testPrivateMemberFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/privateMemberFunction.kt"); + } + + @Test + @TestMetadata("simpleConstructor.kt") + public void testSimpleConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/simpleConstructor.kt"); + } + + @Test + @TestMetadata("simpleMemberFunciton.kt") + public void testSimpleMemberFunciton() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/simpleMemberFunciton.kt"); + } + + @Test + @TestMetadata("simpleTopLevelFunction.kt") + public void testSimpleTopLevelFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/simpleTopLevelFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/classLiterals") + @TestDataPath("$PROJECT_ROOT") + public class ClassLiterals { + @Test + public void testAllFilesPresentInClassLiterals() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/classLiterals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationClassLiteral.kt") + public void testAnnotationClassLiteral() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/annotationClassLiteral.kt"); + } + + @Test + @TestMetadata("arrays.kt") + public void testArrays() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/arrays.kt"); + } + + @Test + @TestMetadata("bareArray.kt") + public void testBareArray() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/bareArray.kt"); + } + + @Test + @TestMetadata("builtinClassLiterals.kt") + public void testBuiltinClassLiterals() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/builtinClassLiterals.kt"); + } + + @Test + @TestMetadata("genericArrays.kt") + public void testGenericArrays() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/genericArrays.kt"); + } + + @Test + @TestMetadata("genericClass.kt") + public void testGenericClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/genericClass.kt"); + } + + @Test + @TestMetadata("javaClassLiteral.kt") + public void testJavaClassLiteral() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/javaClassLiteral.kt"); + } + + @Test + @TestMetadata("lambdaClass.kt") + public void testLambdaClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/lambdaClass.kt"); + } + + @Test + @TestMetadata("reifiedTypeClassLiteral.kt") + public void testReifiedTypeClassLiteral() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/reifiedTypeClassLiteral.kt"); + } + + @Test + @TestMetadata("simpleClassLiteral.kt") + public void testSimpleClassLiteral() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/simpleClassLiteral.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/classes") + @TestDataPath("$PROJECT_ROOT") + public class Classes { + @Test + public void testAllFilesPresentInClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classSimpleName.kt") + public void testClassSimpleName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/classSimpleName.kt"); + } + + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/companionObject.kt"); + } + + @Test + @TestMetadata("createInstance.kt") + public void testCreateInstance() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/createInstance.kt"); + } + + @Test + @TestMetadata("declaredMembers.kt") + public void testDeclaredMembers() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/declaredMembers.kt"); + } + + @Test + @TestMetadata("javaVoid.kt") + public void testJavaVoid() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/javaVoid.kt"); + } + + @Test + @TestMetadata("jvmName.kt") + public void testJvmName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/jvmName.kt"); + } + + @Test + @TestMetadata("jvmNameOfStandardClasses.kt") + public void testJvmNameOfStandardClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/jvmNameOfStandardClasses.kt"); + } + + @Test + @TestMetadata("localClassSimpleName.kt") + public void testLocalClassSimpleName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/localClassSimpleName.kt"); + } + + @Test + @TestMetadata("nestedClasses.kt") + public void testNestedClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/nestedClasses.kt"); + } + + @Test + @TestMetadata("nestedClassesInScript.kt") + public void testNestedClassesInScript() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/nestedClassesInScript.kt"); + } + + @Test + @TestMetadata("nestedClassesJava.kt") + public void testNestedClassesJava() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/nestedClassesJava.kt"); + } + + @Test + @TestMetadata("objectInstance.kt") + public void testObjectInstance() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/objectInstance.kt"); + } + + @Test + @TestMetadata("primitiveKClassEquality.kt") + public void testPrimitiveKClassEquality() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/primitiveKClassEquality.kt"); + } + + @Test + @TestMetadata("qualifiedName.kt") + public void testQualifiedName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/qualifiedName.kt"); + } + + @Test + @TestMetadata("qualifiedNameOfStandardClasses.kt") + public void testQualifiedNameOfStandardClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/qualifiedNameOfStandardClasses.kt"); + } + + @Test + @TestMetadata("sealedSubclasses.kt") + public void testSealedSubclasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/sealedSubclasses.kt"); + } + + @Test + @TestMetadata("starProjectedType.kt") + public void testStarProjectedType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/starProjectedType.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/constructors") + @TestDataPath("$PROJECT_ROOT") + public class Constructors { + @Test + public void testAllFilesPresentInConstructors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/constructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationClass.kt") + public void testAnnotationClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/constructors/annotationClass.kt"); + } + + @Test + @TestMetadata("classesWithoutConstructors.kt") + public void testClassesWithoutConstructors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/constructors/classesWithoutConstructors.kt"); + } + + @Test + @TestMetadata("constructorName.kt") + public void testConstructorName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/constructors/constructorName.kt"); + } + + @Test + @TestMetadata("enumEntry.kt") + public void testEnumEntry() throws Exception { + runTest("compiler/testData/codegen/box/reflection/constructors/enumEntry.kt"); + } + + @Test + @TestMetadata("primaryConstructor.kt") + public void testPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/constructors/primaryConstructor.kt"); + } + + @Test + @TestMetadata("simpleGetConstructors.kt") + public void testSimpleGetConstructors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/constructors/simpleGetConstructors.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/createAnnotation") + @TestDataPath("$PROJECT_ROOT") + public class CreateAnnotation { + @Test + public void testAllFilesPresentInCreateAnnotation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/createAnnotation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationType.kt") + public void testAnnotationType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/annotationType.kt"); + } + + @Test + @TestMetadata("arrayOfKClasses.kt") + public void testArrayOfKClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/arrayOfKClasses.kt"); + } + + @Test + @TestMetadata("callByJava.kt") + public void testCallByJava() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/callByJava.kt"); + } + + @Test + @TestMetadata("callByKotlin.kt") + public void testCallByKotlin() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/callByKotlin.kt"); + } + + @Test + @TestMetadata("callByWithEmptyVarArg.kt") + public void testCallByWithEmptyVarArg() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/callByWithEmptyVarArg.kt"); + } + + @Test + @TestMetadata("callJava.kt") + public void testCallJava() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/callJava.kt"); + } + + @Test + @TestMetadata("callKotlin.kt") + public void testCallKotlin() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/callKotlin.kt"); + } + + @Test + @TestMetadata("createJdkAnnotationInstance.kt") + public void testCreateJdkAnnotationInstance() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/createJdkAnnotationInstance.kt"); + } + + @Test + @TestMetadata("enumKClassAnnotation.kt") + public void testEnumKClassAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/enumKClassAnnotation.kt"); + } + + @Test + @TestMetadata("equalsHashCodeToString.kt") + public void testEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/equalsHashCodeToString.kt"); + } + + @Test + @TestMetadata("floatingPointParameters.kt") + public void testFloatingPointParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/floatingPointParameters.kt"); + } + + @Test + @TestMetadata("parameterNamedEquals.kt") + public void testParameterNamedEquals() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/parameterNamedEquals.kt"); + } + + @Test + @TestMetadata("primitivesAndArrays.kt") + public void testPrimitivesAndArrays() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/primitivesAndArrays.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/enclosing") + @TestDataPath("$PROJECT_ROOT") + public class Enclosing { + @Test + public void testAllFilesPresentInEnclosing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/enclosing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectInInlinedLambda.kt") + public void testAnonymousObjectInInlinedLambda() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/anonymousObjectInInlinedLambda.kt"); + } + + @Test + @TestMetadata("classInLambda.kt") + public void testClassInLambda() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/classInLambda.kt"); + } + + @Test + @TestMetadata("functionExpressionInProperty.kt") + public void testFunctionExpressionInProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/functionExpressionInProperty.kt"); + } + + @Test + @TestMetadata("kt11969.kt") + public void testKt11969() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/kt11969.kt"); + } + + @Test + @TestMetadata("kt45907.kt") + public void testKt45907() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/kt45907.kt"); + } + + @Test + @TestMetadata("kt6368.kt") + public void testKt6368() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/kt6368.kt"); + } + + @Test + @TestMetadata("kt6691_lambdaInSamConstructor.kt") + public void testKt6691_lambdaInSamConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/kt6691_lambdaInSamConstructor.kt"); + } + + @Test + @TestMetadata("lambdaInClassObject.kt") + public void testLambdaInClassObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInClassObject.kt"); + } + + @Test + @TestMetadata("lambdaInConstructor.kt") + public void testLambdaInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInConstructor.kt"); + } + + @Test + @TestMetadata("lambdaInFunction.kt") + public void testLambdaInFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInFunction.kt"); + } + + @Test + @TestMetadata("lambdaInLambda.kt") + public void testLambdaInLambda() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInLambda.kt"); + } + + @Test + @TestMetadata("lambdaInLocalClassConstructor.kt") + public void testLambdaInLocalClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInLocalClassConstructor.kt"); + } + + @Test + @TestMetadata("lambdaInLocalClassSuperCall.kt") + public void testLambdaInLocalClassSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInLocalClassSuperCall.kt"); + } + + @Test + @TestMetadata("lambdaInLocalFunction.kt") + public void testLambdaInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInLocalFunction.kt"); + } + + @Test + @TestMetadata("lambdaInMemberFunction.kt") + public void testLambdaInMemberFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInMemberFunction.kt"); + } + + @Test + @TestMetadata("lambdaInMemberFunctionInLocalClass.kt") + public void testLambdaInMemberFunctionInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInMemberFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("lambdaInMemberFunctionInNestedClass.kt") + public void testLambdaInMemberFunctionInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInMemberFunctionInNestedClass.kt"); + } + + @Test + @TestMetadata("lambdaInObjectDeclaration.kt") + public void testLambdaInObjectDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInObjectDeclaration.kt"); + } + + @Test + @TestMetadata("lambdaInObjectExpression.kt") + public void testLambdaInObjectExpression() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInObjectExpression.kt"); + } + + @Test + @TestMetadata("lambdaInObjectLiteralSuperCall.kt") + public void testLambdaInObjectLiteralSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInObjectLiteralSuperCall.kt"); + } + + @Test + @TestMetadata("lambdaInPackage.kt") + public void testLambdaInPackage() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInPackage.kt"); + } + + @Test + @TestMetadata("lambdaInPropertyDelegate.kt") + public void testLambdaInPropertyDelegate() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInPropertyDelegate.kt"); + } + + @Test + @TestMetadata("lambdaInPropertyGetter.kt") + public void testLambdaInPropertyGetter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInPropertyGetter.kt"); + } + + @Test + @TestMetadata("lambdaInPropertySetter.kt") + public void testLambdaInPropertySetter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInPropertySetter.kt"); + } + + @Test + @TestMetadata("localClassInTopLevelFunction.kt") + public void testLocalClassInTopLevelFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/localClassInTopLevelFunction.kt"); + } + + @Test + @TestMetadata("objectInLambda.kt") + public void testObjectInLambda() throws Exception { + runTest("compiler/testData/codegen/box/reflection/enclosing/objectInLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/functions") + @TestDataPath("$PROJECT_ROOT") + public class Functions { + @Test + public void testAllFilesPresentInFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("declaredVsInheritedFunctions.kt") + public void testDeclaredVsInheritedFunctions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/declaredVsInheritedFunctions.kt"); + } + + @Test + @TestMetadata("enumValuesValueOf.kt") + public void testEnumValuesValueOf() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/enumValuesValueOf.kt"); + } + + @Test + @TestMetadata("functionFromStdlib.kt") + public void testFunctionFromStdlib() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/functionFromStdlib.kt"); + } + + @Test + @TestMetadata("functionReferenceErasedToKFunction.kt") + public void testFunctionReferenceErasedToKFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/functionReferenceErasedToKFunction.kt"); + } + + @Test + @TestMetadata("genericOverriddenFunction.kt") + public void testGenericOverriddenFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/genericOverriddenFunction.kt"); + } + + @Test + @TestMetadata("instanceOfFunction.kt") + public void testInstanceOfFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/instanceOfFunction.kt"); + } + + @Test + @TestMetadata("isAccessibleOnAllMembers.kt") + public void testIsAccessibleOnAllMembers() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/isAccessibleOnAllMembers.kt"); + } + + @Test + @TestMetadata("javaClassGetFunctions.kt") + public void testJavaClassGetFunctions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/javaClassGetFunctions.kt"); + } + + @Test + @TestMetadata("javaMethodsSmokeTest.kt") + public void testJavaMethodsSmokeTest() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/javaMethodsSmokeTest.kt"); + } + + @Test + @TestMetadata("parentheses.kt") + public void testParentheses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/parentheses.kt"); + } + + @Test + @TestMetadata("platformName.kt") + public void testPlatformName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/platformName.kt"); + } + + @Test + @TestMetadata("privateMemberFunction.kt") + public void testPrivateMemberFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/privateMemberFunction.kt"); + } + + @Test + @TestMetadata("simpleGetFunctions.kt") + public void testSimpleGetFunctions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/simpleGetFunctions.kt"); + } + + @Test + @TestMetadata("simpleNames.kt") + public void testSimpleNames() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/simpleNames.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/genericSignature") + @TestDataPath("$PROJECT_ROOT") + public class GenericSignature { + @Test + public void testAllFilesPresentInGenericSignature() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/genericSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("covariantOverride.kt") + public void testCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/covariantOverride.kt"); + } + + @Test + @TestMetadata("defaultImplsGenericSignature.kt") + public void testDefaultImplsGenericSignature() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/defaultImplsGenericSignature.kt"); + } + + @Test + @TestMetadata("delegatedMembers.kt") + public void testDelegatedMembers() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/delegatedMembers.kt"); + } + + @Test + @TestMetadata("functionLiteralGenericSignature.kt") + public void testFunctionLiteralGenericSignature() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/functionLiteralGenericSignature.kt"); + } + + @Test + @TestMetadata("genericBackingFieldSignature.kt") + public void testGenericBackingFieldSignature() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/genericBackingFieldSignature.kt"); + } + + @Test + @TestMetadata("genericFunctionReferenceSignature.kt") + public void testGenericFunctionReferenceSignature() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/genericFunctionReferenceSignature.kt"); + } + + @Test + @TestMetadata("genericMethodSignature.kt") + public void testGenericMethodSignature() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/genericMethodSignature.kt"); + } + + @Test + @TestMetadata("kt11121.kt") + public void testKt11121() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/kt11121.kt"); + } + + @Test + @TestMetadata("kt5112.kt") + public void testKt5112() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/kt5112.kt"); + } + + @Test + @TestMetadata("kt6106.kt") + public void testKt6106() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/kt6106.kt"); + } + + @Test + @TestMetadata("samWrappedLambdaVsReference.kt") + public void testSamWrappedLambdaVsReference() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/samWrappedLambdaVsReference.kt"); + } + + @Test + @TestMetadata("signatureOfDeepGenericInner.kt") + public void testSignatureOfDeepGenericInner() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfDeepGenericInner.kt"); + } + + @Test + @TestMetadata("signatureOfDeepInner.kt") + public void testSignatureOfDeepInner() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfDeepInner.kt"); + } + + @Test + @TestMetadata("signatureOfDeepInnerLastGeneric.kt") + public void testSignatureOfDeepInnerLastGeneric() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfDeepInnerLastGeneric.kt"); + } + + @Test + @TestMetadata("signatureOfGenericInnerGenericOuter.kt") + public void testSignatureOfGenericInnerGenericOuter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfGenericInnerGenericOuter.kt"); + } + + @Test + @TestMetadata("signatureOfGenericInnerSimpleOuter.kt") + public void testSignatureOfGenericInnerSimpleOuter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfGenericInnerSimpleOuter.kt"); + } + + @Test + @TestMetadata("signatureOfSimpleInnerSimpleOuter.kt") + public void testSignatureOfSimpleInnerSimpleOuter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfSimpleInnerSimpleOuter.kt"); + } + + @Test + @TestMetadata("suspendFunctionLiteralGenericSignature.kt") + public void testSuspendFunctionLiteralGenericSignature() throws Exception { + runTest("compiler/testData/codegen/box/reflection/genericSignature/suspendFunctionLiteralGenericSignature.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/isInstance") + @TestDataPath("$PROJECT_ROOT") + public class IsInstance { + @Test + public void testAllFilesPresentInIsInstance() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/isInstance"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("isInstanceCastAndSafeCast.kt") + public void testIsInstanceCastAndSafeCast() throws Exception { + runTest("compiler/testData/codegen/box/reflection/isInstance/isInstanceCastAndSafeCast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/kClassInAnnotation") + @TestDataPath("$PROJECT_ROOT") + public class KClassInAnnotation { + @Test + public void testAllFilesPresentInKClassInAnnotation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/kClassInAnnotation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("array.kt") + public void testArray() throws Exception { + runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/array.kt"); + } + + @Test + @TestMetadata("arrayInJava.kt") + public void testArrayInJava() throws Exception { + runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/arrayInJava.kt"); + } + + @Test + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/basic.kt"); + } + + @Test + @TestMetadata("basicInJava.kt") + public void testBasicInJava() throws Exception { + runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/basicInJava.kt"); + } + + @Test + @TestMetadata("checkcast.kt") + public void testCheckcast() throws Exception { + runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/checkcast.kt"); + } + + @Test + @TestMetadata("forceWrapping.kt") + public void testForceWrapping() throws Exception { + runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/forceWrapping.kt"); + } + + @Test + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/vararg.kt"); + } + + @Test + @TestMetadata("varargInJava.kt") + public void testVarargInJava() throws Exception { + runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/varargInJava.kt"); + } + + @Test + @TestMetadata("wrappingForCallableReferences.kt") + public void testWrappingForCallableReferences() throws Exception { + runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/wrappingForCallableReferences.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/lambdaClasses") + @TestDataPath("$PROJECT_ROOT") + public class LambdaClasses { + @Test + public void testAllFilesPresentInLambdaClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/lambdaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lightweightLambdas.kt") + public void testLightweightLambdas() throws Exception { + runTest("compiler/testData/codegen/box/reflection/lambdaClasses/lightweightLambdas.kt"); + } + + @Test + @TestMetadata("parameterNamesAndNullability.kt") + public void testParameterNamesAndNullability() throws Exception { + runTest("compiler/testData/codegen/box/reflection/lambdaClasses/parameterNamesAndNullability.kt"); + } + + @Test + @TestMetadata("reflectOnDefaultWithInlineClassArgument.kt") + public void testReflectOnDefaultWithInlineClassArgument() throws Exception { + runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnDefaultWithInlineClassArgument.kt"); + } + + @Test + @TestMetadata("reflectOnDefaultWithMfvcArgument.kt") + public void testReflectOnDefaultWithMfvcArgument() throws Exception { + runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnDefaultWithMfvcArgument.kt"); + } + + @Test + @TestMetadata("reflectOnLambdaInArrayConstructor.kt") + public void testReflectOnLambdaInArrayConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInArrayConstructor.kt"); + } + + @Test + @TestMetadata("reflectOnLambdaInConstructor.kt") + public void testReflectOnLambdaInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInConstructor.kt"); + } + + @Test + @TestMetadata("reflectOnLambdaInField.kt") + public void testReflectOnLambdaInField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInField.kt"); + } + + @Test + @TestMetadata("reflectOnLambdaInStaticField.kt") + public void testReflectOnLambdaInStaticField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInStaticField.kt"); + } + + @Test + @TestMetadata("reflectOnLambdaInSuspend.kt") + public void testReflectOnLambdaInSuspend() throws Exception { + runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInSuspend.kt"); + } + + @Test + @TestMetadata("reflectOnLambdaInSuspendLambda.kt") + public void testReflectOnLambdaInSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInSuspendLambda.kt"); + } + + @Test + @TestMetadata("reflectOnSuspendLambdaInField.kt") + public void testReflectOnSuspendLambdaInField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnSuspendLambdaInField.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/localClasses") + @TestDataPath("$PROJECT_ROOT") + public class LocalClasses { + @Test + public void testAllFilesPresentInLocalClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/localClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("localClassesAndAnonymousObjects.kt") + public void testLocalClassesAndAnonymousObjects() throws Exception { + runTest("compiler/testData/codegen/box/reflection/localClasses/localClassesAndAnonymousObjects.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/mapping") + @TestDataPath("$PROJECT_ROOT") + public class Mapping { + @Test + public void testAllFilesPresentInMapping() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("companionObjectProperty.kt") + public void testCompanionObjectProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/companionObjectProperty.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/constructor.kt"); + } + + @Test + @TestMetadata("constructorWithInlineClassParameters.kt") + public void testConstructorWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/constructorWithInlineClassParameters.kt"); + } + + @Test + @TestMetadata("constructorWithMfvcParameters.kt") + public void testConstructorWithMfvcParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/constructorWithMfvcParameters.kt"); + } + + @Test + @TestMetadata("extensionProperty.kt") + public void testExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/extensionProperty.kt"); + } + + @Test + @TestMetadata("functions.kt") + public void testFunctions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/functions.kt"); + } + + @Test + @TestMetadata("inlineReifiedFun.kt") + public void testInlineReifiedFun() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/inlineReifiedFun.kt"); + } + + @Test + @TestMetadata("interfaceCompanionPropertyWithJvmField.kt") + public void testInterfaceCompanionPropertyWithJvmField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/interfaceCompanionPropertyWithJvmField.kt"); + } + + @Test + @TestMetadata("jClass2kClass.kt") + public void testJClass2kClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/jClass2kClass.kt"); + } + + @Test + @TestMetadata("javaConstructor.kt") + public void testJavaConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/javaConstructor.kt"); + } + + @Test + @TestMetadata("javaFields.kt") + public void testJavaFields() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/javaFields.kt"); + } + + @Test + @TestMetadata("javaMethods.kt") + public void testJavaMethods() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/javaMethods.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/lateinitProperty.kt"); + } + + @Test + @TestMetadata("mappedClassIsEqualToClassLiteral.kt") + public void testMappedClassIsEqualToClassLiteral() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/mappedClassIsEqualToClassLiteral.kt"); + } + + @Test + @TestMetadata("memberProperty.kt") + public void testMemberProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/memberProperty.kt"); + } + + @Test + @TestMetadata("methodsFromObject.kt") + public void testMethodsFromObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/methodsFromObject.kt"); + } + + @Test + @TestMetadata("methodsFromSuperInterface.kt") + public void testMethodsFromSuperInterface() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/methodsFromSuperInterface.kt"); + } + + @Test + @TestMetadata("nonTrivialFunctionNames.kt") + public void testNonTrivialFunctionNames() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/nonTrivialFunctionNames.kt"); + } + + @Test + @TestMetadata("nonTrivialPropertyNames.kt") + public void testNonTrivialPropertyNames() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/nonTrivialPropertyNames.kt"); + } + + @Test + @TestMetadata("openSuspendFun.kt") + public void testOpenSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/openSuspendFun.kt"); + } + + @Test + @TestMetadata("privateProperty.kt") + public void testPrivateProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/privateProperty.kt"); + } + + @Test + @TestMetadata("propertyAccessorsWithJvmName.kt") + public void testPropertyAccessorsWithJvmName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/propertyAccessorsWithJvmName.kt"); + } + + @Test + @TestMetadata("syntheticFields.kt") + public void testSyntheticFields() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/syntheticFields.kt"); + } + + @Test + @TestMetadata("topLevelFunctionOtherFile.kt") + public void testTopLevelFunctionOtherFile() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/topLevelFunctionOtherFile.kt"); + } + + @Test + @TestMetadata("topLevelProperty.kt") + public void testTopLevelProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/topLevelProperty.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/mapping/fakeOverrides") + @TestDataPath("$PROJECT_ROOT") + public class FakeOverrides { + @Test + public void testAllFilesPresentInFakeOverrides() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/fakeOverrides"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaFieldGetterSetter.kt") + public void testJavaFieldGetterSetter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaFieldGetterSetter.kt"); + } + + @Test + @TestMetadata("javaMethod.kt") + public void testJavaMethod() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaMethod.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/mapping/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + public class InlineClasses { + @Test + public void testAllFilesPresentInInlineClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineClassPrimaryVal.kt") + public void testInlineClassPrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/inlineClasses/inlineClassPrimaryVal.kt"); + } + + @Test + @TestMetadata("suspendFunctionWithInlineClassInSignature.kt") + public void testSuspendFunctionWithInlineClassInSignature() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/inlineClasses/suspendFunctionWithInlineClassInSignature.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/mapping/jvmStatic") + @TestDataPath("$PROJECT_ROOT") + public class JvmStatic { + @Test + public void testAllFilesPresentInJvmStatic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/jvmStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("companionObjectFunction.kt") + public void testCompanionObjectFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/jvmStatic/companionObjectFunction.kt"); + } + + @Test + @TestMetadata("objectFunction.kt") + public void testObjectFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/jvmStatic/objectFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/mapping/types") + @TestDataPath("$PROJECT_ROOT") + public class Types { + @Test + public void testAllFilesPresentInTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("allSupertypes.kt") + public void testAllSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/allSupertypes.kt"); + } + + @Test + @TestMetadata("annotationConstructorParameters.kt") + public void testAnnotationConstructorParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/annotationConstructorParameters.kt"); + } + + @Test + @TestMetadata("array.kt") + public void testArray() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/array.kt"); + } + + @Test + @TestMetadata("constructors.kt") + public void testConstructors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/constructors.kt"); + } + + @Test + @TestMetadata("createType.kt") + public void testCreateType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/createType.kt"); + } + + @Test + @TestMetadata("genericArrayElementType.kt") + public void testGenericArrayElementType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/genericArrayElementType.kt"); + } + + @Test + @TestMetadata("inlineClassInSignature.kt") + public void testInlineClassInSignature() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/inlineClassInSignature.kt"); + } + + @Test + @TestMetadata("inlineClassPrimaryVal.kt") + public void testInlineClassPrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/inlineClassPrimaryVal.kt"); + } + + @Test + @TestMetadata("innerGenericTypeArgument.kt") + public void testInnerGenericTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/innerGenericTypeArgument.kt"); + } + + @Test + @TestMetadata("memberFunctions.kt") + public void testMemberFunctions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/memberFunctions.kt"); + } + + @Test + @TestMetadata("mfvcInSignature.kt") + public void testMfvcInSignature() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/mfvcInSignature.kt"); + } + + @Test + @TestMetadata("mfvcPrimaryVal.kt") + public void testMfvcPrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/mfvcPrimaryVal.kt"); + } + + @Test + @TestMetadata("overrideAnyWithPrimitive.kt") + public void testOverrideAnyWithPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/overrideAnyWithPrimitive.kt"); + } + + @Test + @TestMetadata("parameterizedTypeArgument.kt") + public void testParameterizedTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/parameterizedTypeArgument.kt"); + } + + @Test + @TestMetadata("parameterizedTypes.kt") + public void testParameterizedTypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/parameterizedTypes.kt"); + } + + @Test + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/propertyAccessors.kt"); + } + + @Test + @TestMetadata("rawTypeArgument.kt") + public void testRawTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/rawTypeArgument.kt"); + } + + @Test + @TestMetadata("supertypes.kt") + public void testSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/supertypes.kt"); + } + + @Test + @TestMetadata("suspendFun.kt") + public void testSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/suspendFun.kt"); + } + + @Test + @TestMetadata("topLevelFunctions.kt") + public void testTopLevelFunctions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/topLevelFunctions.kt"); + } + + @Test + @TestMetadata("typeParameters.kt") + public void testTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/typeParameters.kt"); + } + + @Test + @TestMetadata("unit.kt") + public void testUnit() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/unit.kt"); + } + + @Test + @TestMetadata("withNullability.kt") + public void testWithNullability() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/types/withNullability.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/mapping/valueClasses") + @TestDataPath("$PROJECT_ROOT") + public class ValueClasses { + @Test + public void testAllFilesPresentInValueClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/valueClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("mfvcPrimaryVal.kt") + public void testMfvcPrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/valueClasses/mfvcPrimaryVal.kt"); + } + + @Test + @TestMetadata("suspendFunctionWithMfvcInSignature.kt") + public void testSuspendFunctionWithMfvcInSignature() throws Exception { + runTest("compiler/testData/codegen/box/reflection/mapping/valueClasses/suspendFunctionWithMfvcInSignature.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/methodsFromAny") + @TestDataPath("$PROJECT_ROOT") + public class MethodsFromAny { + @Test + @TestMetadata("adaptedCallableReferencesNotEqualToCallablesFromAPI.kt") + public void testAdaptedCallableReferencesNotEqualToCallablesFromAPI() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/adaptedCallableReferencesNotEqualToCallablesFromAPI.kt"); + } + + @Test + public void testAllFilesPresentInMethodsFromAny() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/methodsFromAny"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("builtinFunctionsToString.kt") + public void testBuiltinFunctionsToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/builtinFunctionsToString.kt"); + } + + @Test + @TestMetadata("callableReferencesEqualToCallablesFromAPI.kt") + public void testCallableReferencesEqualToCallablesFromAPI() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/callableReferencesEqualToCallablesFromAPI.kt"); + } + + @Test + @TestMetadata("classToString.kt") + public void testClassToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/classToString.kt"); + } + + @Test + @TestMetadata("extensionPropertyReceiverToString.kt") + public void testExtensionPropertyReceiverToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/extensionPropertyReceiverToString.kt"); + } + + @Test + @TestMetadata("fakeOverrideEqualsHashCode.kt") + public void testFakeOverrideEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/fakeOverrideEqualsHashCode.kt"); + } + + @Test + @TestMetadata("fakeOverrideToString.kt") + public void testFakeOverrideToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/fakeOverrideToString.kt"); + } + + @Test + @TestMetadata("fakeOverrideToString2.kt") + public void testFakeOverrideToString2() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/fakeOverrideToString2.kt"); + } + + @Test + @TestMetadata("functionEqualsHashCode.kt") + public void testFunctionEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/functionEqualsHashCode.kt"); + } + + @Test + @TestMetadata("functionFromStdlibMultiFileFacade.kt") + public void testFunctionFromStdlibMultiFileFacade() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/functionFromStdlibMultiFileFacade.kt"); + } + + @Test + @TestMetadata("functionFromStdlibSingleFileFacade.kt") + public void testFunctionFromStdlibSingleFileFacade() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/functionFromStdlibSingleFileFacade.kt"); + } + + @Test + @TestMetadata("functionToString.kt") + public void testFunctionToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/functionToString.kt"); + } + + @Test + @TestMetadata("memberExtensionToString.kt") + public void testMemberExtensionToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/memberExtensionToString.kt"); + } + + @Test + @TestMetadata("parametersEqualsHashCode.kt") + public void testParametersEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/parametersEqualsHashCode.kt"); + } + + @Test + @TestMetadata("parametersEqualsWithClearCaches.kt") + public void testParametersEqualsWithClearCaches() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/parametersEqualsWithClearCaches.kt"); + } + + @Test + @TestMetadata("parametersToString.kt") + public void testParametersToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/parametersToString.kt"); + } + + @Test + @TestMetadata("propertyAccessorEqualsHashCode.kt") + public void testPropertyAccessorEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/propertyAccessorEqualsHashCode.kt"); + } + + @Test + @TestMetadata("propertyEqualsHashCode.kt") + public void testPropertyEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/propertyEqualsHashCode.kt"); + } + + @Test + @TestMetadata("propertyToString.kt") + public void testPropertyToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/propertyToString.kt"); + } + + @Test + @TestMetadata("typeEqualsHashCode.kt") + public void testTypeEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeEqualsHashCode.kt"); + } + + @Test + @TestMetadata("typeParametersEqualsHashCode.kt") + public void testTypeParametersEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeParametersEqualsHashCode.kt"); + } + + @Test + @TestMetadata("typeParametersEqualsWithClearCaches.kt") + public void testTypeParametersEqualsWithClearCaches() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeParametersEqualsWithClearCaches.kt"); + } + + @Test + @TestMetadata("typeParametersToString.kt") + public void testTypeParametersToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeParametersToString.kt"); + } + + @Test + @TestMetadata("typeToString.kt") + public void testTypeToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeToString.kt"); + } + + @Test + @TestMetadata("typeToStringInnerGeneric.kt") + public void testTypeToStringInnerGeneric() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeToStringInnerGeneric.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/modifiers") + @TestDataPath("$PROJECT_ROOT") + public class Modifiers { + @Test + public void testAllFilesPresentInModifiers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/modifiers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callableModality.kt") + public void testCallableModality() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/callableModality.kt"); + } + + @Test + @TestMetadata("callableVisibility.kt") + public void testCallableVisibility() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/callableVisibility.kt"); + } + + @Test + @TestMetadata("classModality.kt") + public void testClassModality() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/classModality.kt"); + } + + @Test + @TestMetadata("classVisibility.kt") + public void testClassVisibility() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/classVisibility.kt"); + } + + @Test + @TestMetadata("classes.kt") + public void testClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/classes.kt"); + } + + @Test + @TestMetadata("functions.kt") + public void testFunctions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/functions.kt"); + } + + @Test + @TestMetadata("javaVisibility.kt") + public void testJavaVisibility() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/javaVisibility.kt"); + } + + @Test + @TestMetadata("mfvc.kt") + public void testMfvc() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/mfvc.kt"); + } + + @Test + @TestMetadata("properties.kt") + public void testProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/properties.kt"); + } + + @Test + @TestMetadata("typeParameters.kt") + public void testTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/typeParameters.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/multifileClasses") + @TestDataPath("$PROJECT_ROOT") + public class MultifileClasses { + @Test + public void testAllFilesPresentInMultifileClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callFunctionsInMultifileClass.kt") + public void testCallFunctionsInMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/multifileClasses/callFunctionsInMultifileClass.kt"); + } + + @Test + @TestMetadata("callPropertiesInMultifileClass.kt") + public void testCallPropertiesInMultifileClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/multifileClasses/callPropertiesInMultifileClass.kt"); + } + + @Test + @TestMetadata("javaFieldForVarAndConstVal.kt") + public void testJavaFieldForVarAndConstVal() throws Exception { + runTest("compiler/testData/codegen/box/reflection/multifileClasses/javaFieldForVarAndConstVal.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/noReflectAtRuntime") + @TestDataPath("$PROJECT_ROOT") + public class NoReflectAtRuntime { + @Test + public void testAllFilesPresentInNoReflectAtRuntime() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/noReflectAtRuntime"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaClass.kt") + public void testJavaClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/javaClass.kt"); + } + + @Test + @TestMetadata("javaVoid.kt") + public void testJavaVoid() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/javaVoid.kt"); + } + + @Test + @TestMetadata("primitiveJavaClass.kt") + public void testPrimitiveJavaClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/primitiveJavaClass.kt"); + } + + @Test + @TestMetadata("propertyGetSetName.kt") + public void testPropertyGetSetName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/propertyGetSetName.kt"); + } + + @Test + @TestMetadata("propertyInstanceof.kt") + public void testPropertyInstanceof() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/propertyInstanceof.kt"); + } + + @Test + @TestMetadata("reifiedTypeJavaClass.kt") + public void testReifiedTypeJavaClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/reifiedTypeJavaClass.kt"); + } + + @Test + @TestMetadata("simpleClassLiterals.kt") + public void testSimpleClassLiterals() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/simpleClassLiterals.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny") + @TestDataPath("$PROJECT_ROOT") + public class MethodsFromAny { + @Test + public void testAllFilesPresentInMethodsFromAny() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callableReferences.kt") + public void testCallableReferences() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/callableReferences.kt"); + } + + @Test + @TestMetadata("classReference.kt") + public void testClassReference() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/classReference.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/delegatedProperty.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/parameters") + @TestDataPath("$PROJECT_ROOT") + public class Parameters { + @Test + public void testAllFilesPresentInParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bigArity.kt") + public void testBigArity() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/bigArity.kt"); + } + + @Test + @TestMetadata("boundInnerClassConstructor.kt") + public void testBoundInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/boundInnerClassConstructor.kt"); + } + + @Test + @TestMetadata("boundObjectMemberReferences.kt") + public void testBoundObjectMemberReferences() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/boundObjectMemberReferences.kt"); + } + + @Test + @TestMetadata("boundReferences.kt") + public void testBoundReferences() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/boundReferences.kt"); + } + + @Test + @TestMetadata("findParameterByName.kt") + public void testFindParameterByName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/findParameterByName.kt"); + } + + @Test + @TestMetadata("functionParameterNameAndIndex.kt") + public void testFunctionParameterNameAndIndex() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/functionParameterNameAndIndex.kt"); + } + + @Test + @TestMetadata("instanceExtensionReceiverAndValueParameters.kt") + public void testInstanceExtensionReceiverAndValueParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/instanceExtensionReceiverAndValueParameters.kt"); + } + + @Test + @TestMetadata("instanceParameterOfFakeOverride.kt") + public void testInstanceParameterOfFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/instanceParameterOfFakeOverride.kt"); + } + + @Test + @TestMetadata("isMarkedNullable.kt") + public void testIsMarkedNullable() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/isMarkedNullable.kt"); + } + + @Test + @TestMetadata("isOptional.kt") + public void testIsOptional() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/isOptional.kt"); + } + + @Test + @TestMetadata("javaAnnotationConstructor.kt") + public void testJavaAnnotationConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/javaAnnotationConstructor.kt"); + } + + @Test + @TestMetadata("kinds.kt") + public void testKinds() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/kinds.kt"); + } + + @Test + @TestMetadata("propertySetter.kt") + public void testPropertySetter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/propertySetter.kt"); + } + + @Test + @TestMetadata("realParameterNames.kt") + public void testRealParameterNames() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/realParameterNames.kt"); + } + + @Test + @TestMetadata("synthesizedParameterNames.kt") + public void testSynthesizedParameterNames() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/synthesizedParameterNames.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/properties") + @TestDataPath("$PROJECT_ROOT") + public class Properties { + @Test + public void testAllFilesPresentInProperties() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("allVsDeclared.kt") + public void testAllVsDeclared() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/allVsDeclared.kt"); + } + + @Test + @TestMetadata("callPrivatePropertyFromGetProperties.kt") + public void testCallPrivatePropertyFromGetProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/callPrivatePropertyFromGetProperties.kt"); + } + + @Test + @TestMetadata("declaredVsInheritedProperties.kt") + public void testDeclaredVsInheritedProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/declaredVsInheritedProperties.kt"); + } + + @Test + @TestMetadata("equalsHashCodeToString.kt") + public void testEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/equalsHashCodeToString.kt"); + } + + @Test + @TestMetadata("fakeOverridesInSubclass.kt") + public void testFakeOverridesInSubclass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/fakeOverridesInSubclass.kt"); + } + + @Test + @TestMetadata("genericClassLiteralPropertyReceiverIsStar.kt") + public void testGenericClassLiteralPropertyReceiverIsStar() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/genericClassLiteralPropertyReceiverIsStar.kt"); + } + + @Test + @TestMetadata("genericOverriddenProperty.kt") + public void testGenericOverriddenProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/genericOverriddenProperty.kt"); + } + + @Test + @TestMetadata("genericProperty.kt") + public void testGenericProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/genericProperty.kt"); + } + + @Test + @TestMetadata("getExtensionPropertiesMutableVsReadonly.kt") + public void testGetExtensionPropertiesMutableVsReadonly() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getExtensionPropertiesMutableVsReadonly.kt"); + } + + @Test + @TestMetadata("getPropertiesMutableVsReadonly.kt") + public void testGetPropertiesMutableVsReadonly() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt"); + } + + @Test + @TestMetadata("interfaceDelegation.kt") + public void testInterfaceDelegation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/interfaceDelegation.kt"); + } + + @Test + @TestMetadata("invokeKProperty.kt") + public void testInvokeKProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/invokeKProperty.kt"); + } + + @Test + @TestMetadata("javaPropertyInheritedInKotlin.kt") + public void testJavaPropertyInheritedInKotlin() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/javaPropertyInheritedInKotlin.kt"); + } + + @Test + @TestMetadata("javaStaticField.kt") + public void testJavaStaticField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/javaStaticField.kt"); + } + + @Test + @TestMetadata("kotlinPropertyInheritedInJava.kt") + public void testKotlinPropertyInheritedInJava() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/kotlinPropertyInheritedInJava.kt"); + } + + @Test + @TestMetadata("memberAndMemberExtensionWithSameName.kt") + public void testMemberAndMemberExtensionWithSameName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/memberAndMemberExtensionWithSameName.kt"); + } + + @Test + @TestMetadata("mutatePrivateJavaInstanceField.kt") + public void testMutatePrivateJavaInstanceField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/mutatePrivateJavaInstanceField.kt"); + } + + @Test + @TestMetadata("mutatePrivateJavaStaticField.kt") + public void testMutatePrivateJavaStaticField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/mutatePrivateJavaStaticField.kt"); + } + + @Test + @TestMetadata("noConflictOnKotlinGetterAndJavaField.kt") + public void testNoConflictOnKotlinGetterAndJavaField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/noConflictOnKotlinGetterAndJavaField.kt"); + } + + @Test + @TestMetadata("privateClassVal.kt") + public void testPrivateClassVal() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/privateClassVal.kt"); + } + + @Test + @TestMetadata("privateClassVar.kt") + public void testPrivateClassVar() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/privateClassVar.kt"); + } + + @Test + @TestMetadata("privateFakeOverrideFromSuperclass.kt") + public void testPrivateFakeOverrideFromSuperclass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/privateFakeOverrideFromSuperclass.kt"); + } + + @Test + @TestMetadata("privateJvmStaticVarInObject.kt") + public void testPrivateJvmStaticVarInObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/privateJvmStaticVarInObject.kt"); + } + + @Test + @TestMetadata("privatePropertyCallIsAccessibleOnAccessors.kt") + public void testPrivatePropertyCallIsAccessibleOnAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/privatePropertyCallIsAccessibleOnAccessors.kt"); + } + + @Test + @TestMetadata("privateToThisAccessors.kt") + public void testPrivateToThisAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/privateToThisAccessors.kt"); + } + + @Test + @TestMetadata("propertyOfNestedClassAndArrayType.kt") + public void testPropertyOfNestedClassAndArrayType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/propertyOfNestedClassAndArrayType.kt"); + } + + @Test + @TestMetadata("propertyOrder.kt") + public void testPropertyOrder() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/propertyOrder.kt"); + } + + @Test + @TestMetadata("protectedClassVar.kt") + public void testProtectedClassVar() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/protectedClassVar.kt"); + } + + @Test + @TestMetadata("publicClassValAccessible.kt") + public void testPublicClassValAccessible() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/publicClassValAccessible.kt"); + } + + @Test + @TestMetadata("referenceToJavaFieldOfKotlinSubclass.kt") + public void testReferenceToJavaFieldOfKotlinSubclass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/referenceToJavaFieldOfKotlinSubclass.kt"); + } + + @Test + @TestMetadata("simpleGetProperties.kt") + public void testSimpleGetProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/simpleGetProperties.kt"); + } + + @Test + @TestMetadata("syntheticJavaProperty.kt") + public void testSyntheticJavaProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/syntheticJavaProperty.kt"); + } + + @Test + @TestMetadata("withLocalType.kt") + public void testWithLocalType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/withLocalType.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/properties/accessors") + @TestDataPath("$PROJECT_ROOT") + public class Accessors { + @Test + @TestMetadata("accessorNames.kt") + public void testAccessorNames() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/accessors/accessorNames.kt"); + } + + @Test + public void testAllFilesPresentInAccessors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/accessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("extensionPropertyAccessors.kt") + public void testExtensionPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/accessors/extensionPropertyAccessors.kt"); + } + + @Test + @TestMetadata("memberExtensions.kt") + public void testMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/accessors/memberExtensions.kt"); + } + + @Test + @TestMetadata("memberPropertyAccessors.kt") + public void testMemberPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/accessors/memberPropertyAccessors.kt"); + } + + @Test + @TestMetadata("topLevelPropertyAccessors.kt") + public void testTopLevelPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/accessors/topLevelPropertyAccessors.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/properties/getDelegate") + @TestDataPath("$PROJECT_ROOT") + public class GetDelegate { + @Test + public void testAllFilesPresentInGetDelegate() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/getDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("booleanPropertyNameStartsWithIs.kt") + public void testBooleanPropertyNameStartsWithIs() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/booleanPropertyNameStartsWithIs.kt"); + } + + @Test + @TestMetadata("boundExtensionProperty.kt") + public void testBoundExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/boundExtensionProperty.kt"); + } + + @Test + @TestMetadata("boundMemberProperty.kt") + public void testBoundMemberProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/boundMemberProperty.kt"); + } + + @Test + @TestMetadata("extensionProperty.kt") + public void testExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/extensionProperty.kt"); + } + + @Test + @TestMetadata("fakeOverride.kt") + public void testFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/fakeOverride.kt"); + } + + @Test + @TestMetadata("getExtensionDelegate.kt") + public void testGetExtensionDelegate() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/getExtensionDelegate.kt"); + } + + @Test + @TestMetadata("getExtensionDelegateForDelegatedToAnother.kt") + public void testGetExtensionDelegateForDelegatedToAnother() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/getExtensionDelegateForDelegatedToAnother.kt"); + } + + @Test + @TestMetadata("kPropertyForDelegatedProperty.kt") + public void testKPropertyForDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/kPropertyForDelegatedProperty.kt"); + } + + @Test + @TestMetadata("memberExtensionProperty.kt") + public void testMemberExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/memberExtensionProperty.kt"); + } + + @Test + @TestMetadata("memberProperty.kt") + public void testMemberProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/memberProperty.kt"); + } + + @Test + @TestMetadata("nameClashClassAndCompanion.kt") + public void testNameClashClassAndCompanion() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashClassAndCompanion.kt"); + } + + @Test + @TestMetadata("nameClashExtensionProperties.kt") + public void testNameClashExtensionProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashExtensionProperties.kt"); + } + + @Test + @TestMetadata("noSetAccessibleTrue.kt") + public void testNoSetAccessibleTrue() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/noSetAccessibleTrue.kt"); + } + + @Test + @TestMetadata("notDelegatedProperty.kt") + public void testNotDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/notDelegatedProperty.kt"); + } + + @Test + @TestMetadata("overrideDelegatedByDelegated.kt") + public void testOverrideDelegatedByDelegated() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/overrideDelegatedByDelegated.kt"); + } + + @Test + @TestMetadata("topLevelProperty.kt") + public void testTopLevelProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/topLevelProperty.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/properties/getDelegate/method") + @TestDataPath("$PROJECT_ROOT") + public class Method { + @Test + public void testAllFilesPresentInMethod() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/getDelegate/method"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("delegateMethodIsNonOverridable.kt") + public void testDelegateMethodIsNonOverridable() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateMethodIsNonOverridable.kt"); + } + + @Test + @TestMetadata("delegateToAnother.kt") + public void testDelegateToAnother() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToAnother.kt"); + } + + @Test + @TestMetadata("delegateToConst.kt") + public void testDelegateToConst() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToConst.kt"); + } + + @Test + @TestMetadata("delegateToConstProperty.kt") + public void testDelegateToConstProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToConstProperty.kt"); + } + + @Test + @TestMetadata("delegateToEnum.kt") + public void testDelegateToEnum() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToEnum.kt"); + } + + @Test + @TestMetadata("delegateToFinalObjectProperty.kt") + public void testDelegateToFinalObjectProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToFinalObjectProperty.kt"); + } + + @Test + @TestMetadata("delegateToFinalProperty.kt") + public void testDelegateToFinalProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToFinalProperty.kt"); + } + + @Test + @TestMetadata("delegateToSingleton.kt") + public void testDelegateToSingleton() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToSingleton.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/properties/jvmField") + @TestDataPath("$PROJECT_ROOT") + public class JvmField { + @Test + public void testAllFilesPresentInJvmField() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/jvmField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationCompanionWithAnnotation.kt") + public void testAnnotationCompanionWithAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/jvmField/annotationCompanionWithAnnotation.kt"); + } + + @Test + @TestMetadata("interfaceCompanion.kt") + public void testInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/jvmField/interfaceCompanion.kt"); + } + + @Test + @TestMetadata("interfaceCompanionWithAnnotation.kt") + public void testInterfaceCompanionWithAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/jvmField/interfaceCompanionWithAnnotation.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/properties/localDelegated") + @TestDataPath("$PROJECT_ROOT") + public class LocalDelegated { + @Test + public void testAllFilesPresentInLocalDelegated() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/localDelegated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultImpls.kt") + public void testDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/defaultImpls.kt"); + } + + @Test + @TestMetadata("inLambda.kt") + public void testInLambda() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/inLambda.kt"); + } + + @Test + @TestMetadata("inLambdaInInline.kt") + public void testInLambdaInInline() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/inLambdaInInline.kt"); + } + + @Test + @TestMetadata("inlineFun.kt") + public void testInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/inlineFun.kt"); + } + + @Test + @TestMetadata("localAndNonLocal.kt") + public void testLocalAndNonLocal() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/localAndNonLocal.kt"); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/localDelegatedProperty.kt"); + } + + @Test + @TestMetadata("multiFileClass.kt") + public void testMultiFileClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/multiFileClass.kt"); + } + + @Test + @TestMetadata("variableOfGenericType.kt") + public void testVariableOfGenericType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/variableOfGenericType.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/supertypes") + @TestDataPath("$PROJECT_ROOT") + public class Supertypes { + @Test + public void testAllFilesPresentInSupertypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/supertypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("builtInClassSupertypes.kt") + public void testBuiltInClassSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/supertypes/builtInClassSupertypes.kt"); + } + + @Test + @TestMetadata("genericSubstitution.kt") + public void testGenericSubstitution() throws Exception { + runTest("compiler/testData/codegen/box/reflection/supertypes/genericSubstitution.kt"); + } + + @Test + @TestMetadata("isSubclassOfIsSuperclassOf.kt") + public void testIsSubclassOfIsSuperclassOf() throws Exception { + runTest("compiler/testData/codegen/box/reflection/supertypes/isSubclassOfIsSuperclassOf.kt"); + } + + @Test + @TestMetadata("primitives.kt") + public void testPrimitives() throws Exception { + runTest("compiler/testData/codegen/box/reflection/supertypes/primitives.kt"); + } + + @Test + @TestMetadata("simpleSupertypes.kt") + public void testSimpleSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/supertypes/simpleSupertypes.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/syntheticClasses") + @TestDataPath("$PROJECT_ROOT") + public class SyntheticClasses { + @Test + public void testAllFilesPresentInSyntheticClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/syntheticClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("syntheticClasses.kt") + public void testSyntheticClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/syntheticClasses/syntheticClasses.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/typeOf") + @TestDataPath("$PROJECT_ROOT") + public class TypeOf { + @Test + public void testAllFilesPresentInTypeOf() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotatedType.kt") + public void testAnnotatedType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/annotatedType.kt"); + } + + @Test + @TestMetadata("arrayOfNullableReified.kt") + public void testArrayOfNullableReified() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/arrayOfNullableReified.kt"); + } + + @Test + @TestMetadata("caching.kt") + public void testCaching() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/caching.kt"); + } + + @Test + @TestMetadata("classes.kt") + public void testClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/classes.kt"); + } + + @Test + @TestMetadata("flexibleTypes_after.kt") + public void testFlexibleTypes_after() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/flexibleTypes_after.kt"); + } + + @Test + @TestMetadata("flexibleTypes_before.kt") + public void testFlexibleTypes_before() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/flexibleTypes_before.kt"); + } + + @Test + @TestMetadata("inlineClasses.kt") + public void testInlineClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/inlineClasses.kt"); + } + + @Test + @TestMetadata("intersectionType.kt") + public void testIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/intersectionType.kt"); + } + + @Test + @TestMetadata("manyTypeArguments.kt") + public void testManyTypeArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/manyTypeArguments.kt"); + } + + @Test + @TestMetadata("mfvc.kt") + public void testMfvc() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/mfvc.kt"); + } + + @Test + @TestMetadata("multipleLayers.kt") + public void testMultipleLayers() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/multipleLayers.kt"); + } + + @Test + @TestMetadata("mutableCollections_after.kt") + public void testMutableCollections_after() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/mutableCollections_after.kt"); + } + + @Test + @TestMetadata("mutableCollections_before.kt") + public void testMutableCollections_before() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/mutableCollections_before.kt"); + } + + @Test + @TestMetadata("nothing_after.kt") + public void testNothing_after() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nothing_after.kt"); + } + + @Test + @TestMetadata("nothing_before.kt") + public void testNothing_before() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nothing_before.kt"); + } + + @Test + @TestMetadata("primitiveJavaTypes.kt") + public void testPrimitiveJavaTypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/primitiveJavaTypes.kt"); + } + + @Test + @TestMetadata("rawTypes_after.kt") + public void testRawTypes_after() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/rawTypes_after.kt"); + } + + @Test + @TestMetadata("rawTypes_before.kt") + public void testRawTypes_before() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/rawTypes_before.kt"); + } + + @Test + @TestMetadata("reifiedAsNestedArgument.kt") + public void testReifiedAsNestedArgument() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/reifiedAsNestedArgument.kt"); + } + + @Test + @TestMetadata("typeOfCapturedStar.kt") + public void testTypeOfCapturedStar() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/typeOfCapturedStar.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/typeOf/js") + @TestDataPath("$PROJECT_ROOT") + public class Js { + @Test + public void testAllFilesPresentInJs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/typeOf/noReflect") + @TestDataPath("$PROJECT_ROOT") + public class NoReflect { + @Test + public void testAllFilesPresentInNoReflect() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/noReflect"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotatedType.kt") + public void testAnnotatedType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/annotatedType.kt"); + } + + @Test + @TestMetadata("classes.kt") + public void testClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/classes.kt"); + } + + @Test + @TestMetadata("flexibleTypes_after.kt") + public void testFlexibleTypes_after() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/flexibleTypes_after.kt"); + } + + @Test + @TestMetadata("flexibleTypes_before.kt") + public void testFlexibleTypes_before() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/flexibleTypes_before.kt"); + } + + @Test + @TestMetadata("inlineClasses.kt") + public void testInlineClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/inlineClasses.kt"); + } + + @Test + @TestMetadata("mfvc.kt") + public void testMfvc() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/mfvc.kt"); + } + + @Test + @TestMetadata("mutableCollections_after.kt") + public void testMutableCollections_after() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/mutableCollections_after.kt"); + } + + @Test + @TestMetadata("mutableCollections_before.kt") + public void testMutableCollections_before() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/mutableCollections_before.kt"); + } + + @Test + @TestMetadata("nothing_after.kt") + public void testNothing_after() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nothing_after.kt"); + } + + @Test + @TestMetadata("nothing_before.kt") + public void testNothing_before() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nothing_before.kt"); + } + + @Test + @TestMetadata("primitiveJavaTypes.kt") + public void testPrimitiveJavaTypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/primitiveJavaTypes.kt"); + } + + @Test + @TestMetadata("rawTypes_after.kt") + public void testRawTypes_after() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/rawTypes_after.kt"); + } + + @Test + @TestMetadata("rawTypes_before.kt") + public void testRawTypes_before() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/rawTypes_before.kt"); + } + + @Test + @TestMetadata("typeReferenceEqualsHashCode.kt") + public void testTypeReferenceEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/typeReferenceEqualsHashCode.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters") + @TestDataPath("$PROJECT_ROOT") + public class NonReifiedTypeParameters { + @Test + public void testAllFilesPresentInNonReifiedTypeParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultUpperBound.kt") + public void testDefaultUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/defaultUpperBound.kt"); + } + + @Test + @TestMetadata("equalsOnClassParameters.kt") + public void testEqualsOnClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/equalsOnClassParameters.kt"); + } + + @Test + @TestMetadata("equalsOnFunctionParameters.kt") + public void testEqualsOnFunctionParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/equalsOnFunctionParameters.kt"); + } + + @Test + @TestMetadata("innerGeneric.kt") + public void testInnerGeneric() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/innerGeneric.kt"); + } + + @Test + @TestMetadata("simpleClassParameter.kt") + public void testSimpleClassParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/simpleClassParameter.kt"); + } + + @Test + @TestMetadata("simpleFunctionParameter.kt") + public void testSimpleFunctionParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/simpleFunctionParameter.kt"); + } + + @Test + @TestMetadata("simplePropertyParameter.kt") + public void testSimplePropertyParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/simplePropertyParameter.kt"); + } + + @Test + @TestMetadata("typeParameterFlags.kt") + public void testTypeParameterFlags() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/typeParameterFlags.kt"); + } + + @Test + @TestMetadata("upperBoundUsesOuterClassParameter.kt") + public void testUpperBoundUsesOuterClassParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/upperBoundUsesOuterClassParameter.kt"); + } + + @Test + @TestMetadata("upperBounds.kt") + public void testUpperBounds() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/upperBounds.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters") + @TestDataPath("$PROJECT_ROOT") + public class NonReifiedTypeParameters { + @Test + public void testAllFilesPresentInNonReifiedTypeParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultUpperBound.kt") + public void testDefaultUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/defaultUpperBound.kt"); + } + + @Test + @TestMetadata("equalsOnClassParameters.kt") + public void testEqualsOnClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/equalsOnClassParameters.kt"); + } + + @Test + @TestMetadata("equalsOnClassParametersWithReflectAPI.kt") + public void testEqualsOnClassParametersWithReflectAPI() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/equalsOnClassParametersWithReflectAPI.kt"); + } + + @Test + @TestMetadata("equalsOnFunctionParameters.kt") + public void testEqualsOnFunctionParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/equalsOnFunctionParameters.kt"); + } + + @Test + @TestMetadata("innerGeneric.kt") + public void testInnerGeneric() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/innerGeneric.kt"); + } + + @Test + @TestMetadata("simpleClassParameter.kt") + public void testSimpleClassParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simpleClassParameter.kt"); + } + + @Test + @TestMetadata("simpleFunctionParameter.kt") + public void testSimpleFunctionParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simpleFunctionParameter.kt"); + } + + @Test + @TestMetadata("simplePropertyParameter.kt") + public void testSimplePropertyParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simplePropertyParameter.kt"); + } + + @Test + @TestMetadata("starProjectionInUpperBound.kt") + public void testStarProjectionInUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/starProjectionInUpperBound.kt"); + } + + @Test + @TestMetadata("typeParameterFlags.kt") + public void testTypeParameterFlags() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/typeParameterFlags.kt"); + } + + @Test + @TestMetadata("upperBoundUsesOuterClassParameter.kt") + public void testUpperBoundUsesOuterClassParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/upperBoundUsesOuterClassParameter.kt"); + } + + @Test + @TestMetadata("upperBounds.kt") + public void testUpperBounds() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/upperBounds.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/typeParameters") + @TestDataPath("$PROJECT_ROOT") + public class TypeParameters { + @Test + public void testAllFilesPresentInTypeParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("declarationSiteVariance.kt") + public void testDeclarationSiteVariance() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeParameters/declarationSiteVariance.kt"); + } + + @Test + @TestMetadata("innerGenericParameter.kt") + public void testInnerGenericParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeParameters/innerGenericParameter.kt"); + } + + @Test + @TestMetadata("javaGenericTypeConstructor.kt") + public void testJavaGenericTypeConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeParameters/javaGenericTypeConstructor.kt"); + } + + @Test + @TestMetadata("typeParametersAndNames.kt") + public void testTypeParametersAndNames() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeParameters/typeParametersAndNames.kt"); + } + + @Test + @TestMetadata("upperBounds.kt") + public void testUpperBounds() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeParameters/upperBounds.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/types") + @TestDataPath("$PROJECT_ROOT") + public class Types { + @Test + public void testAllFilesPresentInTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classifierIsClass.kt") + public void testClassifierIsClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/classifierIsClass.kt"); + } + + @Test + @TestMetadata("classifierIsTypeParameter.kt") + public void testClassifierIsTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/classifierIsTypeParameter.kt"); + } + + @Test + @TestMetadata("classifiersOfBuiltInTypes.kt") + public void testClassifiersOfBuiltInTypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/classifiersOfBuiltInTypes.kt"); + } + + @Test + @TestMetadata("equalsForClassAndTypeParameterWithSameFqName.kt") + public void testEqualsForClassAndTypeParameterWithSameFqName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/equalsForClassAndTypeParameterWithSameFqName.kt"); + } + + @Test + @TestMetadata("innerGenericArguments.kt") + public void testInnerGenericArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/innerGenericArguments.kt"); + } + + @Test + @TestMetadata("jvmErasureOfClass.kt") + public void testJvmErasureOfClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/jvmErasureOfClass.kt"); + } + + @Test + @TestMetadata("jvmErasureOfTypeParameter.kt") + public void testJvmErasureOfTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/jvmErasureOfTypeParameter.kt"); + } + + @Test + @TestMetadata("platformTypeClassifier.kt") + public void testPlatformTypeClassifier() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/platformTypeClassifier.kt"); + } + + @Test + @TestMetadata("platformTypeNotEqualToKotlinType.kt") + public void testPlatformTypeNotEqualToKotlinType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/platformTypeNotEqualToKotlinType.kt"); + } + + @Test + @TestMetadata("platformTypeToString.kt") + public void testPlatformTypeToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/platformTypeToString.kt"); + } + + @Test + @TestMetadata("typeArguments.kt") + public void testTypeArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/typeArguments.kt"); + } + + @Test + @TestMetadata("useSiteVariance.kt") + public void testUseSiteVariance() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/useSiteVariance.kt"); + } + + @Test + @TestMetadata("withNullability.kt") + public void testWithNullability() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/withNullability.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/types/createType") + @TestDataPath("$PROJECT_ROOT") + public class CreateType { + @Test + public void testAllFilesPresentInCreateType() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/types/createType"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("equality.kt") + public void testEquality() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/createType/equality.kt"); + } + + @Test + @TestMetadata("innerGeneric.kt") + public void testInnerGeneric() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/createType/innerGeneric.kt"); + } + + @Test + @TestMetadata("simpleCreateType.kt") + public void testSimpleCreateType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/createType/simpleCreateType.kt"); + } + + @Test + @TestMetadata("typeParameter.kt") + public void testTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/createType/typeParameter.kt"); + } + + @Test + @TestMetadata("wrongNumberOfArguments.kt") + public void testWrongNumberOfArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/createType/wrongNumberOfArguments.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reflection/types/subtyping") + @TestDataPath("$PROJECT_ROOT") + public class Subtyping { + @Test + public void testAllFilesPresentInSubtyping() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/types/subtyping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("platformType.kt") + public void testPlatformType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/subtyping/platformType.kt"); + } + + @Test + @TestMetadata("simpleGenericTypes.kt") + public void testSimpleGenericTypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/subtyping/simpleGenericTypes.kt"); + } + + @Test + @TestMetadata("simpleSubtypeSupertype.kt") + public void testSimpleSubtypeSupertype() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/subtyping/simpleSubtypeSupertype.kt"); + } + + @Test + @TestMetadata("typeProjection.kt") + public void testTypeProjection() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/subtyping/typeProjection.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/regressions") + @TestDataPath("$PROJECT_ROOT") + public class Regressions { + @Test + public void testAllFilesPresentInRegressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/regressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("approximateIntersectionType.kt") + public void testApproximateIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/regressions/approximateIntersectionType.kt"); + } + + @Test + @TestMetadata("approximationForDefinitelyNotNull.kt") + public void testApproximationForDefinitelyNotNull() throws Exception { + runTest("compiler/testData/codegen/box/regressions/approximationForDefinitelyNotNull.kt"); + } + + @Test + @TestMetadata("arrayLengthNPE.kt") + public void testArrayLengthNPE() throws Exception { + runTest("compiler/testData/codegen/box/regressions/arrayLengthNPE.kt"); + } + + @Test + @TestMetadata("collections.kt") + public void testCollections() throws Exception { + runTest("compiler/testData/codegen/box/regressions/collections.kt"); + } + + @Test + @TestMetadata("commonSupertypeContravariant.kt") + public void testCommonSupertypeContravariant() throws Exception { + runTest("compiler/testData/codegen/box/regressions/commonSupertypeContravariant.kt"); + } + + @Test + @TestMetadata("commonSupertypeContravariant2.kt") + public void testCommonSupertypeContravariant2() throws Exception { + runTest("compiler/testData/codegen/box/regressions/commonSupertypeContravariant2.kt"); + } + + @Test + @TestMetadata("dontCaptureTypesWithTypeVariables.kt") + public void testDontCaptureTypesWithTypeVariables() throws Exception { + runTest("compiler/testData/codegen/box/regressions/dontCaptureTypesWithTypeVariables.kt"); + } + + @Test + @TestMetadata("doubleMerge.kt") + public void testDoubleMerge() throws Exception { + runTest("compiler/testData/codegen/box/regressions/doubleMerge.kt"); + } + + @Test + @TestMetadata("floatMerge.kt") + public void testFloatMerge() throws Exception { + runTest("compiler/testData/codegen/box/regressions/floatMerge.kt"); + } + + @Test + @TestMetadata("functionLiteralAsLastExpressionInBlock.kt") + public void testFunctionLiteralAsLastExpressionInBlock() throws Exception { + runTest("compiler/testData/codegen/box/regressions/functionLiteralAsLastExpressionInBlock.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/codegen/box/regressions/generic.kt"); + } + + @Test + @TestMetadata("getGenericInterfaces.kt") + public void testGetGenericInterfaces() throws Exception { + runTest("compiler/testData/codegen/box/regressions/getGenericInterfaces.kt"); + } + + @Test + @TestMetadata("hashCodeNPE.kt") + public void testHashCodeNPE() throws Exception { + runTest("compiler/testData/codegen/box/regressions/hashCodeNPE.kt"); + } + + @Test + @TestMetadata("internalTopLevelOtherPackage.kt") + public void testInternalTopLevelOtherPackage() throws Exception { + runTest("compiler/testData/codegen/box/regressions/internalTopLevelOtherPackage.kt"); + } + + @Test + @TestMetadata("intersectionAsLastLambda.kt") + public void testIntersectionAsLastLambda() throws Exception { + runTest("compiler/testData/codegen/box/regressions/intersectionAsLastLambda.kt"); + } + + @Test + @TestMetadata("intersectionOfEqualTypes.kt") + public void testIntersectionOfEqualTypes() throws Exception { + runTest("compiler/testData/codegen/box/regressions/intersectionOfEqualTypes.kt"); + } + + @Test + @TestMetadata("kt10143.kt") + public void testKt10143() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt10143.kt"); + } + + @Test + @TestMetadata("kt10934.kt") + public void testKt10934() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt10934.kt"); + } + + @Test + @TestMetadata("Kt1149.kt") + public void testKt1149() throws Exception { + runTest("compiler/testData/codegen/box/regressions/Kt1149.kt"); + } + + @Test + @TestMetadata("kt1172.kt") + public void testKt1172() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1172.kt"); + } + + @Test + @TestMetadata("kt1202.kt") + public void testKt1202() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1202.kt"); + } + + @Test + @TestMetadata("kt13381.kt") + public void testKt13381() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt13381.kt"); + } + + @Test + @TestMetadata("kt1406.kt") + public void testKt1406() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1406.kt"); + } + + @Test + @TestMetadata("kt14447.kt") + public void testKt14447() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt14447.kt"); + } + + @Test + @TestMetadata("kt1515.kt") + public void testKt1515() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1515.kt"); + } + + @Test + @TestMetadata("kt15196.kt") + public void testKt15196() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt15196.kt"); + } + + @Test + @TestMetadata("kt1528.kt") + public void testKt1528() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1528.kt"); + } + + @Test + @TestMetadata("kt1568.kt") + public void testKt1568() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1568.kt"); + } + + @Test + @TestMetadata("Kt1619Test.kt") + public void testKt1619Test() throws Exception { + runTest("compiler/testData/codegen/box/regressions/Kt1619Test.kt"); + } + + @Test + @TestMetadata("kt1779.kt") + public void testKt1779() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1779.kt"); + } + + @Test + @TestMetadata("kt1800.kt") + public void testKt1800() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1800.kt"); + } + + @Test + @TestMetadata("kt1845.kt") + public void testKt1845() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1845.kt"); + } + + @Test + @TestMetadata("kt18779.kt") + public void testKt18779() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt18779.kt"); + } + + @Test + @TestMetadata("kt1932.kt") + public void testKt1932() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1932.kt"); + } + + @Test + @TestMetadata("kt2017.kt") + public void testKt2017() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2017.kt"); + } + + @Test + @TestMetadata("kt2060.kt") + public void testKt2060() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2060.kt"); + } + + @Test + @TestMetadata("kt2210.kt") + public void testKt2210() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2210.kt"); + } + + @Test + @TestMetadata("kt2246.kt") + public void testKt2246() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2246.kt"); + } + + @Test + @TestMetadata("kt2318.kt") + public void testKt2318() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2318.kt"); + } + + @Test + @TestMetadata("kt24913.kt") + public void testKt24913() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt24913.kt"); + } + + @Test + @TestMetadata("Kt2495Test.kt") + public void testKt2495Test() throws Exception { + runTest("compiler/testData/codegen/box/regressions/Kt2495Test.kt"); + } + + @Test + @TestMetadata("kt2509.kt") + public void testKt2509() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2509.kt"); + } + + @Test + @TestMetadata("kt2593.kt") + public void testKt2593() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2593.kt"); + } + + @Test + @TestMetadata("kt274.kt") + public void testKt274() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt274.kt"); + } + + @Test + @TestMetadata("kt3046.kt") + public void testKt3046() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3046.kt"); + } + + @Test + @TestMetadata("kt3107.kt") + public void testKt3107() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3107.kt"); + } + + @Test + @TestMetadata("kt32949.kt") + public void testKt32949() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt32949.kt"); + } + + @Test + @TestMetadata("kt33638.kt") + public void testKt33638() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt33638.kt"); + } + + @Test + @TestMetadata("kt3421.kt") + public void testKt3421() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3421.kt"); + } + + @Test + @TestMetadata("kt344.kt") + public void testKt344() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt344.kt"); + } + + @Test + @TestMetadata("kt3442.kt") + public void testKt3442() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3442.kt"); + } + + @Test + @TestMetadata("kt344Runnable.kt") + public void testKt344Runnable() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt344Runnable.kt"); + } + + @Test + @TestMetadata("kt3587.kt") + public void testKt3587() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3587.kt"); + } + + @Test + @TestMetadata("kt35914.kt") + public void testKt35914() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt35914.kt"); + } + + @Test + @TestMetadata("kt3850.kt") + public void testKt3850() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3850.kt"); + } + + @Test + @TestMetadata("kt3903.kt") + public void testKt3903() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3903.kt"); + } + + @Test + @TestMetadata("kt39088.kt") + public void testKt39088() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt39088.kt"); + } + + @Test + @TestMetadata("kt41357.kt") + public void testKt41357() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt41357.kt"); + } + + @Test + @TestMetadata("kt4142.kt") + public void testKt4142() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt4142.kt"); + } + + @Test + @TestMetadata("kt41806.kt") + public void testKt41806() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt41806.kt"); + } + + @Test + @TestMetadata("kt4259.kt") + public void testKt4259() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt4259.kt"); + } + + @Test + @TestMetadata("kt4262.kt") + public void testKt4262() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt4262.kt"); + } + + @Test + @TestMetadata("kt4281.kt") + public void testKt4281() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt4281.kt"); + } + + @Test + @TestMetadata("kt44993.kt") + public void testKt44993() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt44993.kt"); + } + + @Test + @TestMetadata("kt47279.kt") + public void testKt47279() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt47279.kt"); + } + + @Test + @TestMetadata("kt5056.kt") + public void testKt5056() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt5056.kt"); + } + + @Test + @TestMetadata("kt51171.kt") + public void testKt51171() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt51171.kt"); + } + + @Test + @TestMetadata("kt51265.kt") + public void testKt51265() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt51265.kt"); + } + + @Test + @TestMetadata("kt528.kt") + public void testKt528() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt528.kt"); + } + + @Test + @TestMetadata("kt529.kt") + public void testKt529() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt529.kt"); + } + + @Test + @TestMetadata("kt533.kt") + public void testKt533() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt533.kt"); + } + + @Test + @TestMetadata("kt5395.kt") + public void testKt5395() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt5395.kt"); + } + + @Test + @TestMetadata("kt5445.kt") + public void testKt5445() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt5445.kt"); + } + + @Test + @TestMetadata("kt5445_2.kt") + public void testKt5445_2() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt"); + } + + @Test + @TestMetadata("kt57487.kt") + public void testKt57487() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt57487.kt"); + } + + @Test + @TestMetadata("kt5786_privateWithDefault.kt") + public void testKt5786_privateWithDefault() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt5786_privateWithDefault.kt"); + } + + @Test + @TestMetadata("kt5953.kt") + public void testKt5953() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt5953.kt"); + } + + @Test + @TestMetadata("kt6153.kt") + public void testKt6153() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt6153.kt"); + } + + @Test + @TestMetadata("kt6434.kt") + public void testKt6434() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt6434.kt"); + } + + @Test + @TestMetadata("kt6434_2.kt") + public void testKt6434_2() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt6434_2.kt"); + } + + @Test + @TestMetadata("kt6485.kt") + public void testKt6485() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt6485.kt"); + } + + @Test + @TestMetadata("kt715.kt") + public void testKt715() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt715.kt"); + } + + @Test + @TestMetadata("kt7401.kt") + public void testKt7401() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt7401.kt"); + } + + @Test + @TestMetadata("kt789.kt") + public void testKt789() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt789.kt"); + } + + @Test + @TestMetadata("kt864.kt") + public void testKt864() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt864.kt"); + } + + @Test + @TestMetadata("kt9345.kt") + public void testKt9345() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt9345.kt"); + } + + @Test + @TestMetadata("kt998.kt") + public void testKt998() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt998.kt"); + } + + @Test + @TestMetadata("lambdaAsLastExpressionInLambda.kt") + public void testLambdaAsLastExpressionInLambda() throws Exception { + runTest("compiler/testData/codegen/box/regressions/lambdaAsLastExpressionInLambda.kt"); + } + + @Test + @TestMetadata("lambdaPostponeConstruction.kt") + public void testLambdaPostponeConstruction() throws Exception { + runTest("compiler/testData/codegen/box/regressions/lambdaPostponeConstruction.kt"); + } + + @Test + @TestMetadata("lambdaWrongReturnType.kt") + public void testLambdaWrongReturnType() throws Exception { + runTest("compiler/testData/codegen/box/regressions/lambdaWrongReturnType.kt"); + } + + @Test + @TestMetadata("nestedIntersection.kt") + public void testNestedIntersection() throws Exception { + runTest("compiler/testData/codegen/box/regressions/nestedIntersection.kt"); + } + + @Test + @TestMetadata("noAssertionsWhenNullableTypeParameterReplacedWithIntersectionType.kt") + public void testNoAssertionsWhenNullableTypeParameterReplacedWithIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/regressions/noAssertionsWhenNullableTypeParameterReplacedWithIntersectionType.kt"); + } + + @Test + @TestMetadata("noCapturingForTypesWithTypeVariables.kt") + public void testNoCapturingForTypesWithTypeVariables() throws Exception { + runTest("compiler/testData/codegen/box/regressions/noCapturingForTypesWithTypeVariables.kt"); + } + + @Test + @TestMetadata("noResolutionRecursion.kt") + public void testNoResolutionRecursion() throws Exception { + runTest("compiler/testData/codegen/box/regressions/noResolutionRecursion.kt"); + } + + @Test + @TestMetadata("nullabilityForCommonCapturedSupertypes.kt") + public void testNullabilityForCommonCapturedSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt"); + } + + @Test + @TestMetadata("nullableAfterExclExcl.kt") + public void testNullableAfterExclExcl() throws Exception { + runTest("compiler/testData/codegen/box/regressions/nullableAfterExclExcl.kt"); + } + + @Test + @TestMetadata("objectCaptureOuterConstructorProperty.kt") + public void testObjectCaptureOuterConstructorProperty() throws Exception { + runTest("compiler/testData/codegen/box/regressions/objectCaptureOuterConstructorProperty.kt"); + } + + @Test + @TestMetadata("objectInsideDelegation.kt") + public void testObjectInsideDelegation() throws Exception { + runTest("compiler/testData/codegen/box/regressions/objectInsideDelegation.kt"); + } + + @Test + @TestMetadata("recursiveDnnTypeInLambda.kt") + public void testRecursiveDnnTypeInLambda() throws Exception { + runTest("compiler/testData/codegen/box/regressions/recursiveDnnTypeInLambda.kt"); + } + + @Test + @TestMetadata("referenceToSelfInLocal.kt") + public void testReferenceToSelfInLocal() throws Exception { + runTest("compiler/testData/codegen/box/regressions/referenceToSelfInLocal.kt"); + } + + @Test + @TestMetadata("resolvedCallForGetOperator.kt") + public void testResolvedCallForGetOperator() throws Exception { + runTest("compiler/testData/codegen/box/regressions/resolvedCallForGetOperator.kt"); + } + + @Test + @TestMetadata("supertypeDepth.kt") + public void testSupertypeDepth() throws Exception { + runTest("compiler/testData/codegen/box/regressions/supertypeDepth.kt"); + } + + @Test + @TestMetadata("typeCastException.kt") + public void testTypeCastException() throws Exception { + runTest("compiler/testData/codegen/box/regressions/typeCastException.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reified") + @TestDataPath("$PROJECT_ROOT") + public class Reified { + @Test + public void testAllFilesPresentInReified() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/anonymousObject.kt"); + } + + @Test + @TestMetadata("anonymousObjectNoPropagate.kt") + public void testAnonymousObjectNoPropagate() throws Exception { + runTest("compiler/testData/codegen/box/reified/anonymousObjectNoPropagate.kt"); + } + + @Test + @TestMetadata("anonymousObjectReifiedSupertype.kt") + public void testAnonymousObjectReifiedSupertype() throws Exception { + runTest("compiler/testData/codegen/box/reified/anonymousObjectReifiedSupertype.kt"); + } + + @Test + @TestMetadata("approximateCapturedTypes.kt") + public void testApproximateCapturedTypes() throws Exception { + runTest("compiler/testData/codegen/box/reified/approximateCapturedTypes.kt"); + } + + @Test + @TestMetadata("asOnPlatformType.kt") + public void testAsOnPlatformType() throws Exception { + runTest("compiler/testData/codegen/box/reified/asOnPlatformType.kt"); + } + + @Test + @TestMetadata("callableReferenceInlinedFun.kt") + public void testCallableReferenceInlinedFun() throws Exception { + runTest("compiler/testData/codegen/box/reified/callableReferenceInlinedFun.kt"); + } + + @Test + @TestMetadata("callableReferenceInlinedFunFromOtherModule.kt") + public void testCallableReferenceInlinedFunFromOtherModule() throws Exception { + runTest("compiler/testData/codegen/box/reified/callableReferenceInlinedFunFromOtherModule.kt"); + } + + @Test + @TestMetadata("checkcast.kt") + public void testCheckcast() throws Exception { + runTest("compiler/testData/codegen/box/reified/checkcast.kt"); + } + + @Test + @TestMetadata("copyToArray.kt") + public void testCopyToArray() throws Exception { + runTest("compiler/testData/codegen/box/reified/copyToArray.kt"); + } + + @Test + @TestMetadata("DIExample.kt") + public void testDIExample() throws Exception { + runTest("compiler/testData/codegen/box/reified/DIExample.kt"); + } + + @Test + @TestMetadata("defaultJavaClass.kt") + public void testDefaultJavaClass() throws Exception { + runTest("compiler/testData/codegen/box/reified/defaultJavaClass.kt"); + } + + @Test + @TestMetadata("expectedTypeFromCast.kt") + public void testExpectedTypeFromCast() throws Exception { + runTest("compiler/testData/codegen/box/reified/expectedTypeFromCast.kt"); + } + + @Test + @TestMetadata("filterIsInstance.kt") + public void testFilterIsInstance() throws Exception { + runTest("compiler/testData/codegen/box/reified/filterIsInstance.kt"); + } + + @Test + @TestMetadata("innerAnonymousObject.kt") + public void testInnerAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/innerAnonymousObject.kt"); + } + + @Test + @TestMetadata("instanceof.kt") + public void testInstanceof() throws Exception { + runTest("compiler/testData/codegen/box/reified/instanceof.kt"); + } + + @Test + @TestMetadata("isOnPlatformType.kt") + public void testIsOnPlatformType() throws Exception { + runTest("compiler/testData/codegen/box/reified/isOnPlatformType.kt"); + } + + @Test + @TestMetadata("javaClass.kt") + public void testJavaClass() throws Exception { + runTest("compiler/testData/codegen/box/reified/javaClass.kt"); + } + + @Test + @TestMetadata("kt16445.kt") + public void testKt16445() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt16445.kt"); + } + + @Test + @TestMetadata("kt36237.kt") + public void testKt36237() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt36237.kt"); + } + + @Test + @TestMetadata("kt39256_privateInlineWithAnonymousObject.kt") + public void testKt39256_privateInlineWithAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.kt"); + } + + @Test + @TestMetadata("nestedReified.kt") + public void testNestedReified() throws Exception { + runTest("compiler/testData/codegen/box/reified/nestedReified.kt"); + } + + @Test + @TestMetadata("nestedReifiedSignature.kt") + public void testNestedReifiedSignature() throws Exception { + runTest("compiler/testData/codegen/box/reified/nestedReifiedSignature.kt"); + } + + @Test + @TestMetadata("newArrayInt.kt") + public void testNewArrayInt() throws Exception { + runTest("compiler/testData/codegen/box/reified/newArrayInt.kt"); + } + + @Test + @TestMetadata("nonInlineableLambdaInReifiedFunction.kt") + public void testNonInlineableLambdaInReifiedFunction() throws Exception { + runTest("compiler/testData/codegen/box/reified/nonInlineableLambdaInReifiedFunction.kt"); + } + + @Test + @TestMetadata("recursiveInnerAnonymousObject.kt") + public void testRecursiveInnerAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/recursiveInnerAnonymousObject.kt"); + } + + @Test + @TestMetadata("recursiveNewArray.kt") + public void testRecursiveNewArray() throws Exception { + runTest("compiler/testData/codegen/box/reified/recursiveNewArray.kt"); + } + + @Test + @TestMetadata("recursiveNonInlineableLambda.kt") + public void testRecursiveNonInlineableLambda() throws Exception { + runTest("compiler/testData/codegen/box/reified/recursiveNonInlineableLambda.kt"); + } + + @Test + @TestMetadata("reifiedChain.kt") + public void testReifiedChain() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedChain.kt"); + } + + @Test + @TestMetadata("reifiedInlineFunOfObject.kt") + public void testReifiedInlineFunOfObject() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedInlineFunOfObject.kt"); + } + + @Test + @TestMetadata("reifiedInlineFunOfObjectWithinReified.kt") + public void testReifiedInlineFunOfObjectWithinReified() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedInlineFunOfObjectWithinReified.kt"); + } + + @Test + @TestMetadata("reifiedInlineIntoNonInlineableLambda.kt") + public void testReifiedInlineIntoNonInlineableLambda() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedInlineIntoNonInlineableLambda.kt"); + } + + @Test + @TestMetadata("reifiedIntersectionType.kt") + public void testReifiedIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedIntersectionType.kt"); + } + + @Test + @TestMetadata("reifiedIntersectionTypeArgument.kt") + public void testReifiedIntersectionTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedIntersectionTypeArgument.kt"); + } + + @Test + @TestMetadata("reifiedIntersectionTypeArgumentCrossModule.kt") + public void testReifiedIntersectionTypeArgumentCrossModule() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedIntersectionTypeArgumentCrossModule.kt"); + } + + @Test + @TestMetadata("reifiedTypeArgumentWithIntersectionTypeAsTypeArgument.kt") + public void testReifiedTypeArgumentWithIntersectionTypeAsTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedTypeArgumentWithIntersectionTypeAsTypeArgument.kt"); + } + + @Test + @TestMetadata("reifiedTypeArgumentWithRecursion.kt") + public void testReifiedTypeArgumentWithRecursion() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedTypeArgumentWithRecursion.kt"); + } + + @Test + @TestMetadata("safecast.kt") + public void testSafecast() throws Exception { + runTest("compiler/testData/codegen/box/reified/safecast.kt"); + } + + @Test + @TestMetadata("sameIndexRecursive.kt") + public void testSameIndexRecursive() throws Exception { + runTest("compiler/testData/codegen/box/reified/sameIndexRecursive.kt"); + } + + @Test + @TestMetadata("spreads.kt") + public void testSpreads() throws Exception { + runTest("compiler/testData/codegen/box/reified/spreads.kt"); + } + + @Test + @TestMetadata("typeTokenWrapper.kt") + public void testTypeTokenWrapper() throws Exception { + runTest("compiler/testData/codegen/box/reified/typeTokenWrapper.kt"); + } + + @Test + @TestMetadata("varargs.kt") + public void testVarargs() throws Exception { + runTest("compiler/testData/codegen/box/reified/varargs.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/reified/arraysReification") + @TestDataPath("$PROJECT_ROOT") + public class ArraysReification { + @Test + public void testAllFilesPresentInArraysReification() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reified/arraysReification"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("instanceOf.kt") + public void testInstanceOf() throws Exception { + runTest("compiler/testData/codegen/box/reified/arraysReification/instanceOf.kt"); + } + + @Test + @TestMetadata("instanceOfArrays.kt") + public void testInstanceOfArrays() throws Exception { + runTest("compiler/testData/codegen/box/reified/arraysReification/instanceOfArrays.kt"); + } + + @Test + @TestMetadata("jClass.kt") + public void testJClass() throws Exception { + runTest("compiler/testData/codegen/box/reified/arraysReification/jClass.kt"); + } + + @Test + @TestMetadata("jaggedArray.kt") + public void testJaggedArray() throws Exception { + runTest("compiler/testData/codegen/box/reified/arraysReification/jaggedArray.kt"); + } + + @Test + @TestMetadata("jaggedArrayOfNulls.kt") + public void testJaggedArrayOfNulls() throws Exception { + runTest("compiler/testData/codegen/box/reified/arraysReification/jaggedArrayOfNulls.kt"); + } + + @Test + @TestMetadata("jaggedDeep.kt") + public void testJaggedDeep() throws Exception { + runTest("compiler/testData/codegen/box/reified/arraysReification/jaggedDeep.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/safeCall") + @TestDataPath("$PROJECT_ROOT") + public class SafeCall { + @Test + public void testAllFilesPresentInSafeCall() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/safeCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("augmentedAssigmentPlus.kt") + public void testAugmentedAssigmentPlus() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/augmentedAssigmentPlus.kt"); + } + + @Test + @TestMetadata("augmentedAssigmentPlusAssign.kt") + public void testAugmentedAssigmentPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/augmentedAssigmentPlusAssign.kt"); + } + + @Test + @TestMetadata("genericNull.kt") + public void testGenericNull() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/genericNull.kt"); + } + + @Test + @TestMetadata("incrementPostfix.kt") + public void testIncrementPostfix() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/incrementPostfix.kt"); + } + + @Test + @TestMetadata("incrementPrefix.kt") + public void testIncrementPrefix() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/incrementPrefix.kt"); + } + + @Test + @TestMetadata("kt1572.kt") + public void testKt1572() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt1572.kt"); + } + + @Test + @TestMetadata("kt232.kt") + public void testKt232() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt232.kt"); + } + + @Test + @TestMetadata("kt245.kt") + public void testKt245() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt245.kt"); + } + + @Test + @TestMetadata("kt247.kt") + public void testKt247() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt247.kt"); + } + + @Test + @TestMetadata("kt3430.kt") + public void testKt3430() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt3430.kt"); + } + + @Test + @TestMetadata("kt4733.kt") + public void testKt4733() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt4733.kt"); + } + + @Test + @TestMetadata("kt52580.kt") + public void testKt52580() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt52580.kt"); + } + + @Test + @TestMetadata("kt52743.kt") + public void testKt52743() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt52743.kt"); + } + + @Test + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/primitive.kt"); + } + + @Test + @TestMetadata("primitiveEqSafeCall.kt") + public void testPrimitiveEqSafeCall() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/primitiveEqSafeCall.kt"); + } + + @Test + @TestMetadata("primitiveNotEqSafeCall.kt") + public void testPrimitiveNotEqSafeCall() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/primitiveNotEqSafeCall.kt"); + } + + @Test + @TestMetadata("safeCallEqPrimitive.kt") + public void testSafeCallEqPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/safeCallEqPrimitive.kt"); + } + + @Test + @TestMetadata("safeCallIOnUninitializedNonNullValue.kt") + public void testSafeCallIOnUninitializedNonNullValue() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/safeCallIOnUninitializedNonNullValue.kt"); + } + + @Test + @TestMetadata("safeCallNotEqPrimitive.kt") + public void testSafeCallNotEqPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/safeCallNotEqPrimitive.kt"); + } + + @Test + @TestMetadata("safeCallOnLong.kt") + public void testSafeCallOnLong() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/safeCallOnLong.kt"); + } + + @Test + @TestMetadata("safeCallSimplificationEnhancedNullabilityType.kt") + public void testSafeCallSimplificationEnhancedNullabilityType() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/safeCallSimplificationEnhancedNullabilityType.kt"); + } + + @Test + @TestMetadata("safeCallSimplificationFlexibleType.kt") + public void testSafeCallSimplificationFlexibleType() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/safeCallSimplificationFlexibleType.kt"); + } + + @Test + @TestMetadata("safeCallWithElvisFolding.kt") + public void testSafeCallWithElvisFolding() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/safeCallWithElvisFolding.kt"); + } + + @Test + @TestMetadata("withAssignment.kt") + public void testWithAssignment() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/withAssignment.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/sam") + @TestDataPath("$PROJECT_ROOT") + public class Sam { + @Test + public void testAllFilesPresentInSam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayAsVarargAfterSamArgument.kt") + public void testArrayAsVarargAfterSamArgument() throws Exception { + runTest("compiler/testData/codegen/box/sam/arrayAsVarargAfterSamArgument.kt"); + } + + @Test + @TestMetadata("castFromAny.kt") + public void testCastFromAny() throws Exception { + runTest("compiler/testData/codegen/box/sam/castFromAny.kt"); + } + + @Test + @TestMetadata("contravariantIntersectionType.kt") + public void testContravariantIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/sam/contravariantIntersectionType.kt"); + } + + @Test + @TestMetadata("contravariantIntersectionTypeWithNonTrivialCommonSupertype.kt") + public void testContravariantIntersectionTypeWithNonTrivialCommonSupertype() throws Exception { + runTest("compiler/testData/codegen/box/sam/contravariantIntersectionTypeWithNonTrivialCommonSupertype.kt"); + } + + @Test + @TestMetadata("contravariantIntersectionTypeWithNonTrivialCommonSupertype2.kt") + public void testContravariantIntersectionTypeWithNonTrivialCommonSupertype2() throws Exception { + runTest("compiler/testData/codegen/box/sam/contravariantIntersectionTypeWithNonTrivialCommonSupertype2.kt"); + } + + @Test + @TestMetadata("differentFqNames.kt") + public void testDifferentFqNames() throws Exception { + runTest("compiler/testData/codegen/box/sam/differentFqNames.kt"); + } + + @Test + @TestMetadata("inlinedSamWrapper.kt") + public void testInlinedSamWrapper() throws Exception { + runTest("compiler/testData/codegen/box/sam/inlinedSamWrapper.kt"); + } + + @Test + @TestMetadata("irrelevantStaticProperty.kt") + public void testIrrelevantStaticProperty() throws Exception { + runTest("compiler/testData/codegen/box/sam/irrelevantStaticProperty.kt"); + } + + @Test + @TestMetadata("kt11519.kt") + public void testKt11519() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt11519.kt"); + } + + @Test + @TestMetadata("kt11519Constructor.kt") + public void testKt11519Constructor() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt11519Constructor.kt"); + } + + @Test + @TestMetadata("kt11696.kt") + public void testKt11696() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt11696.kt"); + } + + @Test + @TestMetadata("kt17091.kt") + public void testKt17091() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt17091.kt"); + } + + @Test + @TestMetadata("kt17091_2.kt") + public void testKt17091_2() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt17091_2.kt"); + } + + @Test + @TestMetadata("kt17091_3.kt") + public void testKt17091_3() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt17091_3.kt"); + } + + @Test + @TestMetadata("kt17091_4.kt") + public void testKt17091_4() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt17091_4.kt"); + } + + @Test + @TestMetadata("kt17765.kt") + public void testKt17765() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt17765.kt"); + } + + @Test + @TestMetadata("kt19910.kt") + public void testKt19910() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt19910.kt"); + } + + @Test + @TestMetadata("kt22906.kt") + public void testKt22906() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt22906.kt"); + } + + @Test + @TestMetadata("kt22906_2.kt") + public void testKt22906_2() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt22906_2.kt"); + } + + @Test + @TestMetadata("kt24825.kt") + public void testKt24825() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt24825.kt"); + } + + @Test + @TestMetadata("kt31908.kt") + public void testKt31908() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt31908.kt"); + } + + @Test + @TestMetadata("kt44827_sam.kt") + public void testKt44827_sam() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt44827_sam.kt"); + } + + @Test + @TestMetadata("kt4753.kt") + public void testKt4753() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt4753.kt"); + } + + @Test + @TestMetadata("kt4753_2.kt") + public void testKt4753_2() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt4753_2.kt"); + } + + @Test + @TestMetadata("kt49226.kt") + public void testKt49226() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt49226.kt"); + } + + @Test + @TestMetadata("kt50108.kt") + public void testKt50108() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt50108.kt"); + } + + @Test + @TestMetadata("kt50108_java.kt") + public void testKt50108_java() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt50108_java.kt"); + } + + @Test + @TestMetadata("kt50171.kt") + public void testKt50171() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt50171.kt"); + } + + @Test + @TestMetadata("kt50477Enabled.kt") + public void testKt50477Enabled() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt50477Enabled.kt"); + } + + @Test + @TestMetadata("kt51821.kt") + public void testKt51821() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt51821.kt"); + } + + @Test + @TestMetadata("kt52417.kt") + public void testKt52417() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt52417.kt"); + } + + @Test + @TestMetadata("kt54600.kt") + public void testKt54600() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt54600.kt"); + } + + @Test + @TestMetadata("kt56188.kt") + public void testKt56188() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt56188.kt"); + } + + @Test + @TestMetadata("kt59858.kt") + public void testKt59858() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt59858.kt"); + } + + @Test + @TestMetadata("kt63564.kt") + public void testKt63564() throws Exception { + runTest("compiler/testData/codegen/box/sam/kt63564.kt"); + } + + @Test + @TestMetadata("noConversionFromSamToSam.kt") + public void testNoConversionFromSamToSam() throws Exception { + runTest("compiler/testData/codegen/box/sam/noConversionFromSamToSam.kt"); + } + + @Test + @TestMetadata("nonInlinedSamWrapper.kt") + public void testNonInlinedSamWrapper() throws Exception { + runTest("compiler/testData/codegen/box/sam/nonInlinedSamWrapper.kt"); + } + + @Test + @TestMetadata("nullableSam.kt") + public void testNullableSam() throws Exception { + runTest("compiler/testData/codegen/box/sam/nullableSam.kt"); + } + + @Test + @TestMetadata("partialSam.kt") + public void testPartialSam() throws Exception { + runTest("compiler/testData/codegen/box/sam/partialSam.kt"); + } + + @Test + @TestMetadata("partialSamKT.kt") + public void testPartialSamKT() throws Exception { + runTest("compiler/testData/codegen/box/sam/partialSamKT.kt"); + } + + @Test + @TestMetadata("passSubtypeOfFunctionSamConversion.kt") + public void testPassSubtypeOfFunctionSamConversion() throws Exception { + runTest("compiler/testData/codegen/box/sam/passSubtypeOfFunctionSamConversion.kt"); + } + + @Test + @TestMetadata("predicateSamWrapper.kt") + public void testPredicateSamWrapper() throws Exception { + runTest("compiler/testData/codegen/box/sam/predicateSamWrapper.kt"); + } + + @Test + @TestMetadata("propertyReference.kt") + public void testPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/sam/propertyReference.kt"); + } + + @Test + @TestMetadata("receiverEvaluatedOnce.kt") + public void testReceiverEvaluatedOnce() throws Exception { + runTest("compiler/testData/codegen/box/sam/receiverEvaluatedOnce.kt"); + } + + @Test + @TestMetadata("recordSubstitutedTypeForCallableSamParameter.kt") + public void testRecordSubstitutedTypeForCallableSamParameter() throws Exception { + runTest("compiler/testData/codegen/box/sam/recordSubstitutedTypeForCallableSamParameter.kt"); + } + + @Test + @TestMetadata("samAsIndexInArrayAssignment.kt") + public void testSamAsIndexInArrayAssignment() throws Exception { + runTest("compiler/testData/codegen/box/sam/samAsIndexInArrayAssignment.kt"); + } + + @Test + @TestMetadata("samConstructorGenericSignature.kt") + public void testSamConstructorGenericSignature() throws Exception { + runTest("compiler/testData/codegen/box/sam/samConstructorGenericSignature.kt"); + } + + @Test + @TestMetadata("samConversionToJavaWildcard.kt") + public void testSamConversionToJavaWildcard() throws Exception { + runTest("compiler/testData/codegen/box/sam/samConversionToJavaWildcard.kt"); + } + + @Test + @TestMetadata("samInterfaceTypeParameterErasure.kt") + public void testSamInterfaceTypeParameterErasure() throws Exception { + runTest("compiler/testData/codegen/box/sam/samInterfaceTypeParameterErasure.kt"); + } + + @Test + @TestMetadata("smartCastSamConversion.kt") + public void testSmartCastSamConversion() throws Exception { + runTest("compiler/testData/codegen/box/sam/smartCastSamConversion.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/sam/adapters") + @TestDataPath("$PROJECT_ROOT") + public class Adapters { + @Test + public void testAllFilesPresentInAdapters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/adapters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bridgesForOverridden.kt") + public void testBridgesForOverridden() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/bridgesForOverridden.kt"); + } + + @Test + @TestMetadata("bridgesForOverriddenComplex.kt") + public void testBridgesForOverriddenComplex() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/bridgesForOverriddenComplex.kt"); + } + + @Test + @TestMetadata("callAbstractAdapter.kt") + public void testCallAbstractAdapter() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/callAbstractAdapter.kt"); + } + + @Test + @TestMetadata("comparator.kt") + public void testComparator() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/comparator.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/constructor.kt"); + } + + @Test + @TestMetadata("doubleLongParameters.kt") + public void testDoubleLongParameters() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/doubleLongParameters.kt"); + } + + @Test + @TestMetadata("fileFilter.kt") + public void testFileFilter() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/fileFilter.kt"); + } + + @Test + @TestMetadata("genericSignature.kt") + public void testGenericSignature() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/genericSignature.kt"); + } + + @Test + @TestMetadata("implementAdapter.kt") + public void testImplementAdapter() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/implementAdapter.kt"); + } + + @Test + @TestMetadata("inheritedInKotlin.kt") + public void testInheritedInKotlin() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/inheritedInKotlin.kt"); + } + + @Test + @TestMetadata("inheritedOverriddenAdapter.kt") + public void testInheritedOverriddenAdapter() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/inheritedOverriddenAdapter.kt"); + } + + @Test + @TestMetadata("inheritedSimple.kt") + public void testInheritedSimple() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/inheritedSimple.kt"); + } + + @Test + @TestMetadata("localClass.kt") + public void testLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/localClass.kt"); + } + + @Test + @TestMetadata("localObjectConstructor.kt") + public void testLocalObjectConstructor() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/localObjectConstructor.kt"); + } + + @Test + @TestMetadata("localObjectConstructorWithFnValue.kt") + public void testLocalObjectConstructorWithFnValue() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/localObjectConstructorWithFnValue.kt"); + } + + @Test + @TestMetadata("nonLiteralAndLiteralRunnable.kt") + public void testNonLiteralAndLiteralRunnable() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/nonLiteralAndLiteralRunnable.kt"); + } + + @Test + @TestMetadata("nonLiteralComparator.kt") + public void testNonLiteralComparator() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/nonLiteralComparator.kt"); + } + + @Test + @TestMetadata("nonLiteralInConstructor.kt") + public void testNonLiteralInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/nonLiteralInConstructor.kt"); + } + + @Test + @TestMetadata("nonLiteralNull.kt") + public void testNonLiteralNull() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/nonLiteralNull.kt"); + } + + @Test + @TestMetadata("nonLiteralRunnable.kt") + public void testNonLiteralRunnable() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/nonLiteralRunnable.kt"); + } + + @Test + @TestMetadata("protectedFromBase.kt") + public void testProtectedFromBase() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/protectedFromBase.kt"); + } + + @Test + @TestMetadata("severalSamParameters.kt") + public void testSeveralSamParameters() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/severalSamParameters.kt"); + } + + @Test + @TestMetadata("simplest.kt") + public void testSimplest() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/simplest.kt"); + } + + @Test + @TestMetadata("superInSecondaryConstructor.kt") + public void testSuperInSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/superInSecondaryConstructor.kt"); + } + + @Test + @TestMetadata("superconstructor.kt") + public void testSuperconstructor() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/superconstructor.kt"); + } + + @Test + @TestMetadata("superconstructorWithClosure.kt") + public void testSuperconstructorWithClosure() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/superconstructorWithClosure.kt"); + } + + @Test + @TestMetadata("typeParameterOfClass.kt") + public void testTypeParameterOfClass() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/typeParameterOfClass.kt"); + } + + @Test + @TestMetadata("typeParameterOfMethod.kt") + public void testTypeParameterOfMethod() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/typeParameterOfMethod.kt"); + } + + @Test + @TestMetadata("typeParameterOfOuterClass.kt") + public void testTypeParameterOfOuterClass() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/typeParameterOfOuterClass.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/sam/adapters/operators") + @TestDataPath("$PROJECT_ROOT") + public class Operators { + @Test + public void testAllFilesPresentInOperators() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/adapters/operators"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("augmentedAssignmentPure.kt") + public void testAugmentedAssignmentPure() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/operators/augmentedAssignmentPure.kt"); + } + + @Test + @TestMetadata("augmentedAssignmentViaSimpleBinary.kt") + public void testAugmentedAssignmentViaSimpleBinary() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/operators/augmentedAssignmentViaSimpleBinary.kt"); + } + + @Test + @TestMetadata("binary.kt") + public void testBinary() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/operators/binary.kt"); + } + + @Test + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/operators/compareTo.kt"); + } + + @Test + @TestMetadata("contains.kt") + public void testContains() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/operators/contains.kt"); + } + + @Test + @TestMetadata("get.kt") + public void testGet() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/operators/get.kt"); + } + + @Test + @TestMetadata("invoke.kt") + public void testInvoke() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/operators/invoke.kt"); + } + + @Test + @TestMetadata("legacyModOperator.kt") + public void testLegacyModOperator() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/operators/legacyModOperator.kt"); + } + + @Test + @TestMetadata("multiGetSet.kt") + public void testMultiGetSet() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/operators/multiGetSet.kt"); + } + + @Test + @TestMetadata("multiInvoke.kt") + public void testMultiInvoke() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/operators/multiInvoke.kt"); + } + + @Test + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("compiler/testData/codegen/box/sam/adapters/operators/set.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/sam/approximation") + @TestDataPath("$PROJECT_ROOT") + public class Approximation { + @Test + public void testAllFilesPresentInApproximation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/approximation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("approxToIntermediateType.kt") + public void testApproxToIntermediateType() throws Exception { + runTest("compiler/testData/codegen/box/sam/approximation/approxToIntermediateType.kt"); + } + + @Test + @TestMetadata("approxToSingleUpperBound.kt") + public void testApproxToSingleUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/sam/approximation/approxToSingleUpperBound.kt"); + } + + @Test + @TestMetadata("impossibleToApproxToRepresentable.kt") + public void testImpossibleToApproxToRepresentable() throws Exception { + runTest("compiler/testData/codegen/box/sam/approximation/impossibleToApproxToRepresentable.kt"); + } + + @Test + @TestMetadata("impossibleToApproxToRepresentable2.kt") + public void testImpossibleToApproxToRepresentable2() throws Exception { + runTest("compiler/testData/codegen/box/sam/approximation/impossibleToApproxToRepresentable2.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/sam/constructors") + @TestDataPath("$PROJECT_ROOT") + public class Constructors { + @Test + public void testAllFilesPresentInConstructors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/constructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("comparator.kt") + public void testComparator() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/comparator.kt"); + } + + @Test + @TestMetadata("filenameFilter.kt") + public void testFilenameFilter() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/filenameFilter.kt"); + } + + @Test + @TestMetadata("kt16790.kt") + public void testKt16790() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/kt16790.kt"); + } + + @Test + @TestMetadata("kt19251.kt") + public void testKt19251() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/kt19251.kt"); + } + + @Test + @TestMetadata("kt19251_child.kt") + public void testKt19251_child() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/kt19251_child.kt"); + } + + @Test + @TestMetadata("nonLiteralComparator.kt") + public void testNonLiteralComparator() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/nonLiteralComparator.kt"); + } + + @Test + @TestMetadata("nonLiteralFilenameFilter.kt") + public void testNonLiteralFilenameFilter() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/nonLiteralFilenameFilter.kt"); + } + + @Test + @TestMetadata("nonLiteralRunnable.kt") + public void testNonLiteralRunnable() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/nonLiteralRunnable.kt"); + } + + @Test + @TestMetadata("nonTrivialRunnable.kt") + public void testNonTrivialRunnable() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/nonTrivialRunnable.kt"); + } + + @Test + @TestMetadata("runnable.kt") + public void testRunnable() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/runnable.kt"); + } + + @Test + @TestMetadata("runnableAccessingClosure1.kt") + public void testRunnableAccessingClosure1() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/runnableAccessingClosure1.kt"); + } + + @Test + @TestMetadata("runnableAccessingClosure2.kt") + public void testRunnableAccessingClosure2() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/runnableAccessingClosure2.kt"); + } + + @Test + @TestMetadata("samWrappersDifferentFiles.kt") + public void testSamWrappersDifferentFiles() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/samWrappersDifferentFiles.kt"); + } + + @Test + @TestMetadata("sameWrapperClass.kt") + public void testSameWrapperClass() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/sameWrapperClass.kt"); + } + + @Test + @TestMetadata("sameWrapperClass2.kt") + public void testSameWrapperClass2() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/sameWrapperClass2.kt"); + } + + @Test + @TestMetadata("syntheticVsReal.kt") + public void testSyntheticVsReal() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/syntheticVsReal.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/sam/equality") + @TestDataPath("$PROJECT_ROOT") + public class Equality { + @Test + public void testAllFilesPresentInEquality() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("functionReferencesBound.kt") + public void testFunctionReferencesBound() throws Exception { + runTest("compiler/testData/codegen/box/sam/equality/functionReferencesBound.kt"); + } + + @Test + @TestMetadata("functionReferencesUnbound.kt") + public void testFunctionReferencesUnbound() throws Exception { + runTest("compiler/testData/codegen/box/sam/equality/functionReferencesUnbound.kt"); + } + + @Test + @TestMetadata("lambdaRuntimeConversion.kt") + public void testLambdaRuntimeConversion() throws Exception { + runTest("compiler/testData/codegen/box/sam/equality/lambdaRuntimeConversion.kt"); + } + + @Test + @TestMetadata("localFunctionReferences.kt") + public void testLocalFunctionReferences() throws Exception { + runTest("compiler/testData/codegen/box/sam/equality/localFunctionReferences.kt"); + } + + @Test + @TestMetadata("simpleLambdas.kt") + public void testSimpleLambdas() throws Exception { + runTest("compiler/testData/codegen/box/sam/equality/simpleLambdas.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/sam/javaSamWithEqualsHashCode") + @TestDataPath("$PROJECT_ROOT") + public class JavaSamWithEqualsHashCode { + @Test + public void testAllFilesPresentInJavaSamWithEqualsHashCode() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/javaSamWithEqualsHashCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classImplementingFunctionInterface.kt") + public void testClassImplementingFunctionInterface() throws Exception { + runTest("compiler/testData/codegen/box/sam/javaSamWithEqualsHashCode/classImplementingFunctionInterface.kt"); + } + + @Test + @TestMetadata("functionReference.kt") + public void testFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/sam/javaSamWithEqualsHashCode/functionReference.kt"); + } + + @Test + @TestMetadata("functionalExpression.kt") + public void testFunctionalExpression() throws Exception { + runTest("compiler/testData/codegen/box/sam/javaSamWithEqualsHashCode/functionalExpression.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/sameFileInSourceAndDependencies") + @TestDataPath("$PROJECT_ROOT") + public class SameFileInSourceAndDependencies { + @Test + public void testAllFilesPresentInSameFileInSourceAndDependencies() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sameFileInSourceAndDependencies"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classDeclaration.kt") + public void testClassDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/classDeclaration.kt"); + } + + @Test + @TestMetadata("differingNumberOfGenericTypeParameters.kt") + public void testDifferingNumberOfGenericTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/differingNumberOfGenericTypeParameters.kt"); + } + + @Test + @TestMetadata("functionDeclaration.kt") + public void testFunctionDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/functionDeclaration.kt"); + } + + @Test + @TestMetadata("jvmFieldMemberPropertyDeclaration.kt") + public void testJvmFieldMemberPropertyDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/jvmFieldMemberPropertyDeclaration.kt"); + } + + @Test + @TestMetadata("lateinitMemberPropertyDeclaration.kt") + public void testLateinitMemberPropertyDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/lateinitMemberPropertyDeclaration.kt"); + } + + @Test + @TestMetadata("memberFunctionDeclaration.kt") + public void testMemberFunctionDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberFunctionDeclaration.kt"); + } + + @Test + @TestMetadata("memberFunctionWithDefaultArgumentsDeclaration.kt") + public void testMemberFunctionWithDefaultArgumentsDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberFunctionWithDefaultArgumentsDeclaration.kt"); + } + + @Test + @TestMetadata("memberPropertyDeclaration.kt") + public void testMemberPropertyDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberPropertyDeclaration.kt"); + } + + @Test + @TestMetadata("nestedClassDeclaration.kt") + public void testNestedClassDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/nestedClassDeclaration.kt"); + } + + @Test + @TestMetadata("propertyDeclaration.kt") + public void testPropertyDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/propertyDeclaration.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/script") + @TestDataPath("$PROJECT_ROOT") + public class Script { + @Test + public void testAllFilesPresentInScript() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/script"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classReference.kt") + public void testClassReference() throws Exception { + runTest("compiler/testData/codegen/box/script/classReference.kt"); + } + + @Test + @TestMetadata("localCaptureTests.kt") + public void testLocalCaptureTests() throws Exception { + runTest("compiler/testData/codegen/box/script/localCaptureTests.kt"); + } + + @Test + @TestMetadata("scripInstance.kt") + public void testScripInstance() throws Exception { + runTest("compiler/testData/codegen/box/script/scripInstance.kt"); + } + + @Test + @TestMetadata("scriptNestedClassInstance.kt") + public void testScriptNestedClassInstance() throws Exception { + runTest("compiler/testData/codegen/box/script/scriptNestedClassInstance.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/sealed") + @TestDataPath("$PROJECT_ROOT") + public class Sealed { + @Test + public void testAllFilesPresentInSealed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sealed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorAnnotations.kt") + public void testConstructorAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/sealed/constructorAnnotations.kt"); + } + + @Test + @TestMetadata("delegatingConstructor.kt") + public void testDelegatingConstructor() throws Exception { + runTest("compiler/testData/codegen/box/sealed/delegatingConstructor.kt"); + } + + @Test + @TestMetadata("kt49752.kt") + public void testKt49752() throws Exception { + runTest("compiler/testData/codegen/box/sealed/kt49752.kt"); + } + + @Test + @TestMetadata("kt54028.kt") + public void testKt54028() throws Exception { + runTest("compiler/testData/codegen/box/sealed/kt54028.kt"); + } + + @Test + @TestMetadata("kt54028_cursed.kt") + public void testKt54028_cursed() throws Exception { + runTest("compiler/testData/codegen/box/sealed/kt54028_cursed.kt"); + } + + @Test + @TestMetadata("multipleFiles_enabled.kt") + public void testMultipleFiles_enabled() throws Exception { + runTest("compiler/testData/codegen/box/sealed/multipleFiles_enabled.kt"); + } + + @Test + @TestMetadata("objects.kt") + public void testObjects() throws Exception { + runTest("compiler/testData/codegen/box/sealed/objects.kt"); + } + + @Test + @TestMetadata("sealedInSameFile.kt") + public void testSealedInSameFile() throws Exception { + runTest("compiler/testData/codegen/box/sealed/sealedInSameFile.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/sealed/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/secondaryConstructors") + @TestDataPath("$PROJECT_ROOT") + public class SecondaryConstructors { + @Test + @TestMetadata("accessToCompanion.kt") + public void testAccessToCompanion() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/accessToCompanion.kt"); + } + + @Test + @TestMetadata("accessToNestedObject.kt") + public void testAccessToNestedObject() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/accessToNestedObject.kt"); + } + + @Test + public void testAllFilesPresentInSecondaryConstructors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/secondaryConstructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basicNoPrimaryManySinks.kt") + public void testBasicNoPrimaryManySinks() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/basicNoPrimaryManySinks.kt"); + } + + @Test + @TestMetadata("basicNoPrimaryOneSink.kt") + public void testBasicNoPrimaryOneSink() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/basicNoPrimaryOneSink.kt"); + } + + @Test + @TestMetadata("basicPrimary.kt") + public void testBasicPrimary() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/basicPrimary.kt"); + } + + @Test + @TestMetadata("callFromLocalSubClass.kt") + public void testCallFromLocalSubClass() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/callFromLocalSubClass.kt"); + } + + @Test + @TestMetadata("callFromPrimaryWithNamedArgs.kt") + public void testCallFromPrimaryWithNamedArgs() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/callFromPrimaryWithNamedArgs.kt"); + } + + @Test + @TestMetadata("callFromPrimaryWithOptionalArgs.kt") + public void testCallFromPrimaryWithOptionalArgs() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/callFromPrimaryWithOptionalArgs.kt"); + } + + @Test + @TestMetadata("callFromSubClass.kt") + public void testCallFromSubClass() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/callFromSubClass.kt"); + } + + @Test + @TestMetadata("clashingDefaultConstructors.kt") + public void testClashingDefaultConstructors() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/clashingDefaultConstructors.kt"); + } + + @Test + @TestMetadata("dataClasses.kt") + public void testDataClasses() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/dataClasses.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultParametersNotDuplicated.kt") + public void testDefaultParametersNotDuplicated() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/defaultParametersNotDuplicated.kt"); + } + + @Test + @TestMetadata("delegateWithComplexExpression.kt") + public void testDelegateWithComplexExpression() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/delegateWithComplexExpression.kt"); + } + + @Test + @TestMetadata("delegatedThisWithLambda.kt") + public void testDelegatedThisWithLambda() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/delegatedThisWithLambda.kt"); + } + + @Test + @TestMetadata("delegationWithPrimary.kt") + public void testDelegationWithPrimary() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/delegationWithPrimary.kt"); + } + + @Test + @TestMetadata("enums.kt") + public void testEnums() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/enums.kt"); + } + + @Test + @TestMetadata("fieldInitializerOptimization.kt") + public void testFieldInitializerOptimization() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/fieldInitializerOptimization.kt"); + } + + @Test + @TestMetadata("generics.kt") + public void testGenerics() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/generics.kt"); + } + + @Test + @TestMetadata("inlineIntoTwoConstructors.kt") + public void testInlineIntoTwoConstructors() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/inlineIntoTwoConstructors.kt"); + } + + @Test + @TestMetadata("innerClasses.kt") + public void testInnerClasses() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/innerClasses.kt"); + } + + @Test + @TestMetadata("innerClassesInheritance.kt") + public void testInnerClassesInheritance() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/innerClassesInheritance.kt"); + } + + @Test + @TestMetadata("localClasses.kt") + public void testLocalClasses() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/localClasses.kt"); + } + + @Test + @TestMetadata("superCallPrimary.kt") + public void testSuperCallPrimary() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/superCallPrimary.kt"); + } + + @Test + @TestMetadata("superCallSecondary.kt") + public void testSuperCallSecondary() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/superCallSecondary.kt"); + } + + @Test + @TestMetadata("varargs.kt") + public void testVarargs() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/varargs.kt"); + } + + @Test + @TestMetadata("withGenerics.kt") + public void testWithGenerics() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withGenerics.kt"); + } + + @Test + @TestMetadata("withNonLocalReturn.kt") + public void testWithNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withNonLocalReturn.kt"); + } + + @Test + @TestMetadata("withPrimary.kt") + public void testWithPrimary() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withPrimary.kt"); + } + + @Test + @TestMetadata("withReturn.kt") + public void testWithReturn() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withReturn.kt"); + } + + @Test + @TestMetadata("withReturnUnit.kt") + public void testWithReturnUnit() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withReturnUnit.kt"); + } + + @Test + @TestMetadata("withVarargs.kt") + public void testWithVarargs() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withVarargs.kt"); + } + + @Test + @TestMetadata("withoutPrimary.kt") + public void testWithoutPrimary() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withoutPrimary.kt"); + } + + @Test + @TestMetadata("withoutPrimarySimple.kt") + public void testWithoutPrimarySimple() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withoutPrimarySimple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/size") + @TestDataPath("$PROJECT_ROOT") + public class Size { + @Test + public void testAllFilesPresentInSize() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/size"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/smap") + @TestDataPath("$PROJECT_ROOT") + public class Smap { + @Test + public void testAllFilesPresentInSmap() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("chainCalls.kt") + public void testChainCalls() throws Exception { + runTest("compiler/testData/codegen/box/smap/chainCalls.kt"); + } + + @Test + @TestMetadata("infixCalls.kt") + public void testInfixCalls() throws Exception { + runTest("compiler/testData/codegen/box/smap/infixCalls.kt"); + } + + @Test + @TestMetadata("simpleCallWithParams.kt") + public void testSimpleCallWithParams() throws Exception { + runTest("compiler/testData/codegen/box/smap/simpleCallWithParams.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/smartCasts") + @TestDataPath("$PROJECT_ROOT") + public class SmartCasts { + @Test + public void testAllFilesPresentInSmartCasts() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smartCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("avoidSmartCastToDerivedForPrivate.kt") + public void testAvoidSmartCastToDerivedForPrivate() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/avoidSmartCastToDerivedForPrivate.kt"); + } + + @Test + @TestMetadata("complexExplicitReceiver.kt") + public void testComplexExplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/complexExplicitReceiver.kt"); + } + + @Test + @TestMetadata("complexImplicitReceiver.kt") + public void testComplexImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/complexImplicitReceiver.kt"); + } + + @Test + @TestMetadata("falseSmartCast.kt") + public void testFalseSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/falseSmartCast.kt"); + } + + @Test + @TestMetadata("genericInheritanceWithNonGenericNoAmbiguity.kt") + public void testGenericInheritanceWithNonGenericNoAmbiguity() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/genericInheritanceWithNonGenericNoAmbiguity.kt"); + } + + @Test + @TestMetadata("genericIntersection.kt") + public void testGenericIntersection() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/genericIntersection.kt"); + } + + @Test + @TestMetadata("genericSet.kt") + public void testGenericSet() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/genericSet.kt"); + } + + @Test + @TestMetadata("implicitExtensionReceiver.kt") + public void testImplicitExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/implicitExtensionReceiver.kt"); + } + + @Test + @TestMetadata("implicitMemberReceiver.kt") + public void testImplicitMemberReceiver() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/implicitMemberReceiver.kt"); + } + + @Test + @TestMetadata("implicitReceiver.kt") + public void testImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/implicitReceiver.kt"); + } + + @Test + @TestMetadata("implicitReceiverInWhen.kt") + public void testImplicitReceiverInWhen() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/implicitReceiverInWhen.kt"); + } + + @Test + @TestMetadata("implicitToGrandSon.kt") + public void testImplicitToGrandSon() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/implicitToGrandSon.kt"); + } + + @Test + @TestMetadata("invokeRecieverSmartcastK1.kt") + public void testInvokeRecieverSmartcastK1() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/invokeRecieverSmartcastK1.kt"); + } + + @Test + @TestMetadata("invokeRecieverSmartcastK2.kt") + public void testInvokeRecieverSmartcastK2() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/invokeRecieverSmartcastK2.kt"); + } + + @Test + @TestMetadata("kt17725.kt") + public void testKt17725() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt17725.kt"); + } + + @Test + @TestMetadata("kt19058.kt") + public void testKt19058() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt19058.kt"); + } + + @Test + @TestMetadata("kt19100.kt") + public void testKt19100() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt19100.kt"); + } + + @Test + @TestMetadata("kt42517.kt") + public void testKt42517() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt42517.kt"); + } + + @Test + @TestMetadata("kt44802.kt") + public void testKt44802() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt44802.kt"); + } + + @Test + @TestMetadata("kt44804.kt") + public void testKt44804() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt44804.kt"); + } + + @Test + @TestMetadata("kt44814.kt") + public void testKt44814() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt44814.kt"); + } + + @Test + @TestMetadata("kt44932.kt") + public void testKt44932() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt44932.kt"); + } + + @Test + @TestMetadata("kt44942.kt") + public void testKt44942() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt44942.kt"); + } + + @Test + @TestMetadata("kt48163_smartCastToThrowable.kt") + public void testKt48163_smartCastToThrowable() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt48163_smartCastToThrowable.kt"); + } + + @Test + @TestMetadata("kt52432.kt") + public void testKt52432() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt52432.kt"); + } + + @Test + @TestMetadata("lambdaArgumentWithoutType.kt") + public void testLambdaArgumentWithoutType() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/lambdaArgumentWithoutType.kt"); + } + + @Test + @TestMetadata("multipleSmartCast.kt") + public void testMultipleSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/multipleSmartCast.kt"); + } + + @Test + @TestMetadata("nullSmartCast.kt") + public void testNullSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("propertyInitializationAfterSmartCast.kt") + public void testPropertyInitializationAfterSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/propertyInitializationAfterSmartCast.kt"); + } + + @Test + @TestMetadata("resolveToMemberOfSuperclass_overrideWithDifferentType.kt") + public void testResolveToMemberOfSuperclass_overrideWithDifferentType() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/resolveToMemberOfSuperclass_overrideWithDifferentType.kt"); + } + + @Test + @TestMetadata("resolveToMemberOfSuperclass_overrideWithSameType.kt") + public void testResolveToMemberOfSuperclass_overrideWithSameType() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/resolveToMemberOfSuperclass_overrideWithSameType.kt"); + } + + @Test + @TestMetadata("smartCastInsideIf.kt") + public void testSmartCastInsideIf() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/smartCastInsideIf.kt"); + } + + @Test + @TestMetadata("smartcastFromGenericToString.kt") + public void testSmartcastFromGenericToString() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/smartcastFromGenericToString.kt"); + } + + @Test + @TestMetadata("smartcastOnImplicitDispatchReceiver.kt") + public void testSmartcastOnImplicitDispatchReceiver() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/smartcastOnImplicitDispatchReceiver.kt"); + } + + @Test + @TestMetadata("smartcastToStarType.kt") + public void testSmartcastToStarType() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/smartcastToStarType.kt"); + } + + @Test + @TestMetadata("toStringOnReceiverWIthSmartcast.kt") + public void testToStringOnReceiverWIthSmartcast() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/toStringOnReceiverWIthSmartcast.kt"); + } + + @Test + @TestMetadata("whenSmartCast.kt") + public void testWhenSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/whenSmartCast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/specialBuiltins") + @TestDataPath("$PROJECT_ROOT") + public class SpecialBuiltins { + @Test + public void testAllFilesPresentInSpecialBuiltins() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/specialBuiltins"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bridgeNotEmptyMap.kt") + public void testBridgeNotEmptyMap() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/bridgeNotEmptyMap.kt"); + } + + @Test + @TestMetadata("bridges.kt") + public void testBridges() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt"); + } + + @Test + @TestMetadata("bridgesJVM.kt") + public void testBridgesJVM() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/bridgesJVM.kt"); + } + + @Test + @TestMetadata("charBuffer.kt") + public void testCharBuffer() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/charBuffer.kt"); + } + + @Test + @TestMetadata("collectionImpl.kt") + public void testCollectionImpl() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/collectionImpl.kt"); + } + + @Test + @TestMetadata("commonBridgesTarget.kt") + public void testCommonBridgesTarget() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/commonBridgesTarget.kt"); + } + + @Test + @TestMetadata("complexMapImpl.kt") + public void testComplexMapImpl() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/complexMapImpl.kt"); + } + + @Test + @TestMetadata("emptyList.kt") + public void testEmptyList() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/emptyList.kt"); + } + + @Test + @TestMetadata("emptyMap.kt") + public void testEmptyMap() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/emptyMap.kt"); + } + + @Test + @TestMetadata("emptyStringMap.kt") + public void testEmptyStringMap() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/emptyStringMap.kt"); + } + + @Test + @TestMetadata("entrySetSOE.kt") + public void testEntrySetSOE() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt"); + } + + @Test + @TestMetadata("enumAsOrdinaled.kt") + public void testEnumAsOrdinaled() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/enumAsOrdinaled.kt"); + } + + @Test + @TestMetadata("exceptionCause.kt") + public void testExceptionCause() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/exceptionCause.kt"); + } + + @Test + @TestMetadata("explicitSuperCall.kt") + public void testExplicitSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt"); + } + + @Test + @TestMetadata("irrelevantRemoveAtOverride.kt") + public void testIrrelevantRemoveAtOverride() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/irrelevantRemoveAtOverride.kt"); + } + + @Test + @TestMetadata("javaMapWithCustomEntries.kt") + public void testJavaMapWithCustomEntries() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/javaMapWithCustomEntries.kt"); + } + + @Test + @TestMetadata("mapGetOrDefault.kt") + public void testMapGetOrDefault() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/mapGetOrDefault.kt"); + } + + @Test + @TestMetadata("maps.kt") + public void testMaps() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/maps.kt"); + } + + @Test + @TestMetadata("noSpecialBridgeInSuperClass.kt") + public void testNoSpecialBridgeInSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/noSpecialBridgeInSuperClass.kt"); + } + + @Test + @TestMetadata("notEmptyListAny.kt") + public void testNotEmptyListAny() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/notEmptyListAny.kt"); + } + + @Test + @TestMetadata("notEmptyMap.kt") + public void testNotEmptyMap() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/notEmptyMap.kt"); + } + + @Test + @TestMetadata("redundantStubForSize.kt") + public void testRedundantStubForSize() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/redundantStubForSize.kt"); + } + + @Test + @TestMetadata("removeAtTwoSpecialBridges.kt") + public void testRemoveAtTwoSpecialBridges() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/removeAtTwoSpecialBridges.kt"); + } + + @Test + @TestMetadata("removeSetInt.kt") + public void testRemoveSetInt() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt"); + } + + @Test + @TestMetadata("specialBridgeModality.kt") + public void testSpecialBridgeModality() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/specialBridgeModality.kt"); + } + + @Test + @TestMetadata("throwable.kt") + public void testThrowable() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/throwable.kt"); + } + + @Test + @TestMetadata("throwableCause.kt") + public void testThrowableCause() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/throwableCause.kt"); + } + + @Test + @TestMetadata("throwableComplex.kt") + public void testThrowableComplex() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/throwableComplex.kt"); + } + + @Test + @TestMetadata("throwableImpl.kt") + public void testThrowableImpl() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/throwableImpl.kt"); + } + + @Test + @TestMetadata("throwableImplWithSecondaryConstructor.kt") + public void testThrowableImplWithSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/throwableImplWithSecondaryConstructor.kt"); + } + + @Test + @TestMetadata("valuesInsideEnum.kt") + public void testValuesInsideEnum() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/valuesInsideEnum.kt"); + } + + @Test + @TestMetadata("weirdCharBuffers.kt") + public void testWeirdCharBuffers() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/weirdCharBuffers.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/statics") + @TestDataPath("$PROJECT_ROOT") + public class Statics { + @Test + public void testAllFilesPresentInStatics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/statics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousInitializerIObject.kt") + public void testAnonymousInitializerIObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/anonymousInitializerIObject.kt"); + } + + @Test + @TestMetadata("anonymousInitializerInClassObject.kt") + public void testAnonymousInitializerInClassObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/anonymousInitializerInClassObject.kt"); + } + + @Test + @TestMetadata("enumWithInheritedStaticField.kt") + public void testEnumWithInheritedStaticField() throws Exception { + runTest("compiler/testData/codegen/box/statics/enumWithInheritedStaticField.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() throws Exception { + runTest("compiler/testData/codegen/box/statics/fields.kt"); + } + + @Test + @TestMetadata("functions.kt") + public void testFunctions() throws Exception { + runTest("compiler/testData/codegen/box/statics/functions.kt"); + } + + @Test + @TestMetadata("hidePrivateByPublic.kt") + public void testHidePrivateByPublic() throws Exception { + runTest("compiler/testData/codegen/box/statics/hidePrivateByPublic.kt"); + } + + @Test + @TestMetadata("incInClassObject.kt") + public void testIncInClassObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/incInClassObject.kt"); + } + + @Test + @TestMetadata("incInObject.kt") + public void testIncInObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/incInObject.kt"); + } + + @Test + @TestMetadata("inheritedPropertyInClassObject.kt") + public void testInheritedPropertyInClassObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/inheritedPropertyInClassObject.kt"); + } + + @Test + @TestMetadata("inheritedPropertyInObject.kt") + public void testInheritedPropertyInObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/inheritedPropertyInObject.kt"); + } + + @Test + @TestMetadata("inlineCallsStaticMethod.kt") + public void testInlineCallsStaticMethod() throws Exception { + runTest("compiler/testData/codegen/box/statics/inlineCallsStaticMethod.kt"); + } + + @Test + @TestMetadata("inlineCallsStaticMethodFromOtherPackage.kt") + public void testInlineCallsStaticMethodFromOtherPackage() throws Exception { + runTest("compiler/testData/codegen/box/statics/inlineCallsStaticMethodFromOtherPackage.kt"); + } + + @Test + @TestMetadata("kt8089.kt") + public void testKt8089() throws Exception { + runTest("compiler/testData/codegen/box/statics/kt8089.kt"); + } + + @Test + @TestMetadata("protectedSamConstructor.kt") + public void testProtectedSamConstructor() throws Exception { + runTest("compiler/testData/codegen/box/statics/protectedSamConstructor.kt"); + } + + @Test + @TestMetadata("protectedStatic.kt") + public void testProtectedStatic() throws Exception { + runTest("compiler/testData/codegen/box/statics/protectedStatic.kt"); + } + + @Test + @TestMetadata("protectedStatic2.kt") + public void testProtectedStatic2() throws Exception { + runTest("compiler/testData/codegen/box/statics/protectedStatic2.kt"); + } + + @Test + @TestMetadata("protectedStaticAndInline.kt") + public void testProtectedStaticAndInline() throws Exception { + runTest("compiler/testData/codegen/box/statics/protectedStaticAndInline.kt"); + } + + @Test + @TestMetadata("simpleStaticInJavaSuperChain.kt") + public void testSimpleStaticInJavaSuperChain() throws Exception { + runTest("compiler/testData/codegen/box/statics/simpleStaticInJavaSuperChain.kt"); + } + + @Test + @TestMetadata("syntheticAccessor.kt") + public void testSyntheticAccessor() throws Exception { + runTest("compiler/testData/codegen/box/statics/syntheticAccessor.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/storeStackBeforeInline") + @TestDataPath("$PROJECT_ROOT") + public class StoreStackBeforeInline { + @Test + public void testAllFilesPresentInStoreStackBeforeInline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/storeStackBeforeInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("differentTypes.kt") + public void testDifferentTypes() throws Exception { + runTest("compiler/testData/codegen/box/storeStackBeforeInline/differentTypes.kt"); + } + + @Test + @TestMetadata("primitiveMerge.kt") + public void testPrimitiveMerge() throws Exception { + runTest("compiler/testData/codegen/box/storeStackBeforeInline/primitiveMerge.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/storeStackBeforeInline/simple.kt"); + } + + @Test + @TestMetadata("unreachableMarker.kt") + public void testUnreachableMarker() throws Exception { + runTest("compiler/testData/codegen/box/storeStackBeforeInline/unreachableMarker.kt"); + } + + @Test + @TestMetadata("withLambda.kt") + public void testWithLambda() throws Exception { + runTest("compiler/testData/codegen/box/storeStackBeforeInline/withLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/strings") + @TestDataPath("$PROJECT_ROOT") + public class Strings { + @Test + public void testAllFilesPresentInStrings() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/strings"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("concatDynamicWithConstants.kt") + public void testConcatDynamicWithConstants() throws Exception { + runTest("compiler/testData/codegen/box/strings/concatDynamicWithConstants.kt"); + } + + @Test + @TestMetadata("concatDynamicWithSpecialSymbols.kt") + public void testConcatDynamicWithSpecialSymbols() throws Exception { + runTest("compiler/testData/codegen/box/strings/concatDynamicWithSpecialSymbols.kt"); + } + + @Test + @TestMetadata("concatGenericWithNullablePrimitiveUpperBound.kt") + public void testConcatGenericWithNullablePrimitiveUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/strings/concatGenericWithNullablePrimitiveUpperBound.kt"); + } + + @Test + @TestMetadata("concatGenericWithPrimitiveUpperBound.kt") + public void testConcatGenericWithPrimitiveUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/strings/concatGenericWithPrimitiveUpperBound.kt"); + } + + @Test + @TestMetadata("concatGenericWithStringUpperBound.kt") + public void testConcatGenericWithStringUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/strings/concatGenericWithStringUpperBound.kt"); + } + + @Test + @TestMetadata("concatNullableGenericWithPrimitiveUpperBound.kt") + public void testConcatNullableGenericWithPrimitiveUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/strings/concatNullableGenericWithPrimitiveUpperBound.kt"); + } + + @Test + @TestMetadata("constInStringTemplate.kt") + public void testConstInStringTemplate() throws Exception { + runTest("compiler/testData/codegen/box/strings/constInStringTemplate.kt"); + } + + @Test + @TestMetadata("ea35743.kt") + public void testEa35743() throws Exception { + runTest("compiler/testData/codegen/box/strings/ea35743.kt"); + } + + @Test + @TestMetadata("forInString.kt") + public void testForInString() throws Exception { + runTest("compiler/testData/codegen/box/strings/forInString.kt"); + } + + @Test + @TestMetadata("interpolation.kt") + public void testInterpolation() throws Exception { + runTest("compiler/testData/codegen/box/strings/interpolation.kt"); + } + + @Test + @TestMetadata("javaToStringNPE.kt") + public void testJavaToStringNPE() throws Exception { + runTest("compiler/testData/codegen/box/strings/javaToStringNPE.kt"); + } + + @Test + @TestMetadata("kt13213.kt") + public void testKt13213() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt13213.kt"); + } + + @Test + @TestMetadata("kt13213a.kt") + public void testKt13213a() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt13213a.kt"); + } + + @Test + @TestMetadata("kt2592.kt") + public void testKt2592() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt2592.kt"); + } + + @Test + @TestMetadata("kt3571.kt") + public void testKt3571() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt3571.kt"); + } + + @Test + @TestMetadata("kt3652.kt") + public void testKt3652() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt3652.kt"); + } + + @Test + @TestMetadata("kt42457_old.kt") + public void testKt42457_old() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt42457_old.kt"); + } + + @Test + @TestMetadata("kt47917.kt") + public void testKt47917() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt47917.kt"); + } + + @Test + @TestMetadata("kt50140.kt") + public void testKt50140() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt50140.kt"); + } + + @Test + @TestMetadata("kt5389_stringBuilderGet.kt") + public void testKt5389_stringBuilderGet() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt5389_stringBuilderGet.kt"); + } + + @Test + @TestMetadata("kt5956.kt") + public void testKt5956() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt5956.kt"); + } + + @Test + @TestMetadata("kt881.kt") + public void testKt881() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt881.kt"); + } + + @Test + @TestMetadata("kt889.kt") + public void testKt889() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt889.kt"); + } + + @Test + @TestMetadata("kt894.kt") + public void testKt894() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt894.kt"); + } + + @Test + @TestMetadata("multilineStringsWithTemplates.kt") + public void testMultilineStringsWithTemplates() throws Exception { + runTest("compiler/testData/codegen/box/strings/multilineStringsWithTemplates.kt"); + } + + @Test + @TestMetadata("nestedConcat.kt") + public void testNestedConcat() throws Exception { + runTest("compiler/testData/codegen/box/strings/nestedConcat.kt"); + } + + @Test + @TestMetadata("rawStrings.kt") + public void testRawStrings() throws Exception { + runTest("compiler/testData/codegen/box/strings/rawStrings.kt"); + } + + @Test + @TestMetadata("rawStringsWithManyQuotes.kt") + public void testRawStringsWithManyQuotes() throws Exception { + runTest("compiler/testData/codegen/box/strings/rawStringsWithManyQuotes.kt"); + } + + @Test + @TestMetadata("simpleStringPlus.kt") + public void testSimpleStringPlus() throws Exception { + runTest("compiler/testData/codegen/box/strings/simpleStringPlus.kt"); + } + + @Test + @TestMetadata("singleConcatNullable.kt") + public void testSingleConcatNullable() throws Exception { + runTest("compiler/testData/codegen/box/strings/singleConcatNullable.kt"); + } + + @Test + @TestMetadata("stringBuilderAppend.kt") + public void testStringBuilderAppend() throws Exception { + runTest("compiler/testData/codegen/box/strings/stringBuilderAppend.kt"); + } + + @Test + @TestMetadata("stringFromJavaPlus.kt") + public void testStringFromJavaPlus() throws Exception { + runTest("compiler/testData/codegen/box/strings/stringFromJavaPlus.kt"); + } + + @Test + @TestMetadata("stringPlusOnlyWorksOnString.kt") + public void testStringPlusOnlyWorksOnString() throws Exception { + runTest("compiler/testData/codegen/box/strings/stringPlusOnlyWorksOnString.kt"); + } + + @Test + @TestMetadata("stringPlusOverride.kt") + public void testStringPlusOverride() throws Exception { + runTest("compiler/testData/codegen/box/strings/stringPlusOverride.kt"); + } + + @Test + @TestMetadata("surrogatePair.kt") + public void testSurrogatePair() throws Exception { + runTest("compiler/testData/codegen/box/strings/surrogatePair.kt"); + } + + @Test + @TestMetadata("trimOptimization.kt") + public void testTrimOptimization() throws Exception { + runTest("compiler/testData/codegen/box/strings/trimOptimization.kt"); + } + + @Test + @TestMetadata("twoArgumentNullableStringOperatorPlus.kt") + public void testTwoArgumentNullableStringOperatorPlus() throws Exception { + runTest("compiler/testData/codegen/box/strings/twoArgumentNullableStringOperatorPlus.kt"); + } + + @Test + @TestMetadata("twoArgumentNullableStringPlus.kt") + public void testTwoArgumentNullableStringPlus() throws Exception { + runTest("compiler/testData/codegen/box/strings/twoArgumentNullableStringPlus.kt"); + } + + @Test + @TestMetadata("twoArgumentStringTemplate.kt") + public void testTwoArgumentStringTemplate() throws Exception { + runTest("compiler/testData/codegen/box/strings/twoArgumentStringTemplate.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/super") + @TestDataPath("$PROJECT_ROOT") + public class Super { + @Test + public void testAllFilesPresentInSuper() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/super"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basicmethodSuperClass.kt") + public void testBasicmethodSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/super/basicmethodSuperClass.kt"); + } + + @Test + @TestMetadata("basicmethodSuperTrait.kt") + public void testBasicmethodSuperTrait() throws Exception { + runTest("compiler/testData/codegen/box/super/basicmethodSuperTrait.kt"); + } + + @Test + @TestMetadata("basicproperty.kt") + public void testBasicproperty() throws Exception { + runTest("compiler/testData/codegen/box/super/basicproperty.kt"); + } + + @Test + @TestMetadata("enclosedFun.kt") + public void testEnclosedFun() throws Exception { + runTest("compiler/testData/codegen/box/super/enclosedFun.kt"); + } + + @Test + @TestMetadata("enclosedVar.kt") + public void testEnclosedVar() throws Exception { + runTest("compiler/testData/codegen/box/super/enclosedVar.kt"); + } + + @Test + @TestMetadata("innerClassLabeledSuper.kt") + public void testInnerClassLabeledSuper() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassLabeledSuper.kt"); + } + + @Test + @TestMetadata("innerClassLabeledSuper2.kt") + public void testInnerClassLabeledSuper2() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassLabeledSuper2.kt"); + } + + @Test + @TestMetadata("innerClassLabeledSuperProperty.kt") + public void testInnerClassLabeledSuperProperty() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassLabeledSuperProperty.kt"); + } + + @Test + @TestMetadata("innerClassLabeledSuperProperty2.kt") + public void testInnerClassLabeledSuperProperty2() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassLabeledSuperProperty2.kt"); + } + + @Test + @TestMetadata("innerClassQualifiedFunctionCall.kt") + public void testInnerClassQualifiedFunctionCall() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassQualifiedFunctionCall.kt"); + } + + @Test + @TestMetadata("innerClassQualifiedPropertyAccess.kt") + public void testInnerClassQualifiedPropertyAccess() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassQualifiedPropertyAccess.kt"); + } + + @Test + @TestMetadata("interfaceHashCode.kt") + public void testInterfaceHashCode() throws Exception { + runTest("compiler/testData/codegen/box/super/interfaceHashCode.kt"); + } + + @Test + @TestMetadata("kt14243.kt") + public void testKt14243() throws Exception { + runTest("compiler/testData/codegen/box/super/kt14243.kt"); + } + + @Test + @TestMetadata("kt14243_2.kt") + public void testKt14243_2() throws Exception { + runTest("compiler/testData/codegen/box/super/kt14243_2.kt"); + } + + @Test + @TestMetadata("kt14243_class.kt") + public void testKt14243_class() throws Exception { + runTest("compiler/testData/codegen/box/super/kt14243_class.kt"); + } + + @Test + @TestMetadata("kt14243_prop.kt") + public void testKt14243_prop() throws Exception { + runTest("compiler/testData/codegen/box/super/kt14243_prop.kt"); + } + + @Test + @TestMetadata("kt3492ClassFun.kt") + public void testKt3492ClassFun() throws Exception { + runTest("compiler/testData/codegen/box/super/kt3492ClassFun.kt"); + } + + @Test + @TestMetadata("kt3492ClassProperty.kt") + public void testKt3492ClassProperty() throws Exception { + runTest("compiler/testData/codegen/box/super/kt3492ClassProperty.kt"); + } + + @Test + @TestMetadata("kt3492TraitFun.kt") + public void testKt3492TraitFun() throws Exception { + runTest("compiler/testData/codegen/box/super/kt3492TraitFun.kt"); + } + + @Test + @TestMetadata("kt3492TraitProperty.kt") + public void testKt3492TraitProperty() throws Exception { + runTest("compiler/testData/codegen/box/super/kt3492TraitProperty.kt"); + } + + @Test + @TestMetadata("kt4173.kt") + public void testKt4173() throws Exception { + runTest("compiler/testData/codegen/box/super/kt4173.kt"); + } + + @Test + @TestMetadata("kt4173_2.kt") + public void testKt4173_2() throws Exception { + runTest("compiler/testData/codegen/box/super/kt4173_2.kt"); + } + + @Test + @TestMetadata("kt4173_3.kt") + public void testKt4173_3() throws Exception { + runTest("compiler/testData/codegen/box/super/kt4173_3.kt"); + } + + @Test + @TestMetadata("kt4982.kt") + public void testKt4982() throws Exception { + runTest("compiler/testData/codegen/box/super/kt4982.kt"); + } + + @Test + @TestMetadata("multipleSuperTraits.kt") + public void testMultipleSuperTraits() throws Exception { + runTest("compiler/testData/codegen/box/super/multipleSuperTraits.kt"); + } + + @Test + @TestMetadata("superCallToNonGenericImplThroughGenericDefaultImpls.kt") + public void testSuperCallToNonGenericImplThroughGenericDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/box/super/superCallToNonGenericImplThroughGenericDefaultImpls.kt"); + } + + @Test + @TestMetadata("traitproperty.kt") + public void testTraitproperty() throws Exception { + runTest("compiler/testData/codegen/box/super/traitproperty.kt"); + } + + @Test + @TestMetadata("unqualifiedSuper.kt") + public void testUnqualifiedSuper() throws Exception { + runTest("compiler/testData/codegen/box/super/unqualifiedSuper.kt"); + } + + @Test + @TestMetadata("unqualifiedSuperWithDeeperHierarchies.kt") + public void testUnqualifiedSuperWithDeeperHierarchies() throws Exception { + runTest("compiler/testData/codegen/box/super/unqualifiedSuperWithDeeperHierarchies.kt"); + } + + @Test + @TestMetadata("unqualifiedSuperWithMethodsOfAny.kt") + public void testUnqualifiedSuperWithMethodsOfAny() throws Exception { + runTest("compiler/testData/codegen/box/super/unqualifiedSuperWithMethodsOfAny.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/super/superConstructor") + @TestDataPath("$PROJECT_ROOT") + public class SuperConstructor { + @Test + public void testAllFilesPresentInSuperConstructor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/super/superConstructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt13846.kt") + public void testKt13846() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/kt13846.kt"); + } + + @Test + @TestMetadata("kt17464_arrayOf.kt") + public void testKt17464_arrayOf() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/kt17464_arrayOf.kt"); + } + + @Test + @TestMetadata("kt17464_linkedMapOf.kt") + public void testKt17464_linkedMapOf() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt"); + } + + @Test + @TestMetadata("kt18356.kt") + public void testKt18356() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/kt18356.kt"); + } + + @Test + @TestMetadata("kt18356_2.kt") + public void testKt18356_2() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/kt18356_2.kt"); + } + + @Test + @TestMetadata("objectExtendsInner.kt") + public void testObjectExtendsInner() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/objectExtendsInner.kt"); + } + + @Test + @TestMetadata("objectExtendsLocalInner.kt") + public void testObjectExtendsLocalInner() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/objectExtendsLocalInner.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/suppressions") + @TestDataPath("$PROJECT_ROOT") + public class Suppressions { + @Test + public void testAllFilesPresentInSuppressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/suppressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("suppressInvisible.kt") + public void testSuppressInvisible() throws Exception { + runTest("compiler/testData/codegen/box/suppressions/suppressInvisible.kt"); + } + + @Test + @TestMetadata("suppressInvisibleCtor.kt") + public void testSuppressInvisibleCtor() throws Exception { + runTest("compiler/testData/codegen/box/suppressions/suppressInvisibleCtor.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/suspendConversion") + @TestDataPath("$PROJECT_ROOT") + public class SuspendConversion { + @Test + public void testAllFilesPresentInSuspendConversion() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basicSuspendConversion.kt") + public void testBasicSuspendConversion() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversion.kt"); + } + + @Test + @TestMetadata("basicSuspendConversionDefault.kt") + public void testBasicSuspendConversionDefault() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversionDefault.kt"); + } + + @Test + @TestMetadata("basicSuspendConversionForCallableReference.kt") + public void testBasicSuspendConversionForCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversionForCallableReference.kt"); + } + + @Test + @TestMetadata("basicSuspendConversionGenerics.kt") + public void testBasicSuspendConversionGenerics() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.kt"); + } + + @Test + @TestMetadata("chainedFunSuspendConversionForSimpleExpression.kt") + public void testChainedFunSuspendConversionForSimpleExpression() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt"); + } + + @Test + @TestMetadata("kt50949_suspendConversionForExtensionFunction.kt") + public void testKt50949_suspendConversionForExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/kt50949_suspendConversionForExtensionFunction.kt"); + } + + @Test + @TestMetadata("overloadResolutionBySuspendModifier.kt") + public void testOverloadResolutionBySuspendModifier() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/overloadResolutionBySuspendModifier.kt"); + } + + @Test + @TestMetadata("severalConversionsInOneCall.kt") + public void testSeveralConversionsInOneCall() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/severalConversionsInOneCall.kt"); + } + + @Test + @TestMetadata("suspendAndFunConversionInDisabledMode.kt") + public void testSuspendAndFunConversionInDisabledMode() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.kt"); + } + + @Test + @TestMetadata("suspendConversionCompatibility.kt") + public void testSuspendConversionCompatibility() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); + } + + @Test + @TestMetadata("suspendConversionOnVarargElements.kt") + public void testSuspendConversionOnVarargElements() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOnVarargElements.kt"); + } + + @Test + @TestMetadata("suspendConversionWithFunInterfaces.kt") + public void testSuspendConversionWithFunInterfaces() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionWithFunInterfaces.kt"); + } + + @Test + @TestMetadata("suspendConversionWithReferenceAdaptation.kt") + public void testSuspendConversionWithReferenceAdaptation() throws Exception { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionWithReferenceAdaptation.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/synchronized") + @TestDataPath("$PROJECT_ROOT") + public class Synchronized { + @Test + public void testAllFilesPresentInSynchronized() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/synchronized"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("changeMonitor.kt") + public void testChangeMonitor() throws Exception { + runTest("compiler/testData/codegen/box/synchronized/changeMonitor.kt"); + } + + @Test + @TestMetadata("exceptionInMonitorExpression.kt") + public void testExceptionInMonitorExpression() throws Exception { + runTest("compiler/testData/codegen/box/synchronized/exceptionInMonitorExpression.kt"); + } + + @Test + @TestMetadata("finally.kt") + public void testFinally() throws Exception { + runTest("compiler/testData/codegen/box/synchronized/finally.kt"); + } + + @Test + @TestMetadata("longValue.kt") + public void testLongValue() throws Exception { + runTest("compiler/testData/codegen/box/synchronized/longValue.kt"); + } + + @Test + @TestMetadata("nestedDifferentObjects.kt") + public void testNestedDifferentObjects() throws Exception { + runTest("compiler/testData/codegen/box/synchronized/nestedDifferentObjects.kt"); + } + + @Test + @TestMetadata("nestedSameObject.kt") + public void testNestedSameObject() throws Exception { + runTest("compiler/testData/codegen/box/synchronized/nestedSameObject.kt"); + } + + @Test + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/synchronized/nonLocalReturn.kt"); + } + + @Test + @TestMetadata("objectValue.kt") + public void testObjectValue() throws Exception { + runTest("compiler/testData/codegen/box/synchronized/objectValue.kt"); + } + + @Test + @TestMetadata("sync.kt") + public void testSync() throws Exception { + runTest("compiler/testData/codegen/box/synchronized/sync.kt"); + } + + @Test + @TestMetadata("value.kt") + public void testValue() throws Exception { + runTest("compiler/testData/codegen/box/synchronized/value.kt"); + } + + @Test + @TestMetadata("wait.kt") + public void testWait() throws Exception { + runTest("compiler/testData/codegen/box/synchronized/wait.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/syntheticAccessors") + @TestDataPath("$PROJECT_ROOT") + public class SyntheticAccessors { + @Test + @TestMetadata("accessorForAbstractProtected.kt") + public void testAccessorForAbstractProtected() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForAbstractProtected.kt"); + } + + @Test + @TestMetadata("accessorForGenericConstructor.kt") + public void testAccessorForGenericConstructor() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForGenericConstructor.kt"); + } + + @Test + @TestMetadata("accessorForGenericMethod.kt") + public void testAccessorForGenericMethod() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForGenericMethod.kt"); + } + + @Test + @TestMetadata("accessorForGenericMethodWithDefaults.kt") + public void testAccessorForGenericMethodWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForGenericMethodWithDefaults.kt"); + } + + @Test + @TestMetadata("accessorForProtected.kt") + public void testAccessorForProtected() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForProtected.kt"); + } + + @Test + @TestMetadata("accessorForProtectedInvokeVirtual.kt") + public void testAccessorForProtectedInvokeVirtual() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForProtectedInvokeVirtual.kt"); + } + + @Test + @TestMetadata("accessorForProtectedPropertyReference.kt") + public void testAccessorForProtectedPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForProtectedPropertyReference.kt"); + } + + @Test + public void testAllFilesPresentInSyntheticAccessors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/inline.kt"); + } + + @Test + @TestMetadata("inlineInOtherClass.kt") + public void testInlineInOtherClass() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/inlineInOtherClass.kt"); + } + + @Test + @TestMetadata("jvmField.kt") + public void testJvmField() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/jvmField.kt"); + } + + @Test + @TestMetadata("jvmNameForAccessors.kt") + public void testJvmNameForAccessors() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/jvmNameForAccessors.kt"); + } + + @Test + @TestMetadata("kt10047.kt") + public void testKt10047() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt10047.kt"); + } + + @Test + @TestMetadata("kt21258_indirect.kt") + public void testKt21258_indirect() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt21258_indirect.kt"); + } + + @Test + @TestMetadata("kt21258_simple.kt") + public void testKt21258_simple() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt21258_simple.kt"); + } + + @Test + @TestMetadata("kt48331.kt") + public void testKt48331() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt48331.kt"); + } + + @Test + @TestMetadata("kt48954.kt") + public void testKt48954() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt48954.kt"); + } + + @Test + @TestMetadata("kt49316.kt") + public void testKt49316() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt49316.kt"); + } + + @Test + @TestMetadata("kt49316a.kt") + public void testKt49316a() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt49316a.kt"); + } + + @Test + @TestMetadata("kt9717.kt") + public void testKt9717() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt9717.kt"); + } + + @Test + @TestMetadata("kt9717DifferentPackages.kt") + public void testKt9717DifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt9717DifferentPackages.kt"); + } + + @Test + @TestMetadata("kt9958.kt") + public void testKt9958() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt9958.kt"); + } + + @Test + @TestMetadata("kt9958Interface.kt") + public void testKt9958Interface() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt9958Interface.kt"); + } + + @Test + @TestMetadata("packagePrivate.kt") + public void testPackagePrivate() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/packagePrivate.kt"); + } + + @Test + @TestMetadata("packagePrivateInPrivateInline.kt") + public void testPackagePrivateInPrivateInline() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/packagePrivateInPrivateInline.kt"); + } + + @Test + @TestMetadata("protectedFromLambda.kt") + public void testProtectedFromLambda() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedFromLambda.kt"); + } + + @Test + @TestMetadata("protectedSuper.kt") + public void testProtectedSuper() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedSuper.kt"); + } + + @Test + @TestMetadata("protectedSuperclassCompanionObjectMember.kt") + public void testProtectedSuperclassCompanionObjectMember() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedSuperclassCompanionObjectMember.kt"); + } + + @Test + @TestMetadata("superCallFromMultipleSubclasses.kt") + public void testSuperCallFromMultipleSubclasses() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/superCallFromMultipleSubclasses.kt"); + } + + @Test + @TestMetadata("syntheticAccessorNames.kt") + public void testSyntheticAccessorNames() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/syntheticAccessorNames.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor") + @TestDataPath("$PROJECT_ROOT") + public class ProtectedJavaFieldAccessor { + @Test + public void testAllFilesPresentInProtectedJavaFieldAccessor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt44855.kt") + public void testKt44855() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt44855.kt"); + } + + @Test + @TestMetadata("kt44855a.kt") + public void testKt44855a() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt44855a.kt"); + } + + @Test + @TestMetadata("kt46578_anonObject.kt") + public void testKt46578_anonObject() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_anonObject.kt"); + } + + @Test + @TestMetadata("kt46578_delegated.kt") + public void testKt46578_delegated() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_delegated.kt"); + } + + @Test + @TestMetadata("kt46578_kotlin_delegated.kt") + public void testKt46578_kotlin_delegated() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_delegated.kt"); + } + + @Test + @TestMetadata("kt46578_kotlin_propertyRef.kt") + public void testKt46578_kotlin_propertyRef() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_propertyRef.kt"); + } + + @Test + @TestMetadata("kt46578_lambda.kt") + public void testKt46578_lambda() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_lambda.kt"); + } + + @Test + @TestMetadata("kt46578_propertyRef.kt") + public void testKt46578_propertyRef() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_propertyRef.kt"); + } + + @Test + @TestMetadata("kt46900_jkk_inheritance.kt") + public void testKt46900_jkk_inheritance() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46900_jkk_inheritance.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor") + @TestDataPath("$PROJECT_ROOT") + public class ProtectedMemberReferenceAccessor { + @Test + public void testAllFilesPresentInProtectedMemberReferenceAccessor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt46597_crossinline_java_field.kt") + public void testKt46597_crossinline_java_field() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_crossinline_java_field.kt"); + } + + @Test + @TestMetadata("kt46597_crossinline_jvmField_property.kt") + public void testKt46597_crossinline_jvmField_property() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_crossinline_jvmField_property.kt"); + } + + @Test + @TestMetadata("kt46597_crossinline_method.kt") + public void testKt46597_crossinline_method() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_crossinline_method.kt"); + } + + @Test + @TestMetadata("kt46597_crossinline_property.kt") + public void testKt46597_crossinline_property() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_crossinline_property.kt"); + } + + @Test + @TestMetadata("kt46597_java_field.kt") + public void testKt46597_java_field() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_java_field.kt"); + } + + @Test + @TestMetadata("kt46597_jvmField_property.kt") + public void testKt46597_jvmField_property() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_jvmField_property.kt"); + } + + @Test + @TestMetadata("kt46597_method.kt") + public void testKt46597_method() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_method.kt"); + } + + @Test + @TestMetadata("kt46597_property.kt") + public void testKt46597_property() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_property.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/syntheticExtensions") + @TestDataPath("$PROJECT_ROOT") + public class SyntheticExtensions { + @Test + public void testAllFilesPresentInSyntheticExtensions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticExtensions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("firstCapitalizedProperty.kt") + public void testFirstCapitalizedProperty() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/firstCapitalizedProperty.kt"); + } + + @Test + @TestMetadata("fromTwoBases.kt") + public void testFromTwoBases() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/fromTwoBases.kt"); + } + + @Test + @TestMetadata("getter.kt") + public void testGetter() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/getter.kt"); + } + + @Test + @TestMetadata("implicitReceiver.kt") + public void testImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt"); + } + + @Test + @TestMetadata("kt56072.kt") + public void testKt56072() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/kt56072.kt"); + } + + @Test + @TestMetadata("kt56154.kt") + public void testKt56154() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/kt56154.kt"); + } + + @Test + @TestMetadata("kt57103.kt") + public void testKt57103() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/kt57103.kt"); + } + + @Test + @TestMetadata("overrideKotlinPropertyByJavaMethod.kt") + public void testOverrideKotlinPropertyByJavaMethod() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/overrideKotlinPropertyByJavaMethod.kt"); + } + + @Test + @TestMetadata("overrideOnlyGetter.kt") + public void testOverrideOnlyGetter() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/overrideOnlyGetter.kt"); + } + + @Test + @TestMetadata("plusPlus.kt") + public void testPlusPlus() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/plusPlus.kt"); + } + + @Test + @TestMetadata("protected.kt") + public void testProtected() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/protected.kt"); + } + + @Test + @TestMetadata("protectedSetter.kt") + public void testProtectedSetter() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/protectedSetter.kt"); + } + + @Test + @TestMetadata("setter.kt") + public void testSetter() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/setter.kt"); + } + + @Test + @TestMetadata("setterNonVoid1.kt") + public void testSetterNonVoid1() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/setterNonVoid1.kt"); + } + + @Test + @TestMetadata("setterNonVoid2.kt") + public void testSetterNonVoid2() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/setterNonVoid2.kt"); + } + + @Test + @TestMetadata("syntheticJavaProperty.kt") + public void testSyntheticJavaProperty() throws Exception { + runTest("compiler/testData/codegen/box/syntheticExtensions/syntheticJavaProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/throws") + @TestDataPath("$PROJECT_ROOT") + public class Throws { + @Test + public void testAllFilesPresentInThrows() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/throws"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("delegationAndThrows.kt") + public void testDelegationAndThrows() throws Exception { + runTest("compiler/testData/codegen/box/throws/delegationAndThrows.kt"); + } + + @Test + @TestMetadata("delegationAndThrows_1_3.kt") + public void testDelegationAndThrows_1_3() throws Exception { + runTest("compiler/testData/codegen/box/throws/delegationAndThrows_1_3.kt"); + } + + @Test + @TestMetadata("delegationAndThrows_AgainstCompiled.kt") + public void testDelegationAndThrows_AgainstCompiled() throws Exception { + runTest("compiler/testData/codegen/box/throws/delegationAndThrows_AgainstCompiled.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/toArray") + @TestDataPath("$PROJECT_ROOT") + public class ToArray { + @Test + public void testAllFilesPresentInToArray() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/toArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("incorrectToArrayDetection.kt") + public void testIncorrectToArrayDetection() throws Exception { + runTest("compiler/testData/codegen/box/toArray/incorrectToArrayDetection.kt"); + } + + @Test + @TestMetadata("kt3177-toTypedArray.kt") + public void testKt3177_toTypedArray() throws Exception { + runTest("compiler/testData/codegen/box/toArray/kt3177-toTypedArray.kt"); + } + + @Test + @TestMetadata("kt44152.kt") + public void testKt44152() throws Exception { + runTest("compiler/testData/codegen/box/toArray/kt44152.kt"); + } + + @Test + @TestMetadata("returnToTypedArray.kt") + public void testReturnToTypedArray() throws Exception { + runTest("compiler/testData/codegen/box/toArray/returnToTypedArray.kt"); + } + + @Test + @TestMetadata("toArray.kt") + public void testToArray() throws Exception { + runTest("compiler/testData/codegen/box/toArray/toArray.kt"); + } + + @Test + @TestMetadata("toArrayAlreadyPresent.kt") + public void testToArrayAlreadyPresent() throws Exception { + runTest("compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt"); + } + + @Test + @TestMetadata("toArrayFromJava.kt") + public void testToArrayFromJava() throws Exception { + runTest("compiler/testData/codegen/box/toArray/toArrayFromJava.kt"); + } + + @Test + @TestMetadata("toArrayShouldBePublic.kt") + public void testToArrayShouldBePublic() throws Exception { + runTest("compiler/testData/codegen/box/toArray/toArrayShouldBePublic.kt"); + } + + @Test + @TestMetadata("toArrayShouldBePublicWithJava.kt") + public void testToArrayShouldBePublicWithJava() throws Exception { + runTest("compiler/testData/codegen/box/toArray/toArrayShouldBePublicWithJava.kt"); + } + + @Test + @TestMetadata("toTypedArray.kt") + public void testToTypedArray() throws Exception { + runTest("compiler/testData/codegen/box/toArray/toTypedArray.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/topLevelInitializtion") + @TestDataPath("$PROJECT_ROOT") + public class TopLevelInitializtion { + @Test + public void testAllFilesPresentInTopLevelInitializtion() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/topLevelInitializtion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("failInInitializer1.kt") + public void testFailInInitializer1() throws Exception { + runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer1.kt"); + } + + @Test + @TestMetadata("failInInitializer2.kt") + public void testFailInInitializer2() throws Exception { + runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer2.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/topLevelPrivate") + @TestDataPath("$PROJECT_ROOT") + public class TopLevelPrivate { + @Test + public void testAllFilesPresentInTopLevelPrivate() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/topLevelPrivate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("noPrivateNoAccessorsInMultiFileFacade.kt") + public void testNoPrivateNoAccessorsInMultiFileFacade() throws Exception { + runTest("compiler/testData/codegen/box/topLevelPrivate/noPrivateNoAccessorsInMultiFileFacade.kt"); + } + + @Test + @TestMetadata("noPrivateNoAccessorsInMultiFileFacade2.kt") + public void testNoPrivateNoAccessorsInMultiFileFacade2() throws Exception { + runTest("compiler/testData/codegen/box/topLevelPrivate/noPrivateNoAccessorsInMultiFileFacade2.kt"); + } + + @Test + @TestMetadata("privateInInlineNested.kt") + public void testPrivateInInlineNested() throws Exception { + runTest("compiler/testData/codegen/box/topLevelPrivate/privateInInlineNested.kt"); + } + + @Test + @TestMetadata("privateVisibility.kt") + public void testPrivateVisibility() throws Exception { + runTest("compiler/testData/codegen/box/topLevelPrivate/privateVisibility.kt"); + } + + @Test + @TestMetadata("syntheticAccessor.kt") + public void testSyntheticAccessor() throws Exception { + runTest("compiler/testData/codegen/box/topLevelPrivate/syntheticAccessor.kt"); + } + + @Test + @TestMetadata("syntheticAccessorInMultiFile.kt") + public void testSyntheticAccessorInMultiFile() throws Exception { + runTest("compiler/testData/codegen/box/topLevelPrivate/syntheticAccessorInMultiFile.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/trailingComma") + @TestDataPath("$PROJECT_ROOT") + public class TrailingComma { + @Test + public void testAllFilesPresentInTrailingComma() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/trailingComma"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("noDisambiguation.kt") + public void testNoDisambiguation() throws Exception { + runTest("compiler/testData/codegen/box/trailingComma/noDisambiguation.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/traits") + @TestDataPath("$PROJECT_ROOT") + public class Traits { + @Test + @TestMetadata("abstractClassInheritsFromInterface.kt") + public void testAbstractClassInheritsFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/traits/abstractClassInheritsFromInterface.kt"); + } + + @Test + @TestMetadata("abstractClassWithFakeOverride.kt") + public void testAbstractClassWithFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/traits/abstractClassWithFakeOverride.kt"); + } + + @Test + public void testAllFilesPresentInTraits() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/traits"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultImplCall.kt") + public void testDefaultImplCall() throws Exception { + runTest("compiler/testData/codegen/box/traits/defaultImplCall.kt"); + } + + @Test + @TestMetadata("defaultMethod.kt") + public void testDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/box/traits/defaultMethod.kt"); + } + + @Test + @TestMetadata("diamondPropertyAccessors.kt") + public void testDiamondPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/traits/diamondPropertyAccessors.kt"); + } + + @Test + @TestMetadata("doubleDiamond.kt") + public void testDoubleDiamond() throws Exception { + runTest("compiler/testData/codegen/box/traits/doubleDiamond.kt"); + } + + @Test + @TestMetadata("doubleGenericDiamond.kt") + public void testDoubleGenericDiamond() throws Exception { + runTest("compiler/testData/codegen/box/traits/doubleGenericDiamond.kt"); + } + + @Test + @TestMetadata("genericMethod.kt") + public void testGenericMethod() throws Exception { + runTest("compiler/testData/codegen/box/traits/genericMethod.kt"); + } + + @Test + @TestMetadata("indirectlyInheritPropertyGetter.kt") + public void testIndirectlyInheritPropertyGetter() throws Exception { + runTest("compiler/testData/codegen/box/traits/indirectlyInheritPropertyGetter.kt"); + } + + @Test + @TestMetadata("inheritJavaInterface.kt") + public void testInheritJavaInterface() throws Exception { + runTest("compiler/testData/codegen/box/traits/inheritJavaInterface.kt"); + } + + @Test + @TestMetadata("inheritJavaInterface_AgainstCompiled.kt") + public void testInheritJavaInterface_AgainstCompiled() throws Exception { + runTest("compiler/testData/codegen/box/traits/inheritJavaInterface_AgainstCompiled.kt"); + } + + @Test + @TestMetadata("inheritedFun.kt") + public void testInheritedFun() throws Exception { + runTest("compiler/testData/codegen/box/traits/inheritedFun.kt"); + } + + @Test + @TestMetadata("inheritedVar.kt") + public void testInheritedVar() throws Exception { + runTest("compiler/testData/codegen/box/traits/inheritedVar.kt"); + } + + @Test + @TestMetadata("interfaceDefaultImpls.kt") + public void testInterfaceDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/box/traits/interfaceDefaultImpls.kt"); + } + + @Test + @TestMetadata("interfaceWithNonAbstractFunIndirect.kt") + public void testInterfaceWithNonAbstractFunIndirect() throws Exception { + runTest("compiler/testData/codegen/box/traits/interfaceWithNonAbstractFunIndirect.kt"); + } + + @Test + @TestMetadata("interfaceWithNonAbstractFunIndirectGeneric.kt") + public void testInterfaceWithNonAbstractFunIndirectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/traits/interfaceWithNonAbstractFunIndirectGeneric.kt"); + } + + @Test + @TestMetadata("kt1936.kt") + public void testKt1936() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt1936.kt"); + } + + @Test + @TestMetadata("kt1936_1.kt") + public void testKt1936_1() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt1936_1.kt"); + } + + @Test + @TestMetadata("kt2260.kt") + public void testKt2260() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt2260.kt"); + } + + @Test + @TestMetadata("kt2399.kt") + public void testKt2399() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt2399.kt"); + } + + @Test + @TestMetadata("kt2541.kt") + public void testKt2541() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt2541.kt"); + } + + @Test + @TestMetadata("kt3315.kt") + public void testKt3315() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt3315.kt"); + } + + @Test + @TestMetadata("kt3500.kt") + public void testKt3500() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt3500.kt"); + } + + @Test + @TestMetadata("kt3579.kt") + public void testKt3579() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt3579.kt"); + } + + @Test + @TestMetadata("kt3579_2.kt") + public void testKt3579_2() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt3579_2.kt"); + } + + @Test + @TestMetadata("kt36973.kt") + public void testKt36973() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt36973.kt"); + } + + @Test + @TestMetadata("kt5393.kt") + public void testKt5393() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt5393.kt"); + } + + @Test + @TestMetadata("kt5393_property.kt") + public void testKt5393_property() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt5393_property.kt"); + } + + @Test + @TestMetadata("multiple.kt") + public void testMultiple() throws Exception { + runTest("compiler/testData/codegen/box/traits/multiple.kt"); + } + + @Test + @TestMetadata("multipleImplFromJava.kt") + public void testMultipleImplFromJava() throws Exception { + runTest("compiler/testData/codegen/box/traits/multipleImplFromJava.kt"); + } + + @Test + @TestMetadata("noPrivateDelegation.kt") + public void testNoPrivateDelegation() throws Exception { + runTest("compiler/testData/codegen/box/traits/noPrivateDelegation.kt"); + } + + @Test + @TestMetadata("privateInterfaceMethod.kt") + public void testPrivateInterfaceMethod() throws Exception { + runTest("compiler/testData/codegen/box/traits/privateInterfaceMethod.kt"); + } + + @Test + @TestMetadata("receiverOfIntersectionType.kt") + public void testReceiverOfIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/traits/receiverOfIntersectionType.kt"); + } + + @Test + @TestMetadata("sameNameMethodFromInterface.kt") + public void testSameNameMethodFromInterface() throws Exception { + runTest("compiler/testData/codegen/box/traits/sameNameMethodFromInterface.kt"); + } + + @Test + @TestMetadata("syntheticAccessor.kt") + public void testSyntheticAccessor() throws Exception { + runTest("compiler/testData/codegen/box/traits/syntheticAccessor.kt"); + } + + @Test + @TestMetadata("traitImplDelegationWithCovariantOverride.kt") + public void testTraitImplDelegationWithCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitImplDelegationWithCovariantOverride.kt"); + } + + @Test + @TestMetadata("traitImplDiamond.kt") + public void testTraitImplDiamond() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitImplDiamond.kt"); + } + + @Test + @TestMetadata("traitImplGenericDelegation.kt") + public void testTraitImplGenericDelegation() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitImplGenericDelegation.kt"); + } + + @Test + @TestMetadata("traitWithPrivateExtension.kt") + public void testTraitWithPrivateExtension() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitWithPrivateExtension.kt"); + } + + @Test + @TestMetadata("traitWithPrivateMember.kt") + public void testTraitWithPrivateMember() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitWithPrivateMember.kt"); + } + + @Test + @TestMetadata("traitWithPrivateMemberAccessFromLambda.kt") + public void testTraitWithPrivateMemberAccessFromLambda() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitWithPrivateMemberAccessFromLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/typeInfo") + @TestDataPath("$PROJECT_ROOT") + public class TypeInfo { + @Test + public void testAllFilesPresentInTypeInfo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typeInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("asInLoop.kt") + public void testAsInLoop() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/asInLoop.kt"); + } + + @Test + @TestMetadata("ifOrWhenSpecialCall.kt") + public void testIfOrWhenSpecialCall() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/ifOrWhenSpecialCall.kt"); + } + + @Test + @TestMetadata("implicitSmartCastThis.kt") + public void testImplicitSmartCastThis() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/implicitSmartCastThis.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/inheritance.kt"); + } + + @Test + @TestMetadata("kt2811.kt") + public void testKt2811() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/kt2811.kt"); + } + + @Test + @TestMetadata("primitiveTypeInfo.kt") + public void testPrimitiveTypeInfo() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/primitiveTypeInfo.kt"); + } + + @Test + @TestMetadata("smartCastThis.kt") + public void testSmartCastThis() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/smartCastThis.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/typeMapping") + @TestDataPath("$PROJECT_ROOT") + public class TypeMapping { + @Test + public void testAllFilesPresentInTypeMapping() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typeMapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("enhancedPrimitiveInReturnType.kt") + public void testEnhancedPrimitiveInReturnType() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/enhancedPrimitiveInReturnType.kt"); + } + + @Test + @TestMetadata("enhancedPrimitives.kt") + public void testEnhancedPrimitives() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/enhancedPrimitives.kt"); + } + + @Test + @TestMetadata("genericTypeWithNothing.kt") + public void testGenericTypeWithNothing() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/genericTypeWithNothing.kt"); + } + + @Test + @TestMetadata("kt2831.kt") + public void testKt2831() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/kt2831.kt"); + } + + @Test + @TestMetadata("kt309.kt") + public void testKt309() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/kt309.kt"); + } + + @Test + @TestMetadata("kt3286.kt") + public void testKt3286() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/kt3286.kt"); + } + + @Test + @TestMetadata("kt3863.kt") + public void testKt3863() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/kt3863.kt"); + } + + @Test + @TestMetadata("kt3976.kt") + public void testKt3976() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/kt3976.kt"); + } + + @Test + @TestMetadata("nothing.kt") + public void testNothing() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/nothing.kt"); + } + + @Test + @TestMetadata("nullNothing.kt") + public void testNullNothing() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/nullNothing.kt"); + } + + @Test + @TestMetadata("nullableNothing.kt") + public void testNullableNothing() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/nullableNothing.kt"); + } + + @Test + @TestMetadata("typeParameterMultipleBounds.kt") + public void testTypeParameterMultipleBounds() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/typeParameterMultipleBounds.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/typealias") + @TestDataPath("$PROJECT_ROOT") + public class Typealias { + @Test + public void testAllFilesPresentInTypealias() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typealias"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deserializedAbbreviationWithRedundantArgument.kt") + public void testDeserializedAbbreviationWithRedundantArgument() throws Exception { + runTest("compiler/testData/codegen/box/typealias/deserializedAbbreviationWithRedundantArgument.kt"); + } + + @Test + @TestMetadata("enumEntryQualifier.kt") + public void testEnumEntryQualifier() throws Exception { + runTest("compiler/testData/codegen/box/typealias/enumEntryQualifier.kt"); + } + + @Test + @TestMetadata("extensionFunction.kt") + public void testExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/typealias/extensionFunction.kt"); + } + + @Test + @TestMetadata("genericTypeAliasConstructor.kt") + public void testGenericTypeAliasConstructor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/genericTypeAliasConstructor.kt"); + } + + @Test + @TestMetadata("genericTypeAliasConstructor2.kt") + public void testGenericTypeAliasConstructor2() throws Exception { + runTest("compiler/testData/codegen/box/typealias/genericTypeAliasConstructor2.kt"); + } + + @Test + @TestMetadata("incorrectTypeOfTypealiasForSuspendFTMM.kt") + public void testIncorrectTypeOfTypealiasForSuspendFTMM() throws Exception { + runTest("compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFTMM.kt"); + } + + @Test + @TestMetadata("incorrectTypeOfTypealiasForSuspendFunctionalType.kt") + public void testIncorrectTypeOfTypealiasForSuspendFunctionalType() throws Exception { + runTest("compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFunctionalType.kt"); + } + + @Test + @TestMetadata("innerClassTypeAliasConstructor.kt") + public void testInnerClassTypeAliasConstructor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/innerClassTypeAliasConstructor.kt"); + } + + @Test + @TestMetadata("innerClassTypeAliasConstructorInSupertypes.kt") + public void testInnerClassTypeAliasConstructorInSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/typealias/innerClassTypeAliasConstructorInSupertypes.kt"); + } + + @Test + @TestMetadata("javaStaticMembersViaTypeAlias.kt") + public void testJavaStaticMembersViaTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/typealias/javaStaticMembersViaTypeAlias.kt"); + } + + @Test + @TestMetadata("kt15109.kt") + public void testKt15109() throws Exception { + runTest("compiler/testData/codegen/box/typealias/kt15109.kt"); + } + + @Test + @TestMetadata("kt45308.kt") + public void testKt45308() throws Exception { + runTest("compiler/testData/codegen/box/typealias/kt45308.kt"); + } + + @Test + @TestMetadata("objectLiteralConstructor.kt") + public void testObjectLiteralConstructor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/objectLiteralConstructor.kt"); + } + + @Test + @TestMetadata("privateInKlib.kt") + public void testPrivateInKlib() throws Exception { + runTest("compiler/testData/codegen/box/typealias/privateInKlib.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/typealias/simple.kt"); + } + + @Test + @TestMetadata("typeAliasAsBareType.kt") + public void testTypeAliasAsBareType() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasAsBareType.kt"); + } + + @Test + @TestMetadata("typeAliasCompanion.kt") + public void testTypeAliasCompanion() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasCompanion.kt"); + } + + @Test + @TestMetadata("typeAliasConstructor.kt") + public void testTypeAliasConstructor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasConstructor.kt"); + } + + @Test + @TestMetadata("typeAliasConstructorAccessor.kt") + public void testTypeAliasConstructorAccessor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasConstructorAccessor.kt"); + } + + @Test + @TestMetadata("typeAliasConstructorForArray.kt") + public void testTypeAliasConstructorForArray() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasConstructorForArray.kt"); + } + + @Test + @TestMetadata("typeAliasConstructorInSuperCall.kt") + public void testTypeAliasConstructorInSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasConstructorInSuperCall.kt"); + } + + @Test + @TestMetadata("typeAliasFunction.kt") + public void testTypeAliasFunction() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasFunction.kt"); + } + + @Test + @TestMetadata("typeAliasInAnonymousObjectType.kt") + public void testTypeAliasInAnonymousObjectType() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasInAnonymousObjectType.kt"); + } + + @Test + @TestMetadata("typeAliasObject.kt") + public void testTypeAliasObject() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasObject.kt"); + } + + @Test + @TestMetadata("typeAliasObjectCallable.kt") + public void testTypeAliasObjectCallable() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasObjectCallable.kt"); + } + + @Test + @TestMetadata("typeAliasOnTypeAlias.kt") + public void testTypeAliasOnTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasOnTypeAlias.kt"); + } + + @Test + @TestMetadata("typeAliasSecondaryConstructor.kt") + public void testTypeAliasSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasSecondaryConstructor.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/unaryOp") + @TestDataPath("$PROJECT_ROOT") + public class UnaryOp { + @Test + public void testAllFilesPresentInUnaryOp() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unaryOp"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("call.kt") + public void testCall() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/call.kt"); + } + + @Test + @TestMetadata("callNullable.kt") + public void testCallNullable() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/callNullable.kt"); + } + + @Test + @TestMetadata("callWithCommonType.kt") + public void testCallWithCommonType() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/callWithCommonType.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/intrinsic.kt"); + } + + @Test + @TestMetadata("intrinsicNullable.kt") + public void testIntrinsicNullable() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/intrinsicNullable.kt"); + } + + @Test + @TestMetadata("longOverflow.kt") + public void testLongOverflow() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/longOverflow.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/underscoredTypeArguments") + @TestDataPath("$PROJECT_ROOT") + public class UnderscoredTypeArguments { + @Test + public void testAllFilesPresentInUnderscoredTypeArguments() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/underscoredTypeArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("backTicked.kt") + public void testBackTicked() throws Exception { + runTest("compiler/testData/codegen/box/underscoredTypeArguments/backTicked.kt"); + } + + @Test + @TestMetadata("dependentTypeParameters.kt") + public void testDependentTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/underscoredTypeArguments/dependentTypeParameters.kt"); + } + + @Test + @TestMetadata("lambdaInputType.kt") + public void testLambdaInputType() throws Exception { + runTest("compiler/testData/codegen/box/underscoredTypeArguments/lambdaInputType.kt"); + } + + @Test + @TestMetadata("react.kt") + public void testReact() throws Exception { + runTest("compiler/testData/codegen/box/underscoredTypeArguments/react.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/underscoredTypeArguments/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/unit") + @TestDataPath("$PROJECT_ROOT") + public class Unit { + @Test + public void testAllFilesPresentInUnit() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("closureReturnsNullableUnit.kt") + public void testClosureReturnsNullableUnit() throws Exception { + runTest("compiler/testData/codegen/box/unit/closureReturnsNullableUnit.kt"); + } + + @Test + @TestMetadata("ifElse.kt") + public void testIfElse() throws Exception { + runTest("compiler/testData/codegen/box/unit/ifElse.kt"); + } + + @Test + @TestMetadata("kt3634.kt") + public void testKt3634() throws Exception { + runTest("compiler/testData/codegen/box/unit/kt3634.kt"); + } + + @Test + @TestMetadata("kt4212.kt") + public void testKt4212() throws Exception { + runTest("compiler/testData/codegen/box/unit/kt4212.kt"); + } + + @Test + @TestMetadata("kt4265.kt") + public void testKt4265() throws Exception { + runTest("compiler/testData/codegen/box/unit/kt4265.kt"); + } + + @Test + @TestMetadata("kt51036.kt") + public void testKt51036() throws Exception { + runTest("compiler/testData/codegen/box/unit/kt51036.kt"); + } + + @Test + @TestMetadata("kt56723.kt") + public void testKt56723() throws Exception { + runTest("compiler/testData/codegen/box/unit/kt56723.kt"); + } + + @Test + @TestMetadata("nullableUnit.kt") + public void testNullableUnit() throws Exception { + runTest("compiler/testData/codegen/box/unit/nullableUnit.kt"); + } + + @Test + @TestMetadata("nullableUnitInWhen1.kt") + public void testNullableUnitInWhen1() throws Exception { + runTest("compiler/testData/codegen/box/unit/nullableUnitInWhen1.kt"); + } + + @Test + @TestMetadata("nullableUnitInWhen2.kt") + public void testNullableUnitInWhen2() throws Exception { + runTest("compiler/testData/codegen/box/unit/nullableUnitInWhen2.kt"); + } + + @Test + @TestMetadata("nullableUnitInWhen3.kt") + public void testNullableUnitInWhen3() throws Exception { + runTest("compiler/testData/codegen/box/unit/nullableUnitInWhen3.kt"); + } + + @Test + @TestMetadata("sillyThings.kt") + public void testSillyThings() throws Exception { + runTest("compiler/testData/codegen/box/unit/sillyThings.kt"); + } + + @Test + @TestMetadata("unitClassObject.kt") + public void testUnitClassObject() throws Exception { + runTest("compiler/testData/codegen/box/unit/unitClassObject.kt"); + } + + @Test + @TestMetadata("UnitValue.kt") + public void testUnitValue() throws Exception { + runTest("compiler/testData/codegen/box/unit/UnitValue.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/unsignedTypes") + @TestDataPath("$PROJECT_ROOT") + public class UnsignedTypes { + @Test + public void testAllFilesPresentInUnsignedTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unsignedTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxConstValOfUnsignedType.kt") + public void testBoxConstValOfUnsignedType() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/boxConstValOfUnsignedType.kt"); + } + + @Test + @TestMetadata("boxedUnsignedEqualsZero.kt") + public void testBoxedUnsignedEqualsZero() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/boxedUnsignedEqualsZero.kt"); + } + + @Test + @TestMetadata("checkBasicUnsignedLiterals.kt") + public void testCheckBasicUnsignedLiterals() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt"); + } + + @Test + @TestMetadata("defaultArguments.kt") + public void testDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/defaultArguments.kt"); + } + + @Test + @TestMetadata("equalsImplForInlineClassWrappingNullableInlineClass.kt") + public void testEqualsImplForInlineClassWrappingNullableInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/equalsImplForInlineClassWrappingNullableInlineClass.kt"); + } + + @Test + @TestMetadata("evaluateConstructorOfUnsignedArrayType.kt") + public void testEvaluateConstructorOfUnsignedArrayType() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedArrayType.kt"); + } + + @Test + @TestMetadata("evaluateConstructorOfUnsignedType.kt") + public void testEvaluateConstructorOfUnsignedType() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedType.kt"); + } + + @Test + @TestMetadata("forEachIndexedInListOfUInts.kt") + public void testForEachIndexedInListOfUInts() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forEachIndexedInListOfUInts.kt"); + } + + @Test + @TestMetadata("forInUnsignedDownTo.kt") + public void testForInUnsignedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedDownTo.kt"); + } + + @Test + @TestMetadata("forInUnsignedProgression.kt") + public void testForInUnsignedProgression() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedProgression.kt"); + } + + @Test + @TestMetadata("forInUnsignedRange.kt") + public void testForInUnsignedRange() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedRange.kt"); + } + + @Test + @TestMetadata("forInUnsignedRangeLiteral.kt") + public void testForInUnsignedRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedRangeLiteral.kt"); + } + + @Test + @TestMetadata("forInUnsignedRangeWithCoercion.kt") + public void testForInUnsignedRangeWithCoercion() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedRangeWithCoercion.kt"); + } + + @Test + @TestMetadata("forInUnsignedUntil.kt") + public void testForInUnsignedUntil() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedUntil.kt"); + } + + @Test + @TestMetadata("implicitIntegerCoercionNamedArg.kt") + public void testImplicitIntegerCoercionNamedArg() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionNamedArg.kt"); + } + + @Test + @TestMetadata("implicitIntegerCoercionOverloadResolutionAmbiguity.kt") + public void testImplicitIntegerCoercionOverloadResolutionAmbiguity() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionOverloadResolutionAmbiguity.kt"); + } + + @Test + @TestMetadata("inUnsignedDownTo.kt") + public void testInUnsignedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/inUnsignedDownTo.kt"); + } + + @Test + @TestMetadata("inUnsignedRange.kt") + public void testInUnsignedRange() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/inUnsignedRange.kt"); + } + + @Test + @TestMetadata("inUnsignedRangeLiteral.kt") + public void testInUnsignedRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/inUnsignedRangeLiteral.kt"); + } + + @Test + @TestMetadata("inUnsignedUntil.kt") + public void testInUnsignedUntil() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/inUnsignedUntil.kt"); + } + + @Test + @TestMetadata("iterateOverArrayOfUnsignedValues.kt") + public void testIterateOverArrayOfUnsignedValues() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/iterateOverArrayOfUnsignedValues.kt"); + } + + @Test + @TestMetadata("iterateOverListOfBoxedUnsignedValues.kt") + public void testIterateOverListOfBoxedUnsignedValues() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/iterateOverListOfBoxedUnsignedValues.kt"); + } + + @Test + @TestMetadata("kt25784.kt") + public void testKt25784() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt"); + } + + @Test + @TestMetadata("kt43286.kt") + public void testKt43286() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt"); + } + + @Test + @TestMetadata("kt43286a.kt") + public void testKt43286a() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/kt43286a.kt"); + } + + @Test + @TestMetadata("kt47716.kt") + public void testKt47716() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/kt47716.kt"); + } + + @Test + @TestMetadata("kt61418.kt") + public void testKt61418() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/kt61418.kt"); + } + + @Test + @TestMetadata("literalEqualsNullableUnsigned.kt") + public void testLiteralEqualsNullableUnsigned() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/literalEqualsNullableUnsigned.kt"); + } + + @Test + @TestMetadata("nullableUnsignedEqualsLiteral.kt") + public void testNullableUnsignedEqualsLiteral() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/nullableUnsignedEqualsLiteral.kt"); + } + + @Test + @TestMetadata("signedToUnsignedConversions.kt") + public void testSignedToUnsignedConversions() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/signedToUnsignedConversions.kt"); + } + + @Test + @TestMetadata("unsignedArraySize.kt") + public void testUnsignedArraySize() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedArraySize.kt"); + } + + @Test + @TestMetadata("unsignedIntCompare.kt") + public void testUnsignedIntCompare() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare.kt"); + } + + @Test + @TestMetadata("unsignedIntDivide.kt") + public void testUnsignedIntDivide() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide.kt"); + } + + @Test + @TestMetadata("unsignedIntRemainder.kt") + public void testUnsignedIntRemainder() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder.kt"); + } + + @Test + @TestMetadata("unsignedIntToString.kt") + public void testUnsignedIntToString() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntToString.kt"); + } + + @Test + @TestMetadata("unsignedLiteralsForMaxLongValue.kt") + public void testUnsignedLiteralsForMaxLongValue() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsForMaxLongValue.kt"); + } + + @Test + @TestMetadata("unsignedLiteralsInApiVersion14.kt") + public void testUnsignedLiteralsInApiVersion14() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsInApiVersion14.kt"); + } + + @Test + @TestMetadata("unsignedLiteralsWithSignedOverflow.kt") + public void testUnsignedLiteralsWithSignedOverflow() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt"); + } + + @Test + @TestMetadata("unsignedLongCompare.kt") + public void testUnsignedLongCompare() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare.kt"); + } + + @Test + @TestMetadata("unsignedLongDivide.kt") + public void testUnsignedLongDivide() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide.kt"); + } + + @Test + @TestMetadata("unsignedLongRemainder.kt") + public void testUnsignedLongRemainder() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongRemainder.kt"); + } + + @Test + @TestMetadata("unsignedLongToString.kt") + public void testUnsignedLongToString() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongToString.kt"); + } + + @Test + @TestMetadata("unsignedRangeIterator.kt") + public void testUnsignedRangeIterator() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedRangeIterator.kt"); + } + + @Test + @TestMetadata("unsignedToSignedConversion.kt") + public void testUnsignedToSignedConversion() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedToSignedConversion.kt"); + } + + @Test + @TestMetadata("unsignedTypePrefixIncrementDecrementBoxing.kt") + public void testUnsignedTypePrefixIncrementDecrementBoxing() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt"); + } + + @Test + @TestMetadata("unsignedTypeValuesInsideStringTemplates.kt") + public void testUnsignedTypeValuesInsideStringTemplates() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedTypeValuesInsideStringTemplates.kt"); + } + + @Test + @TestMetadata("varargsOfUnsignedTypes.kt") + public void testVarargsOfUnsignedTypes() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/varargsOfUnsignedTypes.kt"); + } + + @Test + @TestMetadata("whenByUnsigned.kt") + public void testWhenByUnsigned() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/whenByUnsigned.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8Intrinsics { + @Test + public void testAllFilesPresentInJvm8Intrinsics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("unsignedIntCompare_jvm8.kt") + public void testUnsignedIntCompare_jvm8() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedIntCompare_jvm8.kt"); + } + + @Test + @TestMetadata("unsignedIntDivide_jvm8.kt") + public void testUnsignedIntDivide_jvm8() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedIntDivide_jvm8.kt"); + } + + @Test + @TestMetadata("unsignedIntRemainder_jvm8.kt") + public void testUnsignedIntRemainder_jvm8() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedIntRemainder_jvm8.kt"); + } + + @Test + @TestMetadata("unsignedIntToString_jvm8.kt") + public void testUnsignedIntToString_jvm8() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedIntToString_jvm8.kt"); + } + + @Test + @TestMetadata("unsignedLongCompare_jvm8.kt") + public void testUnsignedLongCompare_jvm8() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedLongCompare_jvm8.kt"); + } + + @Test + @TestMetadata("unsignedLongDivide_jvm8.kt") + public void testUnsignedLongDivide_jvm8() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedLongDivide_jvm8.kt"); + } + + @Test + @TestMetadata("unsignedLongRemainder_jvm8.kt") + public void testUnsignedLongRemainder_jvm8() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedLongRemainder_jvm8.kt"); + } + + @Test + @TestMetadata("unsignedLongToString_jvm8.kt") + public void testUnsignedLongToString_jvm8() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedLongToString_jvm8.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/valueClasses") + @TestDataPath("$PROJECT_ROOT") + public class ValueClasses { + @Test + public void testAllFilesPresentInValueClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/valueClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classFlattening.kt") + public void testClassFlattening() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/classFlattening.kt"); + } + + @Test + @TestMetadata("complex.kt") + public void testComplex() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/complex.kt"); + } + + @Test + @TestMetadata("conditionalExpressions.kt") + public void testConditionalExpressions() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/conditionalExpressions.kt"); + } + + @Test + @TestMetadata("defaultParameters.kt") + public void testDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/defaultParameters.kt"); + } + + @Test + @TestMetadata("delegating.kt") + public void testDelegating() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/delegating.kt"); + } + + @Test + @TestMetadata("delegatingConstructors.kt") + public void testDelegatingConstructors() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/delegatingConstructors.kt"); + } + + @Test + @TestMetadata("equality.kt") + public void testEquality() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/equality.kt"); + } + + @Test + @TestMetadata("fakeOverrideCall.kt") + public void testFakeOverrideCall() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/fakeOverrideCall.kt"); + } + + @Test + @TestMetadata("forStatement.kt") + public void testForStatement() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/forStatement.kt"); + } + + @Test + @TestMetadata("functionReferences.kt") + public void testFunctionReferences() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/functionReferences.kt"); + } + + @Test + @TestMetadata("inlineFunctions.kt") + public void testInlineFunctions() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/inlineFunctions.kt"); + } + + @Test + @TestMetadata("kt59079.kt") + public void testKt59079() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/kt59079.kt"); + } + + @Test + @TestMetadata("mfvcAndIcInsideConstructorsOfEachOther.kt") + public void testMfvcAndIcInsideConstructorsOfEachOther() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/mfvcAndIcInsideConstructorsOfEachOther.kt"); + } + + @Test + @TestMetadata("mfvcBothEqualsOverride.kt") + public void testMfvcBothEqualsOverride() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/mfvcBothEqualsOverride.kt"); + } + + @Test + @TestMetadata("mfvcEqualsConsistency.kt") + public void testMfvcEqualsConsistency() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsConsistency.kt"); + } + + @Test + @TestMetadata("mfvcEqualsOverriddenForCollections.kt") + public void testMfvcEqualsOverriddenForCollections() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverriddenForCollections.kt"); + } + + @Test + @TestMetadata("mfvcEqualsOverride.kt") + public void testMfvcEqualsOverride() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverride.kt"); + } + + @Test + @TestMetadata("mfvcFieldInitializationOrder.kt") + public void testMfvcFieldInitializationOrder() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/mfvcFieldInitializationOrder.kt"); + } + + @Test + @TestMetadata("mfvcHashCodeOverride.kt") + public void testMfvcHashCodeOverride() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/mfvcHashCodeOverride.kt"); + } + + @Test + @TestMetadata("mfvcTypedEqualsGenerics.kt") + public void testMfvcTypedEqualsGenerics() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/mfvcTypedEqualsGenerics.kt"); + } + + @Test + @TestMetadata("mfvcUntypedEqualsOverriden.kt") + public void testMfvcUntypedEqualsOverriden() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/mfvcUntypedEqualsOverriden.kt"); + } + + @Test + @TestMetadata("multiModules.kt") + public void testMultiModules() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/multiModules.kt"); + } + + @Test + @TestMetadata("mutableSharedMfvcVar.kt") + public void testMutableSharedMfvcVar() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/mutableSharedMfvcVar.kt"); + } + + @Test + @TestMetadata("nestedLoweringStart.kt") + public void testNestedLoweringStart() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/nestedLoweringStart.kt"); + } + + @Test + @TestMetadata("nothingAsParameterType.kt") + public void testNothingAsParameterType() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/nothingAsParameterType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideFunctionWithDefaultParameter.kt") + public void testOverrideFunctionWithDefaultParameter() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/overrideFunctionWithDefaultParameter.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrideFunctionWithDefaultParameterGeneric.kt") + public void testOverrideFunctionWithDefaultParameterGeneric() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/overrideFunctionWithDefaultParameterGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("overrides.kt") + public void testOverrides() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/overrides.kt"); + } + + @Test + @TestMetadata("overrides_inlineClass.kt") + public void testOverrides_inlineClass() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/overrides_inlineClass.kt"); + } + + @Test + @TestMetadata("overrides_typeParameters.kt") + public void testOverrides_typeParameters() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/overrides_typeParameters.kt"); + } + + @Test + @TestMetadata("regularClassSecondaryConstructorWithMfvc.kt") + public void testRegularClassSecondaryConstructorWithMfvc() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/regularClassSecondaryConstructorWithMfvc.kt"); + } + + @Test + @TestMetadata("secondaryConstructorExpectActual.kt") + public void testSecondaryConstructorExpectActual() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/secondaryConstructorExpectActual.kt"); + } + + @Test + @TestMetadata("secondaryConstructorVisibilies.kt") + public void testSecondaryConstructorVisibilies() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/secondaryConstructorVisibilies.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorWithVararg.kt") + public void testSecondaryConstructorWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorWithVarargGeneric.kt") + public void testSecondaryConstructorWithVarargGeneric() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal()); + } + + @Test + @TestMetadata("secondaryConstructorsWithBody.kt") + public void testSecondaryConstructorsWithBody() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/secondaryConstructorsWithBody.kt"); + } + + @Test + @TestMetadata("throwingMFVCReassignments.kt") + public void testThrowingMFVCReassignments() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/throwingMFVCReassignments.kt"); + } + + @Test + @TestMetadata("tryExpressions.kt") + public void testTryExpressions() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/tryExpressions.kt"); + } + + @Test + @TestMetadata("visibility.kt") + public void testVisibility() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/visibility.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/valueClasses/javaInterop") + @TestDataPath("$PROJECT_ROOT") + public class JavaInterop { + @Test + public void testAllFilesPresentInJavaInterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/valueClasses/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("methodWithValueClassDeclaredInJava.kt") + public void testMethodWithValueClassDeclaredInJava() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/javaInterop/methodWithValueClassDeclaredInJava.kt"); + } + + @Test + @TestMetadata("methodWithValueClassDeclaredInJavaOverriddenInKotlin.kt") + public void testMethodWithValueClassDeclaredInJavaOverriddenInKotlin() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/javaInterop/methodWithValueClassDeclaredInJavaOverriddenInKotlin.kt"); + } + + @Test + @TestMetadata("methodWithValueClassInheritedBothFromJavaAndKotlin.kt") + public void testMethodWithValueClassInheritedBothFromJavaAndKotlin() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/javaInterop/methodWithValueClassInheritedBothFromJavaAndKotlin.kt"); + } + + @Test + @TestMetadata("methodWithValueClassInheritedInJavaOverriddenInKotlin.kt") + public void testMethodWithValueClassInheritedInJavaOverriddenInKotlin() throws Exception { + runTest("compiler/testData/codegen/box/valueClasses/javaInterop/methodWithValueClassInheritedInJavaOverriddenInKotlin.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/vararg") + @TestDataPath("$PROJECT_ROOT") + public class Vararg { + @Test + public void testAllFilesPresentInVararg() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("assigningArrayToVarargInAnnotation.kt") + public void testAssigningArrayToVarargInAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/vararg/assigningArrayToVarargInAnnotation.kt"); + } + + @Test + @TestMetadata("boxingArgumentsForVararg.kt") + public void testBoxingArgumentsForVararg() throws Exception { + runTest("compiler/testData/codegen/box/vararg/boxingArgumentsForVararg.kt"); + } + + @Test + @TestMetadata("doNotCopyImmediatelyCreatedArrays.kt") + public void testDoNotCopyImmediatelyCreatedArrays() throws Exception { + runTest("compiler/testData/codegen/box/vararg/doNotCopyImmediatelyCreatedArrays.kt"); + } + + @Test + @TestMetadata("emptyVarargOfBoxedPrimitiveType.kt") + public void testEmptyVarargOfBoxedPrimitiveType() throws Exception { + runTest("compiler/testData/codegen/box/vararg/emptyVarargOfBoxedPrimitiveType.kt"); + } + + @Test + @TestMetadata("evaluationOrder.kt") + public void testEvaluationOrder() throws Exception { + runTest("compiler/testData/codegen/box/vararg/evaluationOrder.kt"); + } + + @Test + @TestMetadata("inlineClassArraysAsNamedArgumentInVararg.kt") + public void testInlineClassArraysAsNamedArgumentInVararg() throws Exception { + runTest("compiler/testData/codegen/box/vararg/inlineClassArraysAsNamedArgumentInVararg.kt"); + } + + @Test + @TestMetadata("kt10926.kt") + public void testKt10926() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt10926.kt"); + } + + @Test + @TestMetadata("kt1978.kt") + public void testKt1978() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt1978.kt"); + } + + @Test + @TestMetadata("kt37715.kt") + public void testKt37715() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt37715.kt"); + } + + @Test + @TestMetadata("kt37779.kt") + public void testKt37779() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt37779.kt"); + } + + @Test + @TestMetadata("kt45187.kt") + public void testKt45187() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt45187.kt"); + } + + @Test + @TestMetadata("kt46092.kt") + public void testKt46092() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt46092.kt"); + } + + @Test + @TestMetadata("kt52146_samWithSelfTypeAndStarProjection.kt") + public void testKt52146_samWithSelfTypeAndStarProjection() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt52146_samWithSelfTypeAndStarProjection.kt"); + } + + @Test + @TestMetadata("kt581.kt") + public void testKt581() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt581.kt"); + } + + @Test + @TestMetadata("kt6192.kt") + public void testKt6192() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt6192.kt"); + } + + @Test + @TestMetadata("kt796_797.kt") + public void testKt796_797() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt796_797.kt"); + } + + @Test + @TestMetadata("notInLastPosition.kt") + public void testNotInLastPosition() throws Exception { + runTest("compiler/testData/codegen/box/vararg/notInLastPosition.kt"); + } + + @Test + @TestMetadata("referenceToContainsFromVarargParameter.kt") + public void testReferenceToContainsFromVarargParameter() throws Exception { + runTest("compiler/testData/codegen/box/vararg/referenceToContainsFromVarargParameter.kt"); + } + + @Test + @TestMetadata("singleAssignmentToVarargsInFunction.kt") + public void testSingleAssignmentToVarargsInFunction() throws Exception { + runTest("compiler/testData/codegen/box/vararg/singleAssignmentToVarargsInFunction.kt"); + } + + @Test + @TestMetadata("spreadCopiesArray.kt") + public void testSpreadCopiesArray() throws Exception { + runTest("compiler/testData/codegen/box/vararg/spreadCopiesArray.kt"); + } + + @Test + @TestMetadata("useSuspendFunResultAsVararg.kt") + public void testUseSuspendFunResultAsVararg() throws Exception { + runTest("compiler/testData/codegen/box/vararg/useSuspendFunResultAsVararg.kt"); + } + + @Test + @TestMetadata("varargInFunParam.kt") + public void testVarargInFunParam() throws Exception { + runTest("compiler/testData/codegen/box/vararg/varargInFunParam.kt"); + } + + @Test + @TestMetadata("varargInJava.kt") + public void testVarargInJava() throws Exception { + runTest("compiler/testData/codegen/box/vararg/varargInJava.kt"); + } + + @Test + @TestMetadata("varargInTailrec.kt") + public void testVarargInTailrec() throws Exception { + runTest("compiler/testData/codegen/box/vararg/varargInTailrec.kt"); + } + + @Test + @TestMetadata("varargsAndFunctionLiterals.kt") + public void testVarargsAndFunctionLiterals() throws Exception { + runTest("compiler/testData/codegen/box/vararg/varargsAndFunctionLiterals.kt"); + } + + @Test + @TestMetadata("varargsOverride.kt") + public void testVarargsOverride() throws Exception { + runTest("compiler/testData/codegen/box/vararg/varargsOverride.kt"); + } + + @Test + @TestMetadata("varargsOverride2.kt") + public void testVarargsOverride2() throws Exception { + runTest("compiler/testData/codegen/box/vararg/varargsOverride2.kt"); + } + + @Test + @TestMetadata("varargsOverride3.kt") + public void testVarargsOverride3() throws Exception { + runTest("compiler/testData/codegen/box/vararg/varargsOverride3.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/volatile") + @TestDataPath("$PROJECT_ROOT") + public class Volatile { + @Test + public void testAllFilesPresentInVolatile() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/volatile"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("volatileBool.kt") + public void testVolatileBool() throws Exception { + runTest("compiler/testData/codegen/box/volatile/volatileBool.kt"); + } + + @Test + @TestMetadata("volatileByte.kt") + public void testVolatileByte() throws Exception { + runTest("compiler/testData/codegen/box/volatile/volatileByte.kt"); + } + + @Test + @TestMetadata("volatileDouble.kt") + public void testVolatileDouble() throws Exception { + runTest("compiler/testData/codegen/box/volatile/volatileDouble.kt"); + } + + @Test + @TestMetadata("volatileFloat.kt") + public void testVolatileFloat() throws Exception { + runTest("compiler/testData/codegen/box/volatile/volatileFloat.kt"); + } + + @Test + @TestMetadata("volatileGeneric.kt") + public void testVolatileGeneric() throws Exception { + runTest("compiler/testData/codegen/box/volatile/volatileGeneric.kt"); + } + + @Test + @TestMetadata("volatileInt.kt") + public void testVolatileInt() throws Exception { + runTest("compiler/testData/codegen/box/volatile/volatileInt.kt"); + } + + @Test + @TestMetadata("volatileLong.kt") + public void testVolatileLong() throws Exception { + runTest("compiler/testData/codegen/box/volatile/volatileLong.kt"); + } + + @Test + @TestMetadata("volatileShort.kt") + public void testVolatileShort() throws Exception { + runTest("compiler/testData/codegen/box/volatile/volatileShort.kt"); + } + + @Test + @TestMetadata("volatileString.kt") + public void testVolatileString() throws Exception { + runTest("compiler/testData/codegen/box/volatile/volatileString.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/when") + @TestDataPath("$PROJECT_ROOT") + public class When { + @Test + public void testAllFilesPresentInWhen() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callProperty.kt") + public void testCallProperty() throws Exception { + runTest("compiler/testData/codegen/box/when/callProperty.kt"); + } + + @Test + @TestMetadata("edgeCases.kt") + public void testEdgeCases() throws Exception { + runTest("compiler/testData/codegen/box/when/edgeCases.kt"); + } + + @Test + @TestMetadata("emptyWhen.kt") + public void testEmptyWhen() throws Exception { + runTest("compiler/testData/codegen/box/when/emptyWhen.kt"); + } + + @Test + @TestMetadata("exceptionOnNoMatch.kt") + public void testExceptionOnNoMatch() throws Exception { + runTest("compiler/testData/codegen/box/when/exceptionOnNoMatch.kt"); + } + + @Test + @TestMetadata("exhaustiveBoolean.kt") + public void testExhaustiveBoolean() throws Exception { + runTest("compiler/testData/codegen/box/when/exhaustiveBoolean.kt"); + } + + @Test + @TestMetadata("exhaustiveBreakContinue.kt") + public void testExhaustiveBreakContinue() throws Exception { + runTest("compiler/testData/codegen/box/when/exhaustiveBreakContinue.kt"); + } + + @Test + @TestMetadata("exhaustiveWhenInitialization.kt") + public void testExhaustiveWhenInitialization() throws Exception { + runTest("compiler/testData/codegen/box/when/exhaustiveWhenInitialization.kt"); + } + + @Test + @TestMetadata("exhaustiveWhenReturn.kt") + public void testExhaustiveWhenReturn() throws Exception { + runTest("compiler/testData/codegen/box/when/exhaustiveWhenReturn.kt"); + } + + @Test + @TestMetadata("implicitExhaustiveAndReturn.kt") + public void testImplicitExhaustiveAndReturn() throws Exception { + runTest("compiler/testData/codegen/box/when/implicitExhaustiveAndReturn.kt"); + } + + @Test + @TestMetadata("inferredTypeParameters.kt") + public void testInferredTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/when/inferredTypeParameters.kt"); + } + + @Test + @TestMetadata("integralWhenWithNoInlinedConstants.kt") + public void testIntegralWhenWithNoInlinedConstants() throws Exception { + runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt"); + } + + @Test + @TestMetadata("integralWhenWithNoInlinedConstants2.kt") + public void testIntegralWhenWithNoInlinedConstants2() throws Exception { + runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt"); + } + + @Test + @TestMetadata("is.kt") + public void testIs() throws Exception { + runTest("compiler/testData/codegen/box/when/is.kt"); + } + + @Test + @TestMetadata("kt2457.kt") + public void testKt2457() throws Exception { + runTest("compiler/testData/codegen/box/when/kt2457.kt"); + } + + @Test + @TestMetadata("kt2466.kt") + public void testKt2466() throws Exception { + runTest("compiler/testData/codegen/box/when/kt2466.kt"); + } + + @Test + @TestMetadata("kt43242.kt") + public void testKt43242() throws Exception { + runTest("compiler/testData/codegen/box/when/kt43242.kt"); + } + + @Test + @TestMetadata("kt45081.kt") + public void testKt45081() throws Exception { + runTest("compiler/testData/codegen/box/when/kt45081.kt"); + } + + @Test + @TestMetadata("kt47365.kt") + public void testKt47365() throws Exception { + runTest("compiler/testData/codegen/box/when/kt47365.kt"); + } + + @Test + @TestMetadata("kt47475.kt") + public void testKt47475() throws Exception { + runTest("compiler/testData/codegen/box/when/kt47475.kt"); + } + + @Test + @TestMetadata("kt5307.kt") + public void testKt5307() throws Exception { + runTest("compiler/testData/codegen/box/when/kt5307.kt"); + } + + @Test + @TestMetadata("kt5448.kt") + public void testKt5448() throws Exception { + runTest("compiler/testData/codegen/box/when/kt5448.kt"); + } + + @Test + @TestMetadata("kt55993.kt") + public void testKt55993() throws Exception { + runTest("compiler/testData/codegen/box/when/kt55993.kt"); + } + + @Test + @TestMetadata("kt59346.kt") + public void testKt59346() throws Exception { + runTest("compiler/testData/codegen/box/when/kt59346.kt"); + } + + @Test + @TestMetadata("kt60212.kt") + public void testKt60212() throws Exception { + runTest("compiler/testData/codegen/box/when/kt60212.kt"); + } + + @Test + @TestMetadata("longCondition.kt") + public void testLongCondition() throws Exception { + runTest("compiler/testData/codegen/box/when/longCondition.kt"); + } + + @Test + @TestMetadata("longInRange.kt") + public void testLongInRange() throws Exception { + runTest("compiler/testData/codegen/box/when/longInRange.kt"); + } + + @Test + @TestMetadata("matchNotNullAgainstNullable.kt") + public void testMatchNotNullAgainstNullable() throws Exception { + runTest("compiler/testData/codegen/box/when/matchNotNullAgainstNullable.kt"); + } + + @Test + @TestMetadata("multipleEntries.kt") + public void testMultipleEntries() throws Exception { + runTest("compiler/testData/codegen/box/when/multipleEntries.kt"); + } + + @Test + @TestMetadata("noElseCoerceToUnit.kt") + public void testNoElseCoerceToUnit() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseCoerceToUnit.kt"); + } + + @Test + @TestMetadata("noElseExhaustive.kt") + public void testNoElseExhaustive() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseExhaustive.kt"); + } + + @Test + @TestMetadata("noElseExhaustiveStatement.kt") + public void testNoElseExhaustiveStatement() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseExhaustiveStatement.kt"); + } + + @Test + @TestMetadata("noElseExhaustiveUnitExpected.kt") + public void testNoElseExhaustiveUnitExpected() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseExhaustiveUnitExpected.kt"); + } + + @Test + @TestMetadata("noElseInStatement.kt") + public void testNoElseInStatement() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseInStatement.kt"); + } + + @Test + @TestMetadata("noElseNoMatch.kt") + public void testNoElseNoMatch() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseNoMatch.kt"); + } + + @Test + @TestMetadata("nothingTyped.kt") + public void testNothingTyped() throws Exception { + runTest("compiler/testData/codegen/box/when/nothingTyped.kt"); + } + + @Test + @TestMetadata("nullableWhen.kt") + public void testNullableWhen() throws Exception { + runTest("compiler/testData/codegen/box/when/nullableWhen.kt"); + } + + @Test + @TestMetadata("range.kt") + public void testRange() throws Exception { + runTest("compiler/testData/codegen/box/when/range.kt"); + } + + @Test + @TestMetadata("sealedWhenInitialization.kt") + public void testSealedWhenInitialization() throws Exception { + runTest("compiler/testData/codegen/box/when/sealedWhenInitialization.kt"); + } + + @Test + @TestMetadata("switchBreakNoLabel.kt") + public void testSwitchBreakNoLabel() throws Exception { + runTest("compiler/testData/codegen/box/when/switchBreakNoLabel.kt"); + } + + @Test + @TestMetadata("switchOptimizationDense.kt") + public void testSwitchOptimizationDense() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationDense.kt"); + } + + @Test + @TestMetadata("switchOptimizationDuplicates.kt") + public void testSwitchOptimizationDuplicates() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationDuplicates.kt"); + } + + @Test + @TestMetadata("switchOptimizationMultipleConditions.kt") + public void testSwitchOptimizationMultipleConditions() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationMultipleConditions.kt"); + } + + @Test + @TestMetadata("switchOptimizationMultipleMixedConditions.kt") + public void testSwitchOptimizationMultipleMixedConditions() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationMultipleMixedConditions.kt"); + } + + @Test + @TestMetadata("switchOptimizationSingleStatementCase.kt") + public void testSwitchOptimizationSingleStatementCase() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationSingleStatementCase.kt"); + } + + @Test + @TestMetadata("switchOptimizationSparse.kt") + public void testSwitchOptimizationSparse() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationSparse.kt"); + } + + @Test + @TestMetadata("switchOptimizationStatement.kt") + public void testSwitchOptimizationStatement() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationStatement.kt"); + } + + @Test + @TestMetadata("switchOptimizationTypes.kt") + public void testSwitchOptimizationTypes() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationTypes.kt"); + } + + @Test + @TestMetadata("switchOptimizationUnordered.kt") + public void testSwitchOptimizationUnordered() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationUnordered.kt"); + } + + @Test + @TestMetadata("switchOptimizationWithGap.kt") + public void testSwitchOptimizationWithGap() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationWithGap.kt"); + } + + @Test + @TestMetadata("typeDisjunction.kt") + public void testTypeDisjunction() throws Exception { + runTest("compiler/testData/codegen/box/when/typeDisjunction.kt"); + } + + @Test + @TestMetadata("whenArgumentIsEvaluatedOnlyOnce.kt") + public void testWhenArgumentIsEvaluatedOnlyOnce() throws Exception { + runTest("compiler/testData/codegen/box/when/whenArgumentIsEvaluatedOnlyOnce.kt"); + } + + @Test + @TestMetadata("whenSafeCallSubjectEvaluatedOnce.kt") + public void testWhenSafeCallSubjectEvaluatedOnce() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSafeCallSubjectEvaluatedOnce.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/when/enumOptimization") + @TestDataPath("$PROJECT_ROOT") + public class EnumOptimization { + @Test + public void testAllFilesPresentInEnumOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/enumOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bigEnum.kt") + public void testBigEnum() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/bigEnum.kt"); + } + + @Test + @TestMetadata("differentEnumClasses.kt") + public void testDifferentEnumClasses() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/differentEnumClasses.kt"); + } + + @Test + @TestMetadata("differentEnumClasses2.kt") + public void testDifferentEnumClasses2() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/differentEnumClasses2.kt"); + } + + @Test + @TestMetadata("duplicatingItems.kt") + public void testDuplicatingItems() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/duplicatingItems.kt"); + } + + @Test + @TestMetadata("enumInsideClassObject.kt") + public void testEnumInsideClassObject() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/enumInsideClassObject.kt"); + } + + @Test + @TestMetadata("expression.kt") + public void testExpression() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/expression.kt"); + } + + @Test + @TestMetadata("functionLiteralInTopLevel.kt") + public void testFunctionLiteralInTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/functionLiteralInTopLevel.kt"); + } + + @Test + @TestMetadata("kt14597.kt") + public void testKt14597() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/kt14597.kt"); + } + + @Test + @TestMetadata("kt14597_full.kt") + public void testKt14597_full() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/kt14597_full.kt"); + } + + @Test + @TestMetadata("kt14802.kt") + public void testKt14802() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/kt14802.kt"); + } + + @Test + @TestMetadata("kt15806.kt") + public void testKt15806() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/kt15806.kt"); + } + + @Test + @TestMetadata("kt50258.kt") + public void testKt50258() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/kt50258.kt"); + } + + @Test + @TestMetadata("manyWhensWithinClass.kt") + public void testManyWhensWithinClass() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/manyWhensWithinClass.kt"); + } + + @Test + @TestMetadata("nestedWhenInCondition.kt") + public void testNestedWhenInCondition() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/nestedWhenInCondition.kt"); + } + + @Test + @TestMetadata("nestedWhenInResult.kt") + public void testNestedWhenInResult() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/nestedWhenInResult.kt"); + } + + @Test + @TestMetadata("nonConstantEnum.kt") + public void testNonConstantEnum() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/nonConstantEnum.kt"); + } + + @Test + @TestMetadata("notAllConditionsAreEqEqExceptElse.kt") + public void testNotAllConditionsAreEqEqExceptElse() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/notAllConditionsAreEqEqExceptElse.kt"); + } + + @Test + @TestMetadata("notAllEntriesAreConstants.kt") + public void testNotAllEntriesAreConstants() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/notAllEntriesAreConstants.kt"); + } + + @Test + @TestMetadata("nullIsTheFirstEntry.kt") + public void testNullIsTheFirstEntry() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/nullIsTheFirstEntry.kt"); + } + + @Test + @TestMetadata("nullability.kt") + public void testNullability() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/nullability.kt"); + } + + @Test + @TestMetadata("nullableEnum.kt") + public void testNullableEnum() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/nullableEnum.kt"); + } + + @Test + @TestMetadata("subjectAny.kt") + public void testSubjectAny() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/subjectAny.kt"); + } + + @Test + @TestMetadata("withoutElse.kt") + public void testWithoutElse() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/withoutElse.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/when/stringOptimization") + @TestDataPath("$PROJECT_ROOT") + public class StringOptimization { + @Test + public void testAllFilesPresentInStringOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/stringOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("duplicatingItems.kt") + public void testDuplicatingItems() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/duplicatingItems.kt"); + } + + @Test + @TestMetadata("duplicatingItemsSameHashCode.kt") + public void testDuplicatingItemsSameHashCode() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/duplicatingItemsSameHashCode.kt"); + } + + @Test + @TestMetadata("duplicatingItemsSameHashCode2.kt") + public void testDuplicatingItemsSameHashCode2() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/duplicatingItemsSameHashCode2.kt"); + } + + @Test + @TestMetadata("duplicatingItemsSameHashCode3.kt") + public void testDuplicatingItemsSameHashCode3() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/duplicatingItemsSameHashCode3.kt"); + } + + @Test + @TestMetadata("enhancedNullability.kt") + public void testEnhancedNullability() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/enhancedNullability.kt"); + } + + @Test + @TestMetadata("expression.kt") + public void testExpression() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/expression.kt"); + } + + @Test + @TestMetadata("flexibleNullability.kt") + public void testFlexibleNullability() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/flexibleNullability.kt"); + } + + @Test + @TestMetadata("nullability.kt") + public void testNullability() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/nullability.kt"); + } + + @Test + @TestMetadata("sameHashCode.kt") + public void testSameHashCode() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/sameHashCode.kt"); + } + + @Test + @TestMetadata("statement.kt") + public void testStatement() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/statement.kt"); + } + + @Test + @TestMetadata("temporaryVarInWhenByStringIsDisposedProperly.kt") + public void testTemporaryVarInWhenByStringIsDisposedProperly() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/temporaryVarInWhenByStringIsDisposedProperly.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/when/whenSubjectVariable") + @TestDataPath("$PROJECT_ROOT") + public class WhenSubjectVariable { + @Test + public void testAllFilesPresentInWhenSubjectVariable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/whenSubjectVariable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("captureSubjectVariable.kt") + public void testCaptureSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/captureSubjectVariable.kt"); + } + + @Test + @TestMetadata("denseIntSwitchWithSubjectVariable.kt") + public void testDenseIntSwitchWithSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/denseIntSwitchWithSubjectVariable.kt"); + } + + @Test + @TestMetadata("equalityWithSubjectVariable.kt") + public void testEqualityWithSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/equalityWithSubjectVariable.kt"); + } + + @Test + @TestMetadata("ieee754Equality.kt") + public void testIeee754Equality() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/ieee754Equality.kt"); + } + + @Test + @TestMetadata("ieee754EqualityWithSmartCast.kt") + public void testIeee754EqualityWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/ieee754EqualityWithSmartCast.kt"); + } + + @Test + @TestMetadata("isCheckOnSubjectVariable.kt") + public void testIsCheckOnSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/isCheckOnSubjectVariable.kt"); + } + + @Test + @TestMetadata("kt27161.kt") + public void testKt27161() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161.kt"); + } + + @Test + @TestMetadata("kt27161_int.kt") + public void testKt27161_int() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_int.kt"); + } + + @Test + @TestMetadata("kt27161_nested.kt") + public void testKt27161_nested() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_nested.kt"); + } + + @Test + @TestMetadata("kt27161_nested2.kt") + public void testKt27161_nested2() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_nested2.kt"); + } + + @Test + @TestMetadata("kt27161_string.kt") + public void testKt27161_string() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt"); + } + + @Test + @TestMetadata("kt33641_inlineClass.kt") + public void testKt33641_inlineClass() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.kt"); + } + + @Test + @TestMetadata("rangeCheckOnSubjectVariable.kt") + public void testRangeCheckOnSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/rangeCheckOnSubjectVariable.kt"); + } + + @Test + @TestMetadata("sparseIntSwitchWithSubjectVariable.kt") + public void testSparseIntSwitchWithSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/sparseIntSwitchWithSubjectVariable.kt"); + } + + @Test + @TestMetadata("subjectExpressionIsEvaluatedOnce.kt") + public void testSubjectExpressionIsEvaluatedOnce() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/subjectExpressionIsEvaluatedOnce.kt"); + } + + @Test + @TestMetadata("whenByEnum.kt") + public void testWhenByEnum() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/whenByEnum.kt"); + } + + @Test + @TestMetadata("whenByNullableEnum.kt") + public void testWhenByNullableEnum() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/whenByNullableEnum.kt"); + } + + @Test + @TestMetadata("whenByString.kt") + public void testWhenByString() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/whenByString.kt"); + } + } + } +} diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java new file mode 100644 index 00000000000..e92b904307f --- /dev/null +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java @@ -0,0 +1,16139 @@ +/* + * Copyright 2010-2023 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.test.runners; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.Tag; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +public class JvmAbiConsistencyTestRestGenerated extends AbstractJvmAbiConsistencyTest { + @Nested + @TestMetadata("compiler/testData/codegen/boxInline") + @TestDataPath("$PROJECT_ROOT") + public class BoxInline { + @Test + public void testAllFilesPresentInBoxInline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationInstanceInlining.kt") + public void testAnnotationInstanceInlining() throws Exception { + runTest("compiler/testData/codegen/boxInline/annotations/annotationInstanceInlining.kt"); + } + + @Test + @TestMetadata("instanceInAnonymousClass.kt") + public void testInstanceInAnonymousClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/annotations/instanceInAnonymousClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject") + @TestDataPath("$PROJECT_ROOT") + public class AnonymousObject { + @Test + public void testAllFilesPresentInAnonymousObject() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectInCallChildren.kt") + public void testAnonymousObjectInCallChildren() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInCallChildren.kt"); + } + + @Test + @TestMetadata("anonymousObjectInDefault.kt") + public void testAnonymousObjectInDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInDefault.kt"); + } + + @Test + @TestMetadata("anonymousObjectOnCallSite.kt") + public void testAnonymousObjectOnCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt"); + } + + @Test + @TestMetadata("anonymousObjectOnCallSiteSuperParams.kt") + public void testAnonymousObjectOnCallSiteSuperParams() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt"); + } + + @Test + @TestMetadata("anonymousObjectOnDeclarationSite.kt") + public void testAnonymousObjectOnDeclarationSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt"); + } + + @Test + @TestMetadata("anonymousObjectOnDeclarationSiteSuperParams.kt") + public void testAnonymousObjectOnDeclarationSiteSuperParams() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt"); + } + + @Test + @TestMetadata("capturedLambdaInInline.kt") + public void testCapturedLambdaInInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt"); + } + + @Test + @TestMetadata("capturedLambdaInInline2.kt") + public void testCapturedLambdaInInline2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt"); + } + + @Test + @TestMetadata("capturedLambdaInInline3.kt") + public void testCapturedLambdaInInline3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt"); + } + + @Test + @TestMetadata("capturedLambdaInInlineObject.kt") + public void testCapturedLambdaInInlineObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt"); + } + + @Test + @TestMetadata("capturedLocalFun.kt") + public void testCapturedLocalFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFun.kt"); + } + + @Test + @TestMetadata("capturedLocalFunRef.kt") + public void testCapturedLocalFunRef() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFunRef.kt"); + } + + @Test + @TestMetadata("changingReturnType.kt") + public void testChangingReturnType() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt"); + } + + @Test + @TestMetadata("constructOriginalInRegenerated.kt") + public void testConstructOriginalInRegenerated() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/constructOriginalInRegenerated.kt"); + } + + @Test + @TestMetadata("constructorVisibility.kt") + public void testConstructorVisibility() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibility.kt"); + } + + @Test + @TestMetadata("constructorVisibilityInConstLambda.kt") + public void testConstructorVisibilityInConstLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInConstLambda.kt"); + } + + @Test + @TestMetadata("constructorVisibilityInLambda.kt") + public void testConstructorVisibilityInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInLambda.kt"); + } + + @Test + @TestMetadata("defineClass.kt") + public void testDefineClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); + } + + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + + @Test + @TestMetadata("functionExpression.kt") + public void testFunctionExpression() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt"); + } + + @Test + @TestMetadata("inlineCallInsideInlineLambda.kt") + public void testInlineCallInsideInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt"); + } + + @Test + @TestMetadata("kt13133.kt") + public void testKt13133() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt"); + } + + @Test + @TestMetadata("kt13182.kt") + public void testKt13182() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt"); + } + + @Test + @TestMetadata("kt13374.kt") + public void testKt13374() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt"); + } + + @Test + @TestMetadata("kt14011.kt") + public void testKt14011() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt"); + } + + @Test + @TestMetadata("kt14011_2.kt") + public void testKt14011_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt"); + } + + @Test + @TestMetadata("kt14011_3.kt") + public void testKt14011_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt"); + } + + @Test + @TestMetadata("kt15751.kt") + public void testKt15751() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt"); + } + + @Test + @TestMetadata("kt16193.kt") + public void testKt16193() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt"); + } + + @Test + @TestMetadata("kt17972.kt") + public void testKt17972() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt"); + } + + @Test + @TestMetadata("kt17972_2.kt") + public void testKt17972_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt"); + } + + @Test + @TestMetadata("kt17972_3.kt") + public void testKt17972_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt"); + } + + @Test + @TestMetadata("kt17972_4.kt") + public void testKt17972_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt"); + } + + @Test + @TestMetadata("kt17972_5.kt") + public void testKt17972_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt"); + } + + @Test + @TestMetadata("kt17972_super.kt") + public void testKt17972_super() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt"); + } + + @Test + @TestMetadata("kt17972_super2.kt") + public void testKt17972_super2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt"); + } + + @Test + @TestMetadata("kt17972_super3.kt") + public void testKt17972_super3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt"); + } + + @Test + @TestMetadata("kt19389.kt") + public void testKt19389() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt"); + } + + @Test + @TestMetadata("kt19399.kt") + public void testKt19399() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt"); + } + + @Test + @TestMetadata("kt19434.kt") + public void testKt19434() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt"); + } + + @Test + @TestMetadata("kt19434_2.kt") + public void testKt19434_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt"); + } + + @Test + @TestMetadata("kt19723.kt") + public void testKt19723() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt"); + } + + @Test + @TestMetadata("kt29595.kt") + public void testKt29595() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt"); + } + + @Test + @TestMetadata("kt30696.kt") + public void testKt30696() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt30696.kt"); + } + + @Test + @TestMetadata("kt34656.kt") + public void testKt34656() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt"); + } + + @Test + @TestMetadata("kt38197.kt") + public void testKt38197() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); + } + + @Test + @TestMetadata("kt41174.kt") + public void testKt41174() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt"); + } + + @Test + @TestMetadata("kt42815.kt") + public void testKt42815() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt"); + } + + @Test + @TestMetadata("kt42815_delegated.kt") + public void testKt42815_delegated() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt"); + } + + @Test + @TestMetadata("kt51950.kt") + public void testKt51950() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt51950.kt"); + } + + @Test + @TestMetadata("kt52795.kt") + public void testKt52795() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795.kt"); + } + + @Test + @TestMetadata("kt52795_2.kt") + public void testKt52795_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_2.kt"); + } + + @Test + @TestMetadata("kt52795_3.kt") + public void testKt52795_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_3.kt"); + } + + @Test + @TestMetadata("kt52795_4.kt") + public void testKt52795_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_4.kt"); + } + + @Test + @TestMetadata("kt52795_5.kt") + public void testKt52795_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt52795_5.kt"); + } + + @Test + @TestMetadata("kt57053.kt") + public void testKt57053() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt57053.kt"); + } + + @Test + @TestMetadata("kt6007.kt") + public void testKt6007() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt"); + } + + @Test + @TestMetadata("kt6552.kt") + public void testKt6552() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt"); + } + + @Test + @TestMetadata("kt8133.kt") + public void testKt8133() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt8133.kt"); + } + + @Test + @TestMetadata("kt9064.kt") + public void testKt9064() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt"); + } + + @Test + @TestMetadata("kt9064v2.kt") + public void testKt9064v2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt"); + } + + @Test + @TestMetadata("kt9591.kt") + public void testKt9591() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9591.kt"); + } + + @Test + @TestMetadata("kt9877.kt") + public void testKt9877() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877.kt"); + } + + @Test + @TestMetadata("kt9877_2.kt") + public void testKt9877_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877_2.kt"); + } + + @Test + @TestMetadata("objectInLambdaCapturesAnotherObject.kt") + public void testObjectInLambdaCapturesAnotherObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt"); + } + + @Test + @TestMetadata("safeCall.kt") + public void testSafeCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall.kt"); + } + + @Test + @TestMetadata("safeCall_2.kt") + public void testSafeCall_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall_2.kt"); + } + + @Test + @TestMetadata("sam.kt") + public void testSam() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/sam.kt"); + } + + @Test + @TestMetadata("sharedFromCrossinline.kt") + public void testSharedFromCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt"); + } + + @Test + @TestMetadata("superConstructorWithObjectParameter.kt") + public void testSuperConstructorWithObjectParameter() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/superConstructorWithObjectParameter.kt"); + } + + @Test + @TestMetadata("typeInfo.kt") + public void testTypeInfo() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/typeInfo.kt"); + } + + @Test + @TestMetadata("withInlineMethod.kt") + public void testWithInlineMethod() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/withInlineMethod.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/enumEntries") + @TestDataPath("$PROJECT_ROOT") + public class EnumEntries { + @Test + public void testAllFilesPresentInEnumEntries() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/enumEntries"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callSite.kt") + public void testCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumEntries/callSite.kt"); + } + + @Test + @TestMetadata("declSite.kt") + public void testDeclSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumEntries/declSite.kt"); + } + + @Test + @TestMetadata("declSiteSeveralMappings.kt") + public void testDeclSiteSeveralMappings() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumEntries/declSiteSeveralMappings.kt"); + } + + @Test + @TestMetadata("declSiteSeveralMappingsDifOrder.kt") + public void testDeclSiteSeveralMappingsDifOrder() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumEntries/declSiteSeveralMappingsDifOrder.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/enumWhen") + @TestDataPath("$PROJECT_ROOT") + public class EnumWhen { + @Test + public void testAllFilesPresentInEnumWhen() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/enumWhen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callSite.kt") + public void testCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/callSite.kt"); + } + + @Test + @TestMetadata("declSite.kt") + public void testDeclSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSite.kt"); + } + + @Test + @TestMetadata("declSiteSeveralMappings.kt") + public void testDeclSiteSeveralMappings() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappings.kt"); + } + + @Test + @TestMetadata("declSiteSeveralMappingsDifOrder.kt") + public void testDeclSiteSeveralMappingsDifOrder() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappingsDifOrder.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing") + @TestDataPath("$PROJECT_ROOT") + public class ProperRecapturing { + @Test + public void testAllFilesPresentInProperRecapturing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineChain.kt") + public void testInlineChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/inlineChain.kt"); + } + + @Test + @TestMetadata("lambdaChain.kt") + public void testLambdaChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain.kt"); + } + + @Test + @TestMetadata("lambdaChainSimple.kt") + public void testLambdaChainSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChainSimple.kt"); + } + + @Test + @TestMetadata("lambdaChain_2.kt") + public void testLambdaChain_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_2.kt"); + } + + @Test + @TestMetadata("lambdaChain_3.kt") + public void testLambdaChain_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_3.kt"); + } + + @Test + @TestMetadata("noInlineLambda.kt") + public void testNoInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/noInlineLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass") + @TestDataPath("$PROJECT_ROOT") + public class ProperRecapturingInClass { + @Test + public void testAllFilesPresentInProperRecapturingInClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineChain.kt") + public void testInlineChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlineChain.kt"); + } + + @Test + @TestMetadata("inlinelambdaChain.kt") + public void testInlinelambdaChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt"); + } + + @Test + @TestMetadata("lambdaChain.kt") + public void testLambdaChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt"); + } + + @Test + @TestMetadata("lambdaChainSimple.kt") + public void testLambdaChainSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt"); + } + + @Test + @TestMetadata("lambdaChainSimple_2.kt") + public void testLambdaChainSimple_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt"); + } + + @Test + @TestMetadata("lambdaChain_2.kt") + public void testLambdaChain_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt"); + } + + @Test + @TestMetadata("lambdaChain_3.kt") + public void testLambdaChain_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt"); + } + + @Test + @TestMetadata("noCapturedThisOnCallSite.kt") + public void testNoCapturedThisOnCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noCapturedThisOnCallSite.kt"); + } + + @Test + @TestMetadata("noInlineLambda.kt") + public void testNoInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt"); + } + + @Test + @TestMetadata("twoInlineLambda.kt") + public void testTwoInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambda.kt"); + } + + @Test + @TestMetadata("twoInlineLambdaComplex.kt") + public void testTwoInlineLambdaComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex.kt"); + } + + @Test + @TestMetadata("twoInlineLambdaComplex_2.kt") + public void testTwoInlineLambdaComplex_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex_2.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/sam") + @TestDataPath("$PROJECT_ROOT") + public class Sam { + @Test + public void testAllFilesPresentInSam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectToSam.kt") + public void testAnonymousObjectToSam() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/anonymousObjectToSam.kt"); + } + + @Test + @TestMetadata("kt17091.kt") + public void testKt17091() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt"); + } + + @Test + @TestMetadata("kt21671.kt") + public void testKt21671() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt"); + } + + @Test + @TestMetadata("kt21671_2.kt") + public void testKt21671_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt"); + } + + @Test + @TestMetadata("kt21671_3.kt") + public void testKt21671_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt"); + } + + @Test + @TestMetadata("kt22304.kt") + public void testKt22304() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt"); + } + + @Test + @TestMetadata("samOnCallSite.kt") + public void testSamOnCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers") + @TestDataPath("$PROJECT_ROOT") + public class TwoCapturedReceivers { + @Test + public void testAllFilesPresentInTwoCapturedReceivers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt8668.kt") + public void testKt8668() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt"); + } + + @Test + @TestMetadata("kt8668_2.kt") + public void testKt8668_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt"); + } + + @Test + @TestMetadata("kt8668_3.kt") + public void testKt8668_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt"); + } + + @Test + @TestMetadata("kt8668_nested.kt") + public void testKt8668_nested() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_nested.kt"); + } + + @Test + @TestMetadata("kt8668_nested_2.kt") + public void testKt8668_nested_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_nested_2.kt"); + } + + @Test + @TestMetadata("twoDifferentDispatchReceivers.kt") + public void testTwoDifferentDispatchReceivers() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt"); + } + + @Test + @TestMetadata("twoExtensionReceivers.kt") + public void testTwoExtensionReceivers() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/argumentOrder") + @TestDataPath("$PROJECT_ROOT") + public class ArgumentOrder { + @Test + public void testAllFilesPresentInArgumentOrder() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boundFunctionReference.kt") + public void testBoundFunctionReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt"); + } + + @Test + @TestMetadata("boundFunctionReference2.kt") + public void testBoundFunctionReference2() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt"); + } + + @Test + @TestMetadata("captured.kt") + public void testCaptured() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/captured.kt"); + } + + @Test + @TestMetadata("capturedInExtension.kt") + public void testCapturedInExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/capturedInExtension.kt"); + } + + @Test + @TestMetadata("defaultParametersAndLastVararg.kt") + public void testDefaultParametersAndLastVararg() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt"); + } + + @Test + @TestMetadata("defaultParametersAndLastVarargWithCorrectOrder.kt") + public void testDefaultParametersAndLastVarargWithCorrectOrder() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/extension.kt"); + } + + @Test + @TestMetadata("extensionInClass.kt") + public void testExtensionInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt"); + } + + @Test + @TestMetadata("lambdaMigration.kt") + public void testLambdaMigration() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigration.kt"); + } + + @Test + @TestMetadata("lambdaMigrationInClass.kt") + public void testLambdaMigrationInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigrationInClass.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/simple.kt"); + } + + @Test + @TestMetadata("simpleInClass.kt") + public void testSimpleInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/simpleInClass.kt"); + } + + @Test + @TestMetadata("varargAndDefaultParameters.kt") + public void testVarargAndDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt"); + } + + @Test + @TestMetadata("varargAndDefaultParametersWithCorrectOrder.kt") + public void testVarargAndDefaultParametersWithCorrectOrder() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/arrayConvention") + @TestDataPath("$PROJECT_ROOT") + public class ArrayConvention { + @Test + public void testAllFilesPresentInArrayConvention() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/arrayConvention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("simpleAccess.kt") + public void testSimpleAccess() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccess.kt"); + } + + @Test + @TestMetadata("simpleAccessInClass.kt") + public void testSimpleAccessInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt"); + } + + @Test + @TestMetadata("simpleAccessWithDefault.kt") + public void testSimpleAccessWithDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefault.kt"); + } + + @Test + @TestMetadata("simpleAccessWithDefaultInClass.kt") + public void testSimpleAccessWithDefaultInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt"); + } + + @Test + @TestMetadata("simpleAccessWithLambda.kt") + public void testSimpleAccessWithLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambda.kt"); + } + + @Test + @TestMetadata("simpleAccessWithLambdaInClass.kt") + public void testSimpleAccessWithLambdaInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/assert") + @TestDataPath("$PROJECT_ROOT") + public class Assert { + @Test + public void testAllFilesPresentInAssert() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("jvmAssertInlineFunctionAssertionsDisabled.kt") + public void testJvmAssertInlineFunctionAssertionsDisabled() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt"); + } + + @Test + @TestMetadata("jvmAssertInlineFunctionAssertionsEnabled.kt") + public void testJvmAssertInlineFunctionAssertionsEnabled() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt"); + } + + @Test + @TestMetadata("jvmAssertInlineLambda.kt") + public void testJvmAssertInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt"); + } + + @Test + @TestMetadata("jvmClassInitializer.kt") + public void testJvmClassInitializer() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt"); + } + + @Test + @TestMetadata("jvmCompanion.kt") + public void testJvmCompanion() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmCompanion.kt"); + } + + @Test + @TestMetadata("jvmCrossinlineLambda.kt") + public void testJvmCrossinlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt"); + } + + @Test + @TestMetadata("jvmCrossinlineLambda2.kt") + public void testJvmCrossinlineLambda2() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt"); + } + + @Test + @TestMetadata("jvmCrossinlineLambdaDeclarationSite.kt") + public void testJvmCrossinlineLambdaDeclarationSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt"); + } + + @Test + @TestMetadata("jvmCrossinlineLambdaDeclarationSiteOnly.kt") + public void testJvmCrossinlineLambdaDeclarationSiteOnly() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt"); + } + + @Test + @TestMetadata("jvmCrossinlineRedundant.kt") + public void testJvmCrossinlineRedundant() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineRedundant.kt"); + } + + @Test + @TestMetadata("jvmCrossinlineSAMDeclarationSite.kt") + public void testJvmCrossinlineSAMDeclarationSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt"); + } + + @Test + @TestMetadata("jvmDoubleInline.kt") + public void testJvmDoubleInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt"); + } + + @Test + @TestMetadata("jvmInlineIntoTwoMethods.kt") + public void testJvmInlineIntoTwoMethods() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmInlineIntoTwoMethods.kt"); + } + + @Test + @TestMetadata("jvmInlineUsedAsNoinline.kt") + public void testJvmInlineUsedAsNoinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/builders") + @TestDataPath("$PROJECT_ROOT") + public class Builders { + @Test + public void testAllFilesPresentInBuilders() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/builders"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("builders.kt") + public void testBuilders() throws Exception { + runTest("compiler/testData/codegen/boxInline/builders/builders.kt"); + } + + @Test + @TestMetadata("buildersAndLambdaCapturing.kt") + public void testBuildersAndLambdaCapturing() throws Exception { + runTest("compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/bytecodePreprocessing") + @TestDataPath("$PROJECT_ROOT") + public class BytecodePreprocessing { + @Test + public void testAllFilesPresentInBytecodePreprocessing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/bytecodePreprocessing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("apiVersionAtLeast1.kt") + public void testApiVersionAtLeast1() throws Exception { + runTest("compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt"); + } + + @Test + @TestMetadata("inlineApiVersionAtLeastInStdlibInlineFunction.kt") + public void testInlineApiVersionAtLeastInStdlibInlineFunction() throws Exception { + runTest("compiler/testData/codegen/boxInline/bytecodePreprocessing/inlineApiVersionAtLeastInStdlibInlineFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/callableReference") + @TestDataPath("$PROJECT_ROOT") + public class CallableReference { + @Test + @TestMetadata("adapted.kt") + public void testAdapted() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/adapted.kt"); + } + + @Test + public void testAllFilesPresentInCallableReference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classLevel.kt") + public void testClassLevel() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/classLevel.kt"); + } + + @Test + @TestMetadata("classLevel2.kt") + public void testClassLevel2() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/classLevel2.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt"); + } + + @Test + @TestMetadata("inlineCallableReference.kt") + public void testInlineCallableReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/inlineCallableReference.kt"); + } + + @Test + @TestMetadata("innerGenericConstuctor.kt") + public void testInnerGenericConstuctor() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/intrinsic.kt"); + } + + @Test + @TestMetadata("jvmFieldProperty.kt") + public void testJvmFieldProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/jvmFieldProperty.kt"); + } + + @Test + @TestMetadata("kt15449.kt") + public void testKt15449() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/kt15449.kt"); + } + + @Test + @TestMetadata("kt15751_2.kt") + public void testKt15751_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt"); + } + + @Test + @TestMetadata("kt16411.kt") + public void testKt16411() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.kt"); + } + + @Test + @TestMetadata("kt35101.kt") + public void testKt35101() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/kt35101.kt"); + } + + @Test + @TestMetadata("propertyIntrinsic.kt") + public void testPropertyIntrinsic() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/propertyIntrinsic.kt"); + } + + @Test + @TestMetadata("propertyReference.kt") + public void testPropertyReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/propertyReference.kt"); + } + + @Test + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/topLevel.kt"); + } + + @Test + @TestMetadata("topLevelExtension.kt") + public void testTopLevelExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/topLevelExtension.kt"); + } + + @Test + @TestMetadata("topLevelProperty.kt") + public void testTopLevelProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/callableReference/adaptedReferences") + @TestDataPath("$PROJECT_ROOT") + public class AdaptedReferences { + @Test + public void testAllFilesPresentInAdaptedReferences() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/adaptedReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineBound.kt") + public void testInlineBound() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineBound.kt"); + } + + @Test + @TestMetadata("inlineDefault.kt") + public void testInlineDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineDefault.kt"); + } + + @Test + @TestMetadata("inlineVararg.kt") + public void testInlineVararg() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineVararg.kt"); + } + + @Test + @TestMetadata("inlineVarargAndDefault.kt") + public void testInlineVarargAndDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineVarargAndDefault.kt"); + } + + @Test + @TestMetadata("inlineVarargInts.kt") + public void testInlineVarargInts() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineVarargInts.kt"); + } + + @Test + @TestMetadata("multipleCallableReferenceUsage.kt") + public void testMultipleCallableReferenceUsage() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/adaptedReferences/multipleCallableReferenceUsage.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/callableReference/bound") + @TestDataPath("$PROJECT_ROOT") + public class Bound { + @Test + public void testAllFilesPresentInBound() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classProperty.kt") + public void testClassProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt"); + } + + @Test + @TestMetadata("doubleBoundToThis.kt") + public void testDoubleBoundToThis() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/doubleBoundToThis.kt"); + } + + @Test + @TestMetadata("emptyLhsFunction.kt") + public void testEmptyLhsFunction() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt"); + } + + @Test + @TestMetadata("emptyLhsOnInlineProperty.kt") + public void testEmptyLhsOnInlineProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsOnInlineProperty.kt"); + } + + @Test + @TestMetadata("emptyLhsProperty.kt") + public void testEmptyLhsProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt"); + } + + @Test + @TestMetadata("expression.kt") + public void testExpression() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/expression.kt"); + } + + @Test + @TestMetadata("extensionReceiver.kt") + public void testExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt"); + } + + @Test + @TestMetadata("filter.kt") + public void testFilter() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/filter.kt"); + } + + @Test + @TestMetadata("inlineValueParameterInsteadOfReceiver.kt") + public void testInlineValueParameterInsteadOfReceiver() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt"); + } + + @Test + @TestMetadata("innerGenericConstuctor.kt") + public void testInnerGenericConstuctor() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/innerGenericConstuctor.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/intrinsic.kt"); + } + + @Test + @TestMetadata("jvmFieldProperty.kt") + public void testJvmFieldProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/jvmFieldProperty.kt"); + } + + @Test + @TestMetadata("kt18728.kt") + public void testKt18728() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt"); + } + + @Test + @TestMetadata("kt18728_2.kt") + public void testKt18728_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt"); + } + + @Test + @TestMetadata("kt18728_3.kt") + public void testKt18728_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt"); + } + + @Test + @TestMetadata("kt18728_4.kt") + public void testKt18728_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt"); + } + + @Test + @TestMetadata("kt30933.kt") + public void testKt30933() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt30933.kt"); + } + + @Test + @TestMetadata("lambdaOnLhs.kt") + public void testLambdaOnLhs() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt"); + } + + @Test + @TestMetadata("mixed.kt") + public void testMixed() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt"); + } + + @Test + @TestMetadata("objectProperty.kt") + public void testObjectProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt"); + } + + @Test + @TestMetadata("propertyImportedFromObject.kt") + public void testPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt"); + } + + @Test + @TestMetadata("sideEffect.kt") + public void testSideEffect() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt"); + } + + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVal2.kt") + public void testSimpleVal2() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal2.kt"); + } + + @Test + @TestMetadata("topLevelExtensionProperty.kt") + public void testTopLevelExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/capture") + @TestDataPath("$PROJECT_ROOT") + public class Capture { + @Test + public void testAllFilesPresentInCapture() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/capture"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("captureInlinable.kt") + public void testCaptureInlinable() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/captureInlinable.kt"); + } + + @Test + @TestMetadata("captureInlinableAndOther.kt") + public void testCaptureInlinableAndOther() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt"); + } + + @Test + @TestMetadata("captureThisAndReceiver.kt") + public void testCaptureThisAndReceiver() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/captureThisAndReceiver.kt"); + } + + @Test + @TestMetadata("generics.kt") + public void testGenerics() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/generics.kt"); + } + + @Test + @TestMetadata("kt48230.kt") + public void testKt48230() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/kt48230.kt"); + } + + @Test + @TestMetadata("kt48230_2.kt") + public void testKt48230_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/kt48230_2.kt"); + } + + @Test + @TestMetadata("kt56500.kt") + public void testKt56500() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/kt56500.kt"); + } + + @Test + @TestMetadata("kt56965.kt") + public void testKt56965() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/kt56965.kt"); + } + + @Test + @TestMetadata("kt56965_2.kt") + public void testKt56965_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/kt56965_2.kt"); + } + + @Test + @TestMetadata("simpleCapturingInClass.kt") + public void testSimpleCapturingInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt"); + } + + @Test + @TestMetadata("simpleCapturingInPackage.kt") + public void testSimpleCapturingInPackage() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInPackage.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/complex") + @TestDataPath("$PROJECT_ROOT") + public class Complex { + @Test + public void testAllFilesPresentInComplex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("closureChain.kt") + public void testClosureChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/closureChain.kt"); + } + + @Test + @TestMetadata("forEachLine.kt") + public void testForEachLine() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/forEachLine.kt"); + } + + @Test + @TestMetadata("kt44429.kt") + public void testKt44429() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/kt44429.kt"); + } + + @Test + @TestMetadata("kt44429MustFail.kt") + public void testKt44429MustFail() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/kt44429MustFail.kt"); + } + + @Test + @TestMetadata("lambdaInLambda.kt") + public void testLambdaInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt"); + } + + @Test + @TestMetadata("nestedCallsWithGeneric.kt") + public void testNestedCallsWithGeneric() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/nestedCallsWithGeneric.kt"); + } + + @Test + @TestMetadata("nestedCallsWithGenericToInt.kt") + public void testNestedCallsWithGenericToInt() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/nestedCallsWithGenericToInt.kt"); + } + + @Test + @TestMetadata("swapAndWith.kt") + public void testSwapAndWith() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/swapAndWith.kt"); + } + + @Test + @TestMetadata("swapAndWith2.kt") + public void testSwapAndWith2() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/swapAndWith2.kt"); + } + + @Test + @TestMetadata("use.kt") + public void testUse() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/use.kt"); + } + + @Test + @TestMetadata("with.kt") + public void testWith() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/with.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/complexStack") + @TestDataPath("$PROJECT_ROOT") + public class ComplexStack { + @Test + public void testAllFilesPresentInComplexStack() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complexStack"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("asCheck.kt") + public void testAsCheck() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/asCheck.kt"); + } + + @Test + @TestMetadata("asCheck2.kt") + public void testAsCheck2() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/asCheck2.kt"); + } + + @Test + @TestMetadata("breakContinueInInlineLambdaArgument.kt") + public void testBreakContinueInInlineLambdaArgument() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/breakContinueInInlineLambdaArgument.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/simple.kt"); + } + + @Test + @TestMetadata("simple2.kt") + public void testSimple2() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/simple2.kt"); + } + + @Test + @TestMetadata("simple3.kt") + public void testSimple3() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/simple3.kt"); + } + + @Test + @TestMetadata("simple4.kt") + public void testSimple4() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/simple4.kt"); + } + + @Test + @TestMetadata("simpleExtension.kt") + public void testSimpleExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/simpleExtension.kt"); + } + + @Test + @TestMetadata("spillConstructorArgumentsAndInlineLambdaParameter.kt") + public void testSpillConstructorArgumentsAndInlineLambdaParameter() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/contracts") + @TestDataPath("$PROJECT_ROOT") + public class Contracts { + @Test + public void testAllFilesPresentInContracts() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("cfgDependendValInitialization.kt") + public void testCfgDependendValInitialization() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt"); + } + + @Test + @TestMetadata("complexInitializer.kt") + public void testComplexInitializer() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/complexInitializer.kt"); + } + + @Test + @TestMetadata("complexInitializerWithStackTransformation.kt") + public void testComplexInitializerWithStackTransformation() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt"); + } + + @Test + @TestMetadata("crossinlineCallableReference.kt") + public void testCrossinlineCallableReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt"); + } + + @Test + @TestMetadata("definiteLongValInitialization.kt") + public void testDefiniteLongValInitialization() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt"); + } + + @Test + @TestMetadata("definiteNestedValInitialization.kt") + public void testDefiniteNestedValInitialization() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt"); + } + + @Test + @TestMetadata("definiteValInitInInitializer.kt") + public void testDefiniteValInitInInitializer() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt"); + } + + @Test + @TestMetadata("definiteValInitialization.kt") + public void testDefiniteValInitialization() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt"); + } + + @Test + @TestMetadata("exactlyOnceCrossinline.kt") + public void testExactlyOnceCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt"); + } + + @Test + @TestMetadata("exactlyOnceCrossinline2.kt") + public void testExactlyOnceCrossinline2() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt"); + } + + @Test + @TestMetadata("exactlyOnceNoinline.kt") + public void testExactlyOnceNoinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt"); + } + + @Test + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt"); + } + + @Test + @TestMetadata("nonLocalReturnWithCycle.kt") + public void testNonLocalReturnWithCycle() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt"); + } + + @Test + @TestMetadata("propertyInitialization.kt") + public void testPropertyInitialization() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt"); + } + + @Test + @TestMetadata("valInitializationAndUsageInNestedLambda.kt") + public void testValInitializationAndUsageInNestedLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/defaultValues") + @TestDataPath("$PROJECT_ROOT") + public class DefaultValues { + @Test + @TestMetadata("33Parameters.kt") + public void test33Parameters() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt"); + } + + @Test + @TestMetadata("33ParametersInConstructor.kt") + public void test33ParametersInConstructor() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt"); + } + + @Test + public void testAllFilesPresentInDefaultValues() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultInExtension.kt") + public void testDefaultInExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt"); + } + + @Test + @TestMetadata("defaultMethod.kt") + public void testDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethod.kt"); + } + + @Test + @TestMetadata("defaultMethodInClass.kt") + public void testDefaultMethodInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethodInClass.kt"); + } + + @Test + @TestMetadata("defaultParamRemapping.kt") + public void testDefaultParamRemapping() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/defaultParamRemapping.kt"); + } + + @Test + @TestMetadata("inlineInDefaultParameter.kt") + public void testInlineInDefaultParameter() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/inlineInDefaultParameter.kt"); + } + + @Test + @TestMetadata("inlineLambdaInNoInlineDefault.kt") + public void testInlineLambdaInNoInlineDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt"); + } + + @Test + @TestMetadata("kt11479.kt") + public void testKt11479() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479.kt"); + } + + @Test + @TestMetadata("kt11479InlinedDefaultParameter.kt") + public void testKt11479InlinedDefaultParameter() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt"); + } + + @Test + @TestMetadata("kt14564.kt") + public void testKt14564() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564.kt"); + } + + @Test + @TestMetadata("kt14564_2.kt") + public void testKt14564_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt"); + } + + @Test + @TestMetadata("kt16496.kt") + public void testKt16496() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt"); + } + + @Test + @TestMetadata("kt18689.kt") + public void testKt18689() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt"); + } + + @Test + @TestMetadata("kt18689_2.kt") + public void testKt18689_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt"); + } + + @Test + @TestMetadata("kt18689_3.kt") + public void testKt18689_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt"); + } + + @Test + @TestMetadata("kt18689_4.kt") + public void testKt18689_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt"); + } + + @Test + @TestMetadata("kt5685.kt") + public void testKt5685() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt5685.kt"); + } + + @Test + @TestMetadata("simpleDefaultMethod.kt") + public void testSimpleDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.kt"); + } + + @Test + @TestMetadata("varArgNoInline.kt") + public void testVarArgNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining") + @TestDataPath("$PROJECT_ROOT") + public class LambdaInlining { + @Test + public void testAllFilesPresentInLambdaInlining() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("checkLambdaClassIsPresent.kt") + public void testCheckLambdaClassIsPresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassIsPresent.kt"); + } + + @Test + @TestMetadata("checkLambdaClassesArePresent.kt") + public void testCheckLambdaClassesArePresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassesArePresent.kt"); + } + + @Test + @TestMetadata("checkObjectClassIsPresent.kt") + public void testCheckObjectClassIsPresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt"); + } + + @Test + @TestMetadata("checkStaticLambdaClassIsPresent.kt") + public void testCheckStaticLambdaClassIsPresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt"); + } + + @Test + @TestMetadata("checkStaticLambdaClassesArePresent.kt") + public void testCheckStaticLambdaClassesArePresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassesArePresent.kt"); + } + + @Test + @TestMetadata("checkStaticObjectClassIsPresent.kt") + public void testCheckStaticObjectClassIsPresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt"); + } + + @Test + @TestMetadata("defaultAfterCapturing.kt") + public void testDefaultAfterCapturing() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultAfterCapturing.kt"); + } + + @Test + @TestMetadata("defaultCallInDefaultLambda.kt") + public void testDefaultCallInDefaultLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt"); + } + + @Test + @TestMetadata("defaultLambdaInNoInline.kt") + public void testDefaultLambdaInNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt"); + } + + @Test + @TestMetadata("differentInvokeSignature.kt") + public void testDifferentInvokeSignature() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt"); + } + + @Test + @TestMetadata("genericLambda.kt") + public void testGenericLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt"); + } + + @Test + @TestMetadata("instanceCapturedInClass.kt") + public void testInstanceCapturedInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt"); + } + + @Test + @TestMetadata("instanceCapturedInInterface.kt") + public void testInstanceCapturedInInterface() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt"); + } + + @Test + @TestMetadata("jvmStaticDefault.kt") + public void testJvmStaticDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt"); + } + + @Test + @TestMetadata("kt21827.kt") + public void testKt21827() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt"); + } + + @Test + @TestMetadata("kt21946.kt") + public void testKt21946() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt"); + } + + @Test + @TestMetadata("kt24477.kt") + public void testKt24477() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt"); + } + + @Test + @TestMetadata("kt25106.kt") + public void testKt25106() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt"); + } + + @Test + @TestMetadata("kt26636.kt") + public void testKt26636() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt"); + } + + @Test + @TestMetadata("lambdaTakesResult.kt") + public void testLambdaTakesResult() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/lambdaTakesResult.kt"); + } + + @Test + @TestMetadata("noInline.kt") + public void testNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt"); + } + + @Test + @TestMetadata("nonDefaultInlineInNoInline.kt") + public void testNonDefaultInlineInNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt"); + } + + @Test + @TestMetadata("receiverClash.kt") + public void testReceiverClash() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt"); + } + + @Test + @TestMetadata("receiverClash2.kt") + public void testReceiverClash2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt"); + } + + @Test + @TestMetadata("receiverClashInClass.kt") + public void testReceiverClashInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt"); + } + + @Test + @TestMetadata("receiverClashInClass2.kt") + public void testReceiverClashInClass2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt"); + } + + @Test + @TestMetadata("reordering.kt") + public void testReordering() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/reordering.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt"); + } + + @Test + @TestMetadata("simpleErased.kt") + public void testSimpleErased() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt"); + } + + @Test + @TestMetadata("simpleErasedStaticInstance.kt") + public void testSimpleErasedStaticInstance() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt"); + } + + @Test + @TestMetadata("simpleExtension.kt") + public void testSimpleExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt"); + } + + @Test + @TestMetadata("simpleGeneric.kt") + public void testSimpleGeneric() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt"); + } + + @Test + @TestMetadata("simpleStaticInstance.kt") + public void testSimpleStaticInstance() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt"); + } + + @Test + @TestMetadata("thisClash.kt") + public void testThisClash() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt"); + } + + @Test + @TestMetadata("thisClashInClass.kt") + public void testThisClashInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences") + @TestDataPath("$PROJECT_ROOT") + public class CallableReferences { + @Test + public void testAllFilesPresentInCallableReferences() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boundFunctionReference.kt") + public void testBoundFunctionReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt"); + } + + @Test + @TestMetadata("boundFunctionReferenceOnInt.kt") + public void testBoundFunctionReferenceOnInt() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt"); + } + + @Test + @TestMetadata("boundFunctionReferenceOnLong.kt") + public void testBoundFunctionReferenceOnLong() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt"); + } + + @Test + @TestMetadata("boundInlineClassMethod.kt") + public void testBoundInlineClassMethod() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundInlineClassMethod.kt"); + } + + @Test + @TestMetadata("boundInlineClassMethodWithAny.kt") + public void testBoundInlineClassMethodWithAny() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundInlineClassMethodWithAny.kt"); + } + + @Test + @TestMetadata("boundInlineClassMethodWithInt.kt") + public void testBoundInlineClassMethodWithInt() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundInlineClassMethodWithInt.kt"); + } + + @Test + @TestMetadata("boundPropertyReference.kt") + public void testBoundPropertyReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt"); + } + + @Test + @TestMetadata("boundPropertyReferenceOnInt.kt") + public void testBoundPropertyReferenceOnInt() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt"); + } + + @Test + @TestMetadata("boundPropertyReferenceOnLong.kt") + public void testBoundPropertyReferenceOnLong() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt"); + } + + @Test + @TestMetadata("constuctorReference.kt") + public void testConstuctorReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt"); + } + + @Test + @TestMetadata("defaultAfterBoundReference.kt") + public void testDefaultAfterBoundReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/defaultAfterBoundReference.kt"); + } + + @Test + @TestMetadata("differentInvokeSignature.kt") + public void testDifferentInvokeSignature() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt"); + } + + @Test + @TestMetadata("differentInvokeSignature2.kt") + public void testDifferentInvokeSignature2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt"); + } + + @Test + @TestMetadata("differentInvokeSignature3.kt") + public void testDifferentInvokeSignature3() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature3.kt"); + } + + @Test + @TestMetadata("functionImportedFromObject.kt") + public void testFunctionImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt"); + } + + @Test + @TestMetadata("functionReference.kt") + public void testFunctionReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt"); + } + + @Test + @TestMetadata("functionReferenceFromClass.kt") + public void testFunctionReferenceFromClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt"); + } + + @Test + @TestMetadata("functionReferenceFromObject.kt") + public void testFunctionReferenceFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt"); + } + + @Test + @TestMetadata("innerClassConstuctorReference.kt") + public void testInnerClassConstuctorReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt"); + } + + @Test + @TestMetadata("mutableBoundPropertyReferenceFromClass.kt") + public void testMutableBoundPropertyReferenceFromClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt"); + } + + @Test + @TestMetadata("mutablePropertyReferenceFromClass.kt") + public void testMutablePropertyReferenceFromClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt"); + } + + @Test + @TestMetadata("privateFunctionReference.kt") + public void testPrivateFunctionReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt"); + } + + @Test + @TestMetadata("privatePropertyReference.kt") + public void testPrivatePropertyReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt"); + } + + @Test + @TestMetadata("propertyImportedFromObject.kt") + public void testPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt"); + } + + @Test + @TestMetadata("propertyReference.kt") + public void testPropertyReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt"); + } + + @Test + @TestMetadata("propertyReferenceFromClass.kt") + public void testPropertyReferenceFromClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt"); + } + + @Test + @TestMetadata("propertyReferenceFromObject.kt") + public void testPropertyReferenceFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt"); + } + + @Test + @TestMetadata("withInlineClassParameter.kt") + public void testWithInlineClassParameter() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/withInlineClassParameter.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/maskElimination") + @TestDataPath("$PROJECT_ROOT") + public class MaskElimination { + @Test + @TestMetadata("32Parameters.kt") + public void test32Parameters() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt"); + } + + @Test + @TestMetadata("33Parameters.kt") + public void test33Parameters() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt"); + } + + @Test + public void testAllFilesPresentInMaskElimination() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt18792.kt") + public void testKt18792() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt"); + } + + @Test + @TestMetadata("kt19679.kt") + public void testKt19679() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt"); + } + + @Test + @TestMetadata("kt19679_2.kt") + public void testKt19679_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt"); + } + + @Test + @TestMetadata("kt19679_3.kt") + public void testKt19679_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/delegatedProperty") + @TestDataPath("$PROJECT_ROOT") + public class DelegatedProperty { + @Test + public void testAllFilesPresentInDelegatedProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt16864.kt") + public void testKt16864() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); + } + + @Test + @TestMetadata("kt48498.kt") + public void testKt48498() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt48498.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("localDeclaredInLambda.kt") + public void testLocalDeclaredInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/localDeclaredInLambda.kt"); + } + + @Test + @TestMetadata("localInAnonymousObject.kt") + public void testLocalInAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInAnonymousObject.kt"); + } + + @Test + @TestMetadata("localInLambda.kt") + public void testLocalInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/enclosingInfo") + @TestDataPath("$PROJECT_ROOT") + public class EnclosingInfo { + @Test + public void testAllFilesPresentInEnclosingInfo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousInLambda.kt") + public void testAnonymousInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/enclosingInfo/anonymousInLambda.kt"); + } + + @Test + @TestMetadata("inlineChain.kt") + public void testInlineChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt"); + } + + @Test + @TestMetadata("inlineChain2.kt") + public void testInlineChain2() throws Exception { + runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt"); + } + + @Test + @TestMetadata("kt52417.kt") + public void testKt52417() throws Exception { + runTest("compiler/testData/codegen/boxInline/enclosingInfo/kt52417.kt"); + } + + @Test + @TestMetadata("objectInInlineFun.kt") + public void testObjectInInlineFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt"); + } + + @Test + @TestMetadata("transformedConstructor.kt") + public void testTransformedConstructor() throws Exception { + runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructor.kt"); + } + + @Test + @TestMetadata("transformedConstructorWithAdditionalObject.kt") + public void testTransformedConstructorWithAdditionalObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt"); + } + + @Test + @TestMetadata("transformedConstructorWithNestedInline.kt") + public void testTransformedConstructorWithNestedInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithNestedInline.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/enum") + @TestDataPath("$PROJECT_ROOT") + public class Enum { + @Test + public void testAllFilesPresentInEnum() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("enumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/enumEntries.kt"); + } + + @Test + @TestMetadata("enumEntriesChainCapturedType.kt") + public void testEnumEntriesChainCapturedType() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/enumEntriesChainCapturedType.kt"); + } + + @Test + @TestMetadata("javaEnumEntries.kt") + public void testJavaEnumEntries() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/javaEnumEntries.kt"); + } + + @Test + @TestMetadata("javaEnumEntriesChainCapturedType.kt") + public void testJavaEnumEntriesChainCapturedType() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/javaEnumEntriesChainCapturedType.kt"); + } + + @Test + @TestMetadata("kt10569.kt") + public void testKt10569() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/kt10569.kt"); + } + + @Test + @TestMetadata("kt18254.kt") + public void testKt18254() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/kt18254.kt"); + } + + @Test + @TestMetadata("valueOf.kt") + public void testValueOf() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valueOf.kt"); + } + + @Test + @TestMetadata("valueOfCapturedType.kt") + public void testValueOfCapturedType() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt"); + } + + @Test + @TestMetadata("valueOfChain.kt") + public void testValueOfChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valueOfChain.kt"); + } + + @Test + @TestMetadata("valueOfChainCapturedType.kt") + public void testValueOfChainCapturedType() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt"); + } + + @Test + @TestMetadata("valueOfNonReified.kt") + public void testValueOfNonReified() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt"); + } + + @Test + @TestMetadata("values.kt") + public void testValues() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/values.kt"); + } + + @Test + @TestMetadata("valuesAsArray.kt") + public void testValuesAsArray() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valuesAsArray.kt"); + } + + @Test + @TestMetadata("valuesCapturedType.kt") + public void testValuesCapturedType() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt"); + } + + @Test + @TestMetadata("valuesChain.kt") + public void testValuesChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valuesChain.kt"); + } + + @Test + @TestMetadata("valuesChainCapturedType.kt") + public void testValuesChainCapturedType() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt"); + } + + @Test + @TestMetadata("valuesNonReified.kt") + public void testValuesNonReified() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valuesNonReified.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/functionExpression") + @TestDataPath("$PROJECT_ROOT") + public class FunctionExpression { + @Test + public void testAllFilesPresentInFunctionExpression() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/functionExpression/extension.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/inlineArgsInplace") + @TestDataPath("$PROJECT_ROOT") + public class InlineArgsInplace { + @Test + public void testAllFilesPresentInInlineArgsInplace() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineArgsInplace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callArgumentReordering.kt") + public void testCallArgumentReordering() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineArgsInplace/callArgumentReordering.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + public class InlineClasses { + @Test + public void testAllFilesPresentInInlineClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/anonymousObject.kt"); + } + + @Test + @TestMetadata("inlineClassWithInlineValReturningInlineClass.kt") + public void testInlineClassWithInlineValReturningInlineClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt"); + } + + @Test + @TestMetadata("inlineFunctionInsideInlineClassesBox.kt") + public void testInlineFunctionInsideInlineClassesBox() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt"); + } + + @Test + @TestMetadata("kt62313.kt") + public void testKt62313() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/kt62313.kt"); + } + + @Test + @TestMetadata("noReturnTypeManglingFun.kt") + public void testNoReturnTypeManglingFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFun.kt"); + } + + @Test + @TestMetadata("noReturnTypeManglingFunJvmName.kt") + public void testNoReturnTypeManglingFunJvmName() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFunJvmName.kt"); + } + + @Test + @TestMetadata("noReturnTypeManglingVal.kt") + public void testNoReturnTypeManglingVal() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingVal.kt"); + } + + @Test + @TestMetadata("withReturnTypeManglingFun.kt") + public void testWithReturnTypeManglingFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFun.kt"); + } + + @Test + @TestMetadata("withReturnTypeManglingFunJvmName.kt") + public void testWithReturnTypeManglingFunJvmName() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFunJvmName.kt"); + } + + @Test + @TestMetadata("withReturnTypeManglingVal.kt") + public void testWithReturnTypeManglingVal() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingVal.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter") + @TestDataPath("$PROJECT_ROOT") + public class UnboxGenericParameter { + @Test + public void testAllFilesPresentInUnboxGenericParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface") + @TestDataPath("$PROJECT_ROOT") + public class FunInterface { + @Test + public void testAllFilesPresentInFunInterface() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("any.kt") + public void testAny() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt"); + } + + @Test + @TestMetadata("anyN.kt") + public void testAnyN() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt"); + } + + @Test + @TestMetadata("iface.kt") + public void testIface() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt"); + } + + @Test + @TestMetadata("ifaceChild.kt") + public void testIfaceChild() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt"); + } + + @Test + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt"); + } + + @Test + @TestMetadata("string.kt") + public void testString() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("any.kt") + public void testAny() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt"); + } + + @Test + @TestMetadata("anyN.kt") + public void testAnyN() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt"); + } + + @Test + @TestMetadata("iface.kt") + public void testIface() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt"); + } + + @Test + @TestMetadata("ifaceChild.kt") + public void testIfaceChild() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt"); + } + + @Test + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt"); + } + + @Test + @TestMetadata("string.kt") + public void testString() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral") + @TestDataPath("$PROJECT_ROOT") + public class ObjectLiteral { + @Test + public void testAllFilesPresentInObjectLiteral() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("any.kt") + public void testAny() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt"); + } + + @Test + @TestMetadata("anyN.kt") + public void testAnyN() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt"); + } + + @Test + @TestMetadata("iface.kt") + public void testIface() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt"); + } + + @Test + @TestMetadata("ifaceChild.kt") + public void testIfaceChild() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt"); + } + + @Test + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt"); + } + + @Test + @TestMetadata("string.kt") + public void testString() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/innerClasses") + @TestDataPath("$PROJECT_ROOT") + public class InnerClasses { + @Test + public void testAllFilesPresentInInnerClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/innerClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("captureThisAndOuter.kt") + public void testCaptureThisAndOuter() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/captureThisAndOuter.kt"); + } + + @Test + @TestMetadata("fakeOverride.kt") + public void testFakeOverride() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/fakeOverride.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuterByAnotherInlineFun.kt") + public void testInnerInlineFunCapturesOuterByAnotherInlineFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/innerInlineFunCapturesOuterByAnotherInlineFun.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuterDeep.kt") + public void testInnerInlineFunCapturesOuterDeep() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/innerInlineFunCapturesOuterDeep.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuterFunRef.kt") + public void testInnerInlineFunCapturesOuterFunRef() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/innerInlineFunCapturesOuterFunRef.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuterWithInlineClass.kt") + public void testInnerInlineFunCapturesOuterWithInlineClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/innerInlineFunCapturesOuterWithInlineClass.kt"); + } + + @Test + @TestMetadata("innerLambda.kt") + public void testInnerLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt"); + } + + @Test + @TestMetadata("kt10259.kt") + public void testKt10259() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); + } + + @Test + @TestMetadata("kt12126.kt") + public void testKt12126() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/kt12126.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/invokedynamic") + @TestDataPath("$PROJECT_ROOT") + public class Invokedynamic { + @Test + public void testAllFilesPresentInInvokedynamic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/invokedynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/invokedynamic/lambdas") + @TestDataPath("$PROJECT_ROOT") + public class Lambdas { + @Test + public void testAllFilesPresentInLambdas() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/invokedynamic/lambdas"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("crossinlineLambda1.kt") + public void testCrossinlineLambda1() throws Exception { + runTest("compiler/testData/codegen/boxInline/invokedynamic/lambdas/crossinlineLambda1.kt"); + } + + @Test + @TestMetadata("crossinlineLambda2.kt") + public void testCrossinlineLambda2() throws Exception { + runTest("compiler/testData/codegen/boxInline/invokedynamic/lambdas/crossinlineLambda2.kt"); + } + + @Test + @TestMetadata("inlineFunInDifferentPackage.kt") + public void testInlineFunInDifferentPackage() throws Exception { + runTest("compiler/testData/codegen/boxInline/invokedynamic/lambdas/inlineFunInDifferentPackage.kt"); + } + + @Test + @TestMetadata("inlineLambda1.kt") + public void testInlineLambda1() throws Exception { + runTest("compiler/testData/codegen/boxInline/invokedynamic/lambdas/inlineLambda1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/invokedynamic/sam") + @TestDataPath("$PROJECT_ROOT") + public class Sam { + @Test + public void testAllFilesPresentInSam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/invokedynamic/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("crossinlineLambda1.kt") + public void testCrossinlineLambda1() throws Exception { + runTest("compiler/testData/codegen/boxInline/invokedynamic/sam/crossinlineLambda1.kt"); + } + + @Test + @TestMetadata("crossinlineLambda2.kt") + public void testCrossinlineLambda2() throws Exception { + runTest("compiler/testData/codegen/boxInline/invokedynamic/sam/crossinlineLambda2.kt"); + } + + @Test + @TestMetadata("inlineFunInDifferentPackage.kt") + public void testInlineFunInDifferentPackage() throws Exception { + runTest("compiler/testData/codegen/boxInline/invokedynamic/sam/inlineFunInDifferentPackage.kt"); + } + + @Test + @TestMetadata("inlineLambda1.kt") + public void testInlineLambda1() throws Exception { + runTest("compiler/testData/codegen/boxInline/invokedynamic/sam/inlineLambda1.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/jvmName") + @TestDataPath("$PROJECT_ROOT") + public class JvmName { + @Test + public void testAllFilesPresentInJvmName() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/jvmName/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/jvmPackageName") + @TestDataPath("$PROJECT_ROOT") + public class JvmPackageName { + @Test + public void testAllFilesPresentInJvmPackageName() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/jvmPackageName/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/lambdaClassClash") + @TestDataPath("$PROJECT_ROOT") + public class LambdaClassClash { + @Test + public void testAllFilesPresentInLambdaClassClash() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaClassClash"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lambdaClassClash.kt") + public void testLambdaClassClash() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt"); + } + + @Test + @TestMetadata("noInlineLambdaX2.kt") + public void testNoInlineLambdaX2() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/lambdaTransformation") + @TestDataPath("$PROJECT_ROOT") + public class LambdaTransformation { + @Test + public void testAllFilesPresentInLambdaTransformation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaTransformation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lambdaCloning.kt") + public void testLambdaCloning() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt"); + } + + @Test + @TestMetadata("lambdaInLambda2.kt") + public void testLambdaInLambda2() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt"); + } + + @Test + @TestMetadata("lambdaInLambdaNoInline.kt") + public void testLambdaInLambdaNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt"); + } + + @Test + @TestMetadata("regeneratedLambdaName.kt") + public void testRegeneratedLambdaName() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt"); + } + + @Test + @TestMetadata("regeneratedLambdaName2.kt") + public void testRegeneratedLambdaName2() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt"); + } + + @Test + @TestMetadata("sameCaptured.kt") + public void testSameCaptured() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/localFunInLambda") + @TestDataPath("$PROJECT_ROOT") + public class LocalFunInLambda { + @Test + public void testAllFilesPresentInLocalFunInLambda() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/localFunInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultParam.kt") + public void testDefaultParam() throws Exception { + runTest("compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt"); + } + + @Test + @TestMetadata("lambdaInLambdaCapturesAnotherFun.kt") + public void testLambdaInLambdaCapturesAnotherFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt"); + } + + @Test + @TestMetadata("localFunInLambda.kt") + public void testLocalFunInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt"); + } + + @Test + @TestMetadata("localFunInLambdaCapturesAnotherFun.kt") + public void testLocalFunInLambdaCapturesAnotherFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/multiModule") + @TestDataPath("$PROJECT_ROOT") + public class MultiModule { + @Test + public void testAllFilesPresentInMultiModule() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("tryCatchWithRecursiveInline.kt") + public void testTryCatchWithRecursiveInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/multifileClasses") + @TestDataPath("$PROJECT_ROOT") + public class MultifileClasses { + @Test + public void testAllFilesPresentInMultifileClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultArguments.kt") + public void testDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/boxInline/multifileClasses/defaultArguments.kt"); + } + + @Test + @TestMetadata("inlineFromOptimizedMultifileClass.kt") + public void testInlineFromOptimizedMultifileClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOptimizedMultifileClass.kt"); + } + + @Test + @TestMetadata("inlineFromOtherPackage.kt") + public void testInlineFromOtherPackage() throws Exception { + runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/multiplatform") + @TestDataPath("$PROJECT_ROOT") + public class Multiplatform { + @Test + public void testAllFilesPresentInMultiplatform() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/multiplatform/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + public class DefaultArguments { + @Test + public void testAllFilesPresentInDefaultArguments() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("receiversAndParametersInLambda.kt") + public void testReceiversAndParametersInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/noInline") + @TestDataPath("$PROJECT_ROOT") + public class NoInline { + @Test + public void testAllFilesPresentInNoInline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("extensionReceiver.kt") + public void testExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt"); + } + + @Test + @TestMetadata("lambdaAsGeneric.kt") + public void testLambdaAsGeneric() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt"); + } + + @Test + @TestMetadata("lambdaAsNonFunction.kt") + public void testLambdaAsNonFunction() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt"); + } + + @Test + @TestMetadata("noInline.kt") + public void testNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/noInline.kt"); + } + + @Test + @TestMetadata("noInlineLambdaChain.kt") + public void testNoInlineLambdaChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt"); + } + + @Test + @TestMetadata("noInlineLambdaChainWithCapturedInline.kt") + public void testNoInlineLambdaChainWithCapturedInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt"); + } + + @Test + @TestMetadata("withoutInline.kt") + public void testWithoutInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/withoutInline.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns") + @TestDataPath("$PROJECT_ROOT") + public class NonLocalReturns { + @Test + public void testAllFilesPresentInNonLocalReturns() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("explicitLocalReturn.kt") + public void testExplicitLocalReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt"); + } + + @Test + @TestMetadata("fromArrayGenerator.kt") + public void testFromArrayGenerator() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGenerator.kt"); + } + + @Test + @TestMetadata("fromArrayGeneratorCatch.kt") + public void testFromArrayGeneratorCatch() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorCatch.kt"); + } + + @Test + @TestMetadata("fromArrayGeneratorNested.kt") + public void testFromArrayGeneratorNested() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorNested.kt"); + } + + @Test + @TestMetadata("fromArrayGeneratorWithCapture.kt") + public void testFromArrayGeneratorWithCapture() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCapture.kt"); + } + + @Test + @TestMetadata("fromArrayGeneratorWithCatch.kt") + public void testFromArrayGeneratorWithCatch() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCatch.kt"); + } + + @Test + @TestMetadata("fromArrayGeneratorWithFinally.kt") + public void testFromArrayGeneratorWithFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinally.kt"); + } + + @Test + @TestMetadata("fromArrayGeneratorWithFinallyX2.kt") + public void testFromArrayGeneratorWithFinallyX2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2.kt"); + } + + @Test + @TestMetadata("fromArrayGeneratorWithFinallyX2_2.kt") + public void testFromArrayGeneratorWithFinallyX2_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2_2.kt"); + } + + @Test + @TestMetadata("fromInterfaceDefaultGetter.kt") + public void testFromInterfaceDefaultGetter() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt"); + } + + @Test + @TestMetadata("justReturnInLambda.kt") + public void testJustReturnInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt"); + } + + @Test + @TestMetadata("kt5199.kt") + public void testKt5199() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt5199.kt"); + } + + @Test + @TestMetadata("kt8948.kt") + public void testKt8948() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt"); + } + + @Test + @TestMetadata("kt8948v2.kt") + public void testKt8948v2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); + } + + @Test + @TestMetadata("kt9304.kt") + public void testKt9304() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt"); + } + + @Test + @TestMetadata("nestedNonLocals.kt") + public void testNestedNonLocals() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); + } + + @Test + @TestMetadata("noInlineLocalReturn.kt") + public void testNoInlineLocalReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt"); + } + + @Test + @TestMetadata("nonLocalReturnFromOuterLambda.kt") + public void testNonLocalReturnFromOuterLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt"); + } + + @Test + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/propertyAccessors.kt"); + } + + @Test + @TestMetadata("returnFromFunctionExpr.kt") + public void testReturnFromFunctionExpr() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simple.kt"); + } + + @Test + @TestMetadata("simpleFunctional.kt") + public void testSimpleFunctional() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleFunctional.kt"); + } + + @Test + @TestMetadata("simpleVoid.kt") + public void testSimpleVoid() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleVoid.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize") + @TestDataPath("$PROJECT_ROOT") + public class Deparenthesize { + @Test + public void testAllFilesPresentInDeparenthesize() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bracket.kt") + public void testBracket() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/bracket.kt"); + } + + @Test + @TestMetadata("labeled.kt") + public void testLabeled() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/labeled.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally") + @TestDataPath("$PROJECT_ROOT") + public class TryFinally { + @Test + public void testAllFilesPresentInTryFinally() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt16417.kt") + public void testKt16417() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt"); + } + + @Test + @TestMetadata("kt20433.kt") + public void testKt20433() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt"); + } + + @Test + @TestMetadata("kt20433_2.kt") + public void testKt20433_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt"); + } + + @Test + @TestMetadata("kt20433_2_void.kt") + public void testKt20433_2_void() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt"); + } + + @Test + @TestMetadata("kt20433_void.kt") + public void testKt20433_void() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt"); + } + + @Test + @TestMetadata("kt26384.kt") + public void testKt26384() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt"); + } + + @Test + @TestMetadata("kt26384_2.kt") + public void testKt26384_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt"); + } + + @Test + @TestMetadata("kt28546.kt") + public void testKt28546() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt"); + } + + @Test + @TestMetadata("kt6956.kt") + public void testKt6956() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt6956.kt"); + } + + @Test + @TestMetadata("kt7273.kt") + public void testKt7273() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt"); + } + + @Test + @TestMetadata("nonLocalReturnFromCatchBlock.kt") + public void testNonLocalReturnFromCatchBlock() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt"); + } + + @Test + @TestMetadata("nonLocalReturnFromOuterLambda.kt") + public void testNonLocalReturnFromOuterLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt"); + } + + @Test + @TestMetadata("nonLocalReturnToCatchBlock.kt") + public void testNonLocalReturnToCatchBlock() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite") + @TestDataPath("$PROJECT_ROOT") + public class CallSite { + @Test + public void testAllFilesPresentInCallSite() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callSite.kt") + public void testCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSite.kt"); + } + + @Test + @TestMetadata("callSiteComplex.kt") + public void testCallSiteComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSiteComplex.kt"); + } + + @Test + @TestMetadata("exceptionTableSplit.kt") + public void testExceptionTableSplit() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt"); + } + + @Test + @TestMetadata("exceptionTableSplitNoReturn.kt") + public void testExceptionTableSplitNoReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt"); + } + + @Test + @TestMetadata("finallyInFinally.kt") + public void testFinallyInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt"); + } + + @Test + @TestMetadata("wrongVarInterval.kt") + public void testWrongVarInterval() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained") + @TestDataPath("$PROJECT_ROOT") + public class Chained { + @Test + public void testAllFilesPresentInChained() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("finallyInFinally.kt") + public void testFinallyInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt"); + } + + @Test + @TestMetadata("finallyInFinally2.kt") + public void testFinallyInFinally2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt"); + } + + @Test + @TestMetadata("intReturn.kt") + public void testIntReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt"); + } + + @Test + @TestMetadata("intReturnComplex.kt") + public void testIntReturnComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt"); + } + + @Test + @TestMetadata("intReturnComplex2.kt") + public void testIntReturnComplex2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt"); + } + + @Test + @TestMetadata("intReturnComplex3.kt") + public void testIntReturnComplex3() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt"); + } + + @Test + @TestMetadata("intReturnComplex4.kt") + public void testIntReturnComplex4() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt"); + } + + @Test + @TestMetadata("nestedLambda.kt") + public void testNestedLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/nestedLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite") + @TestDataPath("$PROJECT_ROOT") + public class DeclSite { + @Test + public void testAllFilesPresentInDeclSite() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("complex.kt") + public void testComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/complex.kt"); + } + + @Test + @TestMetadata("intReturn.kt") + public void testIntReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt"); + } + + @Test + @TestMetadata("intReturnComplex.kt") + public void testIntReturnComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt"); + } + + @Test + @TestMetadata("longReturn.kt") + public void testLongReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt"); + } + + @Test + @TestMetadata("returnInFinally.kt") + public void testReturnInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt"); + } + + @Test + @TestMetadata("returnInTry.kt") + public void testReturnInTry() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt"); + } + + @Test + @TestMetadata("returnInTryAndFinally.kt") + public void testReturnInTryAndFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt"); + } + + @Test + @TestMetadata("severalInTry.kt") + public void testSeveralInTry() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt"); + } + + @Test + @TestMetadata("severalInTryComplex.kt") + public void testSeveralInTryComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt"); + } + + @Test + @TestMetadata("voidInlineFun.kt") + public void testVoidInlineFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt"); + } + + @Test + @TestMetadata("voidNonLocal.kt") + public void testVoidNonLocal() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable") + @TestDataPath("$PROJECT_ROOT") + public class ExceptionTable { + @Test + public void testAllFilesPresentInExceptionTable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/break.kt"); + } + + @Test + @TestMetadata("continue.kt") + public void testContinue() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/continue.kt"); + } + + @Test + @TestMetadata("exceptionInFinally.kt") + public void testExceptionInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt"); + } + + @Test + @TestMetadata("forInFinally.kt") + public void testForInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/forInFinally.kt"); + } + + @Test + @TestMetadata("innerAndExternal.kt") + public void testInnerAndExternal() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt"); + } + + @Test + @TestMetadata("innerAndExternalNested.kt") + public void testInnerAndExternalNested() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt"); + } + + @Test + @TestMetadata("innerAndExternalSimple.kt") + public void testInnerAndExternalSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt"); + } + + @Test + @TestMetadata("kt31653.kt") + public void testKt31653() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt"); + } + + @Test + @TestMetadata("kt31653_2.kt") + public void testKt31653_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt"); + } + + @Test + @TestMetadata("kt31923.kt") + public void testKt31923() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt"); + } + + @Test + @TestMetadata("kt31923_2.kt") + public void testKt31923_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt"); + } + + @Test + @TestMetadata("kt31923_wrong.kt") + public void testKt31923_wrong() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt"); + } + + @Test + @TestMetadata("nestedWithReturns.kt") + public void testNestedWithReturns() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt"); + } + + @Test + @TestMetadata("nestedWithReturnsSimple.kt") + public void testNestedWithReturnsSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt"); + } + + @Test + @TestMetadata("noFinally.kt") + public void testNoFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt"); + } + + @Test + @TestMetadata("severalCatchClause.kt") + public void testSeveralCatchClause() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt"); + } + + @Test + @TestMetadata("simpleThrow.kt") + public void testSimpleThrow() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt"); + } + + @Test + @TestMetadata("synchonized.kt") + public void testSynchonized() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt"); + } + + @Test + @TestMetadata("throwInFinally.kt") + public void testThrowInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt"); + } + + @Test + @TestMetadata("tryCatchInFinally.kt") + public void testTryCatchInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/tryCatchInFinally.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables") + @TestDataPath("$PROJECT_ROOT") + public class Variables { + @Test + public void testAllFilesPresentInVariables() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt7792.kt") + public void testKt7792() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/optimizations") + @TestDataPath("$PROJECT_ROOT") + public class Optimizations { + @Test + public void testAllFilesPresentInOptimizations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt20844.kt") + public void testKt20844() throws Exception { + runTest("compiler/testData/codegen/boxInline/optimizations/kt20844.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/private") + @TestDataPath("$PROJECT_ROOT") + public class Private { + @Test + @TestMetadata("accessorForConst.kt") + public void testAccessorForConst() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/accessorForConst.kt"); + } + + @Test + @TestMetadata("accessorStability.kt") + public void testAccessorStability() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/accessorStability.kt"); + } + + @Test + @TestMetadata("accessorStabilityInClass.kt") + public void testAccessorStabilityInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/accessorStabilityInClass.kt"); + } + + @Test + public void testAllFilesPresentInPrivate() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("effectivePrivate.kt") + public void testEffectivePrivate() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/effectivePrivate.kt"); + } + + @Test + @TestMetadata("kt6453.kt") + public void testKt6453() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/kt6453.kt"); + } + + @Test + @TestMetadata("kt8094.kt") + public void testKt8094() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/kt8094.kt"); + } + + @Test + @TestMetadata("kt8095.kt") + public void testKt8095() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/kt8095.kt"); + } + + @Test + @TestMetadata("nestedInPrivateClass.kt") + public void testNestedInPrivateClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass.kt"); + } + + @Test + @TestMetadata("nestedInPrivateClass2.kt") + public void testNestedInPrivateClass2() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass2.kt"); + } + + @Test + @TestMetadata("privateClass.kt") + public void testPrivateClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/privateClass.kt"); + } + + @Test + @TestMetadata("privateClassExtensionLambda.kt") + public void testPrivateClassExtensionLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/privateClassExtensionLambda.kt"); + } + + @Test + @TestMetadata("privateInInlineInMultiFileFacade.kt") + public void testPrivateInInlineInMultiFileFacade() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt"); + } + + @Test + @TestMetadata("privateInline.kt") + public void testPrivateInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/privateInline.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/property") + @TestDataPath("$PROJECT_ROOT") + public class Property { + @Test + public void testAllFilesPresentInProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("augAssignmentAndInc.kt") + public void testAugAssignmentAndInc() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt"); + } + + @Test + @TestMetadata("augAssignmentAndIncInClass.kt") + public void testAugAssignmentAndIncInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt"); + } + + @Test + @TestMetadata("augAssignmentAndIncInClassViaConvention.kt") + public void testAugAssignmentAndIncInClassViaConvention() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt"); + } + + @Test + @TestMetadata("augAssignmentAndIncOnExtension.kt") + public void testAugAssignmentAndIncOnExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt"); + } + + @Test + @TestMetadata("augAssignmentAndIncOnExtensionInClass.kt") + public void testAugAssignmentAndIncOnExtensionInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt"); + } + + @Test + @TestMetadata("augAssignmentAndIncViaConvention.kt") + public void testAugAssignmentAndIncViaConvention() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt"); + } + + @Test + @TestMetadata("crossinlineFunctional.kt") + public void testCrossinlineFunctional() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/crossinlineFunctional.kt"); + } + + @Test + @TestMetadata("fromObject.kt") + public void testFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/fromObject.kt"); + } + + @Test + @TestMetadata("kt22649.kt") + public void testKt22649() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/kt22649.kt"); + } + + @Test + @TestMetadata("noinlineFunctional.kt") + public void testNoinlineFunctional() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/noinlineFunctional.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/property.kt"); + } + + @Test + @TestMetadata("reifiedVal.kt") + public void testReifiedVal() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt"); + } + + @Test + @TestMetadata("reifiedValMultiModule.kt") + public void testReifiedValMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/reifiedValMultiModule.kt"); + } + + @Test + @TestMetadata("reifiedVar.kt") + public void testReifiedVar() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/simple.kt"); + } + + @Test + @TestMetadata("simpleExtension.kt") + public void testSimpleExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/simpleExtension.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/reified") + @TestDataPath("$PROJECT_ROOT") + public class Reified { + @Test + public void testAllFilesPresentInReified() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayConstructor.kt") + public void testArrayConstructor() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/arrayConstructor.kt"); + } + + @Test + @TestMetadata("arrayOf.kt") + public void testArrayOf() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/arrayOf.kt"); + } + + @Test + @TestMetadata("capturedLambda.kt") + public void testCapturedLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/capturedLambda.kt"); + } + + @Test + @TestMetadata("capturedLambda2.kt") + public void testCapturedLambda2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt"); + } + + @Test + @TestMetadata("dontSubstituteNonReified.kt") + public void testDontSubstituteNonReified() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt"); + } + + @Test + @TestMetadata("kt11081.kt") + public void testKt11081() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt"); + } + + @Test + @TestMetadata("kt11677.kt") + public void testKt11677() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt11677.kt"); + } + + @Test + @TestMetadata("kt15956.kt") + public void testKt15956() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt"); + } + + @Test + @TestMetadata("kt15997.kt") + public void testKt15997() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt15997.kt"); + } + + @Test + @TestMetadata("kt15997_2.kt") + public void testKt15997_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt15997_2.kt"); + } + + @Test + @TestMetadata("kt18977.kt") + public void testKt18977() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); + } + + @Test + @TestMetadata("kt28234.kt") + public void testKt28234() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt"); + } + + @Test + @TestMetadata("kt35511.kt") + public void testKt35511() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt"); + } + + @Test + @TestMetadata("kt35511_try.kt") + public void testKt35511_try() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt"); + } + + @Test + @TestMetadata("kt35511_try_valueOf.kt") + public void testKt35511_try_valueOf() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_valueOf.kt"); + } + + @Test + @TestMetadata("kt35511_try_values.kt") + public void testKt35511_try_values() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_values.kt"); + } + + @Test + @TestMetadata("kt44770.kt") + public void testKt44770() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt44770.kt"); + } + + @Test + @TestMetadata("kt44770_2.kt") + public void testKt44770_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt44770_2.kt"); + } + + @Test + @TestMetadata("kt46584.kt") + public void testKt46584() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt46584.kt"); + } + + @Test + @TestMetadata("kt46584_2.kt") + public void testKt46584_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt46584_2.kt"); + } + + @Test + @TestMetadata("kt55398.kt") + public void testKt55398() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt55398.kt"); + } + + @Test + @TestMetadata("kt6988.kt") + public void testKt6988() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt"); + } + + @Test + @TestMetadata("kt6988_2.kt") + public void testKt6988_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt6988_2.kt"); + } + + @Test + @TestMetadata("kt6990.kt") + public void testKt6990() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt6990.kt"); + } + + @Test + @TestMetadata("kt7017.kt") + public void testKt7017() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt"); + } + + @Test + @TestMetadata("kt8047.kt") + public void testKt8047() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt8047.kt"); + } + + @Test + @TestMetadata("kt8047_2.kt") + public void testKt8047_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt8047_2.kt"); + } + + @Test + @TestMetadata("kt9637.kt") + public void testKt9637() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt9637.kt"); + } + + @Test + @TestMetadata("kt9637_2.kt") + public void testKt9637_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt"); + } + + @Test + @TestMetadata("nameClash.kt") + public void testNameClash() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/nameClash.kt"); + } + + @Test + @TestMetadata("nonCapturingObjectInLambda.kt") + public void testNonCapturingObjectInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt"); + } + + @Test + @TestMetadata("packages.kt") + public void testPackages() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/packages.kt"); + } + + @Test + @TestMetadata("singletonLambda.kt") + public void testSingletonLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/singletonLambda.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast") + @TestDataPath("$PROJECT_ROOT") + public class CheckCast { + @Test + public void testAllFilesPresentInCheckCast() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/checkCast"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("chain.kt") + public void testChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/chain.kt"); + } + + @Test + @TestMetadata("kt26435.kt") + public void testKt26435() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt"); + } + + @Test + @TestMetadata("kt26435_2.kt") + public void testKt26435_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt"); + } + + @Test + @TestMetadata("kt26435_3.kt") + public void testKt26435_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt"); + } + + @Test + @TestMetadata("kt8043.kt") + public void testKt8043() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt"); + } + + @Test + @TestMetadata("maxStack.kt") + public void testMaxStack() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/maxStack.kt"); + } + + @Test + @TestMetadata("nullable.kt") + public void testNullable() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple.kt"); + } + + @Test + @TestMetadata("simpleSafe.kt") + public void testSimpleSafe() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt"); + } + + @Test + @TestMetadata("simple_1_3.kt") + public void testSimple_1_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/reified/defaultLambda") + @TestDataPath("$PROJECT_ROOT") + public class DefaultLambda { + @Test + public void testAllFilesPresentInDefaultLambda() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("chain.kt") + public void testChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt"); + } + + @Test + @TestMetadata("nested2.kt") + public void testNested2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt"); + } + + @Test + @TestMetadata("nested2Static.kt") + public void testNested2Static() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt"); + } + + @Test + @TestMetadata("nestedStatic.kt") + public void testNestedStatic() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt"); + } + + @Test + @TestMetadata("transitiveChain.kt") + public void testTransitiveChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt"); + } + + @Test + @TestMetadata("transitiveChainStatic.kt") + public void testTransitiveChainStatic() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/reified/isCheck") + @TestDataPath("$PROJECT_ROOT") + public class IsCheck { + @Test + public void testAllFilesPresentInIsCheck() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/isCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("chain.kt") + public void testChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/isCheck/chain.kt"); + } + + @Test + @TestMetadata("nullable.kt") + public void testNullable() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/isCheck/nullable.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/isCheck/simple.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/signature") + @TestDataPath("$PROJECT_ROOT") + public class Signature { + @Test + public void testAllFilesPresentInSignature() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("byteIteratorWithForLoop.kt") + public void testByteIteratorWithForLoop() throws Exception { + runTest("compiler/testData/codegen/boxInline/signature/byteIteratorWithForLoop.kt"); + } + + @Test + @TestMetadata("byteIteratorWithWhileLoop.kt") + public void testByteIteratorWithWhileLoop() throws Exception { + runTest("compiler/testData/codegen/boxInline/signature/byteIteratorWithWhileLoop.kt"); + } + + @Test + @TestMetadata("inProjectionSubstitution.kt") + public void testInProjectionSubstitution() throws Exception { + runTest("compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt"); + } + + @Test + @TestMetadata("outProjectionSubstitution.kt") + public void testOutProjectionSubstitution() throws Exception { + runTest("compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt"); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() throws Exception { + runTest("compiler/testData/codegen/boxInline/signature/recursion.kt"); + } + + @Test + @TestMetadata("sameFormalParameterName.kt") + public void testSameFormalParameterName() throws Exception { + runTest("compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt"); + } + + @Test + @TestMetadata("sameReifiedFormalParameterName.kt") + public void testSameReifiedFormalParameterName() throws Exception { + runTest("compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt"); + } + + @Test + @TestMetadata("starProjectionSubstitution.kt") + public void testStarProjectionSubstitution() throws Exception { + runTest("compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt"); + } + + @Test + @TestMetadata("typeParameterInLambda.kt") + public void testTypeParameterInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt"); + } + + @Test + @TestMetadata("typeParametersSubstitution.kt") + public void testTypeParametersSubstitution() throws Exception { + runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt"); + } + + @Test + @TestMetadata("typeParametersSubstitution2.kt") + public void testTypeParametersSubstitution2() throws Exception { + runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/signatureMangling") + @TestDataPath("$PROJECT_ROOT") + public class SignatureMangling { + @Test + public void testAllFilesPresentInSignatureMangling() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/signatureMangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("flexibleType.kt") + public void testFlexibleType() throws Exception { + runTest("compiler/testData/codegen/boxInline/signatureMangling/flexibleType.kt"); + } + + @Test + @TestMetadata("indices.kt") + public void testIndices() throws Exception { + runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt"); + } + + @Test + @TestMetadata("inheritFromJava.kt") + public void testInheritFromJava() throws Exception { + runTest("compiler/testData/codegen/boxInline/signatureMangling/inheritFromJava.kt"); + } + + @Test + @TestMetadata("rawType.kt") + public void testRawType() throws Exception { + runTest("compiler/testData/codegen/boxInline/signatureMangling/rawType.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/simple") + @TestDataPath("$PROJECT_ROOT") + public class Simple { + @Test + public void testAllFilesPresentInSimple() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/simple"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("captureAndArgumentIncompatibleTypes.kt") + public void testCaptureAndArgumentIncompatibleTypes() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/captureAndArgumentIncompatibleTypes.kt"); + } + + @Test + @TestMetadata("classObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/classObject.kt"); + } + + @Test + @TestMetadata("destructuring.kt") + public void testDestructuring() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/destructuring.kt"); + } + + @Test + @TestMetadata("destructuringIndexClash.kt") + public void testDestructuringIndexClash() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/extension.kt"); + } + + @Test + @TestMetadata("extensionLambda.kt") + public void testExtensionLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/extensionLambda.kt"); + } + + @Test + @TestMetadata("funImportedFromObject.kt") + public void testFunImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/funImportedFromObject.kt"); + } + + @Test + @TestMetadata("importedJavaStaticField.kt") + public void testImportedJavaStaticField() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/importedJavaStaticField.kt"); + } + + @Test + @TestMetadata("inlineCallInInlineLambda.kt") + public void testInlineCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/inlineCallInInlineLambda.kt"); + } + + @Test + @TestMetadata("kt17431.kt") + public void testKt17431() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/kt17431.kt"); + } + + @Test + @TestMetadata("kt28547.kt") + public void testKt28547() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/kt28547.kt"); + } + + @Test + @TestMetadata("kt28547_2.kt") + public void testKt28547_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/kt28547_2.kt"); + } + + @Test + @TestMetadata("params.kt") + public void testParams() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/params.kt"); + } + + @Test + @TestMetadata("propImportedFromObject.kt") + public void testPropImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/propImportedFromObject.kt"); + } + + @Test + @TestMetadata("rootConstructor.kt") + public void testRootConstructor() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/rootConstructor.kt"); + } + + @Test + @TestMetadata("safeCall.kt") + public void testSafeCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/safeCall.kt"); + } + + @Test + @TestMetadata("severalClosures.kt") + public void testSeveralClosures() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/severalClosures.kt"); + } + + @Test + @TestMetadata("severalUsage.kt") + public void testSeveralUsage() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/severalUsage.kt"); + } + + @Test + @TestMetadata("simpleDouble.kt") + public void testSimpleDouble() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleDouble.kt"); + } + + @Test + @TestMetadata("simpleEnum.kt") + public void testSimpleEnum() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleEnum.kt"); + } + + @Test + @TestMetadata("simpleGenerics.kt") + public void testSimpleGenerics() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleGenerics.kt"); + } + + @Test + @TestMetadata("simpleInt.kt") + public void testSimpleInt() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleInt.kt"); + } + + @Test + @TestMetadata("simpleLambda.kt") + public void testSimpleLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleLambda.kt"); + } + + @Test + @TestMetadata("simpleObject.kt") + public void testSimpleObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleObject.kt"); + } + + @Test + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/vararg.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/smap") + @TestDataPath("$PROJECT_ROOT") + public class Smap { + @Test + public void testAllFilesPresentInSmap() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("assertion.kt") + public void testAssertion() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/assertion.kt"); + } + + @Test + @TestMetadata("classCycle.kt") + public void testClassCycle() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/classCycle.kt"); + } + + @Test + @TestMetadata("classFromDefaultPackage.kt") + public void testClassFromDefaultPackage() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt"); + } + + @Test + @TestMetadata("coroutinesWithTailCallOtpimization.kt") + public void testCoroutinesWithTailCallOtpimization() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/coroutinesWithTailCallOtpimization.kt"); + } + + @Test + @TestMetadata("crossroutines.kt") + public void testCrossroutines() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/crossroutines.kt"); + } + + @Test + @TestMetadata("defaultFunction.kt") + public void testDefaultFunction() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultFunction.kt"); + } + + @Test + @TestMetadata("defaultFunctionWithInlineCall.kt") + public void testDefaultFunctionWithInlineCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt"); + } + + @Test + @TestMetadata("forInline.kt") + public void testForInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/forInline.kt"); + } + + @Test + @TestMetadata("inlineProperty.kt") + public void testInlineProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/inlineProperty.kt"); + } + + @Test + @TestMetadata("interleavedFiles.kt") + public void testInterleavedFiles() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/interleavedFiles.kt"); + } + + @Test + @TestMetadata("kt23369.kt") + public void testKt23369() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/kt23369.kt"); + } + + @Test + @TestMetadata("kt23369_2.kt") + public void testKt23369_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/kt23369_2.kt"); + } + + @Test + @TestMetadata("kt23369_3.kt") + public void testKt23369_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/kt23369_3.kt"); + } + + @Test + @TestMetadata("kt35006.kt") + public void testKt35006() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); + } + + @Test + @TestMetadata("multiFileFacade.kt") + public void testMultiFileFacade() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); + } + + @Test + @TestMetadata("oneFile.kt") + public void testOneFile() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); + } + + @Test + @TestMetadata("rangeFolding.kt") + public void testRangeFolding() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/rangeFolding.kt"); + } + + @Test + @TestMetadata("rangeFoldingInClass.kt") + public void testRangeFoldingInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt"); + } + + @Test + @TestMetadata("smap.kt") + public void testSmap() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/smap.kt"); + } + + @Test + @TestMetadata("smapWithNewSyntax.kt") + public void testSmapWithNewSyntax() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt"); + } + + @Test + @TestMetadata("smapWithOldSyntax.kt") + public void testSmapWithOldSyntax() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt"); + } + + @Test + @TestMetadata("tryFinally1.kt") + public void testTryFinally1() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/tryFinally1.kt"); + } + + @Test + @TestMetadata("tryFinally2.kt") + public void testTryFinally2() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/tryFinally2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/smap/anonymous") + @TestDataPath("$PROJECT_ROOT") + public class Anonymous { + @Test + public void testAllFilesPresentInAnonymous() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt19175.kt") + public void testKt19175() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt"); + } + + @Test + @TestMetadata("lambda.kt") + public void testLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt"); + } + + @Test + @TestMetadata("lambdaOnCallSite.kt") + public void testLambdaOnCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt"); + } + + @Test + @TestMetadata("lambdaOnInlineCallSite.kt") + public void testLambdaOnInlineCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/object.kt"); + } + + @Test + @TestMetadata("objectOnCallSite.kt") + public void testObjectOnCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt"); + } + + @Test + @TestMetadata("objectOnInlineCallSite.kt") + public void testObjectOnInlineCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt"); + } + + @Test + @TestMetadata("objectOnInlineCallSite2.kt") + public void testObjectOnInlineCallSite2() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt"); + } + + @Test + @TestMetadata("objectOnInlineCallSiteWithCapture.kt") + public void testObjectOnInlineCallSiteWithCapture() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt"); + } + + @Test + @TestMetadata("severalMappingsForDefaultFile.kt") + public void testSeveralMappingsForDefaultFile() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/smap/defaultLambda") + @TestDataPath("$PROJECT_ROOT") + public class DefaultLambda { + @Test + public void testAllFilesPresentInDefaultLambda() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultLambdaInAnonymous.kt") + public void testDefaultLambdaInAnonymous() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt"); + } + + @Test + @TestMetadata("inlineAnonymousInDefault.kt") + public void testInlineAnonymousInDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt"); + } + + @Test + @TestMetadata("inlineAnonymousInDefault2.kt") + public void testInlineAnonymousInDefault2() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt"); + } + + @Test + @TestMetadata("inlineInDefault.kt") + public void testInlineInDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineInDefault.kt"); + } + + @Test + @TestMetadata("inlineInDefault2.kt") + public void testInlineInDefault2() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineInDefault2.kt"); + } + + @Test + @TestMetadata("kt21827.kt") + public void testKt21827() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt"); + } + + @Test + @TestMetadata("simple2.kt") + public void testSimple2() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/smap/inlineOnly") + @TestDataPath("$PROJECT_ROOT") + public class InlineOnly { + @Test + public void testAllFilesPresentInInlineOnly() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/inlineOnly"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("noSmap.kt") + public void testNoSmap() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt"); + } + + @Test + @TestMetadata("noSmapWithProperty.kt") + public void testNoSmapWithProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt"); + } + + @Test + @TestMetadata("reified.kt") + public void testReified() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt"); + } + + @Test + @TestMetadata("reifiedProperty.kt") + public void testReifiedProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt"); + } + + @Test + @TestMetadata("stdlibInlineOnly.kt") + public void testStdlibInlineOnly() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt"); + } + + @Test + @TestMetadata("stdlibInlineOnlyOneLine.kt") + public void testStdlibInlineOnlyOneLine() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/smap/newsmap") + @TestDataPath("$PROJECT_ROOT") + public class Newsmap { + @Test + public void testAllFilesPresentInNewsmap() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/newsmap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("differentMapping.kt") + public void testDifferentMapping() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt"); + } + + @Test + @TestMetadata("mappingInInlineFunLambda.kt") + public void testMappingInInlineFunLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt"); + } + + @Test + @TestMetadata("mappingInSubInlineLambda.kt") + public void testMappingInSubInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt"); + } + + @Test + @TestMetadata("mappingInSubInlineLambdaSameFileInline.kt") + public void testMappingInSubInlineLambdaSameFileInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/smap/resolve") + @TestDataPath("$PROJECT_ROOT") + public class Resolve { + @Test + public void testAllFilesPresentInResolve() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/resolve"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineComponent.kt") + public void testInlineComponent() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt"); + } + + @Test + @TestMetadata("inlineIterator.kt") + public void testInlineIterator() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/special") + @TestDataPath("$PROJECT_ROOT") + public class Special { + @Test + public void testAllFilesPresentInSpecial() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/special"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("identityCheck.kt") + public void testIdentityCheck() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/identityCheck.kt"); + } + + @Test + @TestMetadata("ifBranches.kt") + public void testIfBranches() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/ifBranches.kt"); + } + + @Test + @TestMetadata("iinc.kt") + public void testIinc() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/iinc.kt"); + } + + @Test + @TestMetadata("inlineChain.kt") + public void testInlineChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/inlineChain.kt"); + } + + @Test + @TestMetadata("loopInStoreLoadChains.kt") + public void testLoopInStoreLoadChains() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt"); + } + + @Test + @TestMetadata("loopInStoreLoadChains2.kt") + public void testLoopInStoreLoadChains2() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt"); + } + + @Test + @TestMetadata("monitorEnterExit.kt") + public void testMonitorEnterExit() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/monitorEnterExit.kt"); + } + + @Test + @TestMetadata("plusAssign.kt") + public void testPlusAssign() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/plusAssign.kt"); + } + + @Test + @TestMetadata("stackHeightBug.kt") + public void testStackHeightBug() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/stackHeightBug.kt"); + } + + @Test + @TestMetadata("unusedInlineLambda.kt") + public void testUnusedInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/unusedInlineLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/stackOnReturn") + @TestDataPath("$PROJECT_ROOT") + public class StackOnReturn { + @Test + public void testAllFilesPresentInStackOnReturn() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/stackOnReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("elvis.kt") + public void testElvis() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt"); + } + + @Test + @TestMetadata("ifThenElse.kt") + public void testIfThenElse() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt"); + } + + @Test + @TestMetadata("kt11499.kt") + public void testKt11499() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt11499.kt"); + } + + @Test + @TestMetadata("kt17591.kt") + public void testKt17591() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt"); + } + + @Test + @TestMetadata("kt17591a.kt") + public void testKt17591a() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt"); + } + + @Test + @TestMetadata("kt17591b.kt") + public void testKt17591b() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt"); + } + + @Test + @TestMetadata("mixedTypesOnStack1.kt") + public void testMixedTypesOnStack1() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt"); + } + + @Test + @TestMetadata("mixedTypesOnStack2.kt") + public void testMixedTypesOnStack2() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt"); + } + + @Test + @TestMetadata("mixedTypesOnStack3.kt") + public void testMixedTypesOnStack3() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt"); + } + + @Test + @TestMetadata("nonLocalReturn1.kt") + public void testNonLocalReturn1() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt"); + } + + @Test + @TestMetadata("nonLocalReturn2.kt") + public void testNonLocalReturn2() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt"); + } + + @Test + @TestMetadata("nonLocalReturn3.kt") + public void testNonLocalReturn3() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt"); + } + + @Test + @TestMetadata("poppedLocalReturn.kt") + public void testPoppedLocalReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt"); + } + + @Test + @TestMetadata("poppedLocalReturn2.kt") + public void testPoppedLocalReturn2() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt"); + } + + @Test + @TestMetadata("returnLong.kt") + public void testReturnLong() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt"); + } + + @Test + @TestMetadata("tryFinally.kt") + public void testTryFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/suspend") + @TestDataPath("$PROJECT_ROOT") + public class Suspend { + @Test + public void testAllFilesPresentInSuspend() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("capturedVariables.kt") + public void testCapturedVariables() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/capturedVariables.kt"); + } + + @Test + @TestMetadata("crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt") + public void testCrossinlineSuspendLambdaInsideCrossinlineSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt"); + } + + @Test + @TestMetadata("debugMetadataCrossinline.kt") + public void testDebugMetadataCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt"); + } + + @Test + @TestMetadata("delegatedProperties.kt") + public void testDelegatedProperties() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt"); + } + + @Test + @TestMetadata("doubleRegenerationWithNonSuspendingLambda.kt") + public void testDoubleRegenerationWithNonSuspendingLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt"); + } + + @Test + @TestMetadata("enclodingMethod.kt") + public void testEnclodingMethod() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt"); + } + + @Test + @TestMetadata("fileNameInMetadata.kt") + public void testFileNameInMetadata() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt"); + } + + @Test + @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") + public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt"); + } + + @Test + @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") + public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt"); + } + + @Test + @TestMetadata("inlinePassthrough.kt") + public void testInlinePassthrough() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlinePassthrough.kt"); + } + + @Test + @TestMetadata("inlineSuspendContinuation.kt") + public void testInlineSuspendContinuation() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt"); + } + + @Test + @TestMetadata("inlineSuspendInMultifileClass.kt") + public void testInlineSuspendInMultifileClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") + public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") + public void testInlineSuspendOfCrossinlineSuspend() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") + public void testInlineSuspendOfNoinlineOrdinary() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") + public void testInlineSuspendOfNoinlineSuspend() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfOrdinary.kt") + public void testInlineSuspendOfOrdinary() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfSuspend.kt") + public void testInlineSuspendOfSuspend() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt"); + } + + @Test + @TestMetadata("jvmName.kt") + public void testJvmName() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/jvmName.kt"); + } + + @Test + @TestMetadata("kt26658.kt") + public void testKt26658() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/kt26658.kt"); + } + + @Test + @TestMetadata("kt52198.kt") + public void testKt52198() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/kt52198.kt"); + } + + @Test + @TestMetadata("maxStackWithCrossinline.kt") + public void testMaxStackWithCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt"); + } + + @Test + @TestMetadata("multipleLocals.kt") + public void testMultipleLocals() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/multipleLocals.kt"); + } + + @Test + @TestMetadata("multipleSuspensionPoints.kt") + public void testMultipleSuspensionPoints() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt"); + } + + @Test + @TestMetadata("nestedMethodWith2XParameter.kt") + public void testNestedMethodWith2XParameter() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/nestedMethodWith2XParameter.kt"); + } + + @Test + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/nonLocalReturn.kt"); + } + + @Test + @TestMetadata("nonSuspendCrossinline.kt") + public void testNonSuspendCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/nonSuspendCrossinline.kt"); + } + + @Test + @TestMetadata("returnValue.kt") + public void testReturnValue() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/returnValue.kt"); + } + + @Test + @TestMetadata("tryCatchReceiver.kt") + public void testTryCatchReceiver() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt"); + } + + @Test + @TestMetadata("tryCatchStackTransform.kt") + public void testTryCatchStackTransform() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt"); + } + + @Test + @TestMetadata("twiceRegeneratedAnonymousObject.kt") + public void testTwiceRegeneratedAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedAnonymousObject.kt"); + } + + @Test + @TestMetadata("twiceRegeneratedSuspendLambda.kt") + public void testTwiceRegeneratedSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedSuspendLambda.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/suspend/callableReference") + @TestDataPath("$PROJECT_ROOT") + public class CallableReference { + @Test + public void testAllFilesPresentInCallableReference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("isAsReified.kt") + public void testIsAsReified() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt"); + } + + @Test + @TestMetadata("isAsReified2.kt") + public void testIsAsReified2() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt"); + } + + @Test + @TestMetadata("nonTailCall.kt") + public void testNonTailCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/callableReference/nonTailCall.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt"); + } + + @Test + @TestMetadata("unitReturn.kt") + public void testUnitReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/callableReference/unitReturn.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter") + @TestDataPath("$PROJECT_ROOT") + public class DefaultParameter { + @Test + public void testAllFilesPresentInDefaultParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/defaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultInlineLambda.kt") + public void testDefaultInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultInlineLambda.kt"); + } + + @Test + @TestMetadata("defaultInlineReference.kt") + public void testDefaultInlineReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultInlineReference.kt"); + } + + @Test + @TestMetadata("defaultValueCrossinline.kt") + public void testDefaultValueCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt"); + } + + @Test + @TestMetadata("defaultValueInClass.kt") + public void testDefaultValueInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt"); + } + + @Test + @TestMetadata("defaultValueInline.kt") + public void testDefaultValueInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt"); + } + + @Test + @TestMetadata("defaultValueInlineFromMultiFileFacade.kt") + public void testDefaultValueInlineFromMultiFileFacade() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("returnBoxedFromLambda.kt") + public void testReturnBoxedFromLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnBoxedFromLambda.kt"); + } + + @Test + @TestMetadata("returnUnboxedDirect.kt") + public void testReturnUnboxedDirect() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedDirect.kt"); + } + + @Test + @TestMetadata("returnUnboxedFromLambda.kt") + public void testReturnUnboxedFromLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedFromLambda.kt"); + } + + @Test + @TestMetadata("returnUnboxedResume.kt") + public void testReturnUnboxedResume() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedResume.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline") + @TestDataPath("$PROJECT_ROOT") + public class InlineUsedAsNoinline { + @Test + public void testAllFilesPresentInInlineUsedAsNoinline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineOnly.kt") + public void testInlineOnly() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/inlineOnly.kt"); + } + + @Test + @TestMetadata("simpleNamed.kt") + public void testSimpleNamed() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/simpleNamed.kt"); + } + + @Test + @TestMetadata("withCapturedInlineLambda.kt") + public void testWithCapturedInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda.kt"); + } + + @Test + @TestMetadata("withCapturedInlineLambda2.kt") + public void testWithCapturedInlineLambda2() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda2.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/suspend/receiver") + @TestDataPath("$PROJECT_ROOT") + public class Receiver { + @Test + public void testAllFilesPresentInReceiver() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/receiver"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") + public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt"); + } + + @Test + @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") + public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") + public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") + public void testInlineSuspendOfCrossinlineSuspend() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") + public void testInlineSuspendOfNoinlineOrdinary() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") + public void testInlineSuspendOfNoinlineSuspend() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfOrdinary.kt") + public void testInlineSuspendOfOrdinary() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt"); + } + + @Test + @TestMetadata("inlineSuspendOfSuspend.kt") + public void testInlineSuspendOfSuspend() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/suspend/stateMachine") + @TestDataPath("$PROJECT_ROOT") + public class StateMachine { + @Test + public void testAllFilesPresentInStateMachine() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("crossingCoroutineBoundaries.kt") + public void testCrossingCoroutineBoundaries() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/crossingCoroutineBoundaries.kt"); + } + + @Test + @TestMetadata("independentInline.kt") + public void testIndependentInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/independentInline.kt"); + } + + @Test + @TestMetadata("innerLambda.kt") + public void testInnerLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt"); + } + + @Test + @TestMetadata("innerLambdaInsideLambda.kt") + public void testInnerLambdaInsideLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt"); + } + + @Test + @TestMetadata("innerLambdaWithoutCrossinline.kt") + public void testInnerLambdaWithoutCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt"); + } + + @Test + @TestMetadata("innerMadness.kt") + public void testInnerMadness() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt"); + } + + @Test + @TestMetadata("innerMadnessCallSite.kt") + public void testInnerMadnessCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt"); + } + + @Test + @TestMetadata("innerObject.kt") + public void testInnerObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt"); + } + + @Test + @TestMetadata("innerObjectInsideInnerObject.kt") + public void testInnerObjectInsideInnerObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt"); + } + + @Test + @TestMetadata("innerObjectRetransformation.kt") + public void testInnerObjectRetransformation() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt"); + } + + @Test + @TestMetadata("innerObjectSeveralFunctions.kt") + public void testInnerObjectSeveralFunctions() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt"); + } + + @Test + @TestMetadata("innerObjectWithoutCapturingCrossinline.kt") + public void testInnerObjectWithoutCapturingCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt"); + } + + @Test + @TestMetadata("insideObject.kt") + public void testInsideObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt"); + } + + @Test + @TestMetadata("kt30708.kt") + public void testKt30708() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt"); + } + + @Test + @TestMetadata("lambdaTransformation.kt") + public void testLambdaTransformation() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt"); + } + + @Test + @TestMetadata("normalInline.kt") + public void testNormalInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt"); + } + + @Test + @TestMetadata("numberOfSuspentions.kt") + public void testNumberOfSuspentions() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt"); + } + + @Test + @TestMetadata("objectInsideLambdas.kt") + public void testObjectInsideLambdas() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/objectInsideLambdas.kt"); + } + + @Test + @TestMetadata("oneInlineTwoCaptures.kt") + public void testOneInlineTwoCaptures() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/oneInlineTwoCaptures.kt"); + } + + @Test + @TestMetadata("passLambda.kt") + public void testPassLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passLambda.kt"); + } + + @Test + @TestMetadata("passParameter.kt") + public void testPassParameter() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt"); + } + + @Test + @TestMetadata("passParameterLambda.kt") + public void testPassParameterLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameterLambda.kt"); + } + + @Test + @TestMetadata("unreachableSuspendMarker.kt") + public void testUnreachableSuspendMarker() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors") + @TestDataPath("$PROJECT_ROOT") + public class SyntheticAccessors { + @Test + public void testAllFilesPresentInSyntheticAccessors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constField.kt") + public void testConstField() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/constField.kt"); + } + + @Test + @TestMetadata("packagePrivateMembers.kt") + public void testPackagePrivateMembers() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/packagePrivateMembers.kt"); + } + + @Test + @TestMetadata("propertyModifiers.kt") + public void testPropertyModifiers() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/propertyModifiers.kt"); + } + + @Test + @TestMetadata("protectedMembers.kt") + public void testProtectedMembers() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembers.kt"); + } + + @Test + @TestMetadata("protectedMembersFromSuper.kt") + public void testProtectedMembersFromSuper() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembersFromSuper.kt"); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCall.kt"); + } + + @Test + @TestMetadata("superCallFromMultipleSubclasses.kt") + public void testSuperCallFromMultipleSubclasses() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCallFromMultipleSubclasses.kt"); + } + + @Test + @TestMetadata("superProperty.kt") + public void testSuperProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda") + @TestDataPath("$PROJECT_ROOT") + public class WithinInlineLambda { + @Test + public void testAllFilesPresentInWithinInlineLambda() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("directFieldAccess.kt") + public void testDirectFieldAccess() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccess.kt"); + } + + @Test + @TestMetadata("directFieldAccessInCrossInline.kt") + public void testDirectFieldAccessInCrossInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt"); + } + + @Test + @TestMetadata("privateCall.kt") + public void testPrivateCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateCall.kt"); + } + + @Test + @TestMetadata("privateInCrossInline.kt") + public void testPrivateInCrossInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt"); + } + + @Test + @TestMetadata("privateInDefaultStubArgument.kt") + public void testPrivateInDefaultStubArgument() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInDefaultStubArgument.kt"); + } + + @Test + @TestMetadata("protectedInCrossinline.kt") + public void testProtectedInCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedInCrossinline.kt"); + } + + @Test + @TestMetadata("protectedMembersFromSuper.kt") + public void testProtectedMembersFromSuper() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedMembersFromSuper.kt"); + } + + @Test + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superCall.kt"); + } + + @Test + @TestMetadata("superInCrossInline.kt") + public void testSuperInCrossInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/trait") + @TestDataPath("$PROJECT_ROOT") + public class Trait { + @Test + public void testAllFilesPresentInTrait() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/trait"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/codegen/boxInline/trait/trait.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/tryCatchFinally") + @TestDataPath("$PROJECT_ROOT") + public class TryCatchFinally { + @Test + public void testAllFilesPresentInTryCatchFinally() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/tryCatchFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt5863.kt") + public void testKt5863() throws Exception { + runTest("compiler/testData/codegen/boxInline/tryCatchFinally/kt5863.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() throws Exception { + runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt"); + } + + @Test + @TestMetadata("tryCatch2.kt") + public void testTryCatch2() throws Exception { + runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt"); + } + + @Test + @TestMetadata("tryCatchFinally.kt") + public void testTryCatchFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/typeParameters") + @TestDataPath("$PROJECT_ROOT") + public class TypeParameters { + @Test + public void testAllFilesPresentInTypeParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt"); + } + + @Test + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt"); + } + + @Test + @TestMetadata("projectionTypeArguments.kt") + public void testProjectionTypeArguments() throws Exception { + runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt"); + } + + @Test + @TestMetadata("severalUpperBounds.kt") + public void testSeveralUpperBounds() throws Exception { + runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt"); + } + + @Test + @TestMetadata("typeArgFromGenericBaseClass.kt") + public void testTypeArgFromGenericBaseClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt"); + } + + @Test + @TestMetadata("uncheckedCastToNothing.kt") + public void testUncheckedCastToNothing() throws Exception { + runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxInline/varargs") + @TestDataPath("$PROJECT_ROOT") + public class Varargs { + @Test + public void testAllFilesPresentInVarargs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt17653.kt") + public void testKt17653() throws Exception { + runTest("compiler/testData/codegen/boxInline/varargs/kt17653.kt"); + } + + @Test + @TestMetadata("varargAndDefaultParameters.kt") + public void testVarargAndDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt"); + } + + @Test + @TestMetadata("varargAndDefaultParameters2.kt") + public void testVarargAndDefaultParameters2() throws Exception { + runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk") + @TestDataPath("$PROJECT_ROOT") + public class BoxModernJdk { + @Test + public void testAllFilesPresentInBoxModernJdk() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @Tag("") + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava11") + @TestDataPath("$PROJECT_ROOT") + public class TestsWithJava11 { + @Test + public void testAllFilesPresentInTestsWithJava11() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava11"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("concatDynamic.kt") + public void testConcatDynamic() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamic.kt"); + } + + @Test + @TestMetadata("concatDynamic199Long.kt") + public void testConcatDynamic199Long() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamic199Long.kt"); + } + + @Test + @TestMetadata("concatDynamic200.kt") + public void testConcatDynamic200() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamic200.kt"); + } + + @Test + @TestMetadata("concatDynamic200Long.kt") + public void testConcatDynamic200Long() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamic200Long.kt"); + } + + @Test + @TestMetadata("concatDynamic201.kt") + public void testConcatDynamic201() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamic201.kt"); + } + + @Test + @TestMetadata("concatDynamicIndy199Long.kt") + public void testConcatDynamicIndy199Long() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamicIndy199Long.kt"); + } + + @Test + @TestMetadata("concatDynamicIndy200.kt") + public void testConcatDynamicIndy200() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamicIndy200.kt"); + } + + @Test + @TestMetadata("concatDynamicIndy200Long.kt") + public void testConcatDynamicIndy200Long() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamicIndy200Long.kt"); + } + + @Test + @TestMetadata("concatDynamicIndy201.kt") + public void testConcatDynamicIndy201() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamicIndy201.kt"); + } + + @Test + @TestMetadata("concatDynamicInlineClasses.kt") + public void testConcatDynamicInlineClasses() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamicInlineClasses.kt"); + } + + @Test + @TestMetadata("concatDynamicSpecialSymbols.kt") + public void testConcatDynamicSpecialSymbols() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamicSpecialSymbols.kt"); + } + + @Test + @TestMetadata("concatDynamicWithInline.kt") + public void testConcatDynamicWithInline() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/concatDynamicWithInline.kt"); + } + + @Test + @TestMetadata("kt36984.kt") + public void testKt36984() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/kt36984.kt"); + } + + @Test + @TestMetadata("kt47917.kt") + public void testKt47917() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/kt47917.kt"); + } + + @Test + @TestMetadata("kt47917_oldBackend.kt") + public void testKt47917_oldBackend() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/kt47917_oldBackend.kt"); + } + + @Test + @TestMetadata("kt47917_russian.kt") + public void testKt47917_russian() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/kt47917_russian.kt"); + } + + @Test + @TestMetadata("kt47917_surrogatePairs.kt") + public void testKt47917_surrogatePairs() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/kt47917_surrogatePairs.kt"); + } + + @Test + @TestMetadata("varHandle.kt") + public void testVarHandle() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/varHandle.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag") + @TestDataPath("$PROJECT_ROOT") + public class ReleaseFlag { + @Test + public void testAllFilesPresentInReleaseFlag() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/byteBuffer") + @TestDataPath("$PROJECT_ROOT") + public class ByteBuffer { + @Test + public void testAllFilesPresentInByteBuffer() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/byteBuffer"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("byteBuffer.kt") + public void testByteBuffer() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/byteBuffer/byteBuffer.kt"); + } + + @Test + @TestMetadata("byteBuffer_10.kt") + public void testByteBuffer_10() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/byteBuffer/byteBuffer_10.kt"); + } + + @Test + @TestMetadata("byteBuffer_11.kt") + public void testByteBuffer_11() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/byteBuffer/byteBuffer_11.kt"); + } + + @Test + @TestMetadata("byteBuffer_6.kt") + public void testByteBuffer_6() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/byteBuffer/byteBuffer_6.kt"); + } + + @Test + @TestMetadata("byteBuffer_8.kt") + public void testByteBuffer_8() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/byteBuffer/byteBuffer_8.kt"); + } + + @Test + @TestMetadata("byteBuffer_9.kt") + public void testByteBuffer_9() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/byteBuffer/byteBuffer_9.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("threadState_10.kt") + public void testThreadState_10() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/innerClass/threadState_10.kt"); + } + + @Test + @TestMetadata("threadState_11.kt") + public void testThreadState_11() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/innerClass/threadState_11.kt"); + } + + @Test + @TestMetadata("threadState_8.kt") + public void testThreadState_8() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/innerClass/threadState_8.kt"); + } + + @Test + @TestMetadata("threadState_9.kt") + public void testThreadState_9() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/innerClass/threadState_9.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/reflective") + @TestDataPath("$PROJECT_ROOT") + public class Reflective { + @Test + public void testAllFilesPresentInReflective() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/reflective"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("reflective.kt") + public void testReflective() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/reflective/reflective.kt"); + } + + @Test + @TestMetadata("reflective_10.kt") + public void testReflective_10() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/reflective/reflective_10.kt"); + } + + @Test + @TestMetadata("reflective_11.kt") + public void testReflective_11() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/reflective/reflective_11.kt"); + } + + @Test + @TestMetadata("reflective_6.kt") + public void testReflective_6() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/reflective/reflective_6.kt"); + } + + @Test + @TestMetadata("reflective_8.kt") + public void testReflective_8() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/reflective/reflective_8.kt"); + } + + @Test + @TestMetadata("reflective_9.kt") + public void testReflective_9() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/reflective/reflective_9.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/withJava") + @TestDataPath("$PROJECT_ROOT") + public class WithJava { + @Test + public void testAllFilesPresentInWithJava() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/withJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("withJava_10.kt") + public void testWithJava_10() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/withJava/withJava_10.kt"); + } + + @Test + @TestMetadata("withJava_11.kt") + public void testWithJava_11() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/withJava/withJava_11.kt"); + } + + @Test + @TestMetadata("withJava_6.kt") + public void testWithJava_6() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/withJava/withJava_6.kt"); + } + + @Test + @TestMetadata("withJava_8.kt") + public void testWithJava_8() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/withJava/withJava_8.kt"); + } + + @Test + @TestMetadata("withJava_9.kt") + public void testWithJava_9() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava11/releaseFlag/withJava/withJava_9.kt"); + } + } + } + } + + @Nested + @Tag("") + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava17") + @TestDataPath("$PROJECT_ROOT") + public class TestsWithJava17 { + @Test + public void testAllFilesPresentInTestsWithJava17() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava17"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava17/records") + @TestDataPath("$PROJECT_ROOT") + public class Records { + @Test + public void testAllFilesPresentInRecords() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava17/records"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("binaryRecord.kt") + public void testBinaryRecord() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/binaryRecord.kt"); + } + + @Test + @TestMetadata("bytecodeShapeForJava.kt") + public void testBytecodeShapeForJava() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/bytecodeShapeForJava.kt"); + } + + @Test + @TestMetadata("callableReferenceToGenericRecord.kt") + public void testCallableReferenceToGenericRecord() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/callableReferenceToGenericRecord.kt"); + } + + @Test + @TestMetadata("collectionSizeOverrides.kt") + public void testCollectionSizeOverrides() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/collectionSizeOverrides.kt"); + } + + @Test + @TestMetadata("dataJvmRecord.kt") + public void testDataJvmRecord() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/dataJvmRecord.kt"); + } + + @Test + @TestMetadata("jvmRecordBinary.kt") + public void testJvmRecordBinary() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/jvmRecordBinary.kt"); + } + + @Test + @TestMetadata("kt54573.kt") + public void testKt54573() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/kt54573.kt"); + } + + @Test + @TestMetadata("propertiesOverrides.kt") + public void testPropertiesOverrides() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/propertiesOverrides.kt"); + } + + @Test + @TestMetadata("propertiesOverridesAllCompatibilityJvmDefault.kt") + public void testPropertiesOverridesAllCompatibilityJvmDefault() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/propertiesOverridesAllCompatibilityJvmDefault.kt"); + } + + @Test + @TestMetadata("propertiesOverridesAllJvmDefault.kt") + public void testPropertiesOverridesAllJvmDefault() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/propertiesOverridesAllJvmDefault.kt"); + } + + @Test + @TestMetadata("recordDifferentPropertyOverride.kt") + public void testRecordDifferentPropertyOverride() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordDifferentPropertyOverride.kt"); + } + + @Test + @TestMetadata("recordDifferentSyntheticProperty.kt") + public void testRecordDifferentSyntheticProperty() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordDifferentSyntheticProperty.kt"); + } + + @Test + @TestMetadata("recordPropertyAccess.kt") + public void testRecordPropertyAccess() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordPropertyAccess.kt"); + } + + @Test + @TestMetadata("recordWithCompanion.kt") + public void testRecordWithCompanion() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordWithCompanion.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag") + @TestDataPath("$PROJECT_ROOT") + public class ReleaseFlag { + @Test + public void testAllFilesPresentInReleaseFlag() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer") + @TestDataPath("$PROJECT_ROOT") + public class ByteBuffer { + @Test + public void testAllFilesPresentInByteBuffer() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("byteBuffer.kt") + public void testByteBuffer() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer/byteBuffer.kt"); + } + + @Test + @TestMetadata("byteBuffer_10.kt") + public void testByteBuffer_10() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer/byteBuffer_10.kt"); + } + + @Test + @TestMetadata("byteBuffer_11.kt") + public void testByteBuffer_11() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer/byteBuffer_11.kt"); + } + + @Test + @TestMetadata("byteBuffer_12.kt") + public void testByteBuffer_12() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer/byteBuffer_12.kt"); + } + + @Test + @TestMetadata("byteBuffer_13.kt") + public void testByteBuffer_13() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer/byteBuffer_13.kt"); + } + + @Test + @TestMetadata("byteBuffer_14.kt") + public void testByteBuffer_14() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer/byteBuffer_14.kt"); + } + + @Test + @TestMetadata("byteBuffer_15.kt") + public void testByteBuffer_15() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer/byteBuffer_15.kt"); + } + + @Test + @TestMetadata("byteBuffer_16.kt") + public void testByteBuffer_16() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer/byteBuffer_16.kt"); + } + + @Test + @TestMetadata("byteBuffer_17.kt") + public void testByteBuffer_17() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer/byteBuffer_17.kt"); + } + + @Test + @TestMetadata("byteBuffer_8.kt") + public void testByteBuffer_8() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer/byteBuffer_8.kt"); + } + + @Test + @TestMetadata("byteBuffer_9.kt") + public void testByteBuffer_9() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/byteBuffer/byteBuffer_9.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable") + @TestDataPath("$PROJECT_ROOT") + public class Constable { + @Test + public void testAllFilesPresentInConstable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constable.kt") + public void testConstable() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable/constable.kt"); + } + + @Test + @TestMetadata("constable_10.kt") + public void testConstable_10() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable/constable_10.kt"); + } + + @Test + @TestMetadata("constable_11.kt") + public void testConstable_11() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable/constable_11.kt"); + } + + @Test + @TestMetadata("constable_12.kt") + public void testConstable_12() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable/constable_12.kt"); + } + + @Test + @TestMetadata("constable_13.kt") + public void testConstable_13() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable/constable_13.kt"); + } + + @Test + @TestMetadata("constable_14.kt") + public void testConstable_14() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable/constable_14.kt"); + } + + @Test + @TestMetadata("constable_15.kt") + public void testConstable_15() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable/constable_15.kt"); + } + + @Test + @TestMetadata("constable_16.kt") + public void testConstable_16() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable/constable_16.kt"); + } + + @Test + @TestMetadata("constable_17.kt") + public void testConstable_17() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable/constable_17.kt"); + } + + @Test + @TestMetadata("constable_8.kt") + public void testConstable_8() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable/constable_8.kt"); + } + + @Test + @TestMetadata("constable_9.kt") + public void testConstable_9() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/constable/constable_9.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("threadState_10.kt") + public void testThreadState_10() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass/threadState_10.kt"); + } + + @Test + @TestMetadata("threadState_11.kt") + public void testThreadState_11() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass/threadState_11.kt"); + } + + @Test + @TestMetadata("threadState_12.kt") + public void testThreadState_12() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass/threadState_12.kt"); + } + + @Test + @TestMetadata("threadState_13.kt") + public void testThreadState_13() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass/threadState_13.kt"); + } + + @Test + @TestMetadata("threadState_14.kt") + public void testThreadState_14() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass/threadState_14.kt"); + } + + @Test + @TestMetadata("threadState_15.kt") + public void testThreadState_15() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass/threadState_15.kt"); + } + + @Test + @TestMetadata("threadState_16.kt") + public void testThreadState_16() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass/threadState_16.kt"); + } + + @Test + @TestMetadata("threadState_17.kt") + public void testThreadState_17() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass/threadState_17.kt"); + } + + @Test + @TestMetadata("threadState_8.kt") + public void testThreadState_8() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass/threadState_8.kt"); + } + + @Test + @TestMetadata("threadState_9.kt") + public void testThreadState_9() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/innerClass/threadState_9.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava") + @TestDataPath("$PROJECT_ROOT") + public class WithJava { + @Test + public void testAllFilesPresentInWithJava() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("withJava_10.kt") + public void testWithJava_10() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava/withJava_10.kt"); + } + + @Test + @TestMetadata("withJava_11.kt") + public void testWithJava_11() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava/withJava_11.kt"); + } + + @Test + @TestMetadata("withJava_12.kt") + public void testWithJava_12() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava/withJava_12.kt"); + } + + @Test + @TestMetadata("withJava_13.kt") + public void testWithJava_13() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava/withJava_13.kt"); + } + + @Test + @TestMetadata("withJava_14.kt") + public void testWithJava_14() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava/withJava_14.kt"); + } + + @Test + @TestMetadata("withJava_15.kt") + public void testWithJava_15() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava/withJava_15.kt"); + } + + @Test + @TestMetadata("withJava_16.kt") + public void testWithJava_16() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava/withJava_16.kt"); + } + + @Test + @TestMetadata("withJava_17.kt") + public void testWithJava_17() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava/withJava_17.kt"); + } + + @Test + @TestMetadata("withJava_8.kt") + public void testWithJava_8() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava/withJava_8.kt"); + } + + @Test + @TestMetadata("withJava_9.kt") + public void testWithJava_9() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/releaseFlag/withJava/withJava_9.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed") + @TestDataPath("$PROJECT_ROOT") + public class Sealed { + @Test + public void testAllFilesPresentInSealed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("compiledJavaSealedClass.kt") + public void testCompiledJavaSealedClass() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed/compiledJavaSealedClass.kt"); + } + + @Test + @TestMetadata("compiledJavaSealedInterface.kt") + public void testCompiledJavaSealedInterface() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed/compiledJavaSealedInterface.kt"); + } + + @Test + @TestMetadata("javaExhaustiveWhenOnKotlinSealedClass.kt") + public void testJavaExhaustiveWhenOnKotlinSealedClass() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed/javaExhaustiveWhenOnKotlinSealedClass.kt"); + } + + @Test + @TestMetadata("javaRecordsViaKotlinReflection.kt") + public void testJavaRecordsViaKotlinReflection() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed/javaRecordsViaKotlinReflection.kt"); + } + + @Test + @TestMetadata("javaSealedClass.kt") + public void testJavaSealedClass() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed/javaSealedClass.kt"); + } + + @Test + @TestMetadata("javaSealedInterface.kt") + public void testJavaSealedInterface() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed/javaSealedInterface.kt"); + } + + @Test + @TestMetadata("kotlinExhaustiveWhenOnJavaSealedClass.kt") + public void testKotlinExhaustiveWhenOnJavaSealedClass() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed/kotlinExhaustiveWhenOnJavaSealedClass.kt"); + } + + @Test + @TestMetadata("permittedSubclassesOfSealedKotlinClass.kt") + public void testPermittedSubclassesOfSealedKotlinClass() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed/permittedSubclassesOfSealedKotlinClass.kt"); + } + + @Test + @TestMetadata("sealedJavaClassViaJavaReflection.kt") + public void testSealedJavaClassViaJavaReflection() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed/sealedJavaClassViaJavaReflection.kt"); + } + + @Test + @TestMetadata("sealedJavaClassViaKotlinReflection.kt") + public void testSealedJavaClassViaKotlinReflection() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed/sealedJavaClassViaKotlinReflection.kt"); + } + + @Test + @TestMetadata("sealedJavaInterfaceViaKotlinReflection.kt") + public void testSealedJavaInterfaceViaKotlinReflection() throws Exception { + runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealed/sealedJavaInterfaceViaKotlinReflection.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText") + @TestDataPath("$PROJECT_ROOT") + public class BytecodeText { + @Test + @TestMetadata("accessorForOverridenVal.kt") + public void testAccessorForOverridenVal() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/accessorForOverridenVal.kt"); + } + + @Test + @TestMetadata("accessorForProtected.kt") + public void testAccessorForProtected() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/accessorForProtected.kt"); + } + + @Test + @TestMetadata("accessorNaming.kt") + public void testAccessorNaming() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/accessorNaming.kt"); + } + + @Test + public void testAllFilesPresentInBytecodeText() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationDefaultValue.kt") + public void testAnnotationDefaultValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/annotationDefaultValue.kt"); + } + + @Test + @TestMetadata("annotationDefaultValueOfUnsigned.kt") + public void testAnnotationDefaultValueOfUnsigned() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/annotationDefaultValueOfUnsigned.kt"); + } + + @Test + @TestMetadata("annotationJavaRetentionPolicyRuntime.kt") + public void testAnnotationJavaRetentionPolicyRuntime() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/annotationJavaRetentionPolicyRuntime.kt"); + } + + @Test + @TestMetadata("annotationRetentionPolicyClass.kt") + public void testAnnotationRetentionPolicyClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/annotationRetentionPolicyClass.kt"); + } + + @Test + @TestMetadata("annotationRetentionPolicyRuntime.kt") + public void testAnnotationRetentionPolicyRuntime() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/annotationRetentionPolicyRuntime.kt"); + } + + @Test + @TestMetadata("annotationRetentionPolicySource.kt") + public void testAnnotationRetentionPolicySource() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/annotationRetentionPolicySource.kt"); + } + + @Test + @TestMetadata("boxedNotNumberTypeOnUnboxing.kt") + public void testBoxedNotNumberTypeOnUnboxing() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxedNotNumberTypeOnUnboxing.kt"); + } + + @Test + @TestMetadata("bridgeForFakeOverride.kt") + public void testBridgeForFakeOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/bridgeForFakeOverride.kt"); + } + + @Test + @TestMetadata("charConstant.kt") + public void testCharConstant() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/charConstant.kt"); + } + + @Test + @TestMetadata("checkcastOnThrow.kt") + public void testCheckcastOnThrow() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/checkcastOnThrow.kt"); + } + + @Test + @TestMetadata("collectionStubs.kt") + public void testCollectionStubs() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/collectionStubs.kt"); + } + + @Test + @TestMetadata("componentEvaluatesOnlyOnce.kt") + public void testComponentEvaluatesOnlyOnce() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/componentEvaluatesOnlyOnce.kt"); + } + + @Test + @TestMetadata("constClosureOptimization.kt") + public void testConstClosureOptimization() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constClosureOptimization.kt"); + } + + @Test + @TestMetadata("defaultMethodBody.kt") + public void testDefaultMethodBody() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/defaultMethodBody.kt"); + } + + @Test + @TestMetadata("doNotStoreNullForTmpInDestructuring.kt") + public void testDoNotStoreNullForTmpInDestructuring() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/doNotStoreNullForTmpInDestructuring.kt"); + } + + @Test + @TestMetadata("doNotStoreNullsForCapturedVars.kt") + public void testDoNotStoreNullsForCapturedVars() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/doNotStoreNullsForCapturedVars.kt"); + } + + @Test + @TestMetadata("falseSmartCast.kt") + public void testFalseSmartCast() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/falseSmartCast.kt"); + } + + @Test + @TestMetadata("flagsInMultiFileInherit.kt") + public void testFlagsInMultiFileInherit() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/flagsInMultiFileInherit.kt"); + } + + @Test + @TestMetadata("iincGeneration.kt") + public void testIincGeneration() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/iincGeneration.kt"); + } + + @Test + @TestMetadata("inheritedPropertyAnnotations.kt") + public void testInheritedPropertyAnnotations() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inheritedPropertyAnnotations.kt"); + } + + @Test + @TestMetadata("inlineFromOtherModule.kt") + public void testInlineFromOtherModule() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineFromOtherModule.kt"); + } + + @Test + @TestMetadata("inlineJavaConstantFromSubclass.kt") + public void testInlineJavaConstantFromSubclass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineJavaConstantFromSubclass.kt"); + } + + @Test + @TestMetadata("inlineJavaStaticFields.kt") + public void testInlineJavaStaticFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineJavaStaticFields.kt"); + } + + @Test + @TestMetadata("inlineProtectedJavaConstantFromOtherPackage.kt") + public void testInlineProtectedJavaConstantFromOtherPackage() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineProtectedJavaConstantFromOtherPackage.kt"); + } + + @Test + @TestMetadata("intConstantNotNull.kt") + public void testIntConstantNotNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intConstantNotNull.kt"); + } + + @Test + @TestMetadata("intConstantNullable.kt") + public void testIntConstantNullable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intConstantNullable.kt"); + } + + @Test + @TestMetadata("intConstantNullableSafeCall.kt") + public void testIntConstantNullableSafeCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intConstantNullableSafeCall.kt"); + } + + @Test + @TestMetadata("intConstantSafeCall.kt") + public void testIntConstantSafeCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intConstantSafeCall.kt"); + } + + @Test + @TestMetadata("intProgressionNoBoxing.kt") + public void testIntProgressionNoBoxing() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intProgressionNoBoxing.kt"); + } + + @Test + @TestMetadata("intRangeNoBoxing.kt") + public void testIntRangeNoBoxing() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intRangeNoBoxing.kt"); + } + + @Test + @TestMetadata("interfaceDefaultImpl.kt") + public void testInterfaceDefaultImpl() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/interfaceDefaultImpl.kt"); + } + + @Test + @TestMetadata("isArrayOf.kt") + public void testIsArrayOf() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/isArrayOf.kt"); + } + + @Test + @TestMetadata("javaExtensionPropertyIntrinsic.kt") + public void testJavaExtensionPropertyIntrinsic() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/javaExtensionPropertyIntrinsic.kt"); + } + + @Test + @TestMetadata("javaFields.kt") + public void testJavaFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/javaFields.kt"); + } + + @Test + @TestMetadata("javaFieldsWithIntersectionTypes.kt") + public void testJavaFieldsWithIntersectionTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/javaFieldsWithIntersectionTypes.kt"); + } + + @Test + @TestMetadata("javaFieldsWithIntersectionTypes_k1.kt") + public void testJavaFieldsWithIntersectionTypes_k1() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/javaFieldsWithIntersectionTypes_k1.kt"); + } + + @Test + @TestMetadata("javaFields_k1.kt") + public void testJavaFields_k1() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/javaFields_k1.kt"); + } + + @Test + @TestMetadata("javaStatics.kt") + public void testJavaStatics() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/javaStatics.kt"); + } + + @Test + @TestMetadata("jvmField.kt") + public void testJvmField() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/jvmField.kt"); + } + + @Test + @TestMetadata("jvmStaticInternalMangling.kt") + public void testJvmStaticInternalMangling() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/jvmStaticInternalMangling.kt"); + } + + @Test + @TestMetadata("kt10259.kt") + public void testKt10259() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt10259.kt"); + } + + @Test + @TestMetadata("kt10259_2.kt") + public void testKt10259_2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt10259_2.kt"); + } + + @Test + @TestMetadata("kt10259_3.kt") + public void testKt10259_3() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt10259_3.kt"); + } + + @Test + @TestMetadata("kt2202.kt") + public void testKt2202() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt2202.kt"); + } + + @Test + @TestMetadata("kt2887.kt") + public void testKt2887() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt2887.kt"); + } + + @Test + @TestMetadata("kt3845.kt") + public void testKt3845() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt3845.kt"); + } + + @Test + @TestMetadata("kt46615.kt") + public void testKt46615() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt46615.kt"); + } + + @Test + @TestMetadata("kt48367.kt") + public void testKt48367() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt48367.kt"); + } + + @Test + @TestMetadata("kt5016.kt") + public void testKt5016() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt5016.kt"); + } + + @Test + @TestMetadata("kt5016int.kt") + public void testKt5016int() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt5016int.kt"); + } + + @Test + @TestMetadata("kt5016intOrNull.kt") + public void testKt5016intOrNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt5016intOrNull.kt"); + } + + @Test + @TestMetadata("kt56923.kt") + public void testKt56923() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt56923.kt"); + } + + @Test + @TestMetadata("kt7188.kt") + public void testKt7188() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt7188.kt"); + } + + @Test + @TestMetadata("kt7769.kt") + public void testKt7769() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt7769.kt"); + } + + @Test + @TestMetadata("kt9603.kt") + public void testKt9603() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/kt9603.kt"); + } + + @Test + @TestMetadata("mapGetOrDefault.kt") + public void testMapGetOrDefault() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/mapGetOrDefault.kt"); + } + + @Test + @TestMetadata("maxStackAfterOptimizations.kt") + public void testMaxStackAfterOptimizations() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/maxStackAfterOptimizations.kt"); + } + + @Test + @TestMetadata("mergedProgression.kt") + public void testMergedProgression() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/mergedProgression.kt"); + } + + @Test + @TestMetadata("noAccessorForProtectedInSamePackageCrossinline.kt") + public void testNoAccessorForProtectedInSamePackageCrossinline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/noAccessorForProtectedInSamePackageCrossinline.kt"); + } + + @Test + @TestMetadata("noAccessorForProtectedInSamePackagePrivateInline.kt") + public void testNoAccessorForProtectedInSamePackagePrivateInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/noAccessorForProtectedInSamePackagePrivateInline.kt"); + } + + @Test + @TestMetadata("noFlagAnnotations.kt") + public void testNoFlagAnnotations() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/noFlagAnnotations.kt"); + } + + @Test + @TestMetadata("noNumberCheckCast.kt") + public void testNoNumberCheckCast() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/noNumberCheckCast.kt"); + } + + @Test + @TestMetadata("noSuperCheckInDefaultConstuctor.kt") + public void testNoSuperCheckInDefaultConstuctor() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/noSuperCheckInDefaultConstuctor.kt"); + } + + @Test + @TestMetadata("noSyntheticAccessorForPrivateCompanionObjectWhenNotRequired.kt") + public void testNoSyntheticAccessorForPrivateCompanionObjectWhenNotRequired() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/noSyntheticAccessorForPrivateCompanionObjectWhenNotRequired.kt"); + } + + @Test + @TestMetadata("noWrapperForMethodReturningPrimitive.kt") + public void testNoWrapperForMethodReturningPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/noWrapperForMethodReturningPrimitive.kt"); + } + + @Test + @TestMetadata("nopsInDoWhile.kt") + public void testNopsInDoWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nopsInDoWhile.kt"); + } + + @Test + @TestMetadata("partMembersCall.kt") + public void testPartMembersCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/partMembersCall.kt"); + } + + @Test + @TestMetadata("partMembersInline.kt") + public void testPartMembersInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/partMembersInline.kt"); + } + + @Test + @TestMetadata("preEvaluateInlineJavaStaticFields.kt") + public void testPreEvaluateInlineJavaStaticFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/preEvaluateInlineJavaStaticFields.kt"); + } + + @Test + @TestMetadata("prefixIntVarIncrement.kt") + public void testPrefixIntVarIncrement() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/prefixIntVarIncrement.kt"); + } + + @Test + @TestMetadata("privateDefaultArgs.kt") + public void testPrivateDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/privateDefaultArgs.kt"); + } + + @Test + @TestMetadata("redundantGotoRemoving.kt") + public void testRedundantGotoRemoving() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/redundantGotoRemoving.kt"); + } + + @Test + @TestMetadata("redundantInitializer.kt") + public void testRedundantInitializer() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/redundantInitializer.kt"); + } + + @Test + @TestMetadata("redundantInitializerNumber.kt") + public void testRedundantInitializerNumber() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/redundantInitializerNumber.kt"); + } + + @Test + @TestMetadata("redundantValInitializer.kt") + public void testRedundantValInitializer() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/redundantValInitializer.kt"); + } + + @Test + @TestMetadata("redundantValInitializerInObject.kt") + public void testRedundantValInitializerInObject() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/redundantValInitializerInObject.kt"); + } + + @Test + @TestMetadata("redundantVarInitializer.kt") + public void testRedundantVarInitializer() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/redundantVarInitializer.kt"); + } + + @Test + @TestMetadata("redundantVarInitializerInObject.kt") + public void testRedundantVarInitializerInObject() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/redundantVarInitializerInObject.kt"); + } + + @Test + @TestMetadata("reifiedAsCheck.kt") + public void testReifiedAsCheck() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/reifiedAsCheck.kt"); + } + + @Test + @TestMetadata("reifiedAsCheckWithNullable.kt") + public void testReifiedAsCheckWithNullable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/reifiedAsCheckWithNullable.kt"); + } + + @Test + @TestMetadata("reifiedIsCheck.kt") + public void testReifiedIsCheck() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/reifiedIsCheck.kt"); + } + + @Test + @TestMetadata("reifiedIsCheckWithNullable.kt") + public void testReifiedIsCheckWithNullable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/reifiedIsCheckWithNullable.kt"); + } + + @Test + @TestMetadata("reifiedSafeAsCheck.kt") + public void testReifiedSafeAsCheck() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/reifiedSafeAsCheck.kt"); + } + + @Test + @TestMetadata("safeAsWithMutable.kt") + public void testSafeAsWithMutable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/safeAsWithMutable.kt"); + } + + @Test + @TestMetadata("superFlagInMultiFileFacade.kt") + public void testSuperFlagInMultiFileFacade() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/superFlagInMultiFileFacade.kt"); + } + + @Test + @TestMetadata("superToString.kt") + public void testSuperToString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/superToString.kt"); + } + + @Test + @TestMetadata("suspendCoroutineUninterceptedOrReturn.kt") + public void testSuspendCoroutineUninterceptedOrReturn() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/suspendCoroutineUninterceptedOrReturn.kt"); + } + + @Test + @TestMetadata("topLevelFunWithDefaultArgs.kt") + public void testTopLevelFunWithDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/topLevelFunWithDefaultArgs.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/argumentOrder") + @TestDataPath("$PROJECT_ROOT") + public class ArgumentOrder { + @Test + public void testAllFilesPresentInArgumentOrder() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("sameOrder.kt") + public void testSameOrder() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/argumentOrder/sameOrder.kt"); + } + + @Test + @TestMetadata("sameOrderWithDefault.kt") + public void testSameOrderWithDefault() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/argumentOrder/sameOrderWithDefault.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/assert") + @TestDataPath("$PROJECT_ROOT") + public class Assert { + @Test + public void testAllFilesPresentInAssert() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("jvmCrossinline.kt") + public void testJvmCrossinline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/assert/jvmCrossinline.kt"); + } + + @Test + @TestMetadata("jvmCrossinlineAssertInLambda.kt") + public void testJvmCrossinlineAssertInLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/assert/jvmCrossinlineAssertInLambda.kt"); + } + + @Test + @TestMetadata("jvmInline.kt") + public void testJvmInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/assert/jvmInline.kt"); + } + + @Test + @TestMetadata("jvmInlineLambda.kt") + public void testJvmInlineLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/assert/jvmInlineLambda.kt"); + } + + @Test + @TestMetadata("jvmNestedClass.kt") + public void testJvmNestedClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/assert/jvmNestedClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("crossinlineSuspend.kt") + public void testCrossinlineSuspend() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxing/crossinlineSuspend.kt"); + } + + @Test + @TestMetadata("inlineSuspend.kt") + public void testInlineSuspend() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxing/inlineSuspend.kt"); + } + + @Test + @TestMetadata("suspend.kt") + public void testSuspend() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxing/suspend.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/boxingOptimization") + @TestDataPath("$PROJECT_ROOT") + public class BoxingOptimization { + @Test + public void testAllFilesPresentInBoxingOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxingAndEquals.kt") + public void testBoxingAndEquals() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/boxingAndEquals.kt"); + } + + @Test + @TestMetadata("casts.kt") + public void testCasts() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/casts.kt"); + } + + @Test + @TestMetadata("checkcastAndInstanceOf.kt") + public void testCheckcastAndInstanceOf() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/checkcastAndInstanceOf.kt"); + } + + @Test + @TestMetadata("fold.kt") + public void testFold() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/fold.kt"); + } + + @Test + @TestMetadata("hashCodeOnNonNull.kt") + public void testHashCodeOnNonNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/hashCodeOnNonNull.kt"); + } + + @Test + @TestMetadata("inlineClassesAndInlinedLambda.kt") + public void testInlineClassesAndInlinedLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/inlineClassesAndInlinedLambda.kt"); + } + + @Test + @TestMetadata("intCompareTo.kt") + public void testIntCompareTo() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/intCompareTo.kt"); + } + + @Test + @TestMetadata("kClassInAnnotation.kt") + public void testKClassInAnnotation() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kClassInAnnotation.kt"); + } + + @Test + @TestMetadata("kClassInAnnotationEscaping.kt") + public void testKClassInAnnotationEscaping() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kClassInAnnotationEscaping.kt"); + } + + @Test + @TestMetadata("kt15862.kt") + public void testKt15862() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kt15862.kt"); + } + + @Test + @TestMetadata("kt15862_2.kt") + public void testKt15862_2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kt15862_2.kt"); + } + + @Test + @TestMetadata("kt6842.kt") + public void testKt6842() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kt6842.kt"); + } + + @Test + @TestMetadata("kt7224.kt") + public void testKt7224() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kt7224.kt"); + } + + @Test + @TestMetadata("maxMinByOrNull.kt") + public void testMaxMinByOrNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/maxMinByOrNull.kt"); + } + + @Test + @TestMetadata("nullCheck.kt") + public void testNullCheck() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/nullCheck.kt"); + } + + @Test + @TestMetadata("progressions.kt") + public void testProgressions() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/progressions.kt"); + } + + @Test + @TestMetadata("safeCallToPrimitiveEquality1.kt") + public void testSafeCallToPrimitiveEquality1() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/safeCallToPrimitiveEquality1.kt"); + } + + @Test + @TestMetadata("safeCallToPrimitiveEquality2.kt") + public void testSafeCallToPrimitiveEquality2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/safeCallToPrimitiveEquality2.kt"); + } + + @Test + @TestMetadata("safeCallToPrimitiveEquality3.kt") + public void testSafeCallToPrimitiveEquality3() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/safeCallToPrimitiveEquality3.kt"); + } + + @Test + @TestMetadata("safeCallWithElvis.kt") + public void testSafeCallWithElvis() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/safeCallWithElvis.kt"); + } + + @Test + @TestMetadata("safeCallWithElvisMultipleFiles.kt") + public void testSafeCallWithElvisMultipleFiles() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/safeCallWithElvisMultipleFiles.kt"); + } + + @Test + @TestMetadata("severalInlines.kt") + public void testSeveralInlines() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/severalInlines.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/simple.kt"); + } + + @Test + @TestMetadata("simpleUninitializedMerge.kt") + public void testSimpleUninitializedMerge() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/simpleUninitializedMerge.kt"); + } + + @Test + @TestMetadata("suspendBoxing.kt") + public void testSuspendBoxing() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/suspendBoxing.kt"); + } + + @Test + @TestMetadata("unsafeRemoving.kt") + public void testUnsafeRemoving() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/unsafeRemoving.kt"); + } + + @Test + @TestMetadata("unsignedRangeIteratorSpecialization.kt") + public void testUnsignedRangeIteratorSpecialization() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/unsignedRangeIteratorSpecialization.kt"); + } + + @Test + @TestMetadata("variableClash.kt") + public void testVariableClash() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/variableClash.kt"); + } + + @Test + @TestMetadata("variables.kt") + public void testVariables() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/variables.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/builtinFunctions") + @TestDataPath("$PROJECT_ROOT") + public class BuiltinFunctions { + @Test + public void testAllFilesPresentInBuiltinFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/builtinFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("charSequence.kt") + public void testCharSequence() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/charSequence.kt"); + } + + @Test + @TestMetadata("contains.kt") + public void testContains() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/contains.kt"); + } + + @Test + @TestMetadata("removeAt.kt") + public void testRemoveAt() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/removeAt.kt"); + } + + @Test + @TestMetadata("size.kt") + public void testSize() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/size.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge") + @TestDataPath("$PROJECT_ROOT") + public class GenericParameterBridge { + @Test + @TestMetadata("abstractList.kt") + public void testAbstractList() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/abstractList.kt"); + } + + @Test + public void testAllFilesPresentInGenericParameterBridge() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("IntMC.kt") + public void testIntMC() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/IntMC.kt"); + } + + @Test + @TestMetadata("mutableCollection.kt") + public void testMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/mutableCollection.kt"); + } + + @Test + @TestMetadata("mutableSetInterfaces.kt") + public void testMutableSetInterfaces() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/mutableSetInterfaces.kt"); + } + + @Test + @TestMetadata("notNullAnyMC.kt") + public void testNotNullAnyMC() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/notNullAnyMC.kt"); + } + + @Test + @TestMetadata("notNullParamMC.kt") + public void testNotNullParamMC() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/notNullParamMC.kt"); + } + + @Test + @TestMetadata("nullableAnyMC.kt") + public void testNullableAnyMC() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/nullableAnyMC.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/callableReference") + @TestDataPath("$PROJECT_ROOT") + public class CallableReference { + @Test + public void testAllFilesPresentInCallableReference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boundFieldReferenceInInline.kt") + public void testBoundFieldReferenceInInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/callableReference/boundFieldReferenceInInline.kt"); + } + + @Test + @TestMetadata("boundFunReferenceInInline.kt") + public void testBoundFunReferenceInInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/callableReference/boundFunReferenceInInline.kt"); + } + + @Test + @TestMetadata("boundPropertyReferenceInInline.kt") + public void testBoundPropertyReferenceInInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/callableReference/boundPropertyReferenceInInline.kt"); + } + + @Test + @TestMetadata("kt36975.kt") + public void testKt36975() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/callableReference/kt36975.kt"); + } + + @Test + @TestMetadata("kt39612.kt") + public void testKt39612() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/callableReference/kt39612.kt"); + } + + @Test + @TestMetadata("nameIntrinsicWithImplicitThis.kt") + public void testNameIntrinsicWithImplicitThis() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/callableReference/nameIntrinsicWithImplicitThis.kt"); + } + + @Test + @TestMetadata("noMetadata.kt") + public void testNoMetadata() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/callableReference/noMetadata.kt"); + } + + @Test + @TestMetadata("unboundFieldReferenceInInline.kt") + public void testUnboundFieldReferenceInInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/callableReference/unboundFieldReferenceInInline.kt"); + } + + @Test + @TestMetadata("unboundFunReferenceInInline.kt") + public void testUnboundFunReferenceInInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/callableReference/unboundFunReferenceInInline.kt"); + } + + @Test + @TestMetadata("unboundPropertyReferenceInInline.kt") + public void testUnboundPropertyReferenceInInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/callableReference/unboundPropertyReferenceInInline.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/capturedVarsOptimization") + @TestDataPath("$PROJECT_ROOT") + public class CapturedVarsOptimization { + @Test + public void testAllFilesPresentInCapturedVarsOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/capturedVarsOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("capturedInChainOfInlineFuns.kt") + public void testCapturedInChainOfInlineFuns() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedInChainOfInlineFuns.kt"); + } + + @Test + @TestMetadata("capturedInInlineOnly.kt") + public void testCapturedInInlineOnly() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedInInlineOnly.kt"); + } + + @Test + @TestMetadata("capturedInLocalObject.kt") + public void testCapturedInLocalObject() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedInLocalObject.kt"); + } + + @Test + @TestMetadata("capturedInNoInlineOnly.kt") + public void testCapturedInNoInlineOnly() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedInNoInlineOnly.kt"); + } + + @Test + @TestMetadata("capturedInNoInlneInsideChainOfInlineFuns.kt") + public void testCapturedInNoInlneInsideChainOfInlineFuns() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedInNoInlneInsideChainOfInlineFuns.kt"); + } + + @Test + @TestMetadata("capturedValInLambdaInitializedInside.kt") + public void testCapturedValInLambdaInitializedInside() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedValInLambdaInitializedInside.kt"); + } + + @Test + @TestMetadata("capturedValInLambdaInitializedOutside.kt") + public void testCapturedValInLambdaInitializedOutside() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedValInLambdaInitializedOutside.kt"); + } + + @Test + @TestMetadata("capturedVarsOfSize2.kt") + public void testCapturedVarsOfSize2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedVarsOfSize2.kt"); + } + + @Test + @TestMetadata("returnValueOfArrayConstructor.kt") + public void testReturnValueOfArrayConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/returnValueOfArrayConstructor.kt"); + } + + @Test + @TestMetadata("sharedSlotsWithCapturedVars.kt") + public void testSharedSlotsWithCapturedVars() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt"); + } + + @Test + @TestMetadata("withStackNormalization.kt") + public void testWithStackNormalization() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/withStackNormalization.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/checkcast") + @TestDataPath("$PROJECT_ROOT") + public class Checkcast { + @Test + public void testAllFilesPresentInCheckcast() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/checkcast"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt14811.kt") + public void testKt14811() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/checkcast/kt14811.kt"); + } + + @Test + @TestMetadata("kt14963.kt") + public void testKt14963() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/checkcast/kt14963.kt"); + } + + @Test + @TestMetadata("kt15411.kt") + public void testKt15411() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/checkcast/kt15411.kt"); + } + + @Test + @TestMetadata("kt22714.kt") + public void testKt22714() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/checkcast/kt22714.kt"); + } + + @Test + @TestMetadata("kt53465.kt") + public void testKt53465() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/checkcast/kt53465.kt"); + } + + @Test + @TestMetadata("noCheckcastOnDelegatingDefaultImplsCall.kt") + public void testNoCheckcastOnDelegatingDefaultImplsCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/checkcast/noCheckcastOnDelegatingDefaultImplsCall.kt"); + } + + @Test + @TestMetadata("noCheckcastOnSuper.kt") + public void testNoCheckcastOnSuper() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/checkcast/noCheckcastOnSuper.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization") + @TestDataPath("$PROJECT_ROOT") + public class CoercionToUnitOptimization { + @Test + public void testAllFilesPresentInCoercionToUnitOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inRangeCheckWithConst.kt") + public void testInRangeCheckWithConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/inRangeCheckWithConst.kt"); + } + + @Test + @TestMetadata("kt14360.kt") + public void testKt14360() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/kt14360.kt"); + } + + @Test + @TestMetadata("largeMethodWithCoercionToUnit.kt") + public void testLargeMethodWithCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/largeMethodWithCoercionToUnit.kt"); + } + + @Test + @TestMetadata("nopInlineFuns.kt") + public void testNopInlineFuns() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/nopInlineFuns.kt"); + } + + @Test + @TestMetadata("returnsUnit.kt") + public void testReturnsUnit() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/returnsUnit.kt"); + } + + @Test + @TestMetadata("safeCall.kt") + public void testSafeCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/safeCall.kt"); + } + + @Test + @TestMetadata("safeCallWithReturnValue.kt") + public void testSafeCallWithReturnValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/safeCallWithReturnValue.kt"); + } + + @Test + @TestMetadata("safeLet.kt") + public void testSafeLet() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/safeLet.kt"); + } + + @Test + @TestMetadata("tryInlined.kt") + public void testTryInlined() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/tryInlined.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/companion") + @TestDataPath("$PROJECT_ROOT") + public class Companion { + @Test + public void testAllFilesPresentInCompanion() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/companion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("directAccessToBackingField.kt") + public void testDirectAccessToBackingField() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/directAccessToBackingField.kt"); + } + + @Test + @TestMetadata("floatingPointCompanionAccess.kt") + public void testFloatingPointCompanionAccess() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/floatingPointCompanionAccess.kt"); + } + + @Test + @TestMetadata("inlineFunctionCompanionPropertyAccess.kt") + public void testInlineFunctionCompanionPropertyAccess() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/inlineFunctionCompanionPropertyAccess.kt"); + } + + @Test + @TestMetadata("inlineFunctionObjectCompanionPropertyAccess.kt") + public void testInlineFunctionObjectCompanionPropertyAccess() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/inlineFunctionObjectCompanionPropertyAccess.kt"); + } + + @Test + @TestMetadata("kt14258_1.kt") + public void testKt14258_1() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_1.kt"); + } + + @Test + @TestMetadata("kt14258_2.kt") + public void testKt14258_2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_2.kt"); + } + + @Test + @TestMetadata("kt14258_3.kt") + public void testKt14258_3() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_3.kt"); + } + + @Test + @TestMetadata("kt14258_4.kt") + public void testKt14258_4() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_4.kt"); + } + + @Test + @TestMetadata("kt14258_5.kt") + public void testKt14258_5() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_5.kt"); + } + + @Test + @TestMetadata("nonDefaultAccessors.kt") + public void testNonDefaultAccessors() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/nonDefaultAccessors.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectAccessors_after.kt") + public void testPrivateCompanionObjectAccessors_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/privateCompanionObjectAccessors_after.kt"); + } + + @Test + @TestMetadata("privateCompanionObjectAccessors_before.kt") + public void testPrivateCompanionObjectAccessors_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/privateCompanionObjectAccessors_before.kt"); + } + + @Test + @TestMetadata("protectedCompanionObjectAccessors_after.kt") + public void testProtectedCompanionObjectAccessors_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/protectedCompanionObjectAccessors_after.kt"); + } + + @Test + @TestMetadata("protectedCompanionObjectAccessors_before.kt") + public void testProtectedCompanionObjectAccessors_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/companion/protectedCompanionObjectAccessors_before.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/conditions") + @TestDataPath("$PROJECT_ROOT") + public class Conditions { + @Test + public void testAllFilesPresentInConditions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/conditions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("conjunction.kt") + public void testConjunction() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/conjunction.kt"); + } + + @Test + @TestMetadata("conjunctionInDoWhile.kt") + public void testConjunctionInDoWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/conjunctionInDoWhile.kt"); + } + + @Test + @TestMetadata("conjunctionInWhile.kt") + public void testConjunctionInWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/conjunctionInWhile.kt"); + } + + @Test + @TestMetadata("disjunction.kt") + public void testDisjunction() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/disjunction.kt"); + } + + @Test + @TestMetadata("negatedConjuction.kt") + public void testNegatedConjuction() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/negatedConjuction.kt"); + } + + @Test + @TestMetadata("negatedDisjunction.kt") + public void testNegatedDisjunction() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/negatedDisjunction.kt"); + } + + @Test + @TestMetadata("negatedNonZeroCompareInDoWhile.kt") + public void testNegatedNonZeroCompareInDoWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNonZeroCompareInDoWhile.kt"); + } + + @Test + @TestMetadata("negatedNonZeroCompareInIf.kt") + public void testNegatedNonZeroCompareInIf() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNonZeroCompareInIf.kt"); + } + + @Test + @TestMetadata("negatedNonZeroCompareInWhile.kt") + public void testNegatedNonZeroCompareInWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNonZeroCompareInWhile.kt"); + } + + @Test + @TestMetadata("negatedNullCompareInDoWhile.kt") + public void testNegatedNullCompareInDoWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNullCompareInDoWhile.kt"); + } + + @Test + @TestMetadata("negatedNullCompareInIf.kt") + public void testNegatedNullCompareInIf() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNullCompareInIf.kt"); + } + + @Test + @TestMetadata("negatedNullCompareInWhile.kt") + public void testNegatedNullCompareInWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNullCompareInWhile.kt"); + } + + @Test + @TestMetadata("negatedZeroCompareInDoWhile.kt") + public void testNegatedZeroCompareInDoWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/negatedZeroCompareInDoWhile.kt"); + } + + @Test + @TestMetadata("negatedZeroCompareInIf.kt") + public void testNegatedZeroCompareInIf() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/negatedZeroCompareInIf.kt"); + } + + @Test + @TestMetadata("negatedZeroCompareInWhile.kt") + public void testNegatedZeroCompareInWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/negatedZeroCompareInWhile.kt"); + } + + @Test + @TestMetadata("noBoxingForBoxedEqPrimitive.kt") + public void testNoBoxingForBoxedEqPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/noBoxingForBoxedEqPrimitive.kt"); + } + + @Test + @TestMetadata("noBoxingForPrimitiveEqBoxed.kt") + public void testNoBoxingForPrimitiveEqBoxed() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/noBoxingForPrimitiveEqBoxed.kt"); + } + + @Test + @TestMetadata("noBoxingForPrimitiveEqObject.kt") + public void testNoBoxingForPrimitiveEqObject() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/noBoxingForPrimitiveEqObject.kt"); + } + + @Test + @TestMetadata("nonZeroCompareInDoWhile.kt") + public void testNonZeroCompareInDoWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/nonZeroCompareInDoWhile.kt"); + } + + @Test + @TestMetadata("nonZeroCompareInIf.kt") + public void testNonZeroCompareInIf() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/nonZeroCompareInIf.kt"); + } + + @Test + @TestMetadata("nonZeroCompareInWhile.kt") + public void testNonZeroCompareInWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/nonZeroCompareInWhile.kt"); + } + + @Test + @TestMetadata("nullCompareConst.kt") + public void testNullCompareConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/nullCompareConst.kt"); + } + + @Test + @TestMetadata("nullCompareInDoWhile.kt") + public void testNullCompareInDoWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/nullCompareInDoWhile.kt"); + } + + @Test + @TestMetadata("nullCompareInIf.kt") + public void testNullCompareInIf() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/nullCompareInIf.kt"); + } + + @Test + @TestMetadata("nullCompareInWhile.kt") + public void testNullCompareInWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/nullCompareInWhile.kt"); + } + + @Test + @TestMetadata("zeroCompareInDoWhile.kt") + public void testZeroCompareInDoWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/zeroCompareInDoWhile.kt"); + } + + @Test + @TestMetadata("zeroCompareInIf.kt") + public void testZeroCompareInIf() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/zeroCompareInIf.kt"); + } + + @Test + @TestMetadata("zeroCompareInWhile.kt") + public void testZeroCompareInWhile() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/conditions/zeroCompareInWhile.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/constProperty") + @TestDataPath("$PROJECT_ROOT") + public class ConstProperty { + @Test + public void testAllFilesPresentInConstProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("noAccessorsForPrivateConstants.kt") + public void testNoAccessorsForPrivateConstants() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constProperty/noAccessorsForPrivateConstants.kt"); + } + + @Test + @TestMetadata("nonConstValHasNoDefaultValue_after.kt") + public void testNonConstValHasNoDefaultValue_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constProperty/nonConstValHasNoDefaultValue_after.kt"); + } + + @Test + @TestMetadata("nonConstValHasNoDefaultValue_before.kt") + public void testNonConstValHasNoDefaultValue_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constProperty/nonConstValHasNoDefaultValue_before.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/constantConditions") + @TestDataPath("$PROJECT_ROOT") + public class ConstantConditions { + @Test + public void testAllFilesPresentInConstantConditions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constantConditions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("cmpIntWith0.kt") + public void testCmpIntWith0() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constantConditions/cmpIntWith0.kt"); + } + + @Test + @TestMetadata("constantFlag.kt") + public void testConstantFlag() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constantConditions/constantFlag.kt"); + } + + @Test + @TestMetadata("constantInt.kt") + public void testConstantInt() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constantConditions/constantInt.kt"); + } + + @Test + @TestMetadata("inlineIfFalse.kt") + public void testInlineIfFalse() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constantConditions/inlineIfFalse.kt"); + } + + @Test + @TestMetadata("kt3098.kt") + public void testKt3098() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constantConditions/kt3098.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/constants") + @TestDataPath("$PROJECT_ROOT") + public class Constants { + @Test + public void testAllFilesPresentInConstants() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constants"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("byte.kt") + public void testByte() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/byte.kt"); + } + + @Test + @TestMetadata("comparisonFalse.kt") + public void testComparisonFalse() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/comparisonFalse.kt"); + } + + @Test + @TestMetadata("comparisonTrue.kt") + public void testComparisonTrue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/comparisonTrue.kt"); + } + + @Test + @TestMetadata("floatingPoints.kt") + public void testFloatingPoints() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/floatingPoints.kt"); + } + + @Test + @TestMetadata("inlineUnsignedIntConstant.kt") + public void testInlineUnsignedIntConstant() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/inlineUnsignedIntConstant.kt"); + } + + @Test + @TestMetadata("kt9532.kt") + public void testKt9532() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/kt9532.kt"); + } + + @Test + @TestMetadata("noInlineNonConst.kt") + public void testNoInlineNonConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/noInlineNonConst.kt"); + } + + @Test + @TestMetadata("noInlineNonStaticJavaField.kt") + public void testNoInlineNonStaticJavaField() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/noInlineNonStaticJavaField.kt"); + } + + @Test + @TestMetadata("nullableByteAndShort.kt") + public void testNullableByteAndShort() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/nullableByteAndShort.kt"); + } + + @Test + @TestMetadata("partialString.kt") + public void testPartialString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/partialString.kt"); + } + + @Test + @TestMetadata("short.kt") + public void testShort() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/short.kt"); + } + + @Test + @TestMetadata("string.kt") + public void testString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constants/string.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/constructors") + @TestDataPath("$PROJECT_ROOT") + public class Constructors { + @Test + public void testAllFilesPresentInConstructors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("enumPrimaryDefaults.kt") + public void testEnumPrimaryDefaults() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constructors/enumPrimaryDefaults.kt"); + } + + @Test + @TestMetadata("inlineArgumentPrimaryDefaults.kt") + public void testInlineArgumentPrimaryDefaults() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constructors/inlineArgumentPrimaryDefaults.kt"); + } + + @Test + @TestMetadata("inlinePrimaryDefaults.kt") + public void testInlinePrimaryDefaults() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constructors/inlinePrimaryDefaults.kt"); + } + + @Test + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constructors/innerClassConstructor.kt"); + } + + @Test + @TestMetadata("innerPrimaryDefaults.kt") + public void testInnerPrimaryDefaults() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constructors/innerPrimaryDefaults.kt"); + } + + @Test + @TestMetadata("internalPrimaryDefaults.kt") + public void testInternalPrimaryDefaults() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constructors/internalPrimaryDefaults.kt"); + } + + @Test + @TestMetadata("localPrimaryDefaults.kt") + public void testLocalPrimaryDefaults() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constructors/localPrimaryDefaults.kt"); + } + + @Test + @TestMetadata("parameterlessPrimary.kt") + public void testParameterlessPrimary() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constructors/parameterlessPrimary.kt"); + } + + @Test + @TestMetadata("privatePrimaryDefaults.kt") + public void testPrivatePrimaryDefaults() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constructors/privatePrimaryDefaults.kt"); + } + + @Test + @TestMetadata("protectedPrimaryDefaults.kt") + public void testProtectedPrimaryDefaults() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/constructors/protectedPrimaryDefaults.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/controlStructures") + @TestDataPath("$PROJECT_ROOT") + public class ControlStructures { + @Test + public void testAllFilesPresentInControlStructures() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/controlStructures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ifConsts.kt") + public void testIfConsts() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/controlStructures/ifConsts.kt"); + } + + @Test + @TestMetadata("kt17110.kt") + public void testKt17110() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/controlStructures/kt17110.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/coroutines") + @TestDataPath("$PROJECT_ROOT") + public class Coroutines { + @Test + public void testAllFilesPresentInCoroutines() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("crossinlineSuspendContinuation_1_3.kt") + public void testCrossinlineSuspendContinuation_1_3() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/crossinlineSuspendContinuation_1_3.kt"); + } + + @Test + @TestMetadata("doNotReassignContinuation.kt") + public void testDoNotReassignContinuation() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/doNotReassignContinuation.kt"); + } + + @Test + @TestMetadata("effectivelyInlineOnly.kt") + public void testEffectivelyInlineOnly() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/effectivelyInlineOnly.kt"); + } + + @Test + @TestMetadata("internalInlineSuspend.kt") + public void testInternalInlineSuspend() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/internalInlineSuspend.kt"); + } + + @Test + @TestMetadata("mergeLvt.kt") + public void testMergeLvt() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/mergeLvt.kt"); + } + + @Test + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/nonLocalReturn.kt"); + } + + @Test + @TestMetadata("returnUnitInLambda.kt") + public void testReturnUnitInLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/returnUnitInLambda.kt"); + } + + @Test + @TestMetadata("suspendMain.kt") + public void testSuspendMain() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/suspendMain.kt"); + } + + @Test + @TestMetadata("throwOnFailure.kt") + public void testThrowOnFailure() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/throwOnFailure.kt"); + } + + @Test + @TestMetadata("varValueConflictsWithTable.kt") + public void testVarValueConflictsWithTable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTable.kt"); + } + + @Test + @TestMetadata("varValueConflictsWithTableSameSort.kt") + public void testVarValueConflictsWithTableSameSort() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTableSameSort.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/debug") + @TestDataPath("$PROJECT_ROOT") + public class Debug { + @Test + public void testAllFilesPresentInDebug() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/debug"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("continuationInLvt.kt") + public void testContinuationInLvt() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/debug/continuationInLvt.kt"); + } + + @Test + @TestMetadata("localVariableCorrectLabel.kt") + public void testLocalVariableCorrectLabel() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/debug/localVariableCorrectLabel.kt"); + } + + @Test + @TestMetadata("probeCoroutineSuspended.kt") + public void testProbeCoroutineSuspended() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/debug/probeCoroutineSuspended.kt"); + } + + @Test + @TestMetadata("shrinkLvtTopLevel.kt") + public void testShrinkLvtTopLevel() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/debug/shrinkLvtTopLevel.kt"); + } + + @Test + @TestMetadata("thisAndResultInLvt.kt") + public void testThisAndResultInLvt() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/debug/thisAndResultInLvt.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/destructuringInLambda") + @TestDataPath("$PROJECT_ROOT") + public class DestructuringInLambda { + @Test + public void testAllFilesPresentInDestructuringInLambda() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/destructuringInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineSeparateFiles.kt") + public void testInlineSeparateFiles() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/destructuringInLambda/inlineSeparateFiles.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + public class InlineClasses { + @Test + public void testAllFilesPresentInInlineClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineClassBoxingInSuspendFunReturn_Primitive.kt") + public void testInlineClassBoxingInSuspendFunReturn_Primitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/inlineClassBoxingInSuspendFunReturn_Primitive.kt"); + } + + @Test + @TestMetadata("noInlineClassBoxingInSuspendFunReturn_Any.kt") + public void testNoInlineClassBoxingInSuspendFunReturn_Any() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/noInlineClassBoxingInSuspendFunReturn_Any.kt"); + } + + @Test + @TestMetadata("noInlineClassBoxingInSuspendFunReturn_InlineAny.kt") + public void testNoInlineClassBoxingInSuspendFunReturn_InlineAny() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/noInlineClassBoxingInSuspendFunReturn_InlineAny.kt"); + } + + @Test + @TestMetadata("noInlineClassBoxingInSuspendFunReturn_SameJvmType.kt") + public void testNoInlineClassBoxingInSuspendFunReturn_SameJvmType() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/noInlineClassBoxingInSuspendFunReturn_SameJvmType.kt"); + } + + @Test + @TestMetadata("noInlineClassBoxingInSuspendFunReturn_String.kt") + public void testNoInlineClassBoxingInSuspendFunReturn_String() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/noInlineClassBoxingInSuspendFunReturn_String.kt"); + } + + @Test + @TestMetadata("returnResult.kt") + public void testReturnResult() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/returnResult.kt"); + } + + @Test + @TestMetadata("returnStringOverride.kt") + public void testReturnStringOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/returnStringOverride.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling") + @TestDataPath("$PROJECT_ROOT") + public class IntLikeVarSpilling { + @Test + public void testAllFilesPresentInIntLikeVarSpilling() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("complicatedMerge.kt") + public void testComplicatedMerge() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/complicatedMerge.kt"); + } + + @Test + @TestMetadata("i2bResult.kt") + public void testI2bResult() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/i2bResult.kt"); + } + + @Test + @TestMetadata("loadFromBooleanArray.kt") + public void testLoadFromBooleanArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/loadFromBooleanArray.kt"); + } + + @Test + @TestMetadata("loadFromByteArray.kt") + public void testLoadFromByteArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/loadFromByteArray.kt"); + } + + @Test + @TestMetadata("noVariableInTable.kt") + public void testNoVariableInTable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/noVariableInTable.kt"); + } + + @Test + @TestMetadata("sameIconst1ManyVars.kt") + public void testSameIconst1ManyVars() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/sameIconst1ManyVars.kt"); + } + + @Test + @TestMetadata("usedInArrayStore.kt") + public void testUsedInArrayStore() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/usedInArrayStore.kt"); + } + + @Test + @TestMetadata("usedInMethodCall.kt") + public void testUsedInMethodCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/usedInMethodCall.kt"); + } + + @Test + @TestMetadata("usedInPutfield.kt") + public void testUsedInPutfield() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/usedInPutfield.kt"); + } + + @Test + @TestMetadata("usedInVarStore.kt") + public void testUsedInVarStore() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/usedInVarStore.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/stateMachine") + @TestDataPath("$PROJECT_ROOT") + public class StateMachine { + @Test + public void testAllFilesPresentInStateMachine() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt25893.kt") + public void testKt25893() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/stateMachine/kt25893.kt"); + } + + @Test + @TestMetadata("withTypeParameter.kt") + public void testWithTypeParameter() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/coroutines/stateMachine/withTypeParameter.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/deadCodeElimination") + @TestDataPath("$PROJECT_ROOT") + public class DeadCodeElimination { + @Test + public void testAllFilesPresentInDeadCodeElimination() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/deadCodeElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayConstructor.kt") + public void testArrayConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/arrayConstructor.kt"); + } + + @Test + @TestMetadata("boxing.kt") + public void testBoxing() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/boxing.kt"); + } + + @Test + @TestMetadata("boxingNotOptimizable.kt") + public void testBoxingNotOptimizable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/boxingNotOptimizable.kt"); + } + + @Test + @TestMetadata("emptyVariableRange.kt") + public void testEmptyVariableRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/emptyVariableRange.kt"); + } + + @Test + @TestMetadata("kt14357.kt") + public void testKt14357() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/kt14357.kt"); + } + + @Test + @TestMetadata("lastReturn.kt") + public void testLastReturn() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/lastReturn.kt"); + } + + @Test + @TestMetadata("literal.kt") + public void testLiteral() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/literal.kt"); + } + + @Test + @TestMetadata("simpleConstructor.kt") + public void testSimpleConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/simpleConstructor.kt"); + } + + @Test + @TestMetadata("simpleConstructorNotRedundant.kt") + public void testSimpleConstructorNotRedundant() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/simpleConstructorNotRedundant.kt"); + } + + @Test + @TestMetadata("simpleConstructorNotRedundantNotOptimizable.kt") + public void testSimpleConstructorNotRedundantNotOptimizable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/simpleConstructorNotRedundantNotOptimizable.kt"); + } + + @Test + @TestMetadata("unusedPrimitiveAndObjectEquals.kt") + public void testUnusedPrimitiveAndObjectEquals() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/unusedPrimitiveAndObjectEquals.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + public class DefaultArguments { + @Test + public void testAllFilesPresentInDefaultArguments() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inheritedInterfaceFunction.kt") + public void testInheritedInterfaceFunction() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/defaultArguments/inheritedInterfaceFunction.kt"); + } + + @Test + @TestMetadata("kt11962.kt") + public void testKt11962() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/defaultArguments/kt11962.kt"); + } + + @Test + @TestMetadata("localVariablesInInlinedDefaultStubs.kt") + public void testLocalVariablesInInlinedDefaultStubs() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/defaultArguments/localVariablesInInlinedDefaultStubs.kt"); + } + + @Test + @TestMetadata("maskAndArgumentElimination.kt") + public void testMaskAndArgumentElimination() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/defaultArguments/maskAndArgumentElimination.kt"); + } + + @Test + @TestMetadata("maskCheckSequence.kt") + public void testMaskCheckSequence() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/defaultArguments/maskCheckSequence.kt"); + } + + @Test + @TestMetadata("methodHandlerElimination.kt") + public void testMethodHandlerElimination() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/defaultArguments/methodHandlerElimination.kt"); + } + + @Test + @TestMetadata("noAccessorForDefault.kt") + public void testNoAccessorForDefault() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/defaultArguments/noAccessorForDefault.kt"); + } + + @Test + @TestMetadata("noAnonymousObjectRegenerationInDefaultStub.kt") + public void testNoAnonymousObjectRegenerationInDefaultStub() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/defaultArguments/noAnonymousObjectRegenerationInDefaultStub.kt"); + } + + @Test + @TestMetadata("noEmptyArray.kt") + public void testNoEmptyArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/defaultArguments/noEmptyArray.kt"); + } + + @Test + @TestMetadata("noSyntheticParameters.kt") + public void testNoSyntheticParameters() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/defaultArguments/noSyntheticParameters.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/directInvoke") + @TestDataPath("$PROJECT_ROOT") + public class DirectInvoke { + @Test + public void testAllFilesPresentInDirectInvoke() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/directInvoke"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callableReference.kt") + public void testCallableReference() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/directInvoke/callableReference.kt"); + } + + @Test + @TestMetadata("inplaceClosure.kt") + public void testInplaceClosure() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/directInvoke/inplaceClosure.kt"); + } + + @Test + @TestMetadata("localFun.kt") + public void testLocalFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/directInvoke/localFun.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/disabledOptimizations") + @TestDataPath("$PROJECT_ROOT") + public class DisabledOptimizations { + @Test + public void testAllFilesPresentInDisabledOptimizations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/disabledOptimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("noJumpInLastBranch.kt") + public void testNoJumpInLastBranch() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noJumpInLastBranch.kt"); + } + + @Test + @TestMetadata("noJumpInSingleBranch.kt") + public void testNoJumpInSingleBranch() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noJumpInSingleBranch.kt"); + } + + @Test + @TestMetadata("noObjectCastAfterReification.kt") + public void testNoObjectCastAfterReification() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noObjectCastAfterReification.kt"); + } + + @Test + @TestMetadata("noUnitInstanceInDefaultParameterInitialization.kt") + public void testNoUnitInstanceInDefaultParameterInitialization() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noUnitInstanceInDefaultParameterInitialization.kt"); + } + + @Test + @TestMetadata("noUnitInstanceOnVoidFunctionCall.kt") + public void testNoUnitInstanceOnVoidFunctionCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noUnitInstanceOnVoidFunctionCall.kt"); + } + + @Test + @TestMetadata("noUnusedLabel.kt") + public void testNoUnusedLabel() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noUnusedLabel.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/enum") + @TestDataPath("$PROJECT_ROOT") + public class Enum { + @Test + public void testAllFilesPresentInEnum() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorAccessors.kt") + public void testConstructorAccessors() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/constructorAccessors.kt"); + } + + @Test + @TestMetadata("enumCheckcasts.kt") + public void testEnumCheckcasts() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/enumCheckcasts.kt"); + } + + @Test + @TestMetadata("enumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/enumEntries.kt"); + } + + @Test + @TestMetadata("enumEntriesIntrinsic.kt") + public void testEnumEntriesIntrinsic() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/enumEntriesIntrinsic.kt"); + } + + @Test + @TestMetadata("enumEntriesIntrinsicForJava.kt") + public void testEnumEntriesIntrinsicForJava() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/enumEntriesIntrinsicForJava.kt"); + } + + @Test + @TestMetadata("enumEntriesMapping.kt") + public void testEnumEntriesMapping() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/enumEntriesMapping.kt"); + } + + @Test + @TestMetadata("enumEntriesMultiMapping.kt") + public void testEnumEntriesMultiMapping() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/enumEntriesMultiMapping.kt"); + } + + @Test + @TestMetadata("enumEntriesNoMapping.kt") + public void testEnumEntriesNoMapping() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/enumEntriesNoMapping.kt"); + } + + @Test + @TestMetadata("kt18731.kt") + public void testKt18731() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/kt18731.kt"); + } + + @Test + @TestMetadata("kt18731_2.kt") + public void testKt18731_2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/kt18731_2.kt"); + } + + @Test + @TestMetadata("kt57671_1.kt") + public void testKt57671_1() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/kt57671_1.kt"); + } + + @Test + @TestMetadata("kt57671_2.kt") + public void testKt57671_2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/enum/kt57671_2.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/exclExcl") + @TestDataPath("$PROJECT_ROOT") + public class ExclExcl { + @Test + public void testAllFilesPresentInExclExcl() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/exclExcl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("exclExclOnPlatformType.kt") + public void testExclExclOnPlatformType() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/exclExcl/exclExclOnPlatformType.kt"); + } + + @Test + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/exclExcl/primitive.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues") + @TestDataPath("$PROJECT_ROOT") + public class FieldsForCapturedValues { + @Test + public void testAllFilesPresentInFieldsForCapturedValues() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructorOnly.kt") + public void testConstructorOnly() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/constructorOnly.kt"); + } + + @Test + @TestMetadata("extensionLambdaExtensionReceiver.kt") + public void testExtensionLambdaExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/extensionLambdaExtensionReceiver.kt"); + } + + @Test + @TestMetadata("extensionReceiver.kt") + public void testExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/extensionReceiver.kt"); + } + + @Test + @TestMetadata("innerAndOuterThis.kt") + public void testInnerAndOuterThis() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/innerAndOuterThis.kt"); + } + + @Test + @TestMetadata("labeledExtensionLambdaExtensionReceiver.kt") + public void testLabeledExtensionLambdaExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/labeledExtensionLambdaExtensionReceiver.kt"); + } + + @Test + @TestMetadata("multipleExtensionReceivers.kt") + public void testMultipleExtensionReceivers() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/multipleExtensionReceivers.kt"); + } + + @Test + @TestMetadata("outerThis.kt") + public void testOuterThis() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/outerThis.kt"); + } + + @Test + @TestMetadata("outerThisInInnerConstructor.kt") + public void testOuterThisInInnerConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/outerThisInInnerConstructor.kt"); + } + + @Test + @TestMetadata("outerThisInInnerInitBlock.kt") + public void testOuterThisInInnerInitBlock() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/outerThisInInnerInitBlock.kt"); + } + + @Test + @TestMetadata("this.kt") + public void testThis() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/this.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop") + @TestDataPath("$PROJECT_ROOT") + public class ForLoop { + @Test + public void testAllFilesPresentInForLoop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInCharSequence.kt") + public void testForInCharSequence() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequence.kt"); + } + + @Test + @TestMetadata("forInCharSequenceTypeParameter.kt") + public void testForInCharSequenceTypeParameter() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceTypeParameter.kt"); + } + + @Test + @TestMetadata("forInDownToCharMinValue.kt") + public void testForInDownToCharMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInDownToCharMinValue.kt"); + } + + @Test + @TestMetadata("forInDownToIntMinValue.kt") + public void testForInDownToIntMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInDownToIntMinValue.kt"); + } + + @Test + @TestMetadata("forInDownToLongConstNoUnderflow.kt") + public void testForInDownToLongConstNoUnderflow() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInDownToLongConstNoUnderflow.kt"); + } + + @Test + @TestMetadata("forInDownToLongMinValue.kt") + public void testForInDownToLongMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInDownToLongMinValue.kt"); + } + + @Test + @TestMetadata("forInObjectArray.kt") + public void testForInObjectArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInObjectArray.kt"); + } + + @Test + @TestMetadata("forInPrimitiveArray.kt") + public void testForInPrimitiveArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInPrimitiveArray.kt"); + } + + @Test + @TestMetadata("forInRangeSpecializedToUntil.kt") + public void testForInRangeSpecializedToUntil() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeSpecializedToUntil.kt"); + } + + @Test + @TestMetadata("forInRangeToCharConst.kt") + public void testForInRangeToCharConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToCharConst.kt"); + } + + @Test + @TestMetadata("forInRangeToCharMaxValue.kt") + public void testForInRangeToCharMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToCharMaxValue.kt"); + } + + @Test + @TestMetadata("forInRangeToConst.kt") + public void testForInRangeToConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToConst.kt"); + } + + @Test + @TestMetadata("forInRangeToIntMaxValue.kt") + public void testForInRangeToIntMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToIntMaxValue.kt"); + } + + @Test + @TestMetadata("forInRangeToLongConst.kt") + public void testForInRangeToLongConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToLongConst.kt"); + } + + @Test + @TestMetadata("forInRangeToLongMaxValue.kt") + public void testForInRangeToLongMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToLongMaxValue.kt"); + } + + @Test + @TestMetadata("forInRangeToQualifiedConst.kt") + public void testForInRangeToQualifiedConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToQualifiedConst.kt"); + } + + @Test + @TestMetadata("forInRangeWithImplicitReceiver.kt") + public void testForInRangeWithImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithImplicitReceiver.kt"); + } + + @Test + @TestMetadata("forInStringSpecialized.kt") + public void testForInStringSpecialized() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInStringSpecialized.kt"); + } + + @Test + @TestMetadata("forIntInDownTo.kt") + public void testForIntInDownTo() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forIntInDownTo.kt"); + } + + @Test + @TestMetadata("iincGeneration.kt") + public void testIincGeneration() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/iincGeneration.kt"); + } + + @Test + @TestMetadata("intrinsicArrayConstructorsUseCounterLoop.kt") + public void testIntrinsicArrayConstructorsUseCounterLoop() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/intrinsicArrayConstructorsUseCounterLoop.kt"); + } + + @Test + @TestMetadata("loopVarInterval.kt") + public void testLoopVarInterval() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/loopVarInterval.kt"); + } + + @Test + @TestMetadata("primitiveLiteralRange1.kt") + public void testPrimitiveLiteralRange1() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/primitiveLiteralRange1.kt"); + } + + @Test + @TestMetadata("primitiveLiteralRange2.kt") + public void testPrimitiveLiteralRange2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/primitiveLiteralRange2.kt"); + } + + @Test + @TestMetadata("primitiveProgression.kt") + public void testPrimitiveProgression() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/primitiveProgression.kt"); + } + + @Test + @TestMetadata("primitiveRange.kt") + public void testPrimitiveRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/primitiveRange.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex") + @TestDataPath("$PROJECT_ROOT") + public class ForInArrayWithIndex { + @Test + public void testAllFilesPresentInForInArrayWithIndex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInArrayWithIndexNoElementVar.kt") + public void testForInArrayWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt"); + } + + @Test + @TestMetadata("forInArrayWithIndexNoIndexVar.kt") + public void testForInArrayWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt"); + } + + @Test + @TestMetadata("forInEmptyArrayWithIndex.kt") + public void testForInEmptyArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex/forInEmptyArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInIntArrayWithIndex.kt") + public void testForInIntArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex/forInIntArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInObjectArrayWithIndex.kt") + public void testForInObjectArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex/forInObjectArrayWithIndex.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex") + @TestDataPath("$PROJECT_ROOT") + public class ForInCharSequenceWithIndex { + @Test + public void testAllFilesPresentInForInCharSequenceWithIndex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInCharSequenceWithIndex.kt") + public void testForInCharSequenceWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInCharSequenceWithIndex.kt"); + } + + @Test + @TestMetadata("forInEmptyStringWithIndex.kt") + public void testForInEmptyStringWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInEmptyStringWithIndex.kt"); + } + + @Test + @TestMetadata("forInStringWithIndex.kt") + public void testForInStringWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInStringWithIndex.kt"); + } + + @Test + @TestMetadata("forInStringWithIndexNoElementVar.kt") + public void testForInStringWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt"); + } + + @Test + @TestMetadata("forInStringWithIndexNoIndexVar.kt") + public void testForInStringWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt"); + } + + @Test + @TestMetadata("forInStringWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInStringWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInIndices") + @TestDataPath("$PROJECT_ROOT") + public class ForInIndices { + @Test + public void testAllFilesPresentInForInIndices() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInIndices"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInArrayListIndices.kt") + public void testForInArrayListIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInArrayListIndices.kt"); + } + + @Test + @TestMetadata("forInCharSequenceIndices.kt") + public void testForInCharSequenceIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInCharSequenceIndices.kt"); + } + + @Test + @TestMetadata("forInCharSequenceTypeParameterIndices.kt") + public void testForInCharSequenceTypeParameterIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInCharSequenceTypeParameterIndices.kt"); + } + + @Test + @TestMetadata("forInCollectionImplicitReceiverIndices.kt") + public void testForInCollectionImplicitReceiverIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInCollectionImplicitReceiverIndices.kt"); + } + + @Test + @TestMetadata("forInCollectionIndices.kt") + public void testForInCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInCollectionIndices.kt"); + } + + @Test + @TestMetadata("forInCollectionTypeParameterIndices.kt") + public void testForInCollectionTypeParameterIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInCollectionTypeParameterIndices.kt"); + } + + @Test + @TestMetadata("forInNonOptimizedIndices.kt") + public void testForInNonOptimizedIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInNonOptimizedIndices.kt"); + } + + @Test + @TestMetadata("forInObjectArrayIndices.kt") + public void testForInObjectArrayIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInObjectArrayIndices.kt"); + } + + @Test + @TestMetadata("forInPrimitiveArrayIndices.kt") + public void testForInPrimitiveArrayIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInPrimitiveArrayIndices.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex") + @TestDataPath("$PROJECT_ROOT") + public class ForInIterableWithIndex { + @Test + public void testAllFilesPresentInForInIterableWithIndex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInEmptyListWithIndex.kt") + public void testForInEmptyListWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInEmptyListWithIndex.kt"); + } + + @Test + @TestMetadata("forInIterableTypeParameterWithIndex.kt") + public void testForInIterableTypeParameterWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInIterableTypeParameterWithIndex.kt"); + } + + @Test + @TestMetadata("forInListWithIndex.kt") + public void testForInListWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInListWithIndex.kt"); + } + + @Test + @TestMetadata("forInListWithIndexNoElementVar.kt") + public void testForInListWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInListWithIndexNoElementVar.kt"); + } + + @Test + @TestMetadata("forInListWithIndexNoIndexVar.kt") + public void testForInListWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInListWithIndexNoIndexVar.kt"); + } + + @Test + @TestMetadata("forInListWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInListWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInListWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex") + @TestDataPath("$PROJECT_ROOT") + public class ForInProgressionWithIndex { + @Test + public void testAllFilesPresentInForInProgressionWithIndex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInDownToWithIndex.kt") + public void testForInDownToWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInDownToWithIndex.kt"); + } + + @Test + @TestMetadata("forInIndicesWithIndex.kt") + public void testForInIndicesWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInIndicesWithIndex.kt"); + } + + @Test + @TestMetadata("forInRangeToWithIndex.kt") + public void testForInRangeToWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInRangeToWithIndex.kt"); + } + + @Test + @TestMetadata("forInReversedStepWithIndex.kt") + public void testForInReversedStepWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInReversedStepWithIndex.kt"); + } + + @Test + @TestMetadata("forInReversedWithIndex.kt") + public void testForInReversedWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInReversedWithIndex.kt"); + } + + @Test + @TestMetadata("forInStepReversedWithIndex.kt") + public void testForInStepReversedWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInStepReversedWithIndex.kt"); + } + + @Test + @TestMetadata("forInStepWithIndex.kt") + public void testForInStepWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInStepWithIndex.kt"); + } + + @Test + @TestMetadata("forInUntilWithIndex.kt") + public void testForInUntilWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInUntilWithIndex.kt"); + } + + @Test + @TestMetadata("forInWithIndexNoIndexOrElementVar.kt") + public void testForInWithIndexNoIndexOrElementVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInWithIndexNoIndexOrElementVar.kt"); + } + + @Test + @TestMetadata("forInWithIndexNotDestructured.kt") + public void testForInWithIndexNotDestructured() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInWithIndexNotDestructured.kt"); + } + + @Test + @TestMetadata("forInWithIndexReversed.kt") + public void testForInWithIndexReversed() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInWithIndexReversed.kt"); + } + + @Test + @TestMetadata("forInWithIndexWithIndex.kt") + public void testForInWithIndexWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInWithIndexWithIndex.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInRangeUntil") + @TestDataPath("$PROJECT_ROOT") + public class ForInRangeUntil { + @Test + public void testAllFilesPresentInForInRangeUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInRangeUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInRangeUntilChar.kt") + public void testForInRangeUntilChar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeUntil/forInRangeUntilChar.kt"); + } + + @Test + @TestMetadata("forInRangeUntilCharMaxValue.kt") + public void testForInRangeUntilCharMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeUntil/forInRangeUntilCharMaxValue.kt"); + } + + @Test + @TestMetadata("forInRangeUntilCharMinValue.kt") + public void testForInRangeUntilCharMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeUntil/forInRangeUntilCharMinValue.kt"); + } + + @Test + @TestMetadata("forInRangeUntilInt.kt") + public void testForInRangeUntilInt() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeUntil/forInRangeUntilInt.kt"); + } + + @Test + @TestMetadata("forInRangeUntilIntMaxValue.kt") + public void testForInRangeUntilIntMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeUntil/forInRangeUntilIntMaxValue.kt"); + } + + @Test + @TestMetadata("forInRangeUntilIntMinValue.kt") + public void testForInRangeUntilIntMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeUntil/forInRangeUntilIntMinValue.kt"); + } + + @Test + @TestMetadata("forInRangeUntilLong.kt") + public void testForInRangeUntilLong() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeUntil/forInRangeUntilLong.kt"); + } + + @Test + @TestMetadata("forInRangeUntilLongMaxValue.kt") + public void testForInRangeUntilLongMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeUntil/forInRangeUntilLongMaxValue.kt"); + } + + @Test + @TestMetadata("forInRangeUntilLongMinValue.kt") + public void testForInRangeUntilLongMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeUntil/forInRangeUntilLongMinValue.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1") + @TestDataPath("$PROJECT_ROOT") + public class ForInRangeWithUpperBoundMinus1 { + @Test + public void testAllFilesPresentInForInRangeWithUpperBoundMinus1() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("booleanArray.kt") + public void testBooleanArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/booleanArray.kt"); + } + + @Test + @TestMetadata("byteArray.kt") + public void testByteArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/byteArray.kt"); + } + + @Test + @TestMetadata("charArray.kt") + public void testCharArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/charArray.kt"); + } + + @Test + @TestMetadata("charSequence.kt") + public void testCharSequence() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/charSequence.kt"); + } + + @Test + @TestMetadata("doubleArray.kt") + public void testDoubleArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/doubleArray.kt"); + } + + @Test + @TestMetadata("emptyList.kt") + public void testEmptyList() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/emptyList.kt"); + } + + @Test + @TestMetadata("emptyMap.kt") + public void testEmptyMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/emptyMap.kt"); + } + + @Test + @TestMetadata("emptySet.kt") + public void testEmptySet() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/emptySet.kt"); + } + + @Test + @TestMetadata("floatArray.kt") + public void testFloatArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/floatArray.kt"); + } + + @Test + @TestMetadata("intArray.kt") + public void testIntArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/intArray.kt"); + } + + @Test + @TestMetadata("list.kt") + public void testList() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/list.kt"); + } + + @Test + @TestMetadata("longArray.kt") + public void testLongArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/longArray.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/map.kt"); + } + + @Test + @TestMetadata("mutableList.kt") + public void testMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/mutableList.kt"); + } + + @Test + @TestMetadata("mutableMap.kt") + public void testMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/mutableMap.kt"); + } + + @Test + @TestMetadata("mutableSet.kt") + public void testMutableSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/mutableSet.kt"); + } + + @Test + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/set.kt"); + } + + @Test + @TestMetadata("shortArray.kt") + public void testShortArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/shortArray.kt"); + } + + @Test + @TestMetadata("string.kt") + public void testString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithUpperBoundMinus1/string.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInReversed") + @TestDataPath("$PROJECT_ROOT") + public class ForInReversed { + @Test + public void testAllFilesPresentInForInReversed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInReversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInReversedArrayIndices.kt") + public void testForInReversedArrayIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedArrayIndices.kt"); + } + + @Test + @TestMetadata("forInReversedCharSequenceIndices.kt") + public void testForInReversedCharSequenceIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedCharSequenceIndices.kt"); + } + + @Test + @TestMetadata("forInReversedCollectionIndices.kt") + public void testForInReversedCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedCollectionIndices.kt"); + } + + @Test + @TestMetadata("forInReversedDownTo.kt") + public void testForInReversedDownTo() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedDownTo.kt"); + } + + @Test + @TestMetadata("forInReversedEmptyRangeLiteral.kt") + public void testForInReversedEmptyRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedEmptyRangeLiteral.kt"); + } + + @Test + @TestMetadata("forInReversedRange.kt") + public void testForInReversedRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedRange.kt"); + } + + @Test + @TestMetadata("forInReversedRangeLiteral.kt") + public void testForInReversedRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedRangeLiteral.kt"); + } + + @Test + @TestMetadata("forInReversedReversedArrayIndices.kt") + public void testForInReversedReversedArrayIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedArrayIndices.kt"); + } + + @Test + @TestMetadata("forInReversedReversedDownTo.kt") + public void testForInReversedReversedDownTo() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedDownTo.kt"); + } + + @Test + @TestMetadata("forInReversedReversedRange.kt") + public void testForInReversedReversedRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedRange.kt"); + } + + @Test + @TestMetadata("forInReversedReversedReversedRange.kt") + public void testForInReversedReversedReversedRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedReversedRange.kt"); + } + + @Test + @TestMetadata("forInReversedReversedUntil.kt") + public void testForInReversedReversedUntil() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedUntil.kt"); + } + + @Test + @TestMetadata("forInReversedUntil.kt") + public void testForInReversedUntil() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedUntil.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex") + @TestDataPath("$PROJECT_ROOT") + public class ForInSequenceWithIndex { + @Test + public void testAllFilesPresentInForInSequenceWithIndex() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInEmptySequenceWithIndex.kt") + public void testForInEmptySequenceWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInEmptySequenceWithIndex.kt"); + } + + @Test + @TestMetadata("forInSequenceTypeParameterWithIndex.kt") + public void testForInSequenceTypeParameterWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceTypeParameterWithIndex.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndex.kt") + public void testForInSequenceWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndex.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexNoElementVar.kt") + public void testForInSequenceWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexNoElementVar.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexNoIndexVar.kt") + public void testForInSequenceWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexNoIndexVar.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexThrowsCME.kt") + public void testForInSequenceWithIndexThrowsCME() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.kt"); + } + + @Test + @TestMetadata("forInSequenceWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInSequenceWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInUntil") + @TestDataPath("$PROJECT_ROOT") + public class ForInUntil { + @Test + public void testAllFilesPresentInForInUntil() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInUntilChar.kt") + public void testForInUntilChar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilChar.kt"); + } + + @Test + @TestMetadata("forInUntilCharMaxValue.kt") + public void testForInUntilCharMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilCharMaxValue.kt"); + } + + @Test + @TestMetadata("forInUntilCharMinValue.kt") + public void testForInUntilCharMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilCharMinValue.kt"); + } + + @Test + @TestMetadata("forInUntilInt.kt") + public void testForInUntilInt() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilInt.kt"); + } + + @Test + @TestMetadata("forInUntilIntMaxValue.kt") + public void testForInUntilIntMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilIntMaxValue.kt"); + } + + @Test + @TestMetadata("forInUntilIntMinValue.kt") + public void testForInUntilIntMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilIntMinValue.kt"); + } + + @Test + @TestMetadata("forInUntilLong.kt") + public void testForInUntilLong() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLong.kt"); + } + + @Test + @TestMetadata("forInUntilLongMaxValue.kt") + public void testForInUntilLongMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLongMaxValue.kt"); + } + + @Test + @TestMetadata("forInUntilLongMinValue.kt") + public void testForInUntilLongMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLongMinValue.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/stepped") + @TestDataPath("$PROJECT_ROOT") + public class Stepped { + @Test + public void testAllFilesPresentInStepped() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/stepped"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("illegalStepConst.kt") + public void testIllegalStepConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/illegalStepConst.kt"); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/reversedThenStep.kt"); + } + + @Test + @TestMetadata("stepConst.kt") + public void testStepConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepConst.kt"); + } + + @Test + @TestMetadata("stepConstOnNonLiteralProgression.kt") + public void testStepConstOnNonLiteralProgression() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepConstOnNonLiteralProgression.kt"); + } + + @Test + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepNonConst.kt"); + } + + @Test + @TestMetadata("stepNonConstOnNonLiteralProgression.kt") + public void testStepNonConstOnNonLiteralProgression() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepNonConstOnNonLiteralProgression.kt"); + } + + @Test + @TestMetadata("stepOnNonLiteralRange.kt") + public void testStepOnNonLiteralRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepOnNonLiteralRange.kt"); + } + + @Test + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepOne.kt"); + } + + @Test + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepOneThenStepOne.kt"); + } + + @Test + @TestMetadata("stepThenDifferentStep.kt") + public void testStepThenDifferentStep() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepThenDifferentStep.kt"); + } + + @Test + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepThenReversed.kt"); + } + + @Test + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepThenSameStep.kt"); + } + + @Test + @TestMetadata("stepThenStepNonConst.kt") + public void testStepThenStepNonConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepThenStepNonConst.kt"); + } + + @Test + @TestMetadata("stepThenStepOne.kt") + public void testStepThenStepOne() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepThenStepOne.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/unsigned") + @TestDataPath("$PROJECT_ROOT") + public class Unsigned { + @Test + public void testAllFilesPresentInUnsigned() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/unsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("forInConstBoundUnsignedRange.kt") + public void testForInConstBoundUnsignedRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInConstBoundUnsignedRange.kt"); + } + + @Test + @TestMetadata("forInDownToUIntMinValue.kt") + public void testForInDownToUIntMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInDownToUIntMinValue.kt"); + } + + @Test + @TestMetadata("forInDownToULongMinValue.kt") + public void testForInDownToULongMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInDownToULongMinValue.kt"); + } + + @Test + @TestMetadata("forInOptimizableUnsignedRange.kt") + public void testForInOptimizableUnsignedRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInOptimizableUnsignedRange.kt"); + } + + @Test + @TestMetadata("forInRangeToUIntMaxValue.kt") + public void testForInRangeToUIntMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInRangeToUIntMaxValue.kt"); + } + + @Test + @TestMetadata("forInRangeToULongMaxValue.kt") + public void testForInRangeToULongMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInRangeToULongMaxValue.kt"); + } + + @Test + @TestMetadata("forInUnsignedArray.kt") + public void testForInUnsignedArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInUnsignedArray.kt"); + } + + @Test + @TestMetadata("forInUnsignedArrayIndices.kt") + public void testForInUnsignedArrayIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInUnsignedArrayIndices.kt"); + } + + @Test + @TestMetadata("forInUnsignedArrayWithIndex.kt") + public void testForInUnsignedArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInUnsignedArrayWithIndex.kt"); + } + + @Test + @TestMetadata("forInUntilUIntMaxValue.kt") + public void testForInUntilUIntMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInUntilUIntMaxValue.kt"); + } + + @Test + @TestMetadata("forInUntilUIntMinValue.kt") + public void testForInUntilUIntMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInUntilUIntMinValue.kt"); + } + + @Test + @TestMetadata("forInUntilULongMaxValue.kt") + public void testForInUntilULongMaxValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInUntilULongMaxValue.kt"); + } + + @Test + @TestMetadata("forInUntilULongMinValue.kt") + public void testForInUntilULongMinValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInUntilULongMinValue.kt"); + } + + @Test + @TestMetadata("illegalStepConst.kt") + public void testIllegalStepConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/illegalStepConst.kt"); + } + + @Test + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/reversedThenStep.kt"); + } + + @Test + @TestMetadata("stepConstOnNonLiteralProgression.kt") + public void testStepConstOnNonLiteralProgression() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/stepConstOnNonLiteralProgression.kt"); + } + + @Test + @TestMetadata("stepNonConstOnNonLiteralProgression.kt") + public void testStepNonConstOnNonLiteralProgression() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/stepNonConstOnNonLiteralProgression.kt"); + } + + @Test + @TestMetadata("stepOnNonLiteralRange.kt") + public void testStepOnNonLiteralRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/stepOnNonLiteralRange.kt"); + } + + @Test + @TestMetadata("stepThenDifferentStep.kt") + public void testStepThenDifferentStep() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/stepThenDifferentStep.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/hashCode") + @TestDataPath("$PROJECT_ROOT") + public class HashCode { + @Test + public void testAllFilesPresentInHashCode() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/hashCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("interfaceHashCode.kt") + public void testInterfaceHashCode() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/hashCode/interfaceHashCode.kt"); + } + + @Test + @TestMetadata("interfaceHashCodeWithSmartCast.kt") + public void testInterfaceHashCodeWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/hashCode/interfaceHashCodeWithSmartCast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/ieee754") + @TestDataPath("$PROJECT_ROOT") + public class Ieee754 { + @Test + public void testAllFilesPresentInIeee754() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("nullableDoubleEquals.kt") + public void testNullableDoubleEquals() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ieee754/nullableDoubleEquals.kt"); + } + + @Test + @TestMetadata("nullableDoubleNotEquals.kt") + public void testNullableDoubleNotEquals() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ieee754/nullableDoubleNotEquals.kt"); + } + + @Test + @TestMetadata("nullableFloatEquals.kt") + public void testNullableFloatEquals() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ieee754/nullableFloatEquals.kt"); + } + + @Test + @TestMetadata("nullableFloatNotEquals.kt") + public void testNullableFloatNotEquals() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ieee754/nullableFloatNotEquals.kt"); + } + + @Test + @TestMetadata("smartCastsForDouble.kt") + public void testSmartCastsForDouble() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ieee754/smartCastsForDouble.kt"); + } + + @Test + @TestMetadata("smartCastsForFloat.kt") + public void testSmartCastsForFloat() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ieee754/smartCastsForFloat.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ieee754/when.kt"); + } + + @Test + @TestMetadata("whenNullableSmartCast.kt") + public void testWhenNullableSmartCast() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ieee754/whenNullableSmartCast.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultLambda.kt") + public void testDefaultLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/defaultLambda.kt"); + } + + @Test + @TestMetadata("deleteClassOnTransformation.kt") + public void testDeleteClassOnTransformation() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/deleteClassOnTransformation.kt"); + } + + @Test + @TestMetadata("entriesMappingOnCallSite.kt") + public void testEntriesMappingOnCallSite() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/entriesMappingOnCallSite.kt"); + } + + @Test + @TestMetadata("finallyMarkers.kt") + public void testFinallyMarkers() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/finallyMarkers.kt"); + } + + @Test + @TestMetadata("inlineArgumentSlots.kt") + public void testInlineArgumentSlots() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/inlineArgumentSlots.kt"); + } + + @Test + @TestMetadata("inlineReturnsNothing1.kt") + public void testInlineReturnsNothing1() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/inlineReturnsNothing1.kt"); + } + + @Test + @TestMetadata("inlineReturnsNothing2.kt") + public void testInlineReturnsNothing2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/inlineReturnsNothing2.kt"); + } + + @Test + @TestMetadata("inlineReturnsNothing3.kt") + public void testInlineReturnsNothing3() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/inlineReturnsNothing3.kt"); + } + + @Test + @TestMetadata("inlineSuspendReifiedNoSpilling.kt") + public void testInlineSuspendReifiedNoSpilling() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/inlineSuspendReifiedNoSpilling.kt"); + } + + @Test + @TestMetadata("interfaceDefaultMethod.kt") + public void testInterfaceDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/interfaceDefaultMethod.kt"); + } + + @Test + @TestMetadata("linenumberForOneParametersArgumentCall.kt") + public void testLinenumberForOneParametersArgumentCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/linenumberForOneParametersArgumentCall.kt"); + } + + @Test + @TestMetadata("noFakeVariableForInlineOnlyFun.kt") + public void testNoFakeVariableForInlineOnlyFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/noFakeVariableForInlineOnlyFun.kt"); + } + + @Test + @TestMetadata("noFakeVariableForInlineOnlyFunFromStdlib.kt") + public void testNoFakeVariableForInlineOnlyFunFromStdlib() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/noFakeVariableForInlineOnlyFunFromStdlib.kt"); + } + + @Test + @TestMetadata("noFakeVariableForInlineOnlyFunMap.kt") + public void testNoFakeVariableForInlineOnlyFunMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/noFakeVariableForInlineOnlyFunMap.kt"); + } + + @Test + @TestMetadata("noFakeVariableForInlineOnlyFunWithLambda.kt") + public void testNoFakeVariableForInlineOnlyFunWithLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/noFakeVariableForInlineOnlyFunWithLambda.kt"); + } + + @Test + @TestMetadata("noSynAccessor.kt") + public void testNoSynAccessor() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/noSynAccessor.kt"); + } + + @Test + @TestMetadata("noSynAccessorToDirectFieldAccess.kt") + public void testNoSynAccessorToDirectFieldAccess() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/noSynAccessorToDirectFieldAccess.kt"); + } + + @Test + @TestMetadata("noSynAccessorToSuper.kt") + public void testNoSynAccessorToSuper() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/noSynAccessorToSuper.kt"); + } + + @Test + @TestMetadata("notSplitedExceptionTable.kt") + public void testNotSplitedExceptionTable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/notSplitedExceptionTable.kt"); + } + + @Test + @TestMetadata("reifiedSafeAsWithMutable.kt") + public void testReifiedSafeAsWithMutable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/reifiedSafeAsWithMutable.kt"); + } + + @Test + @TestMetadata("remappedLocalVar.kt") + public void testRemappedLocalVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/remappedLocalVar.kt"); + } + + @Test + @TestMetadata("removedFinallyMarkers.kt") + public void testRemovedFinallyMarkers() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/removedFinallyMarkers.kt"); + } + + @Test + @TestMetadata("specialEnumFunction.kt") + public void testSpecialEnumFunction() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/specialEnumFunction.kt"); + } + + @Test + @TestMetadata("splitedExceptionTable.kt") + public void testSplitedExceptionTable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/splitedExceptionTable.kt"); + } + + @Test + @TestMetadata("whenMappingOnCallSite.kt") + public void testWhenMappingOnCallSite() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/whenMappingOnCallSite.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/inline/property") + @TestDataPath("$PROJECT_ROOT") + public class Property { + @Test + public void testAllFilesPresentInProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/inline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inline/property/simple.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/inlineArgsInPlace") + @TestDataPath("$PROJECT_ROOT") + public class InlineArgsInPlace { + @Test + public void testAllFilesPresentInInlineArgsInPlace() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/inlineArgsInPlace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kotlinMathMax.kt") + public void testKotlinMathMax() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineArgsInPlace/kotlinMathMax.kt"); + } + + @Test + @TestMetadata("println.kt") + public void testPrintln() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineArgsInPlace/println.kt"); + } + + @Test + @TestMetadata("sin.kt") + public void testSin() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineArgsInPlace/sin.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + public class InlineClasses { + @Test + public void testAllFilesPresentInInlineClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("asCastForInlineClass.kt") + public void testAsCastForInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/asCastForInlineClass.kt"); + } + + @Test + @TestMetadata("assertionsForParametersOfInlineClassTypes.kt") + public void testAssertionsForParametersOfInlineClassTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/assertionsForParametersOfInlineClassTypes.kt"); + } + + @Test + @TestMetadata("boxInlineClassInsideElvisWithNullConstant.kt") + public void testBoxInlineClassInsideElvisWithNullConstant() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxInlineClassInsideElvisWithNullConstant.kt"); + } + + @Test + @TestMetadata("boxInlineClassesOnPassingToVarargs.kt") + public void testBoxInlineClassesOnPassingToVarargs() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxInlineClassesOnPassingToVarargs.kt"); + } + + @Test + @TestMetadata("boxMethodCalledByInlineClass.kt") + public void testBoxMethodCalledByInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxMethodCalledByInlineClass.kt"); + } + + @Test + @TestMetadata("boxResultAfterConstructorCall.kt") + public void testBoxResultAfterConstructorCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxResultAfterConstructorCall.kt"); + } + + @Test + @TestMetadata("boxResultInlineClassOfConstructorCall.kt") + public void testBoxResultInlineClassOfConstructorCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxResultInlineClassOfConstructorCall.kt"); + } + + @Test + @TestMetadata("boxThisOfInlineClass.kt") + public void testBoxThisOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxThisOfInlineClass.kt"); + } + + @Test + @TestMetadata("boxUnboxInlineClassFromMethodReturnType.kt") + public void testBoxUnboxInlineClassFromMethodReturnType() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxUnboxInlineClassFromMethodReturnType.kt"); + } + + @Test + @TestMetadata("boxUnboxInsideLambdaAsLastExpression.kt") + public void testBoxUnboxInsideLambdaAsLastExpression() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxUnboxInsideLambdaAsLastExpression.kt"); + } + + @Test + @TestMetadata("boxUnboxOfInlineClassesWithFunctionalTypes.kt") + public void testBoxUnboxOfInlineClassesWithFunctionalTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxUnboxOfInlineClassesWithFunctionalTypes.kt"); + } + + @Test + @TestMetadata("boxUnboxOnInlinedParameters.kt") + public void testBoxUnboxOnInlinedParameters() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxUnboxOnInlinedParameters.kt"); + } + + @Test + @TestMetadata("boxingForNonLocalAndLabeledReturnsOfInlineClasses.kt") + public void testBoxingForNonLocalAndLabeledReturnsOfInlineClasses() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxingForNonLocalAndLabeledReturnsOfInlineClasses.kt"); + } + + @Test + @TestMetadata("callMemberMethodsInsideInlineClass.kt") + public void testCallMemberMethodsInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/callMemberMethodsInsideInlineClass.kt"); + } + + @Test + @TestMetadata("checkBoxingInInlineClass.kt") + public void testCheckBoxingInInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/checkBoxingInInlineClass.kt"); + } + + @Test + @TestMetadata("checkOuterInlineFunctionCall.kt") + public void testCheckOuterInlineFunctionCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/checkOuterInlineFunctionCall.kt"); + } + + @Test + @TestMetadata("constructorBridge.kt") + public void testConstructorBridge() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/constructorBridge.kt"); + } + + @Test + @TestMetadata("constructorWithDefaultArguments.kt") + public void testConstructorWithDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/constructorWithDefaultArguments.kt"); + } + + @Test + @TestMetadata("defaultParametersDontBox.kt") + public void testDefaultParametersDontBox() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/defaultParametersDontBox.kt"); + } + + @Test + @TestMetadata("delegatedPropertyMangling.kt") + public void testDelegatedPropertyMangling() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/delegatedPropertyMangling.kt"); + } + + @Test + @TestMetadata("equalsDoesNotBox.kt") + public void testEqualsDoesNotBox() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/equalsDoesNotBox.kt"); + } + + @Test + @TestMetadata("equalsIsCalledByInlineClass.kt") + public void testEqualsIsCalledByInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/equalsIsCalledByInlineClass.kt"); + } + + @Test + @TestMetadata("factoryMethodForSecondaryConstructorsCalledByInlineClass.kt") + public void testFactoryMethodForSecondaryConstructorsCalledByInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/factoryMethodForSecondaryConstructorsCalledByInlineClass.kt"); + } + + @Test + @TestMetadata("functionsWithInlineClassParametersHaveStableMangledNames.kt") + public void testFunctionsWithInlineClassParametersHaveStableMangledNames() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/functionsWithInlineClassParametersHaveStableMangledNames.kt"); + } + + @Test + @TestMetadata("generationOfAccessorToUnderlyingValue.kt") + public void testGenerationOfAccessorToUnderlyingValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/generationOfAccessorToUnderlyingValue.kt"); + } + + @Test + @TestMetadata("genericNoUnbox.kt") + public void testGenericNoUnbox() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/genericNoUnbox.kt"); + } + + @Test + @TestMetadata("hashCodeIsCalledByInlineClass.kt") + public void testHashCodeIsCalledByInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/hashCodeIsCalledByInlineClass.kt"); + } + + @Test + @TestMetadata("inlineClassBoxingOnAssignment.kt") + public void testInlineClassBoxingOnAssignment() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassBoxingOnAssignment.kt"); + } + + @Test + @TestMetadata("inlineClassBoxingOnFunctionCall.kt") + public void testInlineClassBoxingOnFunctionCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassBoxingOnFunctionCall.kt"); + } + + @Test + @TestMetadata("inlineClassBoxingUnboxingInsideInlinedLambda.kt") + public void testInlineClassBoxingUnboxingInsideInlinedLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassBoxingUnboxingInsideInlinedLambda.kt"); + } + + @Test + @TestMetadata("inlineClassInGeneratedToString.kt") + public void testInlineClassInGeneratedToString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassInGeneratedToString.kt"); + } + + @Test + @TestMetadata("inlineClassInStringTemplate.kt") + public void testInlineClassInStringTemplate() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassInStringTemplate.kt"); + } + + @Test + @TestMetadata("inlineClassesUnboxingAfterAssertionOperator.kt") + public void testInlineClassesUnboxingAfterAssertionOperator() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassesUnboxingAfterAssertionOperator.kt"); + } + + @Test + @TestMetadata("interfaceDefaultImplStubs.kt") + public void testInterfaceDefaultImplStubs() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/interfaceDefaultImplStubs.kt"); + } + + @Test + @TestMetadata("isCheckForInlineClass.kt") + public void testIsCheckForInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/isCheckForInlineClass.kt"); + } + + @Test + @TestMetadata("kt33722.kt") + public void testKt33722() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/kt33722.kt"); + } + + @Test + @TestMetadata("mangledInlineClassInterfaceImplementation.kt") + public void testMangledInlineClassInterfaceImplementation() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/mangledInlineClassInterfaceImplementation.kt"); + } + + @Test + @TestMetadata("mangledSamWrappers.kt") + public void testMangledSamWrappers() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/mangledSamWrappers.kt"); + } + + @Test + @TestMetadata("mangledSamWrappersIndy.kt") + public void testMangledSamWrappersIndy() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/mangledSamWrappersIndy.kt"); + } + + @Test + @TestMetadata("mangledSamWrappersOld.kt") + public void testMangledSamWrappersOld() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/mangledSamWrappersOld.kt"); + } + + @Test + @TestMetadata("noActualCallsOfInlineFunctionsOfInlineClass.kt") + public void testNoActualCallsOfInlineFunctionsOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noActualCallsOfInlineFunctionsOfInlineClass.kt"); + } + + @Test + @TestMetadata("noAssertionsForInlineClassesBasedOnNullableTypes.kt") + public void testNoAssertionsForInlineClassesBasedOnNullableTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noAssertionsForInlineClassesBasedOnNullableTypes.kt"); + } + + @Test + @TestMetadata("noBoxingInMethod.kt") + public void testNoBoxingInMethod() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noBoxingInMethod.kt"); + } + + @Test + @TestMetadata("noBoxingOnCastOperations.kt") + public void testNoBoxingOnCastOperations() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noBoxingOnCastOperations.kt"); + } + + @Test + @TestMetadata("noBoxingOperationsOnNonTrivialSpread.kt") + public void testNoBoxingOperationsOnNonTrivialSpread() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noBoxingOperationsOnNonTrivialSpread.kt"); + } + + @Test + @TestMetadata("noBoxingUnboxingInAccessorsForDelegatedPropertyWithInlineClassDelegate.kt") + public void testNoBoxingUnboxingInAccessorsForDelegatedPropertyWithInlineClassDelegate() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noBoxingUnboxingInAccessorsForDelegatedPropertyWithInlineClassDelegate.kt"); + } + + @Test + @TestMetadata("noManglingForFunctionsWithJvmName.kt") + public void testNoManglingForFunctionsWithJvmName() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noManglingForFunctionsWithJvmName.kt"); + } + + @Test + @TestMetadata("noReturnTypeMangling.kt") + public void testNoReturnTypeMangling() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noReturnTypeMangling.kt"); + } + + @Test + @TestMetadata("nonOverridingMethodsAreCalledByInlineClass.kt") + public void testNonOverridingMethodsAreCalledByInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/nonOverridingMethodsAreCalledByInlineClass.kt"); + } + + @Test + @TestMetadata("overridingMethodsAreCalledByInlineClass.kt") + public void testOverridingMethodsAreCalledByInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/overridingMethodsAreCalledByInlineClass.kt"); + } + + @Test + @TestMetadata("passInlineClassesWithSpreadOperatorToVarargs.kt") + public void testPassInlineClassesWithSpreadOperatorToVarargs() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/passInlineClassesWithSpreadOperatorToVarargs.kt"); + } + + @Test + @TestMetadata("primaryConstructorCalledByInlineClass.kt") + public void testPrimaryConstructorCalledByInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/primaryConstructorCalledByInlineClass.kt"); + } + + @Test + @TestMetadata("propertyAccessorsAreCalledByInlineClass.kt") + public void testPropertyAccessorsAreCalledByInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/propertyAccessorsAreCalledByInlineClass.kt"); + } + + @Test + @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") + public void testPropertySetterWithInlineClassTypeArgument() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/propertySetterWithInlineClassTypeArgument.kt"); + } + + @Test + @TestMetadata("resultApiDoesntCallSpecializedEquals.kt") + public void testResultApiDoesntCallSpecializedEquals() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultApiDoesntCallSpecializedEquals.kt"); + } + + @Test + @TestMetadata("resultApiDoesntUseBox.kt") + public void testResultApiDoesntUseBox() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultApiDoesntUseBox.kt"); + } + + @Test + @TestMetadata("resultApiEqualsDoesntBox.kt") + public void testResultApiEqualsDoesntBox() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultApiEqualsDoesntBox.kt"); + } + + @Test + @TestMetadata("resultApiRunCatchingDoesntBox.kt") + public void testResultApiRunCatchingDoesntBox() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultApiRunCatchingDoesntBox.kt"); + } + + @Test + @TestMetadata("resultApiStringInterpolationDoesntBox.kt") + public void testResultApiStringInterpolationDoesntBox() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultApiStringInterpolationDoesntBox.kt"); + } + + @Test + @TestMetadata("resultMangling.kt") + public void testResultMangling() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultMangling.kt"); + } + + @Test + @TestMetadata("skipCallToUnderlyingValueOfInlineClass.kt") + public void testSkipCallToUnderlyingValueOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/skipCallToUnderlyingValueOfInlineClass.kt"); + } + + @Test + @TestMetadata("suspendFunctionMangling.kt") + public void testSuspendFunctionMangling() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/suspendFunctionMangling.kt"); + } + + @Test + @TestMetadata("toStringOfInlineClassValue.kt") + public void testToStringOfInlineClassValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/toStringOfInlineClassValue.kt"); + } + + @Test + @TestMetadata("toStringOfReferenceInlineClassValue.kt") + public void testToStringOfReferenceInlineClassValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/toStringOfReferenceInlineClassValue.kt"); + } + + @Test + @TestMetadata("uIntArrayIteratorWithoutBoxing.kt") + public void testUIntArrayIteratorWithoutBoxing() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/uIntArrayIteratorWithoutBoxing.kt"); + } + + @Test + @TestMetadata("uIntArraySwapBoxing.kt") + public void testUIntArraySwapBoxing() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/uIntArraySwapBoxing.kt"); + } + + @Test + @TestMetadata("unboxInlineClassAfterElvis.kt") + public void testUnboxInlineClassAfterElvis() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/unboxInlineClassAfterElvis.kt"); + } + + @Test + @TestMetadata("unboxInlineClassAfterSafeCall.kt") + public void testUnboxInlineClassAfterSafeCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/unboxInlineClassAfterSafeCall.kt"); + } + + @Test + @TestMetadata("unboxInlineClassFromParameterizedType.kt") + public void testUnboxInlineClassFromParameterizedType() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/unboxInlineClassFromParameterizedType.kt"); + } + + @Test + @TestMetadata("unboxInlineClassesAfterSmartCasts.kt") + public void testUnboxInlineClassesAfterSmartCasts() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/unboxInlineClassesAfterSmartCasts.kt"); + } + + @Test + @TestMetadata("unboxMethodCalledByInlineClass.kt") + public void testUnboxMethodCalledByInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/inlineClasses/unboxMethodCalledByInlineClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/innerClasses") + @TestDataPath("$PROJECT_ROOT") + public class InnerClasses { + @Test + public void testAllFilesPresentInInnerClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/innerClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt27936.kt") + public void testKt27936() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/innerClasses/kt27936.kt"); + } + + @Test + @TestMetadata("kt53804.kt") + public void testKt53804() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/innerClasses/kt53804.kt"); + } + + @Test + @TestMetadata("kt56104.kt") + public void testKt56104() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/innerClasses/kt56104.kt"); + } + + @Test + @TestMetadata("kt57714.kt") + public void testKt57714() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/innerClasses/kt57714.kt"); + } + + @Test + @TestMetadata("nestedClassInAnnotationArgument.kt") + public void testNestedClassInAnnotationArgument() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/innerClasses/nestedClassInAnnotationArgument.kt"); + } + + @Test + @TestMetadata("nestedClassInAnnotationArgumentOldMode.kt") + public void testNestedClassInAnnotationArgumentOldMode() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/innerClasses/nestedClassInAnnotationArgumentOldMode.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/interfaces") + @TestDataPath("$PROJECT_ROOT") + public class Interfaces { + @Test + @TestMetadata("addedInterfaceBridge.kt") + public void testAddedInterfaceBridge() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/interfaces/addedInterfaceBridge.kt"); + } + + @Test + public void testAllFilesPresentInInterfaces() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/interfaces"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("firstInheritedMethodIsAbstract.kt") + public void testFirstInheritedMethodIsAbstract() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/interfaces/firstInheritedMethodIsAbstract.kt"); + } + + @Test + @TestMetadata("noAnyMethodsOnInterfaceInheritance.kt") + public void testNoAnyMethodsOnInterfaceInheritance() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/interfaces/noAnyMethodsOnInterfaceInheritance.kt"); + } + + @Test + @TestMetadata("noNullCheckOnThisInDefaultMethod.kt") + public void testNoNullCheckOnThisInDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/interfaces/noNullCheckOnThisInDefaultMethod.kt"); + } + + @Test + @TestMetadata("noPrivateMemberInJavaInterface.kt") + public void testNoPrivateMemberInJavaInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/interfaces/noPrivateMemberInJavaInterface.kt"); + } + + @Test + @TestMetadata("traitImplGeneratedOnce.kt") + public void testTraitImplGeneratedOnce() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/interfaces/traitImplGeneratedOnce.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/intrinsics") + @TestDataPath("$PROJECT_ROOT") + public class Intrinsics { + @Test + public void testAllFilesPresentInIntrinsics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/intrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaObjectType.kt") + public void testJavaObjectType() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsics/javaObjectType.kt"); + } + + @Test + @TestMetadata("javaPrimitiveType.kt") + public void testJavaPrimitiveType() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsics/javaPrimitiveType.kt"); + } + + @Test + @TestMetadata("postfixIncrDecr.kt") + public void testPostfixIncrDecr() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsics/postfixIncrDecr.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/intrinsicsCompare") + @TestDataPath("$PROJECT_ROOT") + public class IntrinsicsCompare { + @Test + public void testAllFilesPresentInIntrinsicsCompare() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/intrinsicsCompare"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("byteSmartCast_after.kt") + public void testByteSmartCast_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/byteSmartCast_after.kt"); + } + + @Test + @TestMetadata("byteSmartCast_before.kt") + public void testByteSmartCast_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/byteSmartCast_before.kt"); + } + + @Test + @TestMetadata("charSmartCast.kt") + public void testCharSmartCast() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/charSmartCast.kt"); + } + + @Test + @TestMetadata("differentTypes_after.kt") + public void testDifferentTypes_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/differentTypes_after.kt"); + } + + @Test + @TestMetadata("differentTypes_before.kt") + public void testDifferentTypes_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/differentTypes_before.kt"); + } + + @Test + @TestMetadata("intSmartCast_after.kt") + public void testIntSmartCast_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/intSmartCast_after.kt"); + } + + @Test + @TestMetadata("intSmartCast_before.kt") + public void testIntSmartCast_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/intSmartCast_before.kt"); + } + + @Test + @TestMetadata("longSmartCast.kt") + public void testLongSmartCast() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/longSmartCast.kt"); + } + + @Test + @TestMetadata("shortSmartCast_after.kt") + public void testShortSmartCast_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/shortSmartCast_after.kt"); + } + + @Test + @TestMetadata("shortSmartCast_before.kt") + public void testShortSmartCast_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/shortSmartCast_before.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/intrinsicsTrim") + @TestDataPath("$PROJECT_ROOT") + public class IntrinsicsTrim { + @Test + public void testAllFilesPresentInIntrinsicsTrim() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/intrinsicsTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("trimIndentNegative.kt") + public void testTrimIndentNegative() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsTrim/trimIndentNegative.kt"); + } + + @Test + @TestMetadata("trimIndentPositive.kt") + public void testTrimIndentPositive() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsTrim/trimIndentPositive.kt"); + } + + @Test + @TestMetadata("trimMarginNegative.kt") + public void testTrimMarginNegative() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsTrim/trimMarginNegative.kt"); + } + + @Test + @TestMetadata("trimMarginPositive.kt") + public void testTrimMarginPositive() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/intrinsicsTrim/trimMarginPositive.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/invokedynamic") + @TestDataPath("$PROJECT_ROOT") + public class Invokedynamic { + @Test + public void testAllFilesPresentInInvokedynamic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/invokedynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("extensionReceiversNames.kt") + public void testExtensionReceiversNames() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/invokedynamic/extensionReceiversNames.kt"); + } + + @Test + @TestMetadata("functionRefToJavaInterface.kt") + public void testFunctionRefToJavaInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/invokedynamic/functionRefToJavaInterface.kt"); + } + + @Test + @TestMetadata("lambdas.kt") + public void testLambdas() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/invokedynamic/lambdas.kt"); + } + + @Test + @TestMetadata("streamApi.kt") + public void testStreamApi() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/invokedynamic/streamApi.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/jvm8") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8 { + @Test + public void testAllFilesPresentInJvm8() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/jvm8/hashCode") + @TestDataPath("$PROJECT_ROOT") + public class HashCode { + @Test + public void testAllFilesPresentInHashCode() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/jvm8/hashCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dataClass.kt") + public void testDataClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/jvm8/hashCode/dataClass.kt"); + } + + @Test + @TestMetadata("hashCode.kt") + public void testHashCode() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/jvm8/hashCode/hashCode.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault") + @TestDataPath("$PROJECT_ROOT") + public class JvmDefault { + @Test + public void testAllFilesPresentInJvmDefault() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility") + @TestDataPath("$PROJECT_ROOT") + public class AllCompatibility { + @Test + public void testAllFilesPresentInAllCompatibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility/defaultArgs.kt"); + } + + @Test + @TestMetadata("simpleDiamond.kt") + public void testSimpleDiamond() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility/simpleDiamond.kt"); + } + + @Test + @TestMetadata("simpleFunction.kt") + public void testSimpleFunction() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility/simpleFunction.kt"); + } + + @Test + @TestMetadata("simpleFunctionWithAbstractOverride.kt") + public void testSimpleFunctionWithAbstractOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility/simpleFunctionWithAbstractOverride.kt"); + } + + @Test + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility/simpleProperty.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/lazyCodegen") + @TestDataPath("$PROJECT_ROOT") + public class LazyCodegen { + @Test + public void testAllFilesPresentInLazyCodegen() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/lazyCodegen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("inlineConstInsideComparison.kt") + public void testInlineConstInsideComparison() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/inlineConstInsideComparison.kt"); + } + + @Test + @TestMetadata("negateConst.kt") + public void testNegateConst() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/negateConst.kt"); + } + + @Test + @TestMetadata("negateObjectComp.kt") + public void testNegateObjectComp() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/negateObjectComp.kt"); + } + + @Test + @TestMetadata("negateObjectCompChaing.kt") + public void testNegateObjectCompChaing() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/negateObjectCompChaing.kt"); + } + + @Test + @TestMetadata("negateVar.kt") + public void testNegateVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/negateVar.kt"); + } + + @Test + @TestMetadata("negateVarChain.kt") + public void testNegateVarChain() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/negateVarChain.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/lineNumbers") + @TestDataPath("$PROJECT_ROOT") + public class LineNumbers { + @Test + public void testAllFilesPresentInLineNumbers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/lineNumbers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("delegationToList.kt") + public void testDelegationToList() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/delegationToList.kt"); + } + + @Test + @TestMetadata("ifConsts.kt") + public void testIfConsts() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifConsts.kt"); + } + + @Test + @TestMetadata("ifElse.kt") + public void testIfElse() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifElse.kt"); + } + + @Test + @TestMetadata("ifFalse.kt") + public void testIfFalse() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifFalse.kt"); + } + + @Test + @TestMetadata("ifFalseElse.kt") + public void testIfFalseElse() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifFalseElse.kt"); + } + + @Test + @TestMetadata("ifTrue.kt") + public void testIfTrue() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifTrue.kt"); + } + + @Test + @TestMetadata("ifTrueElse.kt") + public void testIfTrueElse() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifTrueElse.kt"); + } + + @Test + @TestMetadata("inlineCondition.kt") + public void testInlineCondition() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/inlineCondition.kt"); + } + + @Test + @TestMetadata("inlineCondition2.kt") + public void testInlineCondition2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/inlineCondition2.kt"); + } + + @Test + @TestMetadata("inlineLambdaObjectInit.kt") + public void testInlineLambdaObjectInit() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/inlineLambdaObjectInit.kt"); + } + + @Test + @TestMetadata("kt61768.kt") + public void testKt61768() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/kt61768.kt"); + } + + @Test + @TestMetadata("singleThen.kt") + public void testSingleThen() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/singleThen.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/tryCatch.kt"); + } + + @Test + @TestMetadata("tryFinally.kt") + public void testTryFinally() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/tryFinally.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/lineNumbers/when.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/localInitializationLVT") + @TestDataPath("$PROJECT_ROOT") + public class LocalInitializationLVT { + @Test + public void testAllFilesPresentInLocalInitializationLVT() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/localInitializationLVT"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("boxing.kt") + public void testBoxing() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/boxing.kt"); + } + + @Test + @TestMetadata("boxingVar.kt") + public void testBoxingVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/boxingVar.kt"); + } + + @Test + @TestMetadata("contract.kt") + public void testContract() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/contract.kt"); + } + + @Test + @TestMetadata("contractVar.kt") + public void testContractVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/contractVar.kt"); + } + + @Test + @TestMetadata("generics.kt") + public void testGenerics() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/generics.kt"); + } + + @Test + @TestMetadata("genericsVar.kt") + public void testGenericsVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/genericsVar.kt"); + } + + @Test + @TestMetadata("ifStatement.kt") + public void testIfStatement() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/ifStatement.kt"); + } + + @Test + @TestMetadata("ifStatementVar.kt") + public void testIfStatementVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/ifStatementVar.kt"); + } + + @Test + @TestMetadata("ifStatementWithoutBlock.kt") + public void testIfStatementWithoutBlock() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/ifStatementWithoutBlock.kt"); + } + + @Test + @TestMetadata("ifStatementWithoutBlockVar.kt") + public void testIfStatementWithoutBlockVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/ifStatementWithoutBlockVar.kt"); + } + + @Test + @TestMetadata("inlineClass.kt") + public void testInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/inlineClass.kt"); + } + + @Test + @TestMetadata("inlineClassVar.kt") + public void testInlineClassVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/inlineClassVar.kt"); + } + + @Test + @TestMetadata("lateinit.kt") + public void testLateinit() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/lateinit.kt"); + } + + @Test + @TestMetadata("run.kt") + public void testRun() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/run.kt"); + } + + @Test + @TestMetadata("runVar.kt") + public void testRunVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/runVar.kt"); + } + + @Test + @TestMetadata("singleBlock.kt") + public void testSingleBlock() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/singleBlock.kt"); + } + + @Test + @TestMetadata("singleBlockVar.kt") + public void testSingleBlockVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/singleBlockVar.kt"); + } + + @Test + @TestMetadata("whenStatement.kt") + public void testWhenStatement() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/whenStatement.kt"); + } + + @Test + @TestMetadata("whenStatementVar.kt") + public void testWhenStatementVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/whenStatementVar.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/mangling") + @TestDataPath("$PROJECT_ROOT") + public class Mangling { + @Test + public void testAllFilesPresentInMangling() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/mangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("parentheses.kt") + public void testParentheses() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/mangling/parentheses.kt"); + } + + @Test + @TestMetadata("parenthesesNoSanitize.kt") + public void testParenthesesNoSanitize() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/mangling/parenthesesNoSanitize.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/multifileClasses") + @TestDataPath("$PROJECT_ROOT") + public class MultifileClasses { + @Test + public void testAllFilesPresentInMultifileClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("defaultFunctionInMultifileClass.kt") + public void testDefaultFunctionInMultifileClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/multifileClasses/defaultFunctionInMultifileClass.kt"); + } + + @Test + @TestMetadata("optimizedMultifileClassFacadeMethods.kt") + public void testOptimizedMultifileClassFacadeMethods() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/multifileClasses/optimizedMultifileClassFacadeMethods.kt"); + } + + @Test + @TestMetadata("privateFunctionName.kt") + public void testPrivateFunctionName() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/multifileClasses/privateFunctionName.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/notNullAssertions") + @TestDataPath("$PROJECT_ROOT") + public class NotNullAssertions { + @Test + public void testAllFilesPresentInNotNullAssertions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayListGet.kt") + public void testArrayListGet() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/arrayListGet.kt"); + } + + @Test + @TestMetadata("assertionForNotNullCaptured.kt") + public void testAssertionForNotNullCaptured() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/assertionForNotNullCaptured.kt"); + } + + @Test + @TestMetadata("assertionForNotNullTypeParam.kt") + public void testAssertionForNotNullTypeParam() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/assertionForNotNullTypeParam.kt"); + } + + @Test + @TestMetadata("assertionForNotNullTypeParam_1_4.kt") + public void testAssertionForNotNullTypeParam_1_4() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/assertionForNotNullTypeParam_1_4.kt"); + } + + @Test + @TestMetadata("doNotGenerateParamAssertions.kt") + public void testDoNotGenerateParamAssertions() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/doNotGenerateParamAssertions.kt"); + } + + @Test + @TestMetadata("javaMultipleSubstitutions.kt") + public void testJavaMultipleSubstitutions() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/javaMultipleSubstitutions.kt"); + } + + @Test + @TestMetadata("noAssertionForNullableCaptured.kt") + public void testNoAssertionForNullableCaptured() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/noAssertionForNullableCaptured.kt"); + } + + @Test + @TestMetadata("noAssertionForNullableGenericMethod.kt") + public void testNoAssertionForNullableGenericMethod() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/noAssertionForNullableGenericMethod.kt"); + } + + @Test + @TestMetadata("noAssertionForNullableGenericMethodCall.kt") + public void testNoAssertionForNullableGenericMethodCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/noAssertionForNullableGenericMethodCall.kt"); + } + + @Test + @TestMetadata("noAssertionForPrivateMethod.kt") + public void testNoAssertionForPrivateMethod() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/noAssertionForPrivateMethod.kt"); + } + + @Test + @TestMetadata("noAssertionsForKotlin.kt") + public void testNoAssertionsForKotlin() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/noAssertionsForKotlin.kt"); + } + + @Test + @TestMetadata("noTemporaryVariableInNullCheckOnExpression.kt") + public void testNoTemporaryVariableInNullCheckOnExpression() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/noTemporaryVariableInNullCheckOnExpression.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/nullCheckOptimization") + @TestDataPath("$PROJECT_ROOT") + public class NullCheckOptimization { + @Test + public void testAllFilesPresentInNullCheckOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/nullCheckOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("alreadyCheckedForIs.kt") + public void testAlreadyCheckedForIs() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/alreadyCheckedForIs.kt"); + } + + @Test + @TestMetadata("alreadyCheckedForNull.kt") + public void testAlreadyCheckedForNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/alreadyCheckedForNull.kt"); + } + + @Test + @TestMetadata("deterministicNotNullChecks.kt") + public void testDeterministicNotNullChecks() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/deterministicNotNullChecks.kt"); + } + + @Test + @TestMetadata("exclExclAsNotNullType.kt") + public void testExclExclAsNotNullType() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/exclExclAsNotNullType.kt"); + } + + @Test + @TestMetadata("expressionValueIsNotNull.kt") + public void testExpressionValueIsNotNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/expressionValueIsNotNull.kt"); + } + + @Test + @TestMetadata("expressionValueIsNotNullAfterExclExcl.kt") + public void testExpressionValueIsNotNullAfterExclExcl() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/expressionValueIsNotNullAfterExclExcl.kt"); + } + + @Test + @TestMetadata("expressionValueIsNotNullTwice.kt") + public void testExpressionValueIsNotNullTwice() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/expressionValueIsNotNullTwice.kt"); + } + + @Test + @TestMetadata("ifNullEqualsNull.kt") + public void testIfNullEqualsNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/ifNullEqualsNull.kt"); + } + + @Test + @TestMetadata("ifNullEqualsNullInline.kt") + public void testIfNullEqualsNullInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/ifNullEqualsNullInline.kt"); + } + + @Test + @TestMetadata("ifUnitEqualsNull.kt") + public void testIfUnitEqualsNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/ifUnitEqualsNull.kt"); + } + + @Test + @TestMetadata("ifUnitEqualsNullInline.kt") + public void testIfUnitEqualsNullInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/ifUnitEqualsNullInline.kt"); + } + + @Test + @TestMetadata("kt12839.kt") + public void testKt12839() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/kt12839.kt"); + } + + @Test + @TestMetadata("multipleExclExcl_1_4.kt") + public void testMultipleExclExcl_1_4() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/multipleExclExcl_1_4.kt"); + } + + @Test + @TestMetadata("noNullCheckAfterCast.kt") + public void testNoNullCheckAfterCast() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/noNullCheckAfterCast.kt"); + } + + @Test + @TestMetadata("notNullAsNotNullable.kt") + public void testNotNullAsNotNullable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/notNullAsNotNullable.kt"); + } + + @Test + @TestMetadata("notNullExpressionValueTwice_1_4.kt") + public void testNotNullExpressionValueTwice_1_4() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/notNullExpressionValueTwice_1_4.kt"); + } + + @Test + @TestMetadata("nullCheckAfterExclExcl_1_4.kt") + public void testNullCheckAfterExclExcl_1_4() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/nullCheckAfterExclExcl_1_4.kt"); + } + + @Test + @TestMetadata("nullabilityAssertionOnDispatchReceiver.kt") + public void testNullabilityAssertionOnDispatchReceiver() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/nullabilityAssertionOnDispatchReceiver.kt"); + } + + @Test + @TestMetadata("primitiveCheck.kt") + public void testPrimitiveCheck() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/primitiveCheck.kt"); + } + + @Test + @TestMetadata("redundantSafeCall.kt") + public void testRedundantSafeCall() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall.kt"); + } + + @Test + @TestMetadata("redundantSafeCall_1_4.kt") + public void testRedundantSafeCall_1_4() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall_1_4.kt"); + } + + @Test + @TestMetadata("reifiedIs.kt") + public void testReifiedIs() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/reifiedIs.kt"); + } + + @Test + @TestMetadata("reifiedNullIs.kt") + public void testReifiedNullIs() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/reifiedNullIs.kt"); + } + + @Test + @TestMetadata("safeCallAndElvisChains.kt") + public void testSafeCallAndElvisChains() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/safeCallAndElvisChains.kt"); + } + + @Test + @TestMetadata("trivialInstanceOf.kt") + public void testTrivialInstanceOf() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/trivialInstanceOf.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/nullCheckOptimization/localLateinit") + @TestDataPath("$PROJECT_ROOT") + public class LocalLateinit { + @Test + public void testAllFilesPresentInLocalLateinit() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/nullCheckOptimization/localLateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("checkedAlways.kt") + public void testCheckedAlways() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/localLateinit/checkedAlways.kt"); + } + + @Test + @TestMetadata("checkedOnce.kt") + public void testCheckedOnce() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/localLateinit/checkedOnce.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/localLateinit/initialized.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties") + @TestDataPath("$PROJECT_ROOT") + public class OptimizedDelegatedProperties { + @Test + public void testAllFilesPresentInOptimizedDelegatedProperties() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("definedInSources.kt") + public void testDefinedInSources() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties/definedInSources.kt"); + } + + @Test + @TestMetadata("delegateToAnother.kt") + public void testDelegateToAnother() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties/delegateToAnother.kt"); + } + + @Test + @TestMetadata("inSeparateModule.kt") + public void testInSeparateModule() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties/inSeparateModule.kt"); + } + + @Test + @TestMetadata("lazy.kt") + public void testLazy() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties/lazy.kt"); + } + + @Test + @TestMetadata("withNonNullMetadataParameter.kt") + public void testWithNonNullMetadataParameter() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties/withNonNullMetadataParameter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/outerClass") + @TestDataPath("$PROJECT_ROOT") + public class OuterClass { + @Test + public void testAllFilesPresentInOuterClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/outerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classInClinit.kt") + public void testClassInClinit() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/outerClass/classInClinit.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/parameterlessMain") + @TestDataPath("$PROJECT_ROOT") + public class ParameterlessMain { + @Test + public void testAllFilesPresentInParameterlessMain() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/parameterlessMain"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dontGenerateOnExtensionReceiver.kt") + public void testDontGenerateOnExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnExtensionReceiver.kt"); + } + + @Test + @TestMetadata("dontGenerateOnJvmNameMain.kt") + public void testDontGenerateOnJvmNameMain() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnJvmNameMain.kt"); + } + + @Test + @TestMetadata("dontGenerateOnJvmOverloads.kt") + public void testDontGenerateOnJvmOverloads() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnJvmOverloads.kt"); + } + + @Test + @TestMetadata("dontGenerateOnMain.kt") + public void testDontGenerateOnMain() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnMain.kt"); + } + + @Test + @TestMetadata("dontGenerateOnMainExtension.kt") + public void testDontGenerateOnMainExtension() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnMainExtension.kt"); + } + + @Test + @TestMetadata("dontGenerateOnNullableArray.kt") + public void testDontGenerateOnNullableArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableArray.kt"); + } + + @Test + @TestMetadata("dontGenerateOnNullableString.kt") + public void testDontGenerateOnNullableString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableString.kt"); + } + + @Test + @TestMetadata("dontGenerateOnVarargsString.kt") + public void testDontGenerateOnVarargsString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnVarargsString.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/properties") + @TestDataPath("$PROJECT_ROOT") + public class Properties { + @Test + public void testAllFilesPresentInProperties() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dataClass.kt") + public void testDataClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/properties/dataClass.kt"); + } + + @Test + @TestMetadata("openDataClass.kt") + public void testOpenDataClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/properties/openDataClass.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/properties/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/properties/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/properties/lateinit/companionObject.kt"); + } + + @Test + @TestMetadata("companionObjectFromLambda.kt") + public void testCompanionObjectFromLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/properties/lateinit/companionObjectFromLambda.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/ranges") + @TestDataPath("$PROJECT_ROOT") + public class Ranges { + @Test + public void testAllFilesPresentInRanges() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/ranges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ifNotInRange.kt") + public void testIfNotInRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/ifNotInRange.kt"); + } + + @Test + @TestMetadata("inArrayIndices.kt") + public void testInArrayIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/inArrayIndices.kt"); + } + + @Test + @TestMetadata("inCharSequenceIndices.kt") + public void testInCharSequenceIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/inCharSequenceIndices.kt"); + } + + @Test + @TestMetadata("inCollectionIndices.kt") + public void testInCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/inCollectionIndices.kt"); + } + + @Test + @TestMetadata("inComparableRangeLiteral.kt") + public void testInComparableRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/inComparableRangeLiteral.kt"); + } + + @Test + @TestMetadata("inMixedUnsignedRange.kt") + public void testInMixedUnsignedRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/inMixedUnsignedRange.kt"); + } + + @Test + @TestMetadata("inMixedUnsignedRange_2.kt") + public void testInMixedUnsignedRange_2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/inMixedUnsignedRange_2.kt"); + } + + @Test + @TestMetadata("inNonMatchingRangeIntrinsified.kt") + public void testInNonMatchingRangeIntrinsified() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/inNonMatchingRangeIntrinsified.kt"); + } + + @Test + @TestMetadata("inOptimizableRange.kt") + public void testInOptimizableRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/inOptimizableRange.kt"); + } + + @Test + @TestMetadata("inOptimizableUnsignedRange.kt") + public void testInOptimizableUnsignedRange() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/inOptimizableUnsignedRange.kt"); + } + + @Test + @TestMetadata("inRangeUntil.kt") + public void testInRangeUntil() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/inRangeUntil.kt"); + } + + @Test + @TestMetadata("inUntil.kt") + public void testInUntil() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/inUntil.kt"); + } + + @Test + @TestMetadata("noDupXForLiteralRangeContains.kt") + public void testNoDupXForLiteralRangeContains() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/ranges/noDupXForLiteralRangeContains.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/sam") + @TestDataPath("$PROJECT_ROOT") + public class Sam { + @Test + public void testAllFilesPresentInSam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("samWrapperForNullInitialization.kt") + public void testSamWrapperForNullInitialization() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperForNullInitialization.kt"); + } + + @Test + @TestMetadata("samWrapperForNullableInitialization.kt") + public void testSamWrapperForNullableInitialization() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperForNullableInitialization.kt"); + } + + @Test + @TestMetadata("samWrapperInInlineLambda.kt") + public void testSamWrapperInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperInInlineLambda.kt"); + } + + @Test + @TestMetadata("samWrapperInInlineLambda2.kt") + public void testSamWrapperInInlineLambda2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperInInlineLambda2.kt"); + } + + @Test + @TestMetadata("samWrapperOfLambda.kt") + public void testSamWrapperOfLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperOfLambda.kt"); + } + + @Test + @TestMetadata("samWrapperOfReference.kt") + public void testSamWrapperOfReference() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperOfReference.kt"); + } + + @Test + @TestMetadata("samWrapperRawTypes.kt") + public void testSamWrapperRawTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperRawTypes.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/statements") + @TestDataPath("$PROJECT_ROOT") + public class Statements { + @Test + public void testAllFilesPresentInStatements() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/statements"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ifSingleBranch.kt") + public void testIfSingleBranch() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/statements/ifSingleBranch.kt"); + } + + @Test + @TestMetadata("ifThenElse.kt") + public void testIfThenElse() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/statements/ifThenElse.kt"); + } + + @Test + @TestMetadata("ifThenElseEmpty.kt") + public void testIfThenElseEmpty() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/statements/ifThenElseEmpty.kt"); + } + + @Test + @TestMetadata("labeled.kt") + public void testLabeled() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/statements/labeled.kt"); + } + + @Test + @TestMetadata("statementsComposition.kt") + public void testStatementsComposition() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/statements/statementsComposition.kt"); + } + + @Test + @TestMetadata("tryCatchFinally.kt") + public void testTryCatchFinally() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/statements/tryCatchFinally.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/statements/when.kt"); + } + + @Test + @TestMetadata("whenSubject.kt") + public void testWhenSubject() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/statements/whenSubject.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/staticFields") + @TestDataPath("$PROJECT_ROOT") + public class StaticFields { + @Test + public void testAllFilesPresentInStaticFields() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/staticFields"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/staticFields/classObject.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/staticFields/object.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/storeStackBeforeInline") + @TestDataPath("$PROJECT_ROOT") + public class StoreStackBeforeInline { + @Test + public void testAllFilesPresentInStoreStackBeforeInline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/storeStackBeforeInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayConstructor.kt") + public void testArrayConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/arrayConstructor.kt"); + } + + @Test + @TestMetadata("differentTypes.kt") + public void testDifferentTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/differentTypes.kt"); + } + + @Test + @TestMetadata("primitiveMerge.kt") + public void testPrimitiveMerge() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/primitiveMerge.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/simple.kt"); + } + + @Test + @TestMetadata("unreachableMarker.kt") + public void testUnreachableMarker() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/unreachableMarker.kt"); + } + + @Test + @TestMetadata("withLambda.kt") + public void testWithLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/withLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/stringOperations") + @TestDataPath("$PROJECT_ROOT") + public class StringOperations { + @Test + public void testAllFilesPresentInStringOperations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/stringOperations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("concat.kt") + public void testConcat() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concat.kt"); + } + + @Test + @TestMetadata("concatDynamic.kt") + public void testConcatDynamic() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamic.kt"); + } + + @Test + @TestMetadata("concatDynamic199.kt") + public void testConcatDynamic199() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamic199.kt"); + } + + @Test + @TestMetadata("concatDynamic200.kt") + public void testConcatDynamic200() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamic200.kt"); + } + + @Test + @TestMetadata("concatDynamic201.kt") + public void testConcatDynamic201() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamic201.kt"); + } + + @Test + @TestMetadata("concatDynamicConstants.kt") + public void testConcatDynamicConstants() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicConstants.kt"); + } + + @Test + @TestMetadata("concatDynamicDataClass.kt") + public void testConcatDynamicDataClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicDataClass.kt"); + } + + @Test + @TestMetadata("concatDynamicIndy.kt") + public void testConcatDynamicIndy() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndy.kt"); + } + + @Test + @TestMetadata("concatDynamicIndy201.kt") + public void testConcatDynamicIndy201() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndy201.kt"); + } + + @Test + @TestMetadata("concatDynamicIndyDataClass.kt") + public void testConcatDynamicIndyDataClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndyDataClass.kt"); + } + + @Test + @TestMetadata("concatDynamicSpecialSymbols.kt") + public void testConcatDynamicSpecialSymbols() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicSpecialSymbols.kt"); + } + + @Test + @TestMetadata("concatDynamicUnit.kt") + public void testConcatDynamicUnit() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicUnit.kt"); + } + + @Test + @TestMetadata("concatNotDynamic.kt") + public void testConcatNotDynamic() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatNotDynamic.kt"); + } + + @Test + @TestMetadata("constConcat.kt") + public void testConstConcat() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/constConcat.kt"); + } + + @Test + @TestMetadata("constValConcat.kt") + public void testConstValConcat() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/constValConcat.kt"); + } + + @Test + @TestMetadata("doNotAppendEmptyString.kt") + public void testDoNotAppendEmptyString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/doNotAppendEmptyString.kt"); + } + + @Test + @TestMetadata("interpolation.kt") + public void testInterpolation() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/interpolation.kt"); + } + + @Test + @TestMetadata("kt15235.kt") + public void testKt15235() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/kt15235.kt"); + } + + @Test + @TestMetadata("kt19037.kt") + public void testKt19037() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/kt19037.kt"); + } + + @Test + @TestMetadata("kt42457_old.kt") + public void testKt42457_old() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/kt42457_old.kt"); + } + + @Test + @TestMetadata("multipleNestedConcat.kt") + public void testMultipleNestedConcat() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/multipleNestedConcat.kt"); + } + + @Test + @TestMetadata("nestedConcat.kt") + public void testNestedConcat() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/nestedConcat.kt"); + } + + @Test + @TestMetadata("nonNullableStringPlus.kt") + public void testNonNullableStringPlus() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/nonNullableStringPlus.kt"); + } + + @Test + @TestMetadata("nullableStringPlus.kt") + public void testNullableStringPlus() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/nullableStringPlus.kt"); + } + + @Test + @TestMetadata("partiallyConstConcat.kt") + public void testPartiallyConstConcat() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/partiallyConstConcat.kt"); + } + + @Test + @TestMetadata("plusAssign.kt") + public void testPlusAssign() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/plusAssign.kt"); + } + + @Test + @TestMetadata("primitiveToString.kt") + public void testPrimitiveToString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/primitiveToString.kt"); + } + + @Test + @TestMetadata("primitiveToStringNotOptimizable.kt") + public void testPrimitiveToStringNotOptimizable() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/primitiveToStringNotOptimizable.kt"); + } + + @Test + @TestMetadata("primitivesAsStringTemplates.kt") + public void testPrimitivesAsStringTemplates() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/primitivesAsStringTemplates.kt"); + } + + @Test + @TestMetadata("singleConcat.kt") + public void testSingleConcat() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/singleConcat.kt"); + } + + @Test + @TestMetadata("stringBuilderToString.kt") + public void testStringBuilderToString() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/stringBuilderToString.kt"); + } + + @Test + @TestMetadata("stringPlus.kt") + public void testStringPlus() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/stringPlus.kt"); + } + + @Test + @TestMetadata("useAppendCharForOneCharStringInTemplate.kt") + public void testUseAppendCharForOneCharStringInTemplate() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/useAppendCharForOneCharStringInTemplate.kt"); + } + + @Test + @TestMetadata("useAppendCharForOneCharStringInTemplate_2.kt") + public void testUseAppendCharForOneCharStringInTemplate_2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/useAppendCharForOneCharStringInTemplate_2.kt"); + } + + @Test + @TestMetadata("useAppendCharForOneCharStringUsingPlus.kt") + public void testUseAppendCharForOneCharStringUsingPlus() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/stringOperations/useAppendCharForOneCharStringUsingPlus.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/temporaryVals") + @TestDataPath("$PROJECT_ROOT") + public class TemporaryVals { + @Test + public void testAllFilesPresentInTemporaryVals() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/temporaryVals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arrayCompoundAssignment.kt") + public void testArrayCompoundAssignment() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/temporaryVals/arrayCompoundAssignment.kt"); + } + + @Test + @TestMetadata("elvisChain.kt") + public void testElvisChain() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/temporaryVals/elvisChain.kt"); + } + + @Test + @TestMetadata("noTemporaryInCheckedCast.kt") + public void testNoTemporaryInCheckedCast() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/temporaryVals/noTemporaryInCheckedCast.kt"); + } + + @Test + @TestMetadata("notNullReceiversInChain.kt") + public void testNotNullReceiversInChain() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/temporaryVals/notNullReceiversInChain.kt"); + } + + @Test + @TestMetadata("safeCallChain1.kt") + public void testSafeCallChain1() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/temporaryVals/safeCallChain1.kt"); + } + + @Test + @TestMetadata("safeCallChain2.kt") + public void testSafeCallChain2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/temporaryVals/safeCallChain2.kt"); + } + + @Test + @TestMetadata("safeCallChainMemberExt1.kt") + public void testSafeCallChainMemberExt1() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/temporaryVals/safeCallChainMemberExt1.kt"); + } + + @Test + @TestMetadata("safeCallChainMemberExt2.kt") + public void testSafeCallChainMemberExt2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/temporaryVals/safeCallChainMemberExt2.kt"); + } + + @Test + @TestMetadata("safeCallElvisSafeCallElvisSomething.kt") + public void testSafeCallElvisSafeCallElvisSomething() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/temporaryVals/safeCallElvisSafeCallElvisSomething.kt"); + } + + @Test + @TestMetadata("safeCallWithElvis.kt") + public void testSafeCallWithElvis() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/temporaryVals/safeCallWithElvis.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/toArray") + @TestDataPath("$PROJECT_ROOT") + public class ToArray { + @Test + public void testAllFilesPresentInToArray() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/toArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("noAccessorForToArray.kt") + public void testNoAccessorForToArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/toArray/noAccessorForToArray.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/unsignedTypes") + @TestDataPath("$PROJECT_ROOT") + public class UnsignedTypes { + @Test + public void testAllFilesPresentInUnsignedTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/unsignedTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("unsignedIntCompare_jvm18.kt") + public void testUnsignedIntCompare_jvm18() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntCompare_jvm18.kt"); + } + + @Test + @TestMetadata("unsignedIntDivide_jvm18.kt") + public void testUnsignedIntDivide_jvm18() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntDivide_jvm18.kt"); + } + + @Test + @TestMetadata("unsignedIntRemainder_jvm18.kt") + public void testUnsignedIntRemainder_jvm18() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntRemainder_jvm18.kt"); + } + + @Test + @TestMetadata("unsignedIntSmartCasts_jvm18.kt") + public void testUnsignedIntSmartCasts_jvm18() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntSmartCasts_jvm18.kt"); + } + + @Test + @TestMetadata("unsignedIntToString_jvm18.kt") + public void testUnsignedIntToString_jvm18() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntToString_jvm18.kt"); + } + + @Test + @TestMetadata("unsignedLongCompare_jvm18.kt") + public void testUnsignedLongCompare_jvm18() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongCompare_jvm18.kt"); + } + + @Test + @TestMetadata("unsignedLongDivide_jvm18.kt") + public void testUnsignedLongDivide_jvm18() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongDivide_jvm18.kt"); + } + + @Test + @TestMetadata("unsignedLongRemainder_jvm18.kt") + public void testUnsignedLongRemainder_jvm18() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongRemainder_jvm18.kt"); + } + + @Test + @TestMetadata("unsignedLongToString_jvm18.kt") + public void testUnsignedLongToString_jvm18() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongToString_jvm18.kt"); + } + + @Test + @TestMetadata("whenByUnsigned.kt") + public void testWhenByUnsigned() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/whenByUnsigned.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/valueClasses") + @TestDataPath("$PROJECT_ROOT") + public class ValueClasses { + @Test + public void testAllFilesPresentInValueClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/valueClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("conditionalExpressions.kt") + public void testConditionalExpressions() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/valueClasses/conditionalExpressions.kt"); + } + + @Test + @TestMetadata("equalsBoxTest.kt") + public void testEqualsBoxTest() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/valueClasses/equalsBoxTest.kt"); + } + + @Test + @TestMetadata("mfvcDeclaration.kt") + public void testMfvcDeclaration() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/valueClasses/mfvcDeclaration.kt"); + } + + @Test + @TestMetadata("mfvcReassignments.kt") + public void testMfvcReassignments() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/valueClasses/mfvcReassignments.kt"); + } + + @Test + @TestMetadata("passingMFVC2Functions.kt") + public void testPassingMFVC2Functions() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/valueClasses/passingMFVC2Functions.kt"); + } + + @Test + @TestMetadata("regularClassWithMFVC.kt") + public void testRegularClassWithMFVC() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/valueClasses/regularClassWithMFVC.kt"); + } + + @Test + @TestMetadata("tryExpressions.kt") + public void testTryExpressions() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/valueClasses/tryExpressions.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/varargs") + @TestDataPath("$PROJECT_ROOT") + public class Varargs { + @Test + public void testAllFilesPresentInVarargs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("doNotCopyImmediatelyCreatedArrays.kt") + public void testDoNotCopyImmediatelyCreatedArrays() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/varargs/doNotCopyImmediatelyCreatedArrays.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/when") + @TestDataPath("$PROJECT_ROOT") + public class When { + @Test + public void testAllFilesPresentInWhen() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/when"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("edgeCases.kt") + public void testEdgeCases() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/edgeCases.kt"); + } + + @Test + @TestMetadata("exhaustiveWhenInitialization.kt") + public void testExhaustiveWhenInitialization() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenInitialization.kt"); + } + + @Test + @TestMetadata("exhaustiveWhenReturn.kt") + public void testExhaustiveWhenReturn() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenReturn.kt"); + } + + @Test + @TestMetadata("exhaustiveWhenSpecialCases.kt") + public void testExhaustiveWhenSpecialCases() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenSpecialCases.kt"); + } + + @Test + @TestMetadata("exhaustiveWhenUnit.kt") + public void testExhaustiveWhenUnit() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenUnit.kt"); + } + + @Test + @TestMetadata("exhaustiveWhenUnitStatement.kt") + public void testExhaustiveWhenUnitStatement() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenUnitStatement.kt"); + } + + @Test + @TestMetadata("inlineConstValsInsideWhen.kt") + public void testInlineConstValsInsideWhen() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/inlineConstValsInsideWhen.kt"); + } + + @Test + @TestMetadata("integralWhenWithNoInlinedConstants.kt") + public void testIntegralWhenWithNoInlinedConstants() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/integralWhenWithNoInlinedConstants.kt"); + } + + @Test + @TestMetadata("kt18818.kt") + public void testKt18818() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/kt18818.kt"); + } + + @Test + @TestMetadata("lookupSwitch.kt") + public void testLookupSwitch() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/lookupSwitch.kt"); + } + + @Test + @TestMetadata("lookupSwitchWithSubjectVal.kt") + public void testLookupSwitchWithSubjectVal() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/lookupSwitchWithSubjectVal.kt"); + } + + @Test + @TestMetadata("noBoxingInDefaultWhenWithSpecialCases.kt") + public void testNoBoxingInDefaultWhenWithSpecialCases() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/noBoxingInDefaultWhenWithSpecialCases.kt"); + } + + @Test + @TestMetadata("qualifiedConstValsInsideWhen.kt") + public void testQualifiedConstValsInsideWhen() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/qualifiedConstValsInsideWhen.kt"); + } + + @Test + @TestMetadata("sealedWhenInitialization.kt") + public void testSealedWhenInitialization() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/sealedWhenInitialization.kt"); + } + + @Test + @TestMetadata("simpleConstValsInsideWhen.kt") + public void testSimpleConstValsInsideWhen() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/simpleConstValsInsideWhen.kt"); + } + + @Test + @TestMetadata("stringSwitchWithSubjectVal.kt") + public void testStringSwitchWithSubjectVal() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/stringSwitchWithSubjectVal.kt"); + } + + @Test + @TestMetadata("subjectValHasLocalVariableSlot.kt") + public void testSubjectValHasLocalVariableSlot() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/subjectValHasLocalVariableSlot.kt"); + } + + @Test + @TestMetadata("subjectValInEnumWhenHasLocalVariableSlot.kt") + public void testSubjectValInEnumWhenHasLocalVariableSlot() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/subjectValInEnumWhenHasLocalVariableSlot.kt"); + } + + @Test + @TestMetadata("subjectValInIntWhenHasLocalVariableSlot.kt") + public void testSubjectValInIntWhenHasLocalVariableSlot() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/subjectValInIntWhenHasLocalVariableSlot.kt"); + } + + @Test + @TestMetadata("subjectValInStringWhenHasLocalVariableSlot.kt") + public void testSubjectValInStringWhenHasLocalVariableSlot() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/subjectValInStringWhenHasLocalVariableSlot.kt"); + } + + @Test + @TestMetadata("switchOptimizationDuplicates.kt") + public void testSwitchOptimizationDuplicates() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/switchOptimizationDuplicates.kt"); + } + + @Test + @TestMetadata("tableSwitch.kt") + public void testTableSwitch() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/tableSwitch.kt"); + } + + @Test + @TestMetadata("tableSwitchWithSubjectVal.kt") + public void testTableSwitchWithSubjectVal() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/tableSwitchWithSubjectVal.kt"); + } + + @Test + @TestMetadata("whenNull.kt") + public void testWhenNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/whenNull.kt"); + } + + @Test + @TestMetadata("whenZero.kt") + public void testWhenZero() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/when/whenZero.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/whenEnumOptimization") + @TestDataPath("$PROJECT_ROOT") + public class WhenEnumOptimization { + @Test + public void testAllFilesPresentInWhenEnumOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/whenEnumOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bigEnum.kt") + public void testBigEnum() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/bigEnum.kt"); + } + + @Test + @TestMetadata("differentEnumClasses.kt") + public void testDifferentEnumClasses() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/differentEnumClasses.kt"); + } + + @Test + @TestMetadata("differentEnumClasses2.kt") + public void testDifferentEnumClasses2() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/differentEnumClasses2.kt"); + } + + @Test + @TestMetadata("duplicatingItems.kt") + public void testDuplicatingItems() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/duplicatingItems.kt"); + } + + @Test + @TestMetadata("expression.kt") + public void testExpression() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/expression.kt"); + } + + @Test + @TestMetadata("functionLiteralInTopLevel.kt") + public void testFunctionLiteralInTopLevel() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/functionLiteralInTopLevel.kt"); + } + + @Test + @TestMetadata("importedEnumEntry.kt") + public void testImportedEnumEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/importedEnumEntry.kt"); + } + + @Test + @TestMetadata("kt14597_full.kt") + public void testKt14597_full() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/kt14597_full.kt"); + } + + @Test + @TestMetadata("kt14802.kt") + public void testKt14802() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/kt14802.kt"); + } + + @Test + @TestMetadata("manyWhensWithinClass.kt") + public void testManyWhensWithinClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/manyWhensWithinClass.kt"); + } + + @Test + @TestMetadata("nestedWhenInCondition.kt") + public void testNestedWhenInCondition() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/nestedWhenInCondition.kt"); + } + + @Test + @TestMetadata("nonConstantEnum.kt") + public void testNonConstantEnum() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/nonConstantEnum.kt"); + } + + @Test + @TestMetadata("nullability.kt") + public void testNullability() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/nullability.kt"); + } + + @Test + @TestMetadata("subjectAny.kt") + public void testSubjectAny() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/subjectAny.kt"); + } + + @Test + @TestMetadata("whenOr.kt") + public void testWhenOr() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/whenOr.kt"); + } + + @Test + @TestMetadata("withoutElse.kt") + public void testWithoutElse() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/withoutElse.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeText/whenStringOptimization") + @TestDataPath("$PROJECT_ROOT") + public class WhenStringOptimization { + @Test + public void testAllFilesPresentInWhenStringOptimization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/whenStringOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("denseHashCode.kt") + public void testDenseHashCode() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/denseHashCode.kt"); + } + + @Test + @TestMetadata("duplicatingItems.kt") + public void testDuplicatingItems() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/duplicatingItems.kt"); + } + + @Test + @TestMetadata("duplicatingItemsSameHashCodeFewBranches.kt") + public void testDuplicatingItemsSameHashCodeFewBranches() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/duplicatingItemsSameHashCodeFewBranches.kt"); + } + + @Test + @TestMetadata("duplicatingItemsSameHashCodeMoreBranches.kt") + public void testDuplicatingItemsSameHashCodeMoreBranches() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/duplicatingItemsSameHashCodeMoreBranches.kt"); + } + + @Test + @TestMetadata("expression.kt") + public void testExpression() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/expression.kt"); + } + + @Test + @TestMetadata("inlineStringConstInsideWhen.kt") + public void testInlineStringConstInsideWhen() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/inlineStringConstInsideWhen.kt"); + } + + @Test + @TestMetadata("nullability.kt") + public void testNullability() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/nullability.kt"); + } + + @Test + @TestMetadata("sameHashCode.kt") + public void testSameHashCode() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/sameHashCode.kt"); + } + + @Test + @TestMetadata("statement.kt") + public void testStatement() throws Exception { + runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/statement.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing") + @TestDataPath("$PROJECT_ROOT") + public class BytecodeListing { + @Test + @TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt") + public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.kt"); + } + + @Test + @TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt") + public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt"); + } + + @Test + @TestMetadata("accessorForTopLevelMembers.kt") + public void testAccessorForTopLevelMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorForTopLevelMembers.kt"); + } + + @Test + @TestMetadata("accessorsForProtectedStaticJavaFieldInOtherPackage.kt") + public void testAccessorsForProtectedStaticJavaFieldInOtherPackage() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorsForProtectedStaticJavaFieldInOtherPackage.kt"); + } + + @Test + public void testAllFilesPresentInBytecodeListing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectInGenericFun.kt") + public void testAnonymousObjectInGenericFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/anonymousObjectInGenericFun.kt"); + } + + @Test + @TestMetadata("callableNameIntrinsic.kt") + public void testCallableNameIntrinsic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/callableNameIntrinsic.kt"); + } + + @Test + @TestMetadata("callableReferenceArrayConstructorArguments.kt") + public void testCallableReferenceArrayConstructorArguments() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/callableReferenceArrayConstructorArguments.kt"); + } + + @Test + @TestMetadata("cloneable.kt") + public void testCloneable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/cloneable.kt"); + } + + @Test + @TestMetadata("companionObjectVisibility_after.kt") + public void testCompanionObjectVisibility_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/companionObjectVisibility_after.kt"); + } + + @Test + @TestMetadata("companionObjectVisibility_before.kt") + public void testCompanionObjectVisibility_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/companionObjectVisibility_before.kt"); + } + + @Test + @TestMetadata("defaultImpls.kt") + public void testDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultImpls.kt"); + } + + @Test + @TestMetadata("delegationToJavaInterfaceWithWildcardType.kt") + public void testDelegationToJavaInterfaceWithWildcardType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt"); + } + + @Test + @TestMetadata("deprecatedConstantPropertyInterfaceCompanion.kt") + public void testDeprecatedConstantPropertyInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecatedConstantPropertyInterfaceCompanion.kt"); + } + + @Test + @TestMetadata("deserializeLambdaMethod.kt") + public void testDeserializeLambdaMethod() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deserializeLambdaMethod.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/enum.kt"); + } + + @Test + @TestMetadata("enumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/enumEntries.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/extension.kt"); + } + + @Test + @TestMetadata("fileClassWithPrivateDeclarationsOnly_after.kt") + public void testFileClassWithPrivateDeclarationsOnly_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/fileClassWithPrivateDeclarationsOnly_after.kt"); + } + + @Test + @TestMetadata("fileClassWithPrivateDeclarationsOnly_before.kt") + public void testFileClassWithPrivateDeclarationsOnly_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/fileClassWithPrivateDeclarationsOnly_before.kt"); + } + + @Test + @TestMetadata("immutableCollection.kt") + public void testImmutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/immutableCollection.kt"); + } + + @Test + @TestMetadata("javaDeprecated.kt") + public void testJavaDeprecated() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/javaDeprecated.kt"); + } + + @Test + @TestMetadata("jvmOverloadsAndParametersAnnotations.kt") + public void testJvmOverloadsAndParametersAnnotations() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmOverloadsAndParametersAnnotations.kt"); + } + + @Test + @TestMetadata("jvmOverloadsExternal.kt") + public void testJvmOverloadsExternal() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmOverloadsExternal.kt"); + } + + @Test + @TestMetadata("jvmRecordStructure.kt") + public void testJvmRecordStructure() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmRecordStructure.kt"); + } + + @Test + @TestMetadata("kt42137.kt") + public void testKt42137() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt42137.kt"); + } + + @Test + @TestMetadata("kt42879.kt") + public void testKt42879() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt42879.kt"); + } + + @Test + @TestMetadata("kt43217.kt") + public void testKt43217() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt43217.kt"); + } + + @Test + @TestMetadata("kt43440.kt") + public void testKt43440() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt43440.kt"); + } + + @Test + @TestMetadata("kt45853.kt") + public void testKt45853() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt45853.kt"); + } + + @Test + @TestMetadata("kt45853a.kt") + public void testKt45853a() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt45853a.kt"); + } + + @Test + @TestMetadata("kt45934.kt") + public void testKt45934() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt45934.kt"); + } + + @Test + @TestMetadata("kt47328.kt") + public void testKt47328() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt47328.kt"); + } + + @Test + @TestMetadata("kt55769.kt") + public void testKt55769() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt55769.kt"); + } + + @Test + @TestMetadata("noCollectionStubMethodsInInterface.kt") + public void testNoCollectionStubMethodsInInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noCollectionStubMethodsInInterface.kt"); + } + + @Test + @TestMetadata("noDelegationsToPrivateInterfaceMembers.kt") + public void testNoDelegationsToPrivateInterfaceMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noDelegationsToPrivateInterfaceMembers.kt"); + } + + @Test + @TestMetadata("noReceiverInCallableReferenceClasses.kt") + public void testNoReceiverInCallableReferenceClasses() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noReceiverInCallableReferenceClasses.kt"); + } + + @Test + @TestMetadata("noRemoveAtInReadOnly.kt") + public void testNoRemoveAtInReadOnly() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly.kt"); + } + + @Test + @TestMetadata("overrideWithPrimitiveUpperBound.kt") + public void testOverrideWithPrimitiveUpperBound() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/overrideWithPrimitiveUpperBound.kt"); + } + + @Test + @TestMetadata("overrideWithPrimitiveUpperBound2.kt") + public void testOverrideWithPrimitiveUpperBound2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/overrideWithPrimitiveUpperBound2.kt"); + } + + @Test + @TestMetadata("privateCompanionFields.kt") + public void testPrivateCompanionFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateCompanionFields.kt"); + } + + @Test + @TestMetadata("privateDefaultImpls.kt") + public void testPrivateDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateDefaultImpls.kt"); + } + + @Test + @TestMetadata("privateDefaultSetter.kt") + public void testPrivateDefaultSetter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateDefaultSetter.kt"); + } + + @Test + @TestMetadata("privateNestedClassInInterface.kt") + public void testPrivateNestedClassInInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateNestedClassInInterface.kt"); + } + + @Test + @TestMetadata("rawTypeInSignature.kt") + public void testRawTypeInSignature() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt"); + } + + @Test + @TestMetadata("strictfpFlag.kt") + public void testStrictfpFlag() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/strictfpFlag.kt"); + } + + @Test + @TestMetadata("synchronizedFlag.kt") + public void testSynchronizedFlag() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/synchronizedFlag.kt"); + } + + @Test + @TestMetadata("varargsBridge.kt") + public void testVarargsBridge() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/varargsBridge.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationCtorCallGenerateSynthetic.kt") + public void testAnnotationCtorCallGenerateSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/annotationCtorCallGenerateSynthetic.kt"); + } + + @Test + @TestMetadata("annotationCtorCallNoSynthetic.kt") + public void testAnnotationCtorCallNoSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/annotationCtorCallNoSynthetic.kt"); + } + + @Test + @TestMetadata("annotationsOnDelegatedMembers.kt") + public void testAnnotationsOnDelegatedMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt"); + } + + @Test + @TestMetadata("defaultTargets.kt") + public void testDefaultTargets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/defaultTargets.kt"); + } + + @Test + @TestMetadata("deprecatedJvmOverloads.kt") + public void testDeprecatedJvmOverloads() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/deprecatedJvmOverloads.kt"); + } + + @Test + @TestMetadata("internalPropertyOrTypealias.kt") + public void testInternalPropertyOrTypealias() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/internalPropertyOrTypealias.kt"); + } + + @Test + @TestMetadata("JvmSynthetic.kt") + public void testJvmSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.kt"); + } + + @Test + @TestMetadata("kt27895.kt") + public void testKt27895() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt27895.kt"); + } + + @Test + @TestMetadata("kt43399.kt") + public void testKt43399() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43399.kt"); + } + + @Test + @TestMetadata("kt43459.kt") + public void testKt43459() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43459.kt"); + } + + @Test + @TestMetadata("kt9320.kt") + public void testKt9320() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt9320.kt"); + } + + @Test + @TestMetadata("literals.kt") + public void testLiterals() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/literals.kt"); + } + + @Test + @TestMetadata("localClassWithCapturedParams.kt") + public void testLocalClassWithCapturedParams() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/localClassWithCapturedParams.kt"); + } + + @Test + @TestMetadata("noAdditionalAnnotationsInAccessors.kt") + public void testNoAdditionalAnnotationsInAccessors() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/noAdditionalAnnotationsInAccessors.kt"); + } + + @Test + @TestMetadata("noAnnotationsInSyntheticAccessors.kt") + public void testNoAnnotationsInSyntheticAccessors() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/noAnnotationsInSyntheticAccessors.kt"); + } + + @Test + @TestMetadata("onProperties.kt") + public void testOnProperties() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/onProperties.kt"); + } + + @Test + @TestMetadata("onReceiver.kt") + public void testOnReceiver() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/onReceiver.kt"); + } + + @Test + @TestMetadata("unsignedTypes.kt") + public void testUnsignedTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/unsignedTypes.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/annotations/repeatable") + @TestDataPath("$PROJECT_ROOT") + public class Repeatable { + @Test + public void testAllFilesPresentInRepeatable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaAnnotation.kt") + public void testJavaAnnotation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/javaAnnotation.kt"); + } + + @Test + @TestMetadata("kotlinAnnotation.kt") + public void testKotlinAnnotation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinAnnotation.kt"); + } + + @Test + @TestMetadata("kotlinAnnotationWithBothRepeatables.kt") + public void testKotlinAnnotationWithBothRepeatables() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinAnnotationWithBothRepeatables.kt"); + } + + @Test + @TestMetadata("kotlinSpecificTargets.kt") + public void testKotlinSpecificTargets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinSpecificTargets.kt"); + } + + @Test + @TestMetadata("multipleRepeatableOrder.kt") + public void testMultipleRepeatableOrder() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/multipleRepeatableOrder.kt"); + } + + @Test + @TestMetadata("nonRepeatedAnnotationWithItsContainer.kt") + public void testNonRepeatedAnnotationWithItsContainer() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/nonRepeatedAnnotationWithItsContainer.kt"); + } + + @Test + @TestMetadata("propertyGetterUseSiteTarget.kt") + public void testPropertyGetterUseSiteTarget() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterUseSiteTarget.kt"); + } + + @Test + @TestMetadata("retentionAndTarget.kt") + public void testRetentionAndTarget() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/retentionAndTarget.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/callableReference") + @TestDataPath("$PROJECT_ROOT") + public class CallableReference { + @Test + @TestMetadata("adaptedReference.kt") + public void testAdaptedReference() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/callableReference/adaptedReference.kt"); + } + + @Test + public void testAllFilesPresentInCallableReference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs") + @TestDataPath("$PROJECT_ROOT") + public class CollectionStubs { + @Test + @TestMetadata("abstractMapRedefiningGetAny.kt") + public void testAbstractMapRedefiningGetAny() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractMapRedefiningGetAny.kt"); + } + + @Test + public void testAllFilesPresentInCollectionStubs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("collectionByDelegation.kt") + public void testCollectionByDelegation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation.kt"); + } + + @Test + @TestMetadata("collectionByDelegation2.kt") + public void testCollectionByDelegation2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2.kt"); + } + + @Test + @TestMetadata("collectionByDelegation2WithFullJdk.kt") + public void testCollectionByDelegation2WithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt"); + } + + @Test + @TestMetadata("collectionByDelegation3.kt") + public void testCollectionByDelegation3() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3.kt"); + } + + @Test + @TestMetadata("collectionByDelegation3WithFullJdk.kt") + public void testCollectionByDelegation3WithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt"); + } + + @Test + @TestMetadata("collectionByDelegationWithFullJdk.kt") + public void testCollectionByDelegationWithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt"); + } + + @Test + @TestMetadata("collectionWithInternalRemove.kt") + public void testCollectionWithInternalRemove() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove.kt"); + } + + @Test + @TestMetadata("collectionsWithFullJdk.kt") + public void testCollectionsWithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionsWithFullJdk.kt"); + } + + @Test + @TestMetadata("customListIterator.kt") + public void testCustomListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.kt"); + } + + @Test + @TestMetadata("customMutableListIterator.kt") + public void testCustomMutableListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.kt"); + } + + @Test + @TestMetadata("emptyList.kt") + public void testEmptyList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/emptyList.kt"); + } + + @Test + @TestMetadata("extendingAbstractCollection.kt") + public void testExtendingAbstractCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/extendingAbstractCollection.kt"); + } + + @Test + @TestMetadata("inheritingFromAbstractCollections.kt") + public void testInheritingFromAbstractCollections() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractCollections.kt"); + } + + @Test + @TestMetadata("inheritingFromAbstractMap.kt") + public void testInheritingFromAbstractMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMap.kt"); + } + + @Test + @TestMetadata("inheritingFromAbstractMutableList.kt") + public void testInheritingFromAbstractMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMutableList.kt"); + } + + @Test + @TestMetadata("intArrayList.kt") + public void testIntArrayList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/intArrayList.kt"); + } + + @Test + @TestMetadata("kt44233.kt") + public void testKt44233() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/kt44233.kt"); + } + + @Test + @TestMetadata("ListAndSet.kt") + public void testListAndSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt"); + } + + @Test + @TestMetadata("mapOfPrimitivesFullJdk.kt") + public void testMapOfPrimitivesFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/mapOfPrimitivesFullJdk.kt"); + } + + @Test + @TestMetadata("noStubsForCollection.kt") + public void testNoStubsForCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForCollection.kt"); + } + + @Test + @TestMetadata("noStubsForMapImplementations.kt") + public void testNoStubsForMapImplementations() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMapImplementations.kt"); + } + + @Test + @TestMetadata("noStubsForMutableSetIterators.kt") + public void testNoStubsForMutableSetIterators() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMutableSetIterators.kt"); + } + + @Test + @TestMetadata("noStubsForSetIterators.kt") + public void testNoStubsForSetIterators() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForSetIterators.kt"); + } + + @Test + @TestMetadata("noStubsInIterable.kt") + public void testNoStubsInIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInIterable.kt"); + } + + @Test + @TestMetadata("noStubsInJavaSuperClass.kt") + public void testNoStubsInJavaSuperClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInJavaSuperClass.kt"); + } + + @Test + @TestMetadata("noStubsInMutableIterable.kt") + public void testNoStubsInMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInMutableIterable.kt"); + } + + @Test + @TestMetadata("observableMutableMap.kt") + public void testObservableMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/observableMutableMap.kt"); + } + + @Test + @TestMetadata("stubForAbstractFun.kt") + public void testStubForAbstractFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFun.kt"); + } + + @Test + @TestMetadata("stubForAbstractFunInAbstractClass.kt") + public void testStubForAbstractFunInAbstractClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClass.kt"); + } + + @Test + @TestMetadata("stubForAbstractFunInAbstractClassWithCovariantOverride.kt") + public void testStubForAbstractFunInAbstractClassWithCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClassWithCovariantOverride.kt"); + } + + @Test + @TestMetadata("stubForAbstractFunWithCovariantOverride.kt") + public void testStubForAbstractFunWithCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunWithCovariantOverride.kt"); + } + + @Test + @TestMetadata("stubLikeMethodSignatures.kt") + public void testStubLikeMethodSignatures() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubLikeMethodSignatures.kt"); + } + + @Test + @TestMetadata("stubsFromSuperclass.kt") + public void testStubsFromSuperclass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclass.kt"); + } + + @Test + @TestMetadata("stubsFromSuperclassNoBridges.kt") + public void testStubsFromSuperclassNoBridges() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures") + @TestDataPath("$PROJECT_ROOT") + public class AbstractStubSignatures { + @Test + public void testAllFilesPresentInAbstractStubSignatures() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("byteShortMap.kt") + public void testByteShortMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMap.kt"); + } + + @Test + @TestMetadata("byteShortMutableMap.kt") + public void testByteShortMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMutableMap.kt"); + } + + @Test + @TestMetadata("collection.kt") + public void testCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/collection.kt"); + } + + @Test + @TestMetadata("genericCollection.kt") + public void testGenericCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericCollection.kt"); + } + + @Test + @TestMetadata("genericMap.kt") + public void testGenericMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMap.kt"); + } + + @Test + @TestMetadata("genericMutableCollection.kt") + public void testGenericMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableCollection.kt"); + } + + @Test + @TestMetadata("genericMutableList.kt") + public void testGenericMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableList.kt"); + } + + @Test + @TestMetadata("genericMutableMap.kt") + public void testGenericMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableMap.kt"); + } + + @Test + @TestMetadata("genericStringMap.kt") + public void testGenericStringMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMap.kt"); + } + + @Test + @TestMetadata("genericStringMutableMap.kt") + public void testGenericStringMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMutableMap.kt"); + } + + @Test + @TestMetadata("iterable.kt") + public void testIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/iterable.kt"); + } + + @Test + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/iterator.kt"); + } + + @Test + @TestMetadata("list.kt") + public void testList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/list.kt"); + } + + @Test + @TestMetadata("listIterator.kt") + public void testListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/listIterator.kt"); + } + + @Test + @TestMetadata("mapEntry.kt") + public void testMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mapEntry.kt"); + } + + @Test + @TestMetadata("mutableCollection.kt") + public void testMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableCollection.kt"); + } + + @Test + @TestMetadata("mutableIterable.kt") + public void testMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableIterable.kt"); + } + + @Test + @TestMetadata("mutableIterator.kt") + public void testMutableIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableIterator.kt"); + } + + @Test + @TestMetadata("mutableList.kt") + public void testMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableList.kt"); + } + + @Test + @TestMetadata("mutableListIterator.kt") + public void testMutableListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableListIterator.kt"); + } + + @Test + @TestMetadata("mutableMapEntry.kt") + public void testMutableMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableMapEntry.kt"); + } + + @Test + @TestMetadata("numberStringMap.kt") + public void testNumberStringMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMap.kt"); + } + + @Test + @TestMetadata("numberStringMutableMap.kt") + public void testNumberStringMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMutableMap.kt"); + } + + @Test + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/set.kt"); + } + + @Test + @TestMetadata("specializedGenericMap.kt") + public void testSpecializedGenericMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/specializedGenericMap.kt"); + } + + @Test + @TestMetadata("stringGenericMap.kt") + public void testStringGenericMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMap.kt"); + } + + @Test + @TestMetadata("stringGenericMutableMap.kt") + public void testStringGenericMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMutableMap.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray") + @TestDataPath("$PROJECT_ROOT") + public class ToArray { + @Test + public void testAllFilesPresentInToArray() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("customNonGenericToArray.kt") + public void testCustomNonGenericToArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.kt"); + } + + @Test + @TestMetadata("internalGenericToArray.kt") + public void testInternalGenericToArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.kt"); + } + + @Test + @TestMetadata("noToArrayInJava.kt") + public void testNoToArrayInJava() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/noToArrayInJava.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/contextReceivers") + @TestDataPath("$PROJECT_ROOT") + public class ContextReceivers { + @Test + public void testAllFilesPresentInContextReceivers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/class.kt"); + } + + @Test + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/function.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/property.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP") + @TestDataPath("$PROJECT_ROOT") + public class FromKEEP { + @Test + public void testAllFilesPresentInFromKEEP() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("canvas.kt") + public void testCanvas() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/canvas.kt"); + } + + @Test + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/compareTo.kt"); + } + + @Test + @TestMetadata("dp.kt") + public void testDp() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/dp.kt"); + } + + @Test + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.kt"); + } + + @Test + @TestMetadata("monoidSum.kt") + public void testMonoidSum() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/monoidSum.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/coroutines") + @TestDataPath("$PROJECT_ROOT") + public class Coroutines { + @Test + public void testAllFilesPresentInCoroutines() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("coroutineContextIntrinsic.kt") + public void testCoroutineContextIntrinsic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/coroutineContextIntrinsic.kt"); + } + + @Test + @TestMetadata("coroutineFields.kt") + public void testCoroutineFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/coroutineFields.kt"); + } + + @Test + @TestMetadata("oomInReturnUnit.kt") + public void testOomInReturnUnit() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/oomInReturnUnit.kt"); + } + + @Test + @TestMetadata("privateAccessor.kt") + public void testPrivateAccessor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/privateAccessor.kt"); + } + + @Test + @TestMetadata("privateSuspendFun.kt") + public void testPrivateSuspendFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/privateSuspendFun.kt"); + } + + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendConversion.kt"); + } + + @Test + @TestMetadata("suspendImpl.kt") + public void testSuspendImpl() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl.kt"); + } + + @Test + @TestMetadata("suspendReifiedFun.kt") + public void testSuspendReifiedFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendReifiedFun.kt"); + } + + @Test + @TestMetadata("tcoContinuation.kt") + public void testTcoContinuation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/tcoContinuation.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/coroutines/spilling") + @TestDataPath("$PROJECT_ROOT") + public class Spilling { + @Test + public void testAllFilesPresentInSpilling() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/coroutines/spilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("booleanParameter.kt") + public void testBooleanParameter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/booleanParameter.kt"); + } + + @Test + @TestMetadata("component1.kt") + public void testComponent1() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/component1.kt"); + } + + @Test + @TestMetadata("destructured.kt") + public void testDestructured() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/destructured.kt"); + } + + @Test + @TestMetadata("field.kt") + public void testField() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/field.kt"); + } + + @Test + @TestMetadata("lambda.kt") + public void testLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/lambda.kt"); + } + + @Test + @TestMetadata("select.kt") + public void testSelect() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/select.kt"); + } + + @Test + @TestMetadata("unreachable.kt") + public void testUnreachable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/unreachable.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + public class DefaultArguments { + @Test + public void testAllFilesPresentInDefaultArguments() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("functionInMultifileClass.kt") + public void testFunctionInMultifileClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/functionInMultifileClass.kt"); + } + + @Test + @TestMetadata("functionInMultifileClassWithInheritedParts.kt") + public void testFunctionInMultifileClassWithInheritedParts() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/functionInMultifileClassWithInheritedParts.kt"); + } + + @Test + @TestMetadata("internalNameMangling.kt") + public void testInternalNameMangling() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/internalNameMangling.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/delegatedProperty") + @TestDataPath("$PROJECT_ROOT") + public class DelegatedProperty { + @Test + public void testAllFilesPresentInDelegatedProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("delegateMethodIsNonOverridable.kt") + public void testDelegateMethodIsNonOverridable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegatedProperty/delegateMethodIsNonOverridable.kt"); + } + + @Test + @TestMetadata("delegatedPropertiesInCompanionObject.kt") + public void testDelegatedPropertiesInCompanionObject() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegatedProperty/delegatedPropertiesInCompanionObject.kt"); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegatedProperty/localDelegatedProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/deprecated") + @TestDataPath("$PROJECT_ROOT") + public class Deprecated { + @Test + public void testAllFilesPresentInDeprecated() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/deprecated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deprecatedClass.kt") + public void testDeprecatedClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedClass.kt"); + } + + @Test + @TestMetadata("deprecatedEnumEntryFields.kt") + public void testDeprecatedEnumEntryFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedEnumEntryFields.kt"); + } + + @Test + @TestMetadata("deprecatedInMultifileClass.kt") + public void testDeprecatedInMultifileClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedInMultifileClass.kt"); + } + + @Test + @TestMetadata("deprecatedLateinitVar.kt") + public void testDeprecatedLateinitVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedLateinitVar.kt"); + } + + @Test + @TestMetadata("deprecatedProperty.kt") + public void testDeprecatedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.kt"); + } + + @Test + @TestMetadata("hidden.kt") + public void testHidden() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/hidden.kt"); + } + + @Test + @TestMetadata("inheritingDeprecation.kt") + public void testInheritingDeprecation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt"); + } + + @Test + @TestMetadata("inlineClassTypesInSignature.kt") + public void testInlineClassTypesInSignature() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/inlineClassTypesInSignature.kt"); + } + + @Test + @TestMetadata("jvmStaticDeprecatedProperty.kt") + public void testJvmStaticDeprecatedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/jvmStaticDeprecatedProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericReified.kt") + public void testGenericReified() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/genericReified.kt"); + } + + @Test + @TestMetadata("inlineOnly.kt") + public void testInlineOnly() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineOnly.kt"); + } + + @Test + @TestMetadata("InlineOnlyMultifile.kt") + public void testInlineOnlyMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineOnlyMultifile.kt"); + } + + @Test + @TestMetadata("inlineOnlyProperty.kt") + public void testInlineOnlyProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineOnlyProperty.kt"); + } + + @Test + @TestMetadata("InlineOnlyPropertyMultifile.kt") + public void testInlineOnlyPropertyMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineOnlyPropertyMultifile.kt"); + } + + @Test + @TestMetadata("inlineReified.kt") + public void testInlineReified() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReified.kt"); + } + + @Test + @TestMetadata("InlineReifiedMultifile.kt") + public void testInlineReifiedMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineReifiedMultifile.kt"); + } + + @Test + @TestMetadata("inlineReifiedProperty.kt") + public void testInlineReifiedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedProperty.kt"); + } + + @Test + @TestMetadata("InlineReifiedPropertyMultifile.kt") + public void testInlineReifiedPropertyMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineReifiedPropertyMultifile.kt"); + } + + @Test + @TestMetadata("inlineReifiedPropertyVisibility.kt") + public void testInlineReifiedPropertyVisibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedPropertyVisibility.kt"); + } + + @Test + @TestMetadata("inlineReifiedVisibility.kt") + public void testInlineReifiedVisibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedVisibility.kt"); + } + + @Test + @TestMetadata("simpleNamed.kt") + public void testSimpleNamed() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/simpleNamed.kt"); + } + + @Test + @TestMetadata("suspendInlineReified.kt") + public void testSuspendInlineReified() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo") + @TestDataPath("$PROJECT_ROOT") + public class EnclosingInfo { + @Test + public void testAllFilesPresentInEnclosingInfo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("crossinlineLambdaChain.kt") + public void testCrossinlineLambdaChain() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.kt"); + } + + @Test + @TestMetadata("kt10259.kt") + public void testKt10259() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/kt10259.kt"); + } + + @Test + @TestMetadata("lambdaInInitBlockNoPrimaryConstructor.kt") + public void testLambdaInInitBlockNoPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/lambdaInInitBlockNoPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("lambdaInInnerClassConstructor.kt") + public void testLambdaInInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/lambdaInInnerClassConstructor.kt"); + } + + @Test + @TestMetadata("transformedConstructor.kt") + public void testTransformedConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/transformedConstructor.kt"); + } + + @Test + @TestMetadata("transformedConstructorWithNestedInline.kt") + public void testTransformedConstructorWithNestedInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/transformedConstructorWithNestedInline.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + public class InlineClasses { + @Test + public void testAllFilesPresentInInlineClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotatedPropertyWithInlineClassTypeInSignature.kt") + public void testAnnotatedPropertyWithInlineClassTypeInSignature() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotatedPropertyWithInlineClassTypeInSignature.kt"); + } + + @Test + @TestMetadata("annotationGetters.kt") + public void testAnnotationGetters() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotationGetters.kt"); + } + + @Test + @TestMetadata("annotationsOnHiddenConstructor.kt") + public void testAnnotationsOnHiddenConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotationsOnHiddenConstructor.kt"); + } + + @Test + @TestMetadata("companionObjectInsideInlineClass.kt") + public void testCompanionObjectInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/companionObjectInsideInlineClass.kt"); + } + + @Test + @TestMetadata("computablePropertiesInsideInlineClass.kt") + public void testComputablePropertiesInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/computablePropertiesInsideInlineClass.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/constructor.kt"); + } + + @Test + @TestMetadata("constructorsWithDefaultParameterValues.kt") + public void testConstructorsWithDefaultParameterValues() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/constructorsWithDefaultParameterValues.kt"); + } + + @Test + @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") + public void testDefaultInterfaceMethodsInInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMethodsInInlineClass.kt"); + } + + @Test + @TestMetadata("genericChild.kt") + public void testGenericChild() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/genericChild.kt"); + } + + @Test + @TestMetadata("hiddenConstructor.kt") + public void testHiddenConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/hiddenConstructor.kt"); + } + + @Test + @TestMetadata("inlineCharSequence.kt") + public void testInlineCharSequence() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCharSequence.kt"); + } + + @Test + @TestMetadata("inlineClassMembersVisibility.kt") + public void testInlineClassMembersVisibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassMembersVisibility.kt"); + } + + @Test + @TestMetadata("inlineClassTypeParametersInConstructor.kt") + public void testInlineClassTypeParametersInConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassTypeParametersInConstructor.kt"); + } + + @Test + @TestMetadata("inlineClassWithInlineClassUnderlyingType.kt") + public void testInlineClassWithInlineClassUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithInlineClassUnderlyingType.kt"); + } + + @Test + @TestMetadata("inlineClassWithManyKindsOfMembers.kt") + public void testInlineClassWithManyKindsOfMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.kt"); + } + + @Test + @TestMetadata("jvmName.kt") + public void testJvmName() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/jvmName.kt"); + } + + @Test + @TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt") + public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt"); + } + + @Test + @TestMetadata("memberExtensionProperty.kt") + public void testMemberExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/memberExtensionProperty.kt"); + } + + @Test + @TestMetadata("noArgConstructorForInlineClassParameter.kt") + public void testNoArgConstructorForInlineClassParameter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/noArgConstructorForInlineClassParameter.kt"); + } + + @Test + @TestMetadata("noBridgesForErasedInlineClass.kt") + public void testNoBridgesForErasedInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/noBridgesForErasedInlineClass.kt"); + } + + @Test + @TestMetadata("nullabilityAnnotationsOnInlineClassMembers.kt") + public void testNullabilityAnnotationsOnInlineClassMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullabilityAnnotationsOnInlineClassMembers.kt"); + } + + @Test + @TestMetadata("nullabilityInExpansion.kt") + public void testNullabilityInExpansion() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullabilityInExpansion.kt"); + } + + @Test + @TestMetadata("nullableAndNotNullPrimitive.kt") + public void testNullableAndNotNullPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullableAndNotNullPrimitive.kt"); + } + + @Test + @TestMetadata("overridingGenericMethodWithInlineClassParameterType.kt") + public void testOverridingGenericMethodWithInlineClassParameterType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/overridingGenericMethodWithInlineClassParameterType.kt"); + } + + @Test + @TestMetadata("overridingGenericMethodWithInlineClassReturnType.kt") + public void testOverridingGenericMethodWithInlineClassReturnType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/overridingGenericMethodWithInlineClassReturnType.kt"); + } + + @Test + @TestMetadata("primaryValsWithDifferentVisibilities.kt") + public void testPrimaryValsWithDifferentVisibilities() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/primaryValsWithDifferentVisibilities.kt"); + } + + @Test + @TestMetadata("publishedApiAnnotationOnInlineClassConstructor.kt") + public void testPublishedApiAnnotationOnInlineClassConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/publishedApiAnnotationOnInlineClassConstructor.kt"); + } + + @Test + @TestMetadata("shapeOfInlineClassWithPrimitive.kt") + public void testShapeOfInlineClassWithPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/shapeOfInlineClassWithPrimitive.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers") + @TestDataPath("$PROJECT_ROOT") + public class DefaultInterfaceMembers { + @Test + public void testAllFilesPresentInDefaultInterfaceMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaDefaultInterfaceMember.kt") + public void testJavaDefaultInterfaceMember() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/javaDefaultInterfaceMember.kt"); + } + + @Test + @TestMetadata("jvmDefaultAll.kt") + public void testJvmDefaultAll() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/jvmDefaultAll.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection") + @TestDataPath("$PROJECT_ROOT") + public class InlineCollection { + @Test + public void testAllFilesPresentInInlineCollection() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("collection.kt") + public void testCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/collection.kt"); + } + + @Test + @TestMetadata("iterable.kt") + public void testIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/iterable.kt"); + } + + @Test + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/iterator.kt"); + } + + @Test + @TestMetadata("list.kt") + public void testList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/list.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/map.kt"); + } + + @Test + @TestMetadata("mapEntry.kt") + public void testMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mapEntry.kt"); + } + + @Test + @TestMetadata("mutableCollection.kt") + public void testMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableCollection.kt"); + } + + @Test + @TestMetadata("mutableIterable.kt") + public void testMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableIterable.kt"); + } + + @Test + @TestMetadata("mutableIterator.kt") + public void testMutableIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableIterator.kt"); + } + + @Test + @TestMetadata("mutableList.kt") + public void testMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableList.kt"); + } + + @Test + @TestMetadata("mutableMap.kt") + public void testMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMap.kt"); + } + + @Test + @TestMetadata("mutableMapEntry.kt") + public void testMutableMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMapEntry.kt"); + } + + @Test + @TestMetadata("mutableSet.kt") + public void testMutableSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableSet.kt"); + } + + @Test + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/set.kt"); + } + + @Test + @TestMetadata("UIntArrayWithFullJdk.kt") + public void testUIntArrayWithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/UIntArrayWithFullJdk.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineCollectionOfInlineClass { + @Test + public void testAllFilesPresentInInlineCollectionOfInlineClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("collection.kt") + public void testCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/collection.kt"); + } + + @Test + @TestMetadata("iterable.kt") + public void testIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/iterable.kt"); + } + + @Test + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/iterator.kt"); + } + + @Test + @TestMetadata("list.kt") + public void testList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/list.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/map.kt"); + } + + @Test + @TestMetadata("mapEntry.kt") + public void testMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mapEntry.kt"); + } + + @Test + @TestMetadata("mutableCollection.kt") + public void testMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableCollection.kt"); + } + + @Test + @TestMetadata("mutableIterable.kt") + public void testMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableIterable.kt"); + } + + @Test + @TestMetadata("mutableIterator.kt") + public void testMutableIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableIterator.kt"); + } + + @Test + @TestMetadata("mutableList.kt") + public void testMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableList.kt"); + } + + @Test + @TestMetadata("mutableMap.kt") + public void testMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMap.kt"); + } + + @Test + @TestMetadata("mutableMapEntry.kt") + public void testMutableMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMapEntry.kt"); + } + + @Test + @TestMetadata("mutableSet.kt") + public void testMutableSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableSet.kt"); + } + + @Test + @TestMetadata("mutableSet2.kt") + public void testMutableSet2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableSet2.kt"); + } + + @Test + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/set.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult") + @TestDataPath("$PROJECT_ROOT") + public class ReturnResult { + @Test + public void testAllFilesPresentInReturnResult() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/class.kt"); + } + + @Test + @TestMetadata("classAnyOverride.kt") + public void testClassAnyOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classAnyOverride.kt"); + } + + @Test + @TestMetadata("classGenericOverride.kt") + public void testClassGenericOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classGenericOverride.kt"); + } + + @Test + @TestMetadata("classResultOverride.kt") + public void testClassResultOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classResultOverride.kt"); + } + + @Test + @TestMetadata("interface.kt") + public void testInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/interface.kt"); + } + + @Test + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/topLevel.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430") + @TestDataPath("$PROJECT_ROOT") + public class StdlibManglingIn1430 { + @Test + public void testAllFilesPresentInStdlibManglingIn1430() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("new.kt") + public void testNew() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430/new.kt"); + } + + @Test + @TestMetadata("old.kt") + public void testOld() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430/old.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8 { + @Test + public void testAllFilesPresentInJvm8() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults") + @TestDataPath("$PROJECT_ROOT") + public class Defaults { + @Test + public void testAllFilesPresentInDefaults() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility") + @TestDataPath("$PROJECT_ROOT") + public class AllCompatibility { + @Test + public void testAllFilesPresentInAllCompatibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deprecation.kt") + public void testDeprecation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/deprecation.kt"); + } + + @Test + @TestMetadata("deprecationWithDefault.kt") + public void testDeprecationWithDefault() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/deprecationWithDefault.kt"); + } + + @Test + @TestMetadata("interfaceProperty.kt") + public void testInterfaceProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/interfaceProperty.kt"); + } + + @Test + @TestMetadata("jvmDefaultWithoutCompatibility.kt") + public void testJvmDefaultWithoutCompatibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/jvmDefaultWithoutCompatibility.kt"); + } + + @Test + @TestMetadata("noDefaultImplsOnEmptySubInterface.kt") + public void testNoDefaultImplsOnEmptySubInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/noDefaultImplsOnEmptySubInterface.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization") + @TestDataPath("$PROJECT_ROOT") + public class Specialization { + @Test + public void testAllFilesPresentInSpecialization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("primitiveAndAny.kt") + public void testPrimitiveAndAny() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization/primitiveAndAny.kt"); + } + + @Test + @TestMetadata("primitiveAndNullable.kt") + public void testPrimitiveAndNullable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization/primitiveAndNullable.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl") + @TestDataPath("$PROJECT_ROOT") + public class NoDefaultImpl { + @Test + public void testAllFilesPresentInNoDefaultImpl() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("interfaceProperty.kt") + public void testInterfaceProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl/interfaceProperty.kt"); + } + + @Test + @TestMetadata("privateAccessorNaming.kt") + public void testPrivateAccessorNaming() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl/privateAccessorNaming.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvmStatic") + @TestDataPath("$PROJECT_ROOT") + public class JvmStatic { + @Test + public void testAllFilesPresentInJvmStatic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvmStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("jvmStaticExternal.kt") + public void testJvmStaticExternal() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/jvmStaticExternal.kt"); + } + + @Test + @TestMetadata("jvmStaticPrivate.kt") + public void testJvmStaticPrivate() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/jvmStaticPrivate.kt"); + } + + @Test + @TestMetadata("jvmStaticWithDefaultParameters.kt") + public void testJvmStaticWithDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/jvmStaticWithDefaultParameters.kt"); + } + + @Test + @TestMetadata("kt31389.kt") + public void testKt31389() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/kt31389.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/localFunctions") + @TestDataPath("$PROJECT_ROOT") + public class LocalFunctions { + @Test + public void testAllFilesPresentInLocalFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericClass.kt") + public void testGenericClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/genericClass.kt"); + } + + @Test + @TestMetadata("genericInnerClass.kt") + public void testGenericInnerClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/genericInnerClass.kt"); + } + + @Test + @TestMetadata("genericLocalClass.kt") + public void testGenericLocalClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/genericLocalClass.kt"); + } + + @Test + @TestMetadata("inInitBlock.kt") + public void testInInitBlock() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/inInitBlock.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/main") + @TestDataPath("$PROJECT_ROOT") + public class Main { + @Test + public void testAllFilesPresentInMain() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/main"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("multifileSuspend.kt") + public void testMultifileSuspend() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/multifileSuspend.kt"); + } + + @Test + @TestMetadata("parameterlessMain.kt") + public void testParameterlessMain() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/parameterlessMain.kt"); + } + + @Test + @TestMetadata("parameterlessMain_before.kt") + public void testParameterlessMain_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/parameterlessMain_before.kt"); + } + + @Test + @TestMetadata("suspendMain.kt") + public void testSuspendMain() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/suspendMain.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/multifileClasses") + @TestDataPath("$PROJECT_ROOT") + public class MultifileClasses { + @Test + public void testAllFilesPresentInMultifileClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyMultifileFacade.kt") + public void testEmptyMultifileFacade() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/emptyMultifileFacade.kt"); + } + + @Test + @TestMetadata("jvmSynthetic.kt") + public void testJvmSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/jvmSynthetic.kt"); + } + + @Test + @TestMetadata("kt43519.kt") + public void testKt43519() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/kt43519.kt"); + } + + @Test + @TestMetadata("multiClassPartSourceMultipleParts.kt") + public void testMultiClassPartSourceMultipleParts() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/multiClassPartSourceMultipleParts.kt"); + } + + @Test + @TestMetadata("multiClassPartSourceSinglePart.kt") + public void testMultiClassPartSourceSinglePart() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/multiClassPartSourceSinglePart.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/multiplatform") + @TestDataPath("$PROJECT_ROOT") + public class Multiplatform { + @Test + public void testAllFilesPresentInMultiplatform() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("optionalExpectation.kt") + public void testOptionalExpectation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multiplatform/optionalExpectation.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations") + @TestDataPath("$PROJECT_ROOT") + public class NullabilityAnnotations { + @Test + public void testAllFilesPresentInNullabilityAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lateInitNotNull.kt") + public void testLateInitNotNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/lateInitNotNull.kt"); + } + + @Test + @TestMetadata("nullabilityAnnotationsForReturnType.kt") + public void testNullabilityAnnotationsForReturnType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsForReturnType.kt"); + } + + @Test + @TestMetadata("nullabilityAnnotationsOnDelegatedMembers.kt") + public void testNullabilityAnnotationsOnDelegatedMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.kt"); + } + + @Test + @TestMetadata("platformTypes.kt") + public void testPlatformTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/platformTypes.kt"); + } + + @Test + @TestMetadata("samAdapterForJavaInterfaceWithNullability.kt") + public void testSamAdapterForJavaInterfaceWithNullability() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/samAdapterForJavaInterfaceWithNullability.kt"); + } + + @Test + @TestMetadata("suspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/suspendFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/properties") + @TestDataPath("$PROJECT_ROOT") + public class Properties { + @Test + public void testAllFilesPresentInProperties() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/properties/backingField") + @TestDataPath("$PROJECT_ROOT") + public class BackingField { + @Test + public void testAllFilesPresentInBackingField() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("explicitBackingFieldsInJava.kt") + public void testExplicitBackingFieldsInJava() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/properties/backingField/explicitBackingFieldsInJava.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/sam") + @TestDataPath("$PROJECT_ROOT") + public class Sam { + @Test + public void testAllFilesPresentInSam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callableRefGenericFunInterface.kt") + public void testCallableRefGenericFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefGenericFunInterface.kt"); + } + + @Test + @TestMetadata("callableRefGenericSamInterface.kt") + public void testCallableRefGenericSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefGenericSamInterface.kt"); + } + + @Test + @TestMetadata("callableRefSpecializedFunInterface.kt") + public void testCallableRefSpecializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefSpecializedFunInterface.kt"); + } + + @Test + @TestMetadata("callableRefSpecializedSamInterface.kt") + public void testCallableRefSpecializedSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefSpecializedSamInterface.kt"); + } + + @Test + @TestMetadata("genericFunInterface.kt") + public void testGenericFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/genericFunInterface.kt"); + } + + @Test + @TestMetadata("genericSamInterface.kt") + public void testGenericSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/genericSamInterface.kt"); + } + + @Test + @TestMetadata("indySamConversionViaProxyFun.kt") + public void testIndySamConversionViaProxyFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/indySamConversionViaProxyFun.kt"); + } + + @Test + @TestMetadata("kt16650.kt") + public void testKt16650() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/kt16650.kt"); + } + + @Test + @TestMetadata("lambdaGenericFunInterface.kt") + public void testLambdaGenericFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericFunInterface.kt"); + } + + @Test + @TestMetadata("lambdaGenericSamInterface.kt") + public void testLambdaGenericSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericSamInterface.kt"); + } + + @Test + @TestMetadata("lambdaSpecializedFunInterface.kt") + public void testLambdaSpecializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaSpecializedFunInterface.kt"); + } + + @Test + @TestMetadata("lambdaSpecializedSamInterface.kt") + public void testLambdaSpecializedSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaSpecializedSamInterface.kt"); + } + + @Test + @TestMetadata("nonApproxToValidSupertype.kt") + public void testNonApproxToValidSupertype() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.kt"); + } + + @Test + @TestMetadata("nonApproxToValidSupertype2.kt") + public void testNonApproxToValidSupertype2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.kt"); + } + + @Test + @TestMetadata("privateInlineSamAdapter.kt") + public void testPrivateInlineSamAdapter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/privateInlineSamAdapter.kt"); + } + + @Test + @TestMetadata("reusedSamWrapperClasses.kt") + public void testReusedSamWrapperClasses() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/reusedSamWrapperClasses.kt"); + } + + @Test + @TestMetadata("samAdapterAndInlinedOne.kt") + public void testSamAdapterAndInlinedOne() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/samAdapterAndInlinedOne.kt"); + } + + @Test + @TestMetadata("samAdapterInInlineLambda.kt") + public void testSamAdapterInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/samAdapterInInlineLambda.kt"); + } + + @Test + @TestMetadata("samWithContravariantProjection.kt") + public void testSamWithContravariantProjection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/samWithContravariantProjection.kt"); + } + + @Test + @TestMetadata("severalProxyFunsInInit.kt") + public void testSeveralProxyFunsInInit() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/severalProxyFunsInInit.kt"); + } + + @Test + @TestMetadata("specializedFunInterface.kt") + public void testSpecializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/specializedFunInterface.kt"); + } + + @Test + @TestMetadata("specializedSamInterface.kt") + public void testSpecializedSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/specializedSamInterface.kt"); + } + + @Test + @TestMetadata("wrapperInlinedFromAnotherClass.kt") + public void testWrapperInlinedFromAnotherClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/wrapperInlinedFromAnotherClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/sealed") + @TestDataPath("$PROJECT_ROOT") + public class Sealed { + @Test + public void testAllFilesPresentInSealed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/sealed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationsOnSealedConstructor.kt") + public void testAnnotationsOnSealedConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/annotationsOnSealedConstructor.kt"); + } + + @Test + @TestMetadata("permittedSubclasses_1_7.kt") + public void testPermittedSubclasses_1_7() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/permittedSubclasses_1_7.kt"); + } + + @Test + @TestMetadata("sealedClassConstructor_1_4.kt") + public void testSealedClassConstructor_1_4() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_4.kt"); + } + + @Test + @TestMetadata("sealedClassConstructor_1_5.kt") + public void testSealedClassConstructor_1_5() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_5.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/specialBridges") + @TestDataPath("$PROJECT_ROOT") + public class SpecialBridges { + @Test + @TestMetadata("abstractCollections.kt") + public void testAbstractCollections() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractCollections.kt"); + } + + @Test + @TestMetadata("abstractIterables.kt") + public void testAbstractIterables() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractIterables.kt"); + } + + @Test + @TestMetadata("abstractLists.kt") + public void testAbstractLists() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractLists.kt"); + } + + @Test + @TestMetadata("abstractListsWithJavaBase.kt") + public void testAbstractListsWithJavaBase() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractListsWithJavaBase.kt"); + } + + @Test + @TestMetadata("abstractMutableCollectionOfPrimitive.kt") + public void testAbstractMutableCollectionOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableCollectionOfPrimitive.kt"); + } + + @Test + @TestMetadata("abstractMutableListOfPrimitive.kt") + public void testAbstractMutableListOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableListOfPrimitive.kt"); + } + + @Test + @TestMetadata("abstractMutableLists.kt") + public void testAbstractMutableLists() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableLists.kt"); + } + + @Test + @TestMetadata("abstractSets.kt") + public void testAbstractSets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractSets.kt"); + } + + @Test + public void testAllFilesPresentInSpecialBridges() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("charSequence.kt") + public void testCharSequence() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/charSequence.kt"); + } + + @Test + @TestMetadata("contains.kt") + public void testContains() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/contains.kt"); + } + + @Test + @TestMetadata("kt41123.kt") + public void testKt41123() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/kt41123.kt"); + } + + @Test + @TestMetadata("kt48945.kt") + public void testKt48945() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/kt48945.kt"); + } + + @Test + @TestMetadata("mutableCollectionOfPrimitive.kt") + public void testMutableCollectionOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/mutableCollectionOfPrimitive.kt"); + } + + @Test + @TestMetadata("mutableListOfPrimitive.kt") + public void testMutableListOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/mutableListOfPrimitive.kt"); + } + + @Test + @TestMetadata("noDefaultImplsOnEmptySubInterface.kt") + public void testNoDefaultImplsOnEmptySubInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/noDefaultImplsOnEmptySubInterface.kt"); + } + + @Test + @TestMetadata("noSpecialBridgeIfPresentInSuperClass.kt") + public void testNoSpecialBridgeIfPresentInSuperClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass.kt"); + } + + @Test + @TestMetadata("number.kt") + public void testNumber() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/number.kt"); + } + + @Test + @TestMetadata("redundantStubForSize.kt") + public void testRedundantStubForSize() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/redundantStubForSize.kt"); + } + + @Test + @TestMetadata("removeAtTwoSpecialBridges.kt") + public void testRemoveAtTwoSpecialBridges() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/removeAtTwoSpecialBridges.kt"); + } + + @Test + @TestMetadata("specialBridgeForGet.kt") + public void testSpecialBridgeForGet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.kt"); + } + + @Test + @TestMetadata("unsignedArray.kt") + public void testUnsignedArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/unsignedArray.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/specialBridges/signatures") + @TestDataPath("$PROJECT_ROOT") + public class Signatures { + @Test + public void testAllFilesPresentInSignatures() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges/signatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericClass.kt") + public void testGenericClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.kt"); + } + + @Test + @TestMetadata("implementsJavaMap.kt") + public void testImplementsJavaMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsJavaMap.kt"); + } + + @Test + @TestMetadata("implementsJavaMapWithCustomEntries.kt") + public void testImplementsJavaMapWithCustomEntries() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsJavaMapWithCustomEntries.kt"); + } + + @Test + @TestMetadata("implementsMap.kt") + public void testImplementsMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsMap.kt"); + } + + @Test + @TestMetadata("implementsSortedMap.kt") + public void testImplementsSortedMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsSortedMap.kt"); + } + + @Test + @TestMetadata("kt43610.kt") + public void testKt43610() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/kt43610.kt"); + } + + @Test + @TestMetadata("nonGenericClass.kt") + public void testNonGenericClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.kt"); + } + + @Test + @TestMetadata("partiallySpecializedClass.kt") + public void testPartiallySpecializedClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/valueClasses") + @TestDataPath("$PROJECT_ROOT") + public class ValueClasses { + @Test + public void testAllFilesPresentInValueClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/valueClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotations.kt") + public void testAnnotations() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/valueClasses/annotations.kt"); + } + + @Test + @TestMetadata("nullabilityAnnotationsOnInlineClassMembers.kt") + public void testNullabilityAnnotationsOnInlineClassMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/valueClasses/nullabilityAnnotationsOnInlineClassMembers.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/composeLike") + @TestDataPath("$PROJECT_ROOT") + public class ComposeLike { + @Test + public void testAllFilesPresentInComposeLike() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/composeLike"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("default.kt") + public void testDefault() throws Exception { + runTest("compiler/testData/codegen/composeLike/default.kt"); + } + + @Test + @TestMetadata("defaultInline.kt") + public void testDefaultInline() throws Exception { + runTest("compiler/testData/codegen/composeLike/defaultInline.kt"); + } + + @Test + @TestMetadata("defaultLocal.kt") + public void testDefaultLocal() throws Exception { + runTest("compiler/testData/codegen/composeLike/defaultLocal.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/composeLikeBytecodeText") + @TestDataPath("$PROJECT_ROOT") + public class ComposeLikeBytecodeText { + @Test + public void testAllFilesPresentInComposeLikeBytecodeText() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/composeLikeBytecodeText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("default.kt") + public void testDefault() throws Exception { + runTest("compiler/testData/codegen/composeLikeBytecodeText/default.kt"); + } + + @Test + @TestMetadata("defaultInline.kt") + public void testDefaultInline() throws Exception { + runTest("compiler/testData/codegen/composeLikeBytecodeText/defaultInline.kt"); + } + + @Test + @TestMetadata("defaultLocal.kt") + public void testDefaultLocal() throws Exception { + runTest("compiler/testData/codegen/composeLikeBytecodeText/defaultLocal.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + public class DefaultArguments { + @Test + public void testAllFilesPresentInDefaultArguments() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/defaultArguments/reflection") + @TestDataPath("$PROJECT_ROOT") + public class Reflection { + @Test + public void testAllFilesPresentInReflection() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/defaultArguments/reflection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classInClassObject.kt") + public void testClassInClassObject() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/classInClassObject.kt"); + } + + @Test + @TestMetadata("classInObject.kt") + public void testClassInObject() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/classInObject.kt"); + } + + @Test + @TestMetadata("classWithTwoDefaultArgs.kt") + public void testClassWithTwoDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/classWithTwoDefaultArgs.kt"); + } + + @Test + @TestMetadata("classWithVararg.kt") + public void testClassWithVararg() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/classWithVararg.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/enum.kt"); + } + + @Test + @TestMetadata("internalClass.kt") + public void testInternalClass() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/internalClass.kt"); + } + + @Test + @TestMetadata("privateClass.kt") + public void testPrivateClass() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/privateClass.kt"); + } + + @Test + @TestMetadata("privateConstructor.kt") + public void testPrivateConstructor() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/privateConstructor.kt"); + } + + @Test + @TestMetadata("publicClass.kt") + public void testPublicClass() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/publicClass.kt"); + } + + @Test + @TestMetadata("publicClassWoDefArgs.kt") + public void testPublicClassWoDefArgs() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/publicClassWoDefArgs.kt"); + } + + @Test + @TestMetadata("publicInnerClass.kt") + public void testPublicInnerClass() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/publicInnerClass.kt"); + } + + @Test + @TestMetadata("publicInnerClassInPrivateClass.kt") + public void testPublicInnerClassInPrivateClass() throws Exception { + runTest("compiler/testData/codegen/defaultArguments/reflection/publicInnerClassInPrivateClass.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/dumpDeclarations") + @TestDataPath("$PROJECT_ROOT") + public class DumpDeclarations { + @Test + public void testAllFilesPresentInDumpDeclarations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/dumpDeclarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotation.kt") + public void testAnnotation() throws Exception { + runTest("compiler/testData/codegen/dumpDeclarations/annotation.kt"); + } + + @Test + @TestMetadata("classMembers.kt") + public void testClassMembers() throws Exception { + runTest("compiler/testData/codegen/dumpDeclarations/classMembers.kt"); + } + + @Test + @TestMetadata("classes.kt") + public void testClasses() throws Exception { + runTest("compiler/testData/codegen/dumpDeclarations/classes.kt"); + } + + @Test + @TestMetadata("interfaces.kt") + public void testInterfaces() throws Exception { + runTest("compiler/testData/codegen/dumpDeclarations/interfaces.kt"); + } + + @Test + @TestMetadata("intermediateAbstractSuspendFunction.kt") + public void testIntermediateAbstractSuspendFunction() throws Exception { + runTest("compiler/testData/codegen/dumpDeclarations/intermediateAbstractSuspendFunction.kt"); + } + + @Test + @TestMetadata("localClasses.kt") + public void testLocalClasses() throws Exception { + runTest("compiler/testData/codegen/dumpDeclarations/localClasses.kt"); + } + + @Test + @TestMetadata("multifileFacadeMembers.kt") + public void testMultifileFacadeMembers() throws Exception { + runTest("compiler/testData/codegen/dumpDeclarations/multifileFacadeMembers.kt"); + } + + @Test + @TestMetadata("suspendLambda.kt") + public void testSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/dumpDeclarations/suspendLambda.kt"); + } + + @Test + @TestMetadata("suspendOverride.kt") + public void testSuspendOverride() throws Exception { + runTest("compiler/testData/codegen/dumpDeclarations/suspendOverride.kt"); + } + + @Test + @TestMetadata("topLevelMembers.kt") + public void testTopLevelMembers() throws Exception { + runTest("compiler/testData/codegen/dumpDeclarations/topLevelMembers.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/script") + @TestDataPath("$PROJECT_ROOT") + public class Script { + @Test + @TestMetadata("adder.kts") + public void testAdder() throws Exception { + runTest("compiler/testData/codegen/script/adder.kts"); + } + + @Test + public void testAllFilesPresentInScript() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("classLiteralInsideFunction.kts") + public void testClassLiteralInsideFunction() throws Exception { + runTest("compiler/testData/codegen/script/classLiteralInsideFunction.kts"); + } + + @Test + @TestMetadata("destructuringDeclaration.kts") + public void testDestructuringDeclaration() throws Exception { + runTest("compiler/testData/codegen/script/destructuringDeclaration.kts"); + } + + @Test + @TestMetadata("destructuringDeclarationUnderscore.kts") + public void testDestructuringDeclarationUnderscore() throws Exception { + runTest("compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts"); + } + + @Test + @TestMetadata("empty.kts") + public void testEmpty() throws Exception { + runTest("compiler/testData/codegen/script/empty.kts"); + } + + @Test + @TestMetadata("helloWorld.kts") + public void testHelloWorld() throws Exception { + runTest("compiler/testData/codegen/script/helloWorld.kts"); + } + + @Test + @TestMetadata("inline.kts") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/script/inline.kts"); + } + + @Test + @TestMetadata("innerClass.kts") + public void testInnerClass() throws Exception { + runTest("compiler/testData/codegen/script/innerClass.kts"); + } + + @Test + @TestMetadata("kt20707.kts") + public void testKt20707() throws Exception { + runTest("compiler/testData/codegen/script/kt20707.kts"); + } + + @Test + @TestMetadata("kt22029.kts") + public void testKt22029() throws Exception { + runTest("compiler/testData/codegen/script/kt22029.kts"); + } + + @Test + @TestMetadata("kt48025.kts") + public void testKt48025() throws Exception { + runTest("compiler/testData/codegen/script/kt48025.kts"); + } + + @Test + @TestMetadata("localDelegatedProperty.kts") + public void testLocalDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/script/localDelegatedProperty.kts"); + } + + @Test + @TestMetadata("localDelegatedPropertyInLambda.kts") + public void testLocalDelegatedPropertyInLambda() throws Exception { + runTest("compiler/testData/codegen/script/localDelegatedPropertyInLambda.kts"); + } + + @Test + @TestMetadata("localDelegatedPropertyNoExplicitType.kts") + public void testLocalDelegatedPropertyNoExplicitType() throws Exception { + runTest("compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts"); + } + + @Test + @TestMetadata("localFunction.kts") + public void testLocalFunction() throws Exception { + runTest("compiler/testData/codegen/script/localFunction.kts"); + } + + @Test + @TestMetadata("outerCapture.kts") + public void testOuterCapture() throws Exception { + runTest("compiler/testData/codegen/script/outerCapture.kts"); + } + + @Test + @TestMetadata("parameter.kts") + public void testParameter() throws Exception { + runTest("compiler/testData/codegen/script/parameter.kts"); + } + + @Test + @TestMetadata("parameterArray.kts") + public void testParameterArray() throws Exception { + runTest("compiler/testData/codegen/script/parameterArray.kts"); + } + + @Test + @TestMetadata("parameterClosure.kts") + public void testParameterClosure() throws Exception { + runTest("compiler/testData/codegen/script/parameterClosure.kts"); + } + + @Test + @TestMetadata("parameterLong.kts") + public void testParameterLong() throws Exception { + runTest("compiler/testData/codegen/script/parameterLong.kts"); + } + + @Test + @TestMetadata("secondLevelFunction.kts") + public void testSecondLevelFunction() throws Exception { + runTest("compiler/testData/codegen/script/secondLevelFunction.kts"); + } + + @Test + @TestMetadata("secondLevelFunctionClosure.kts") + public void testSecondLevelFunctionClosure() throws Exception { + runTest("compiler/testData/codegen/script/secondLevelFunctionClosure.kts"); + } + + @Test + @TestMetadata("secondLevelVal.kts") + public void testSecondLevelVal() throws Exception { + runTest("compiler/testData/codegen/script/secondLevelVal.kts"); + } + + @Test + @TestMetadata("simpleClass.kts") + public void testSimpleClass() throws Exception { + runTest("compiler/testData/codegen/script/simpleClass.kts"); + } + + @Test + @TestMetadata("string.kts") + public void testString() throws Exception { + runTest("compiler/testData/codegen/script/string.kts"); + } + + @Test + @TestMetadata("topLevelFunction.kts") + public void testTopLevelFunction() throws Exception { + runTest("compiler/testData/codegen/script/topLevelFunction.kts"); + } + + @Test + @TestMetadata("topLevelFunctionClosure.kts") + public void testTopLevelFunctionClosure() throws Exception { + runTest("compiler/testData/codegen/script/topLevelFunctionClosure.kts"); + } + + @Test + @TestMetadata("topLevelLocalDelegatedProperty.kts") + public void testTopLevelLocalDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts"); + } + + @Test + @TestMetadata("topLevelPropertiesWithGetSet.kts") + public void testTopLevelPropertiesWithGetSet() throws Exception { + runTest("compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts"); + } + + @Test + @TestMetadata("topLevelProperty.kts") + public void testTopLevelProperty() throws Exception { + runTest("compiler/testData/codegen/script/topLevelProperty.kts"); + } + + @Test + @TestMetadata("topLevelPropertyWithProvideDelegate.kts") + public void testTopLevelPropertyWithProvideDelegate() throws Exception { + runTest("compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts"); + } + + @Test + @TestMetadata("topLevelTypealias.kts") + public void testTopLevelTypealias() throws Exception { + runTest("compiler/testData/codegen/script/topLevelTypealias.kts"); + } + + @Test + @TestMetadata("twoDestructuringDeclarations.kts") + public void testTwoDestructuringDeclarations() throws Exception { + runTest("compiler/testData/codegen/script/twoDestructuringDeclarations.kts"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/script/scriptInstanceCapturing") + @TestDataPath("$PROJECT_ROOT") + public class ScriptInstanceCapturing { + @Test + public void testAllFilesPresentInScriptInstanceCapturing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script/scriptInstanceCapturing"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectCapturesProperty.kts") + public void testAnonymousObjectCapturesProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/anonymousObjectCapturesProperty.kts"); + } + + @Test + @TestMetadata("classCapturesExtensionIndirect.kts") + public void testClassCapturesExtensionIndirect() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.kts"); + } + + @Test + @TestMetadata("classCapturesExtensionIndirect2x.kts") + public void testClassCapturesExtensionIndirect2x() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.kts"); + } + + @Test + @TestMetadata("classCapturesFunction.kts") + public void testClassCapturesFunction() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts"); + } + + @Test + @TestMetadata("classCapturesProperty.kts") + public void testClassCapturesProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts"); + } + + @Test + @TestMetadata("classCapturesPropertyInStringTemplate.kts") + public void testClassCapturesPropertyInStringTemplate() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.kts"); + } + + @Test + @TestMetadata("classCapturesPropertyIndirect.kts") + public void testClassCapturesPropertyIndirect() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.kts"); + } + + @Test + @TestMetadata("classCapturesPropertyIndirect2x.kts") + public void testClassCapturesPropertyIndirect2x() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.kts"); + } + + @Test + @TestMetadata("companionCapturesProperty.kts") + public void testCompanionCapturesProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/companionCapturesProperty.kts"); + } + + @Test + @TestMetadata("enumCapturesProperty.kts") + public void testEnumCapturesProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumCapturesProperty.kts"); + } + + @Test + @TestMetadata("enumEntryCapturesProperty.kts") + public void testEnumEntryCapturesProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumEntryCapturesProperty.kts"); + } + + @Test + @TestMetadata("innerClassesHierarchyCaptureProperty.kts") + public void testInnerClassesHierarchyCaptureProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/innerClassesHierarchyCaptureProperty.kts"); + } + + @Test + @TestMetadata("interfaceCapturesProperty.kts") + public void testInterfaceCapturesProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/interfaceCapturesProperty.kts"); + } + + @Test + @TestMetadata("nestedAndOuterClassesCaptureProperty.kts") + public void testNestedAndOuterClassesCaptureProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedAndOuterClassesCaptureProperty.kts"); + } + + @Test + @TestMetadata("nestedClassCapturesProperty.kts") + public void testNestedClassCapturesProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedClassCapturesProperty.kts"); + } + + @Test + @TestMetadata("nestedInnerClassCapturesProperty.kts") + public void testNestedInnerClassCapturesProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.kts"); + } + + @Test + @TestMetadata("nestedToObjectClassCapturesProperty.kts") + public void testNestedToObjectClassCapturesProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedToObjectClassCapturesProperty.kts"); + } + + @Test + @TestMetadata("objectCapturesProperty.kts") + public void testObjectCapturesProperty() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesProperty.kts"); + } + + @Test + @TestMetadata("objectCapturesPropertyIndirect.kts") + public void testObjectCapturesPropertyIndirect() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyIndirect.kts"); + } + + @Test + @TestMetadata("objectCapturesPropertyViaExtension.kts") + public void testObjectCapturesPropertyViaExtension() throws Exception { + runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyViaExtension.kts"); + } + } + } +} diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/TestSetupUtils.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/TestSetupUtils.kt index 91cbeaf612b..972339a69ec 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/TestSetupUtils.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/TestSetupUtils.kt @@ -6,6 +6,7 @@ package org.jetbrains.kotlin.test import org.jetbrains.kotlin.analyzer.common.CommonPlatformAnalyzerServices +import org.jetbrains.kotlin.config.CommonConfigurationKeys.USE_FIR import org.jetbrains.kotlin.js.resolve.JsPlatformAnalyzerServices import org.jetbrains.kotlin.platform.TargetPlatform import org.jetbrains.kotlin.platform.isCommon @@ -16,6 +17,9 @@ import org.jetbrains.kotlin.platform.konan.isNative import org.jetbrains.kotlin.resolve.PlatformDependentAnalyzerServices import org.jetbrains.kotlin.resolve.jvm.platform.JvmPlatformAnalyzerServices import org.jetbrains.kotlin.resolve.konan.platform.NativePlatformAnalyzerServices +import org.jetbrains.kotlin.test.model.TestModule +import org.jetbrains.kotlin.test.services.TestServices +import org.jetbrains.kotlin.test.services.compilerConfigurationProvider import org.jetbrains.kotlin.wasm.resolve.WasmJsPlatformAnalyzerServices import java.io.File @@ -44,4 +48,12 @@ fun TargetPlatform.getAnalyzerServices(): PlatformDependentAnalyzerServices { isWasm() -> WasmJsPlatformAnalyzerServices else -> error("Unknown target platform: $this") } +} + +fun runWithEnablingFirUseOption(testServices: TestServices, module: TestModule, lambda: () -> T): T { + val compilerConfiguration = testServices.compilerConfigurationProvider.getCompilerConfiguration(module) + compilerConfiguration.put(USE_FIR, true) + val result = lambda() + compilerConfiguration.put(USE_FIR, false) + return result } \ No newline at end of file diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/BlackBoxInlinerCodegenSuppressor.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/BlackBoxInlinerCodegenSuppressor.kt index b254fb64acf..89ceaca0d0a 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/BlackBoxInlinerCodegenSuppressor.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/BlackBoxInlinerCodegenSuppressor.kt @@ -10,6 +10,7 @@ import org.jetbrains.kotlin.test.directives.CodegenTestDirectives import org.jetbrains.kotlin.test.directives.LanguageSettingsDirectives import org.jetbrains.kotlin.test.directives.model.DirectivesContainer import org.jetbrains.kotlin.test.directives.model.ValueDirective +import org.jetbrains.kotlin.test.directives.tryRetrieveIgnoredInliner import org.jetbrains.kotlin.test.model.AfterAnalysisChecker import org.jetbrains.kotlin.test.model.FrontendKinds import org.jetbrains.kotlin.test.services.TestServices @@ -43,17 +44,11 @@ class BlackBoxInlinerCodegenSuppressor(testServices: TestServices) : AfterAnalys private fun suppressForTargetFrontend( failedAssertions: List, - directive: ValueDirective + directive: ValueDirective, ): List? { - val directiveName = directive.name - val ignoreDirectives = testServices.moduleStructure.allDirectives[directive] - if (ignoreDirectives.size > 1) { - throw IllegalArgumentException("Directive $directiveName should contains only one value") - } - - val ignoreDirective = ignoreDirectives.singleOrNull() + val ignoreDirective = testServices.tryRetrieveIgnoredInliner(directive) val enabledIrInliner = LanguageSettingsDirectives.ENABLE_JVM_IR_INLINER in testServices.moduleStructure.allDirectives - val unmuteError = listOf(AssertionError("Looks like this test can be unmuted. Please remove $directiveName directive.").wrap()) + val unmuteError = listOf(AssertionError("Looks like this test can be unmuted. Please remove ${directive.name} directive.").wrap()) if (ignoreDirective == TargetInliner.IR && enabledIrInliner || ignoreDirective == TargetInliner.BYTECODE && !enabledIrInliner) { return if (failedAssertions.isNotEmpty()) emptyList() else unmuteError diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/JvmAbiConsistencyHandler.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/JvmAbiConsistencyHandler.kt new file mode 100644 index 00000000000..482feb306d9 --- /dev/null +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/JvmAbiConsistencyHandler.kt @@ -0,0 +1,193 @@ +/* + * Copyright 2010-2023 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.test.backend.handlers + +import com.google.common.collect.Sets +import org.jetbrains.kotlin.abicmp.defects.Location +import org.jetbrains.kotlin.abicmp.reports.* +import org.jetbrains.kotlin.abicmp.tag +import org.jetbrains.kotlin.abicmp.tasks.ClassTask +import org.jetbrains.kotlin.abicmp.tasks.checkerConfiguration +import org.jetbrains.kotlin.codegen.getClassFiles +import org.jetbrains.kotlin.test.backend.ir.AbiCheckerSuppressor +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives +import org.jetbrains.kotlin.test.model.* +import org.jetbrains.kotlin.test.services.JUnit5Assertions +import org.jetbrains.kotlin.test.services.TestServices +import org.jetbrains.kotlin.test.services.moduleStructure +import org.jetbrains.kotlin.test.utils.withExtension +import org.jetbrains.org.objectweb.asm.ClassReader +import org.jetbrains.org.objectweb.asm.tree.ClassNode +import java.io.ByteArrayInputStream +import java.io.ByteArrayOutputStream +import java.io.File +import java.io.PrintWriter + +class JvmAbiConsistencyHandler(testServices: TestServices) : AnalysisHandler(testServices, true, true) { + override val artifactKind: TestArtifactKind + get() = ArtifactKinds.JvmFromK1AndK2 + + + private class ModuleReport( + val missingInK1: Set, + val missingInK2: Set, + val nonEmptyClassReports: MutableList, + ) + + private class TestReport { + private val modulesWithNonEmptyReports = mutableMapOf() + + fun addModuleReport(moduleName: String, report: ModuleReport) { + modulesWithNonEmptyReports[moduleName] = report + } + + fun isEmpty(): Boolean = modulesWithNonEmptyReports.isEmpty() + + fun dumpAsPlainText(): String { + + fun TextTreeBuilderContext.reportMissing(frontendName: String, missing: Set) { + if (missing.isEmpty()) return + node("Missing in $frontendName") { + node(missing.joinToString("\n")) + } + } + + val outputStream = ByteArrayOutputStream() + val out = PrintWriter(outputStream) + + dumpTree(out) { + modulesWithNonEmptyReports.forEach { (module, report) -> + node("MODULE $module") { + reportMissing("K1", report.missingInK1) + reportMissing("K2", report.missingInK2) + report.nonEmptyClassReports.forEach { classReport -> + with(classReport) { appendClassReport() } + } + } + } + } + + return outputStream.toString() + } + + // Might be used while debugging + @Suppress("unused") + fun dumpAsHtml(): String { + fun PrintWriter.reportMissing(frontendName: String, missing: Set) { + if (missing.isEmpty()) return + println("Missing in $frontendName:") + tag("br") + println(missing.joinToString()) + tag("br") + tag("br") + } + + val outputStream = ByteArrayOutputStream() + PrintWriter(outputStream, true).use { out -> + out.tag("html") { + out.tag("head") { + out.tag("style", REPORT_CSS) + } + out.tag("body") { + modulesWithNonEmptyReports.forEach { (module, report) -> + out.tag("h2", "Module: $module") + out.reportMissing("K1", report.missingInK1) + out.reportMissing("K2", report.missingInK2) + report.nonEmptyClassReports.forEach { it.writeAsHtml(out) } + } + + } + } + } + return outputStream.toString() + } + } + + private val testReport = TestReport() + + override fun processAfterAllModules(someAssertionWasFailed: Boolean) { + val txtDiffPath = testServices.moduleStructure.originalTestDataFiles.first().withExtension(".jvm_abi.txt") + val isDifferenceExplained = testServices.moduleStructure.allDirectives.contains(CodegenTestDirectives.JVM_ABI_K1_K2_DIFF) + + if (!testReport.isEmpty()) { + JUnit5Assertions.assertEqualsToFile( + txtDiffPath, + testReport.dumpAsPlainText(), + sanitizer = { it }, + differenceObtainedMessage = { "Actual K1/K2 JVM ABI difference differs from expected" }, + fileNotFoundMessageTeamCity = fileNotFoundMessageBuilder(isTeamCityVersion = true, isDifferenceExplained), + fileNotFoundMessageLocal = fileNotFoundMessageBuilder(isTeamCityVersion = false, isDifferenceExplained) + ) + + if (!isDifferenceExplained) { + fail( + "K1/K2 JVM ABI difference obtained. Add ${CodegenTestDirectives.JVM_ABI_K1_K2_DIFF.name} directive with an explanation" + ) + } + } else { + if (isDifferenceExplained && txtDiffPath.exists()) { + fail( + "No K1/K2 JVM ABI difference found. Remove ${CodegenTestDirectives.JVM_ABI_K1_K2_DIFF.name} directive and $txtDiffPath" + ) + } + if (isDifferenceExplained) { + fail("No K1/K2 JVM ABI difference found. Remove ${CodegenTestDirectives.JVM_ABI_K1_K2_DIFF.name} directive") + } + if (txtDiffPath.exists()) { + fail("No K1/K2 JVM ABI difference found. Remove $txtDiffPath") + } + } + } + + private fun fileNotFoundMessageBuilder(isTeamCityVersion: Boolean, isDiffExplained: Boolean): ((File) -> String) = { + buildString { + if (isTeamCityVersion) { + append("Expected data file did not exist `$it`") + } else { + append("Expected data file did not exist. Generating: $it") + } + if (!isDiffExplained) { + append("\n") + append("Also add ${CodegenTestDirectives.JVM_ABI_K1_K2_DIFF.name} directive with an explanation") + } + } + } + + private fun fail(message: String) { + JUnit5Assertions.fail { message } + } + + override fun processModule(module: TestModule, info: BinaryArtifacts.JvmFromK1AndK2) { + if (AbiCheckerSuppressor.ignoredByBackendOrInliner(testServices)) return + val classesFromK1 = info.fromK1.classFileFactory.getClassFiles().associate { it.relativePath to it.asByteArray() } + val classesFromK2 = info.fromK2.classFileFactory.getClassFiles().associate { it.relativePath to it.asByteArray() } + val missingInK2 = Sets.difference(classesFromK1.keys, classesFromK2.keys) + val missingInK1 = Sets.difference(classesFromK2.keys, classesFromK1.keys) + val commonClasses = Sets.intersection(classesFromK1.keys, classesFromK2.keys) + + val nonEmptyClassReports = mutableListOf() + commonClasses.forEach { classInternalName -> + val k1ClassNode = parseClassNode(classesFromK1[classInternalName]!!) + val k2ClassNode = parseClassNode(classesFromK2[classInternalName]!!) + val classReport = ClassReport(Location.Class("", classInternalName), classInternalName, "K1", "K2", DefectReport()) + ClassTask(checkerConfiguration { + // Indication of constants is different in K2 as expected + // We simply turn the checker off to avoid producing an enormous number of difference reports + disable("class.metadata.property.hasConstant") + }, k1ClassNode, k2ClassNode, classReport).run() + if (classReport.isNotEmpty()) { + nonEmptyClassReports.add(classReport) + } + } + + if (nonEmptyClassReports.isNotEmpty() || missingInK1.isNotEmpty() || missingInK2.isNotEmpty()) { + testReport.addModuleReport(module.name, ModuleReport(missingInK1, missingInK2, nonEmptyClassReports)) + } + } + + private fun parseClassNode(byteArray: ByteArray) = + ClassNode().also { ClassReader(ByteArrayInputStream(byteArray)).accept(it, ClassReader.SKIP_CODE) } +} \ No newline at end of file diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/AbiCheckerSuppressor.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/AbiCheckerSuppressor.kt new file mode 100644 index 00000000000..394555adcac --- /dev/null +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/AbiCheckerSuppressor.kt @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2023 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.test.backend.ir + +import org.jetbrains.kotlin.test.WrappedException +import org.jetbrains.kotlin.test.backend.BlackBoxCodegenSuppressor +import org.jetbrains.kotlin.test.backend.TargetInliner +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.IGNORE_BACKEND +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.IGNORE_BACKEND_K1 +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.IGNORE_BACKEND_K2 +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.IGNORE_INLINER +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.IGNORE_INLINER_K1 +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.IGNORE_INLINER_K2 +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.JVM_ABI_K1_K2_DIFF +import org.jetbrains.kotlin.test.directives.tryRetrieveIgnoredInliner +import org.jetbrains.kotlin.test.model.AfterAnalysisChecker +import org.jetbrains.kotlin.test.services.ServiceRegistrationData +import org.jetbrains.kotlin.test.services.TestServices +import org.jetbrains.kotlin.test.services.moduleStructure +import org.jetbrains.kotlin.test.services.service +import org.jetbrains.kotlin.utils.bind + +class AbiCheckerSuppressor(testServices: TestServices) : AfterAnalysisChecker(testServices) { + + companion object { + fun ignoredByBackendOrInliner(testServices: TestServices) = testServices.ignoredByBackend || testServices.ignoredByInliner + } + + override val additionalServices: List + get() = listOf(service(BlackBoxCodegenSuppressor::SuppressionChecker.bind(null))) + + + override fun suppressIfNeeded(failedAssertions: List): List { + val isDifferenceExplained = testServices.moduleStructure.allDirectives.contains(JVM_ABI_K1_K2_DIFF) + if (ignoredByBackendOrInliner(testServices)) { + if (isDifferenceExplained) { + return listOf( + AssertionError( + "No K1/K2 JVM ABI comparison done for this test. Please remove ${JVM_ABI_K1_K2_DIFF.name} directive." + ).wrap() + ) + } + return emptyList() + } + return failedAssertions + } +} + + +private val TestServices.suppressionChecker: BlackBoxCodegenSuppressor.SuppressionChecker by TestServices.testServiceAccessor() + +private val TestServices.ignoredByBackend: Boolean + get() = listOf(IGNORE_BACKEND, IGNORE_BACKEND_K1, IGNORE_BACKEND_K2) + .any { suppressionChecker.failuresInModuleAreIgnored(moduleStructure.modules.first(), it).testMuted } + +private val TestServices.ignoredByInliner: Boolean + get() = listOf(IGNORE_INLINER, IGNORE_INLINER_K1, IGNORE_INLINER_K2).any { tryRetrieveIgnoredInliner(it) == TargetInliner.BYTECODE } \ No newline at end of file diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/IrBackendInputsFromK1AndK2.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/IrBackendInputsFromK1AndK2.kt new file mode 100644 index 00000000000..01e86058c67 --- /dev/null +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/IrBackendInputsFromK1AndK2.kt @@ -0,0 +1,20 @@ +/* + * Copyright 2010-2023 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.test.backend.ir + +import org.jetbrains.kotlin.test.model.BackendKind +import org.jetbrains.kotlin.test.model.BackendKinds +import org.jetbrains.kotlin.test.model.ResultingArtifact + +class IrBackendInputsFromK1AndK2( + val fromK1: IrBackendInput, + val fromK2: IrBackendInput, +) : ResultingArtifact.BackendInput() { + override val kind: BackendKind + get() = BackendKinds.IrBackendForK1AndK2 + + +} \ No newline at end of file diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/K1AndK2JvmIrBackendFacade.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/K1AndK2JvmIrBackendFacade.kt new file mode 100644 index 00000000000..981e788b663 --- /dev/null +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/ir/K1AndK2JvmIrBackendFacade.kt @@ -0,0 +1,32 @@ +/* + * Copyright 2010-2023 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.test.backend.ir + +import org.jetbrains.kotlin.test.model.* +import org.jetbrains.kotlin.test.runWithEnablingFirUseOption +import org.jetbrains.kotlin.test.services.TestServices + +class K1AndK2JvmIrBackendFacade(testServices: TestServices) : + BackendFacade( + testServices, + BackendKinds.IrBackendForK1AndK2, + ArtifactKinds.JvmFromK1AndK2 + ) { + + private val backendForClassicFrontend = JvmIrBackendFacade(testServices) + private val backendForFir = JvmIrBackendFacade(testServices) + + override fun transform(module: TestModule, inputArtifact: IrBackendInputsFromK1AndK2): BinaryArtifacts.JvmFromK1AndK2? { + val fromClassicFrontend = backendForClassicFrontend.transform(module, inputArtifact.fromK1) ?: return null + val fromFir = + runWithEnablingFirUseOption(testServices, module) { backendForFir.transform(module, inputArtifact.fromK2) } ?: return null + return BinaryArtifacts.JvmFromK1AndK2(fromClassicFrontend, fromFir) + } + + override fun shouldRunAnalysis(module: TestModule): Boolean { + return module.backendKind == BackendKinds.IrBackend && module.binaryKind == ArtifactKinds.JvmFromK1AndK2 + } +} \ No newline at end of file diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/builders/CompilerTestDslHelpers.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/builders/CompilerTestDslHelpers.kt index 90bb948755b..59201b2d9a2 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/builders/CompilerTestDslHelpers.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/builders/CompilerTestDslHelpers.kt @@ -14,6 +14,7 @@ import org.jetbrains.kotlin.test.builders.CompilerStepsNames.DESERIALIZED_IR_HAN import org.jetbrains.kotlin.test.builders.CompilerStepsNames.FIR_HANDLERS_STEP_NAME import org.jetbrains.kotlin.test.builders.CompilerStepsNames.JS_ARTIFACTS_HANDLERS_STEP_NAME import org.jetbrains.kotlin.test.builders.CompilerStepsNames.JVM_ARTIFACTS_HANDLERS_STEP_NAME +import org.jetbrains.kotlin.test.builders.CompilerStepsNames.JVM_FROM_K1_AND_K2_ARTIFACTS_HANDLERS_STEP_NAME import org.jetbrains.kotlin.test.builders.CompilerStepsNames.KLIB_ARTIFACTS_HANDLERS_STEP_NAME import org.jetbrains.kotlin.test.builders.CompilerStepsNames.RAW_IR_HANDLERS_STEP_NAME import org.jetbrains.kotlin.test.builders.CompilerStepsNames.WASM_ARTIFACTS_HANDLERS_STEP_NAME @@ -43,6 +44,7 @@ object CompilerStepsNames { const val JS_ARTIFACTS_HANDLERS_STEP_NAME = "js artifacts handlers" const val WASM_ARTIFACTS_HANDLERS_STEP_NAME = "wasm artifacts handlers" const val KLIB_ARTIFACTS_HANDLERS_STEP_NAME = "klib artifacts handlers" + const val JVM_FROM_K1_AND_K2_ARTIFACTS_HANDLERS_STEP_NAME = "jvm from K1 and K2 artifacts handlers" } @@ -109,6 +111,12 @@ inline fun TestConfigurationBuilder.jvmArtifactsHandlersStep( namedHandlersStep(JVM_ARTIFACTS_HANDLERS_STEP_NAME, ArtifactKinds.Jvm, init) } +inline fun TestConfigurationBuilder.jvmFromK1AndK2ArtifactsHandlersStep( + init: HandlersStepBuilder.() -> Unit = {}, +) { + namedHandlersStep(JVM_FROM_K1_AND_K2_ARTIFACTS_HANDLERS_STEP_NAME, ArtifactKinds.JvmFromK1AndK2, init) +} + inline fun TestConfigurationBuilder.jsArtifactsHandlersStep( init: HandlersStepBuilder.() -> Unit = {} ) { @@ -175,3 +183,9 @@ inline fun TestConfigurationBuilder.configureKlibArtifactsHandlersStep( ) { configureNamedHandlersStep(KLIB_ARTIFACTS_HANDLERS_STEP_NAME, ArtifactKinds.KLib, init) } + +inline fun TestConfigurationBuilder.configureJvmFromK1AndK2ArtifactHandlerStep( + init: HandlersStepBuilder.() -> Unit, +) { + configureNamedHandlersStep(JVM_FROM_K1_AND_K2_ARTIFACTS_HANDLERS_STEP_NAME, ArtifactKinds.JvmFromK1AndK2, init) +} \ No newline at end of file diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt index da789d74afe..24da3d18bf0 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt @@ -16,6 +16,8 @@ import org.jetbrains.kotlin.test.directives.model.SimpleDirectivesContainer import org.jetbrains.kotlin.test.directives.model.ValueDirective import org.jetbrains.kotlin.test.model.FrontendKinds import org.jetbrains.kotlin.test.model.TestModule +import org.jetbrains.kotlin.test.services.TestServices +import org.jetbrains.kotlin.test.services.moduleStructure object CodegenTestDirectives : SimpleDirectivesContainer() { val IGNORE_BACKEND by enumDirective( @@ -255,12 +257,17 @@ object CodegenTestDirectives : SimpleDirectivesContainer() { Suppresses test if $ENABLE_IR_FAKE_OVERRIDE_GENERATION directive enabled """.trimIndent() ) + + val JVM_ABI_K1_K2_DIFF by stringDirective( + description = "Expect difference in JVM ABI between K1 and K2", + applicability = Global + ) } fun extractIgnoredDirectiveForTargetBackend( module: TestModule, targetBackend: TargetBackend, - customIgnoreDirective: ValueDirective? = null + customIgnoreDirective: ValueDirective? = null, ): ValueDirective? = when (module.frontendKind) { FrontendKinds.ClassicFrontend -> CodegenTestDirectives.IGNORE_BACKEND_K1 @@ -280,3 +287,12 @@ fun extractIgnoredDirectiveForTargetBackend( } } } + +fun TestServices.tryRetrieveIgnoredInliner(directive: ValueDirective): TargetInliner? { + val directiveName = directive.name + val ignoreDirectives = moduleStructure.allDirectives[directive] + if (ignoreDirectives.size > 1) { + throw IllegalArgumentException("Directive $directiveName should contains only one value") + } + return ignoreDirectives.singleOrNull() +} diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2FrontendFacade.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2FrontendFacade.kt new file mode 100644 index 00000000000..834ea701c45 --- /dev/null +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2FrontendFacade.kt @@ -0,0 +1,36 @@ +/* + * Copyright 2010-2023 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.test.frontend + +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendFacade +import org.jetbrains.kotlin.test.frontend.fir.FirFrontendFacade +import org.jetbrains.kotlin.test.model.FrontendFacade +import org.jetbrains.kotlin.test.model.FrontendKinds +import org.jetbrains.kotlin.test.model.TestModule +import org.jetbrains.kotlin.test.runWithEnablingFirUseOption +import org.jetbrains.kotlin.test.services.ServiceRegistrationData +import org.jetbrains.kotlin.test.services.TestServices +import org.jetbrains.kotlin.test.services.jvm.compiledClassesManager + +class K1AndK2FrontendFacade( + testServices: TestServices, +) : FrontendFacade(testServices, FrontendKinds.ClassicAndFIR) { + + override val additionalServices: List + get() = classicFrontendFacade.additionalServices + firFrontendFacade.additionalServices + + private val classicFrontendFacade: ClassicFrontendFacade = ClassicFrontendFacade(testServices) + private val firFrontendFacade: FirFrontendFacade = FirFrontendFacade(testServices) + + override fun analyze(module: TestModule): K1AndK2OutputArtifact { + testServices.compiledClassesManager.specifiedFrontendKind = FrontendKinds.ClassicFrontend + val k1Artifact = classicFrontendFacade.analyze(module) + testServices.compiledClassesManager.specifiedFrontendKind = FrontendKinds.FIR + val k2Artifact = runWithEnablingFirUseOption(testServices, module) { firFrontendFacade.analyze(module) } + return K1AndK2OutputArtifact(k1Artifact, k2Artifact) + } + +} \ No newline at end of file diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2OutputArtifact.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2OutputArtifact.kt new file mode 100644 index 00000000000..c8f30eb90fb --- /dev/null +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2OutputArtifact.kt @@ -0,0 +1,18 @@ +/* + * Copyright 2010-2023 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.test.frontend + +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendOutputArtifact +import org.jetbrains.kotlin.test.frontend.fir.FirOutputArtifact +import org.jetbrains.kotlin.test.model.FrontendKind +import org.jetbrains.kotlin.test.model.FrontendKinds +import org.jetbrains.kotlin.test.model.ResultingArtifact + +class K1AndK2OutputArtifact(val k1Artifact: ClassicFrontendOutputArtifact, val k2Artifact: FirOutputArtifact) : + ResultingArtifact.FrontendOutput() { + override val kind: FrontendKind + get() = FrontendKinds.ClassicAndFIR +} \ No newline at end of file diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2ToIrConverter.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2ToIrConverter.kt new file mode 100644 index 00000000000..c5c847ba8d1 --- /dev/null +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/K1AndK2ToIrConverter.kt @@ -0,0 +1,38 @@ +/* + * Copyright 2010-2023 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.test.frontend + +import org.jetbrains.kotlin.test.backend.ir.IrBackendInputsFromK1AndK2 +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontend2IrConverter +import org.jetbrains.kotlin.test.frontend.fir.Fir2IrJvmResultsConverter +import org.jetbrains.kotlin.test.model.BackendKinds +import org.jetbrains.kotlin.test.model.Frontend2BackendConverter +import org.jetbrains.kotlin.test.model.FrontendKinds +import org.jetbrains.kotlin.test.model.TestModule +import org.jetbrains.kotlin.test.runWithEnablingFirUseOption +import org.jetbrains.kotlin.test.services.TestServices + +class K1AndK2ToIrConverter(testServices: TestServices) : + Frontend2BackendConverter( + testServices, + FrontendKinds.ClassicAndFIR, + BackendKinds.IrBackendForK1AndK2 + ) { + + private val classicFrontend2IrConverter = ClassicFrontend2IrConverter(testServices) + private val fir2IrConverter = Fir2IrJvmResultsConverter(testServices) + override fun transform(module: TestModule, inputArtifact: K1AndK2OutputArtifact): IrBackendInputsFromK1AndK2? { + val irFromClassic = classicFrontend2IrConverter.transform(module, inputArtifact.k1Artifact) + val irFromFir = + runWithEnablingFirUseOption(testServices, module) { fir2IrConverter.transform(module, inputArtifact.k2Artifact) } ?: return null + return IrBackendInputsFromK1AndK2(irFromClassic, irFromFir) + } + + override fun shouldRunAnalysis(module: TestModule): Boolean { + return module.backendKind == BackendKinds.IrBackend + } + +} \ No newline at end of file diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/classic/MultiplatformAnalysisConfiguration.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/classic/MultiplatformAnalysisConfiguration.kt index ad80873006d..0bf6ae5243f 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/classic/MultiplatformAnalysisConfiguration.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/classic/MultiplatformAnalysisConfiguration.kt @@ -11,7 +11,6 @@ import com.intellij.openapi.project.Project import org.jetbrains.kotlin.container.StorageComponentContainer import org.jetbrains.kotlin.container.useInstance import org.jetbrains.kotlin.descriptors.ModuleDescriptor -import org.jetbrains.kotlin.descriptors.impl.ModuleDescriptorImpl import org.jetbrains.kotlin.psi.KtFile import org.jetbrains.kotlin.resolve.CompilerEnvironment import org.jetbrains.kotlin.resolve.ModulePath @@ -86,7 +85,11 @@ internal class MultiplatformSeparateAnalysisConfiguration( if (dependencies.isEmpty()) return for (dependency in dependencies) { val dependencyModule = dependencyProvider.getTestModule(dependency.moduleName) - val artifact = dependencyProvider.getArtifact(dependencyModule, FrontendKinds.ClassicFrontend) + val artifact = if (module.frontendKind == FrontendKinds.ClassicAndFIR) { + dependencyProvider.getArtifact(dependencyModule, FrontendKinds.ClassicAndFIR).k1Artifact + } else { + dependencyProvider.getArtifact(dependencyModule, FrontendKinds.ClassicFrontend) + } /* We need create KtFiles again with new project because otherwise we can access to some caches using old project as key which may leads to missing services in core environment diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/ResultingArtifacts.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/ResultingArtifacts.kt index f71e5aa2bf8..2bd816b4597 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/ResultingArtifacts.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/ResultingArtifacts.kt @@ -25,6 +25,11 @@ object BinaryArtifacts { get() = ArtifactKinds.Jvm } + class JvmFromK1AndK2(val fromK1: Jvm, val fromK2: Jvm) : ResultingArtifact.Binary() { + override val kind: BinaryKind + get() = ArtifactKinds.JvmFromK1AndK2 + } + sealed class Js : ResultingArtifact.Binary() { abstract val outputFile: File override val kind: BinaryKind diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/TestArtifactKinds.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/TestArtifactKinds.kt index e123201a61b..72be9f21bf1 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/TestArtifactKinds.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/TestArtifactKinds.kt @@ -8,17 +8,21 @@ package org.jetbrains.kotlin.test.model import org.jetbrains.kotlin.test.TargetBackend import org.jetbrains.kotlin.test.backend.classic.ClassicBackendInput import org.jetbrains.kotlin.test.backend.ir.IrBackendInput +import org.jetbrains.kotlin.test.backend.ir.IrBackendInputsFromK1AndK2 +import org.jetbrains.kotlin.test.frontend.K1AndK2OutputArtifact import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendOutputArtifact import org.jetbrains.kotlin.test.frontend.fir.FirOutputArtifact object FrontendKinds { object ClassicFrontend : FrontendKind("ClassicFrontend") object FIR : FrontendKind("FIR") + object ClassicAndFIR : FrontendKind("ClassicAndFIR") fun fromString(string: String): FrontendKind<*>? { return when (string) { "ClassicFrontend" -> ClassicFrontend "FIR" -> FIR + "ClassicAndFIR" -> ClassicAndFIR else -> null } } @@ -35,6 +39,11 @@ object BackendKinds { */ object IrBackend : BackendKind("IrBackend") + /** + * The artifact kind representing two IRs, generated by K1 and K2 frontends respectively + */ + object IrBackendForK1AndK2 : BackendKind("TwoIrBackends") + /** * The artifact kind representing IR deserialized from a klib. */ @@ -58,6 +67,7 @@ object BackendKinds { object ArtifactKinds { object Jvm : BinaryKind("JVM") + object JvmFromK1AndK2 : BinaryKind("JvmFromK1AndK2") object Js : BinaryKind("JS") object Native : BinaryKind("Native") object Wasm : BinaryKind("Wasm") @@ -70,6 +80,7 @@ object ArtifactKinds { "Native" -> Native "Wasm" -> Wasm "KLib" -> KLib + "JvmFromK1AndK2" -> JvmFromK1AndK2 else -> null } } diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractJvmAbiConsistencyTest.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractJvmAbiConsistencyTest.kt new file mode 100644 index 00000000000..2a257a43d9c --- /dev/null +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/AbstractJvmAbiConsistencyTest.kt @@ -0,0 +1,89 @@ +/* + * Copyright 2010-2023 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.test.runners + +import org.jetbrains.kotlin.config.JvmTarget +import org.jetbrains.kotlin.test.FirParser +import org.jetbrains.kotlin.test.TargetBackend +import org.jetbrains.kotlin.test.TestJdkKind +import org.jetbrains.kotlin.test.backend.handlers.JvmAbiConsistencyHandler +import org.jetbrains.kotlin.test.backend.ir.AbiCheckerSuppressor +import org.jetbrains.kotlin.test.backend.ir.K1AndK2JvmIrBackendFacade +import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder +import org.jetbrains.kotlin.test.builders.configureJvmFromK1AndK2ArtifactHandlerStep +import org.jetbrains.kotlin.test.builders.jvmFromK1AndK2ArtifactsHandlersStep +import org.jetbrains.kotlin.test.directives.* +import org.jetbrains.kotlin.test.frontend.K1AndK2ToIrConverter +import org.jetbrains.kotlin.test.frontend.K1AndK2FrontendFacade +import org.jetbrains.kotlin.test.model.FrontendKinds +import org.jetbrains.kotlin.test.runners.codegen.commonServicesConfigurationForCodegenAndDebugTest +import org.jetbrains.kotlin.test.services.configuration.JavaForeignAnnotationType +import org.jetbrains.kotlin.test.services.configuration.JvmForeignAnnotationsConfigurator + +open class AbstractJvmAbiConsistencyTest : + AbstractKotlinCompilerWithTargetBackendTest(TargetBackend.JVM_IR), + RunnerWithTargetBackendForTestGeneratorMarker { + + override fun TestConfigurationBuilder.configuration() { + + commonServicesConfigurationForCodegenAndDebugTest(FrontendKinds.ClassicAndFIR) + + defaultDirectives { + FirDiagnosticsDirectives.FIR_PARSER with FirParser.Psi + } + + forTestsMatching("compiler/testData/codegen/bytecodeText/*") { + defaultDirectives { + +ConfigurationDirectives.WITH_STDLIB + +JvmEnvironmentConfigurationDirectives.WITH_REFLECT + } + } + + forTestsMatching("compiler/testData/codegen/boxModernJdk/*") { + defaultDirectives { + +ConfigurationDirectives.WITH_STDLIB + +CodegenTestDirectives.USE_JAVAC_BASED_ON_JVM_TARGET + +CodegenTestDirectives.IGNORE_DEXING + } + } + + forTestsMatching("compiler/testData/codegen/boxModernJdk/testsWithJava11/*") { + defaultDirectives { + JvmEnvironmentConfigurationDirectives.JDK_KIND with TestJdkKind.FULL_JDK_11 + JvmEnvironmentConfigurationDirectives.JVM_TARGET with JvmTarget.JVM_11 + } + } + + forTestsMatching("compiler/testData/codegen/boxModernJdk/testsWithJava17/*") { + defaultDirectives { + JvmEnvironmentConfigurationDirectives.JDK_KIND with TestJdkKind.FULL_JDK_17 + JvmEnvironmentConfigurationDirectives.JVM_TARGET with JvmTarget.JVM_17 + } + } + + forTestsMatching("compiler/testData/codegen/box/javaInterop/foreignAnnotationsTests/tests/*") { + defaultDirectives { + ForeignAnnotationsDirectives.ANNOTATIONS_PATH with JavaForeignAnnotationType.Annotations + } + useConfigurators(::JvmForeignAnnotationsConfigurator) + } + + useAfterAnalysisCheckers( + ::AbiCheckerSuppressor + ) + + facadeStep(::K1AndK2FrontendFacade) + facadeStep(::K1AndK2ToIrConverter) + facadeStep(::K1AndK2JvmIrBackendFacade) + + jvmFromK1AndK2ArtifactsHandlersStep {} + + configureJvmFromK1AndK2ArtifactHandlerStep { + useHandlers(::JvmAbiConsistencyHandler) + } + + } +} \ No newline at end of file diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/BaseCodegenConfiguration.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/BaseCodegenConfiguration.kt index 1bc57a133ce..4cdc79ced32 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/BaseCodegenConfiguration.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/BaseCodegenConfiguration.kt @@ -44,7 +44,7 @@ fun , B : ResultingArtifact.BackendInput jvmArtifactsHandlersStep(init = {}) } -private fun TestConfigurationBuilder.commonServicesConfigurationForCodegenAndDebugTest(targetFrontend: FrontendKind<*>) { +fun TestConfigurationBuilder.commonServicesConfigurationForCodegenAndDebugTest(targetFrontend: FrontendKind<*>) { globalDefaults { frontend = targetFrontend targetPlatform = JvmPlatforms.defaultJvmPlatform diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/JUnit5Assertions.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/JUnit5Assertions.kt index ad878f842d0..0a495a8c8b4 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/JUnit5Assertions.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/JUnit5Assertions.kt @@ -18,22 +18,39 @@ object JUnit5Assertions : AssertionsService() { val isTeamCityBuild: Boolean = System.getenv("TEAMCITY_VERSION") != null override fun assertEqualsToFile(expectedFile: File, actual: String, sanitizer: (String) -> String, message: () -> String) { + assertEqualsToFile( + expectedFile, + actual, + sanitizer, + differenceObtainedMessage = message, + fileNotFoundMessageTeamCity = { "Expected data file did not exist `$expectedFile`" }, + fileNotFoundMessageLocal = { "Expected data file did not exist. Generating: $expectedFile" }) + } + + fun assertEqualsToFile( + expectedFile: File, + actual: String, + sanitizer: (String) -> String, + differenceObtainedMessage: () -> String, + fileNotFoundMessageTeamCity: (File) -> String, + fileNotFoundMessageLocal: (File) -> String, + ) { try { val actualText = actual.trim { it <= ' ' }.convertLineSeparators().trimTrailingWhitespacesAndAddNewlineAtEOF() if (!expectedFile.exists()) { if (isTeamCityBuild) { - org.junit.jupiter.api.fail("Expected data file did not exist `$expectedFile`") + org.junit.jupiter.api.fail(fileNotFoundMessageTeamCity(expectedFile)) } else { expectedFile.parentFile.mkdirs() expectedFile.writeText(actualText) - org.junit.jupiter.api.fail("Expected data file did not exist. Generating: $expectedFile") + org.junit.jupiter.api.fail(fileNotFoundMessageLocal(expectedFile)) } } val expected = expectedFile.readText().convertLineSeparators() val expectedText = expected.trim { it <= ' ' }.trimTrailingWhitespacesAndAddNewlineAtEOF() if (sanitizer.invoke(expectedText) != sanitizer.invoke(actualText)) { throw FileComparisonFailure( - "${message()}: ${expectedFile.name}", + "${differenceObtainedMessage()}: ${expectedFile.name}", expected, actual, expectedFile.absolutePath ) } diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/ModuleStructureExtractorImpl.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/ModuleStructureExtractorImpl.kt index 1b0125797be..5e4cb34fafb 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/ModuleStructureExtractorImpl.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/ModuleStructureExtractorImpl.kt @@ -349,7 +349,7 @@ class ModuleStructureExtractorImpl( targetBackend = targetBackend, frontendKind = currentModuleFrontendKind ?: defaultsProvider.defaultFrontend, backendKind = BackendKinds.fromTargetBackend(targetBackend), - binaryKind = defaultsProvider.defaultArtifactKind ?: targetPlatform.toArtifactKind(), + binaryKind = defaultsProvider.defaultArtifactKind ?: targetPlatform.toArtifactKind(frontendKind), files = filesOfCurrentModule, allDependencies = dependenciesOfCurrentModule, directives = moduleDirectives, diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/TestModuleStructureImpl.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/TestModuleStructureImpl.kt index e6ce6c7f8d7..00d69f7d786 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/TestModuleStructureImpl.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/TestModuleStructureImpl.kt @@ -11,10 +11,7 @@ import org.jetbrains.kotlin.platform.jvm.JvmPlatforms import org.jetbrains.kotlin.platform.konan.NativePlatforms import org.jetbrains.kotlin.test.directives.model.ComposedRegisteredDirectives import org.jetbrains.kotlin.test.directives.model.RegisteredDirectives -import org.jetbrains.kotlin.test.model.BinaryKind -import org.jetbrains.kotlin.test.model.ArtifactKinds -import org.jetbrains.kotlin.test.model.DependencyKind -import org.jetbrains.kotlin.test.model.TestModule +import org.jetbrains.kotlin.test.model.* import org.jetbrains.kotlin.test.services.TestModuleStructure import java.io.File @@ -52,11 +49,14 @@ class TestModuleStructureImpl( } companion object { - fun TargetPlatform.toArtifactKind(): BinaryKind<*> = when (this) { - in JvmPlatforms.allJvmPlatforms -> ArtifactKinds.Jvm - in JsPlatforms.allJsPlatforms -> ArtifactKinds.Js - in NativePlatforms.allNativePlatforms -> ArtifactKinds.Native - else -> BinaryKind.NoArtifact + fun TargetPlatform.toArtifactKind(frontendKind: FrontendKind>): BinaryKind<*> { + if (frontendKind == FrontendKinds.ClassicAndFIR && this in JvmPlatforms.allJvmPlatforms) return ArtifactKinds.JvmFromK1AndK2 + return when (this) { + in JvmPlatforms.allJvmPlatforms -> ArtifactKinds.Jvm + in JsPlatforms.allJsPlatforms -> ArtifactKinds.Js + in NativePlatforms.allNativePlatforms -> ArtifactKinds.Native + else -> BinaryKind.NoArtifact + } } } } diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/jvm/CompiledClassesManager.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/jvm/CompiledClassesManager.kt index 99e9be2c25f..8990d2ca8c8 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/jvm/CompiledClassesManager.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/jvm/CompiledClassesManager.kt @@ -10,6 +10,8 @@ import org.jetbrains.kotlin.cli.common.CLIConfigurationKeys import org.jetbrains.kotlin.cli.common.output.writeAll import org.jetbrains.kotlin.codegen.ClassFileFactory import org.jetbrains.kotlin.test.model.ArtifactKinds +import org.jetbrains.kotlin.test.model.FrontendKind +import org.jetbrains.kotlin.test.model.FrontendKinds import org.jetbrains.kotlin.test.model.TestModule import org.jetbrains.kotlin.test.services.* import java.io.File @@ -17,14 +19,24 @@ import java.io.File class CompiledClassesManager(val testServices: TestServices) : TestService { private val compiledKotlinCache = mutableMapOf() private val compiledJavaCache = mutableMapOf() + var specifiedFrontendKind: FrontendKind<*> = FrontendKind.NoFrontend fun getCompiledKotlinDirForModule(module: TestModule, classFileFactory: ClassFileFactory? = null): File { return compiledKotlinCache.getOrPut(module) { val outputDir = testServices.getOrCreateTempDirectory("module_${module.name}_kotlin-classes") @Suppress("NAME_SHADOWING") - val classFileFactory = classFileFactory - ?: testServices.dependencyProvider.getArtifact(module, ArtifactKinds.Jvm).classFileFactory + val classFileFactory = classFileFactory ?: if (module.binaryKind == ArtifactKinds.JvmFromK1AndK2) { + require(specifiedFrontendKind == FrontendKinds.FIR || specifiedFrontendKind == FrontendKinds.ClassicFrontend) + val k1AndK2Artifact = testServices.dependencyProvider.getArtifact(module, ArtifactKinds.JvmFromK1AndK2) + if (specifiedFrontendKind == FrontendKinds.FIR) { + k1AndK2Artifact.fromK2.classFileFactory + } else { + k1AndK2Artifact.fromK1.classFileFactory + } + } else { + testServices.dependencyProvider.getArtifact(module, ArtifactKinds.Jvm).classFileFactory + } val outputFileCollection = SimpleOutputFileCollection(classFileFactory.currentOutput) val messageCollector = testServices.compilerConfigurationProvider.getCompilerConfiguration(module) .getNotNull(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY) @@ -44,4 +56,4 @@ class CompiledClassesManager(val testServices: TestServices) : TestService { } } -val TestServices.compiledClassesManager: CompiledClassesManager by TestServices.testServiceAccessor() +val TestServices.compiledClassesManager: CompiledClassesManager by TestServices.testServiceAccessor() \ No newline at end of file diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt index 82bf0c68b99..6f87e6115d5 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt @@ -80,6 +80,24 @@ fun generateJUnit5CompilerTests(args: Array, mainClassName: String?) { model("codegen/box", excludeDirs = k2BoxTestDir) } + + // We split JVM ABI tests into two parts, to avoid creation of a huge file, unable to analyze by IntelliJ with default settings + testClass("JvmAbiConsistencyTestBoxGenerated") { + model("codegen/box", excludeDirs = k2BoxTestDir) + } + + testClass("JvmAbiConsistencyTestRestGenerated") { + model("codegen/boxInline") + model("codegen/boxModernJdk") + model("codegen/bytecodeText") + model("codegen/bytecodeListing") + model("codegen/composeLike") + model("codegen/composeLikeBytecodeText") + model("codegen/defaultArguments") + model("codegen/dumpDeclarations") + model("codegen/script", pattern = "^(.*)\\.kts?$", excludedPattern = excludedCustomTestdataPattern) + } + testClass { model("codegen/box", excludeDirs = k2BoxTestDir) } diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 2aed87f3833..a5ba631039d 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -2583,6 +2583,12 @@ + + + + + + diff --git a/libraries/tools/abi-comparator/build.gradle.kts b/libraries/tools/abi-comparator/build.gradle.kts new file mode 100644 index 00000000000..b27e5ff2461 --- /dev/null +++ b/libraries/tools/abi-comparator/build.gradle.kts @@ -0,0 +1,17 @@ +plugins { + kotlin("jvm") + id("jps-compatible") +} + +dependencies { + implementation(commonDependency("org.jetbrains.intellij.deps:asm-all")) + implementation("org.apache.commons:commons-text:1.10.0") + + implementation(project(":kotlin-stdlib-jdk8")) + implementation(project(":tools:kotlinp")) + implementation(project(":kotlinx-metadata-jvm")) + implementation(project(":kotlinx-metadata")) + + testImplementation("org.jetbrains.kotlin:kotlin-test-junit") +} + diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/JvmFlags.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/JvmFlags.kt new file mode 100644 index 00000000000..08c838964a4 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/JvmFlags.kt @@ -0,0 +1,92 @@ +/* + * Copyright 2010-2023 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.abicmp + +import org.jetbrains.org.objectweb.asm.Opcodes + +class AndFlag(private val flag: Int, private val name: String) : (Int) -> String? { + override fun invoke(p1: Int): String? { + return if (p1 and flag != 0) name else null + } +} + +class AndNotFlag(private val flag: Int, private val name: String) : (Int) -> String? { + override fun invoke(p1: Int): String? { + return if (p1 and flag == 0) name else null + } +} + +fun Int.isPrivate() = + this and Opcodes.ACC_PRIVATE != 0 + +fun Int.isSynthetic() = + this and Opcodes.ACC_SYNTHETIC != 0 + +fun Int.isBridge() = + this and Opcodes.ACC_BRIDGE != 0 + +fun Int.classFlags() = + flagsList(CLASS_FLAGS) + +fun Int.methodFlags() = + flagsList(METHOD_FLAGS) + +fun Int.fieldFlags() = + flagsList(FIELD_FLAGS) + +private fun Int.flagsList(flags: List<(Int) -> String?>) = + flags.mapNotNull { flag -> + flag(this) + }.joinToString(prefix = "[", postfix = "]") { it } + + +val CLASS_FLAGS = listOf( + AndNotFlag(Opcodes.ACC_PUBLIC + Opcodes.ACC_PROTECTED + Opcodes.ACC_PRIVATE, "package-private"), + AndFlag(Opcodes.ACC_PUBLIC, "public"), + AndFlag(Opcodes.ACC_PRIVATE, "private"), + AndFlag(Opcodes.ACC_PROTECTED, "protected"), + AndFlag(Opcodes.ACC_STATIC, "static"), + AndFlag(Opcodes.ACC_FINAL, "final"), + AndFlag(Opcodes.ACC_SUPER, "super"), + AndFlag(Opcodes.ACC_INTERFACE, "interface"), + AndFlag(Opcodes.ACC_ABSTRACT, "abstract"), + AndFlag(Opcodes.ACC_SYNTHETIC, "synthetic"), + AndFlag(Opcodes.ACC_ANNOTATION, "annotation"), + AndFlag(Opcodes.ACC_ENUM, "enum"), + AndFlag(Opcodes.ACC_MODULE, "module)"), + AndFlag(Opcodes.ACC_DEPRECATED, "deprecated") +) + +val METHOD_FLAGS = listOf( + AndNotFlag(Opcodes.ACC_PUBLIC + Opcodes.ACC_PROTECTED + Opcodes.ACC_PRIVATE, "package-private"), + AndFlag(Opcodes.ACC_PUBLIC, "public"), + AndFlag(Opcodes.ACC_PRIVATE, "private"), + AndFlag(Opcodes.ACC_PROTECTED, "protected"), + AndFlag(Opcodes.ACC_STATIC, "static"), + AndFlag(Opcodes.ACC_FINAL, "final"), + AndFlag(Opcodes.ACC_SYNCHRONIZED, "synchronized"), + AndFlag(Opcodes.ACC_BRIDGE, "bridge"), + AndFlag(Opcodes.ACC_VARARGS, "vararg"), + AndFlag(Opcodes.ACC_NATIVE, "native"), + AndFlag(Opcodes.ACC_ABSTRACT, "abstract"), + AndFlag(Opcodes.ACC_STRICT, "strict"), + AndFlag(Opcodes.ACC_SYNTHETIC, "synthetic"), + AndFlag(Opcodes.ACC_DEPRECATED, "deprecated") +) + +val FIELD_FLAGS = listOf( + AndNotFlag(Opcodes.ACC_PUBLIC + Opcodes.ACC_PROTECTED + Opcodes.ACC_PRIVATE, "package-private"), + AndFlag(Opcodes.ACC_PUBLIC, "public"), + AndFlag(Opcodes.ACC_PRIVATE, "private"), + AndFlag(Opcodes.ACC_PROTECTED, "protected"), + AndFlag(Opcodes.ACC_STATIC, "static"), + AndFlag(Opcodes.ACC_FINAL, "final"), + AndFlag(Opcodes.ACC_VOLATILE, "volatile"), + AndFlag(Opcodes.ACC_TRANSIENT, "transient"), + AndFlag(Opcodes.ACC_SYNTHETIC, "synthetic"), + AndFlag(Opcodes.ACC_ENUM, "enum"), + AndFlag(Opcodes.ACC_DEPRECATED, "deprecated") +) \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/AnnotationsComparison.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/AnnotationsComparison.kt new file mode 100644 index 00000000000..2cb069adcfb --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/AnnotationsComparison.kt @@ -0,0 +1,93 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.reports.ListEntryDiff +import org.jetbrains.org.objectweb.asm.Type + +val IGNORED_ANNOTATIONS = listOf("Lkotlin/Metadata;", "Lkotlin/coroutines/jvm/internal/DebugMetadata;") + +fun compareAnnotations( + annotations1: List, + annotations2: List, +): List? { + val anns1Sorted = annotations1.preprocessAnnotations() + val anns2Sorted = annotations2.preprocessAnnotations() + + val result = ArrayList() + + var i1 = 0 + var i2 = 0 + val size1 = anns1Sorted.size + val size2 = anns2Sorted.size + while (i1 < size1 || i2 < size2) { + if (i1 < size1 && i2 < size2) { + val ann1 = anns1Sorted[i1] + val ann2 = anns2Sorted[i2] + + // TODO proper comparison for annotation argument values? + if (ann1.fullString() == ann2.fullString()) { + ++i1 + ++i2 + } else { + when { + ann1.desc == ann2.desc -> { + ++i1 + ++i2 + result.add(ListEntryDiff(ann1.fullString(), ann2.fullString())) + } + ann1.desc < ann2.desc -> { + ++i1 + result.add(ListEntryDiff(ann1.fullString(), null)) + } + else -> { + ++i2 + result.add(ListEntryDiff(null, ann2.fullString())) + } + } + } + } else { + if (i1 < size1) { + val ann1 = anns1Sorted[i1] + ++i1 + result.add(ListEntryDiff(ann1.fullString(), null)) + } else { + val ann2 = anns2Sorted[i2] + ++i2 + result.add(ListEntryDiff(null, ann2.fullString())) + } + } + } + + return if (result.isEmpty()) null else result +} + +private fun List.preprocessAnnotations() = + filter { it.desc !in IGNORED_ANNOTATIONS }.sortedBy { it.fullString() } + +private fun AnnotationEntry.shortString(): String = + if (values.isEmpty()) + "@$desc" + else + "@$desc(...)" + +private fun AnnotationEntry.fullString(): String = + if (values.isEmpty()) + "@$desc" + else + "@$desc( ${values.joinToString { it.toValueString() }} )" + +private fun Pair.toValueString(): String = + "$first: ${second.toValueString()}" + +private fun Any?.toValueString(): String = + when (this) { + null -> "NULL" + is Type -> "<$descriptor>" + is List<*> -> joinToString(separator = ", ", prefix = "#{ ", postfix = " }") { it.toValueString() } + is Array<*> -> toList().toValueString() + else -> toString() + } \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/AnnotationsProperty.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/AnnotationsProperty.kt new file mode 100644 index 00000000000..c24c444ff9e --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/AnnotationsProperty.kt @@ -0,0 +1,38 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.org.objectweb.asm.tree.AnnotationNode + +data class AnnotationEntry(val desc: String, val values: List>) + +fun List?.toAnnotations() = + this?.run { + mapNotNull { it.toAnnotation() } + .sortedBy { it.desc } + } ?: emptyList() + +fun Any?.toAnnotation(): AnnotationEntry? { + val ann = this as? AnnotationNode ?: return null + val annValues = ann.values.orEmpty() + val iter = annValues.iterator() + val values = ArrayList>() + while (iter.hasNext()) { + val key = iter.next() as String + val value = iter.next()!!.toAnnotationArgumentValue() + values.add(key to value) + } + return AnnotationEntry(ann.desc, values.sortedBy { it.first }) +} + +fun Any.toAnnotationArgumentValue(): Any = + when (this) { + is Array<*> -> map { it!!.toAnnotationArgumentValue() } + is List<*> -> map { it!!.toAnnotationArgumentValue() } + is AnnotationNode -> this.toAnnotation()!! + else -> this + } + diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/Checker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/Checker.kt new file mode 100644 index 00000000000..abac739d7e9 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/Checker.kt @@ -0,0 +1,41 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.defects.DefectType +import org.jetbrains.kotlin.abicmp.defects.VALUE1_A +import org.jetbrains.kotlin.abicmp.defects.VALUE2_A +import kotlin.reflect.KProperty1 + +interface Checker { + val name: String +} + + +abstract class PropertyChecker(final override val name: String) : Checker { + protected val defectType = DefectType(this.name, "Attribute value mismatch", VALUE1_A, VALUE2_A) + + protected open fun areEqual(value1: T, value2: T) = + value1 == value2 + + protected open fun valueToHtml(value: T, other: T): String = value?.toString() ?: "NULL" + + protected abstract fun getProperty(node: E): T +} + + +abstract class AnnotationsChecker( + final override val name: String, + private val annotationsProperty: KProperty1?>, +) : Checker { + + protected fun getAnnotations(node: N) = + annotationsProperty.get(node).orEmpty().toAnnotations() + + val mismatchDefect = DefectType("${name}.mismatch", "Annotation value mismatch", VALUE1_A, VALUE2_A) + val missing1Defect = DefectType("${name}.missing1", "Missing annotation in #1", VALUE2_A) + val missing2Defect = DefectType("${name}.missing2", "Missing annotation in #2", VALUE1_A) +} diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassChecker.kt new file mode 100644 index 00000000000..2fbabfb44c2 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassChecker.kt @@ -0,0 +1,67 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.reports.ClassReport +import org.jetbrains.kotlin.abicmp.reports.NamedDiffEntry +import org.jetbrains.org.objectweb.asm.tree.ClassNode +import kotlin.reflect.KProperty1 + +interface ClassChecker : Checker { + fun check(class1: ClassNode, class2: ClassNode, report: ClassReport) +} + +abstract class ClassPropertyChecker(name: String) : + PropertyChecker("class.$name"), + ClassChecker { + + override fun check(class1: ClassNode, class2: ClassNode, report: ClassReport) { + val value1 = getProperty(class1) + val value2 = getProperty(class2) + if (!areEqual(value1, value2)) { + report.addPropertyDiff( + defectType, + NamedDiffEntry( + name, + valueToHtml(value1, value2), + valueToHtml(value2, value1) + ) + ) + } + } +} + +inline fun classPropertyChecker(name: String, crossinline get: (ClassNode) -> T) = + object : ClassPropertyChecker(name) { + override fun getProperty(node: ClassNode): T = + get(node) + } + +fun classPropertyChecker(classProperty: KProperty1) = + classPropertyChecker(classProperty.name) { classProperty.get(it) } + +inline fun classPropertyChecker(classProperty: KProperty1, crossinline html: (T) -> String) = + object : ClassPropertyChecker(classProperty.name) { + override fun getProperty(node: ClassNode): T = + classProperty.get(node) + + override fun valueToHtml(value: T, other: T): String = + html(value) + } + +fun classPropertyChecker(name: String, classProperty: KProperty1) = + classPropertyChecker(name) { classProperty.get(it) } + +class ClassAnnotationsChecker(annotationsProperty: KProperty1?>) : + AnnotationsChecker("class.${annotationsProperty.name}", annotationsProperty), + ClassChecker { + + override fun check(class1: ClassNode, class2: ClassNode, report: ClassReport) { + val anns1 = getAnnotations(class1) + val anns2 = getAnnotations(class2) + report.addAnnotationDiffs(this, compareAnnotations(anns1, anns2) ?: return) + } +} diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataChecker.kt new file mode 100644 index 00000000000..317f944188c --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataChecker.kt @@ -0,0 +1,13 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.ClassMetadataReport + +interface ClassMetadataChecker : Checker { + fun check(metadata1: KotlinClassMetadata.Class, metadata2: KotlinClassMetadata.Class, report: ClassMetadataReport) +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataListChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataListChecker.kt new file mode 100644 index 00000000000..8162519989f --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataListChecker.kt @@ -0,0 +1,29 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.ClassMetadataReport + +abstract class ClassMetadataListChecker(name: String) : ClassMetadataChecker { + override fun check(metadata1: KotlinClassMetadata.Class, metadata2: KotlinClassMetadata.Class, report: ClassMetadataReport) { + val list1 = getList(metadata1) + val list2 = getList(metadata2) + + val diff = compareLists(list1.sorted(), list2.sorted()) ?: return + + report.addMembersListDiffs(diff) + } + + abstract fun getList(metadata: KotlinClassMetadata.Class): List + + override val name: String = "class.metadata.$name" +} + +fun classMetadataListChecker(name: String, listGetter: (KotlinClassMetadata.Class) -> List) = + object : ClassMetadataListChecker(name) { + override fun getList(metadata: KotlinClassMetadata.Class) = listGetter(metadata) + } \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataPropertyChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataPropertyChecker.kt new file mode 100644 index 00000000000..818f9054e2f --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/ClassMetadataPropertyChecker.kt @@ -0,0 +1,27 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.ClassMetadataReport +import org.jetbrains.kotlin.abicmp.reports.NamedDiffEntry + +abstract class ClassMetadataPropertyChecker(name: String) : PropertyChecker("class.metadata.$name"), + ClassMetadataChecker { + + override fun check(metadata1: KotlinClassMetadata.Class, metadata2: KotlinClassMetadata.Class, report: ClassMetadataReport) { + val value1 = getProperty(metadata1) + val value2 = getProperty(metadata2) + if (!areEqual(value1, value2)) { + report.addPropertyDiff(NamedDiffEntry(name, valueToHtml(value1, value2), valueToHtml(value2, value1))) + } + } +} + +fun classMetadataPropertyChecker(name: String, propertyGetter: (KotlinClassMetadata.Class) -> String) = + object : ClassMetadataPropertyChecker(name) { + override fun getProperty(node: KotlinClassMetadata.Class) = propertyGetter(node) + } \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldAnnotationsChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldAnnotationsChecker.kt new file mode 100644 index 00000000000..69a365cf570 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldAnnotationsChecker.kt @@ -0,0 +1,22 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.reports.FieldReport +import org.jetbrains.org.objectweb.asm.tree.FieldNode +import kotlin.reflect.KProperty1 + +class FieldAnnotationsChecker(annotationsProperty: KProperty1?>) : + AnnotationsChecker("field.${annotationsProperty.name}", annotationsProperty), + FieldChecker { + + override fun check(field1: FieldNode, field2: FieldNode, report: FieldReport) { + val anns1 = getAnnotations(field1) + val anns2 = getAnnotations(field2) + val annDiff = compareAnnotations(anns1, anns2) ?: return + report.addAnnotationDiffs(this, annDiff) + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldChecker.kt new file mode 100644 index 00000000000..e84df77f053 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldChecker.kt @@ -0,0 +1,36 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.reports.FieldReport +import org.jetbrains.org.objectweb.asm.tree.FieldNode +import kotlin.reflect.KProperty1 + +interface FieldChecker : Checker { + fun check(field1: FieldNode, field2: FieldNode, report: FieldReport) +} + +inline fun fieldPropertyChecker(name: String, crossinline get: (FieldNode) -> T) = + object : FieldPropertyChecker(name) { + override fun getProperty(node: FieldNode): T = + get(node) + } + +fun fieldPropertyChecker(fieldProperty: KProperty1) = + fieldPropertyChecker(fieldProperty.name) { fieldProperty.get(it) } + +fun fieldPropertyChecker(name: String, fieldProperty: KProperty1) = + fieldPropertyChecker(name) { fieldProperty.get(it) } + +inline fun fieldPropertyChecker(fieldProperty: KProperty1, crossinline html: (T) -> String) = + object : FieldPropertyChecker(fieldProperty.name) { + override fun getProperty(node: FieldNode): T = + fieldProperty.get(node) + + override fun valueToHtml(value: T, other: T): String = + html(value) + } + diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldPropertyChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldPropertyChecker.kt new file mode 100644 index 00000000000..dbc853a3f27 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldPropertyChecker.kt @@ -0,0 +1,30 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.reports.FieldReport +import org.jetbrains.kotlin.abicmp.reports.NamedDiffEntry +import org.jetbrains.org.objectweb.asm.tree.FieldNode + +abstract class FieldPropertyChecker(name: String) : + PropertyChecker("field.$name"), + FieldChecker { + + override fun check(field1: FieldNode, field2: FieldNode, report: FieldReport) { + val value1 = getProperty(field1) + val value2 = getProperty(field2) + if (!areEqual(value1, value2)) { + report.addPropertyDiff( + defectType, + NamedDiffEntry( + name, + valueToHtml(value1, value2), + valueToHtml(value2, value1) + ) + ) + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldsListChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldsListChecker.kt new file mode 100644 index 00000000000..12be913972a --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldsListChecker.kt @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.defects.DefectType +import org.jetbrains.kotlin.abicmp.defects.FIELD_A +import org.jetbrains.kotlin.abicmp.fieldFlags +import org.jetbrains.kotlin.abicmp.isSynthetic +import org.jetbrains.kotlin.abicmp.listOfNotNull +import org.jetbrains.kotlin.abicmp.reports.ClassReport +import org.jetbrains.kotlin.abicmp.reports.ListEntryDiff +import org.jetbrains.kotlin.abicmp.tasks.fieldId +import org.jetbrains.org.objectweb.asm.Opcodes +import org.jetbrains.org.objectweb.asm.tree.ClassNode +import org.jetbrains.org.objectweb.asm.tree.FieldNode + +class FieldsListChecker : ClassChecker { + override val name = "class.fields" + + val missing1Defect = DefectType("${name}.missing1", "Missing field in #1", FIELD_A) + val missing2Defect = DefectType("${name}.missing2", "Missing field in #2", FIELD_A) + + override fun check(class1: ClassNode, class2: ClassNode, report: ClassReport) { + val fields1 = class1.loadFields() + val fields2 = class2.loadFields() + + val relevantFieldIds = fields1.keys.union(fields2.keys) + .filter { + val field1 = fields1[it] + val field2 = fields2[it] + !(field1 != null && !field1.access.isSynthetic() || + field2 != null && !field2.access.isSynthetic()) + }.toSet() + + val fieldIds1 = fields1.keys.intersect(relevantFieldIds).sorted() + + val fieldIds2 = fields2.keys.intersect(relevantFieldIds).sorted() + + val listDiff = compareLists(fieldIds1, fieldIds2) ?: return + report.addFieldListDiffs( + this, + listDiff.map { + ListEntryDiff( + it.value1?.toFieldWithFlags(fields1), + it.value2?.toFieldWithFlags(fields2) + ) + } + ) + } + + private fun String.toFieldWithFlags(fields: Map): String { + val field = fields[this] ?: return this + return "$this ${field.access.fieldFlags()}" + } +} + +fun ClassNode.loadFields(): Map = + fields.listOfNotNull().filter { + (it.access and Opcodes.ACC_PUBLIC) != 0 || + (it.access and Opcodes.ACC_PROTECTED) != 0 + }.associateBy { it.fieldId() } diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/GenericMetadataChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/GenericMetadataChecker.kt new file mode 100644 index 00000000000..052e6ca67b8 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/GenericMetadataChecker.kt @@ -0,0 +1,50 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.KmConstructor +import kotlinx.metadata.KmFunction +import kotlinx.metadata.KmProperty +import kotlinx.metadata.KmTypeAlias +import org.jetbrains.kotlin.abicmp.reports.MetadataPropertyReport +import org.jetbrains.kotlin.abicmp.reports.NamedDiffEntry + +interface GenericMetadataChecker : Checker { + fun check(metadata1: T, metadata2: T, report: MetadataPropertyReport) +} + +abstract class GenericMetadataPropertyChecker(name: String) : + PropertyChecker("class.metadata.$name"), + GenericMetadataChecker { + + override fun check(metadata1: T, metadata2: T, report: MetadataPropertyReport) { + val value1 = getProperty(metadata1) + val value2 = getProperty(metadata2) + if (!areEqual(value1, value2)) { + report.addPropertyDiff(NamedDiffEntry(name, value1, value2)) + } + } +} + +fun constructorMetadataPropertyChecker(name: String, propertyGetter: (KmConstructor) -> String) = + object : GenericMetadataPropertyChecker("constructor.$name") { + override fun getProperty(node: KmConstructor) = propertyGetter(node) + } + +fun functionMetadataPropertyChecker(name: String, propertyGetter: (KmFunction) -> String) = + object : GenericMetadataPropertyChecker("function.$name") { + override fun getProperty(node: KmFunction) = propertyGetter(node) + } + +fun typeAliasMetadataPropertyChecker(name: String, propertyGetter: (KmTypeAlias) -> String) = + object : GenericMetadataPropertyChecker("typeAlias.$name") { + override fun getProperty(node: KmTypeAlias) = propertyGetter(node) + } + +fun propertyMetadataPropertyChecker(name: String, propertyGetter: (KmProperty) -> String) = + object : GenericMetadataPropertyChecker("property.$name") { + override fun getProperty(node: KmProperty) = propertyGetter(node) + } \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/InnerClassesListChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/InnerClassesListChecker.kt new file mode 100644 index 00000000000..bab1266756c --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/InnerClassesListChecker.kt @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.classFlags +import org.jetbrains.kotlin.abicmp.defects.DefectType +import org.jetbrains.kotlin.abicmp.defects.INNER_CLASS_A +import org.jetbrains.kotlin.abicmp.isSynthetic +import org.jetbrains.kotlin.abicmp.listOfNotNull +import org.jetbrains.kotlin.abicmp.reports.ClassReport +import org.jetbrains.kotlin.abicmp.reports.ListEntryDiff +import org.jetbrains.org.objectweb.asm.tree.ClassNode +import org.jetbrains.org.objectweb.asm.tree.InnerClassNode + +class InnerClassesListChecker : ClassChecker { + override val name = "class.innerClasses" + + val missing1Defect = DefectType("${name}.missing1", "Missing inner class in #1", INNER_CLASS_A) + val missing2Defect = DefectType("${name}.missing2", "Missing inner class in #2", INNER_CLASS_A) + + override fun check(class1: ClassNode, class2: ClassNode, report: ClassReport) { + val innerClasses1 = class1.loadInnerClasses() + val innerClasses2 = class2.loadInnerClasses() + + val relevantInnerClassNames = + innerClasses1.keys.union(innerClasses2.keys).filter { + val ic1 = innerClasses1[it] + val ic2 = innerClasses2[it] + ic1 != null && !ic1.access.isSynthetic() || + ic2 != null && ic2.access.isSynthetic() + } + val innerClassNames1 = innerClasses1.keys.filter { it in relevantInnerClassNames }.sorted() + val innerClassNames2 = innerClasses2.keys.filter { it in relevantInnerClassNames }.sorted() + + val listDiff = compareLists(innerClassNames1, innerClassNames2) ?: return + + report.addInnerClassesDiffs( + this, + listDiff.map { + ListEntryDiff( + it.value1?.let { v1 -> innerClasses1[v1]?.toInnerClassLine() }, + it.value2?.let { v2 -> innerClasses2[v2]?.toInnerClassLine() } + ) + } + ) + } + + private fun ClassNode.loadInnerClasses(): Map = + innerClasses.listOfNotNull() + .filterNot { + it.innerName == null || it.innerName == "WhenMappings" || isSamAdapterName(it.name) + } + .associateBy { it.name } + + + private fun InnerClassNode.toInnerClassLine(): String = + "INNER_CLASS $name $outerName $innerName ${access.toString(2)} ${access.classFlags()}" +} + +fun isSamAdapterName(name: String): Boolean = + "\$sam$" in name && name.endsWith("$0") diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodAnnotationsChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodAnnotationsChecker.kt new file mode 100644 index 00000000000..fe1a0d4f0bf --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodAnnotationsChecker.kt @@ -0,0 +1,22 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.reports.MethodReport +import org.jetbrains.org.objectweb.asm.tree.MethodNode +import kotlin.reflect.KProperty1 + +class MethodAnnotationsChecker(annotationsProperty: KProperty1?>) : + AnnotationsChecker("method.${annotationsProperty.name}", annotationsProperty), + MethodChecker { + + override fun check(method1: MethodNode, method2: MethodNode, report: MethodReport) { + val anns1 = getAnnotations(method1) + val anns2 = getAnnotations(method2) + val annDiff = compareAnnotations(anns1, anns2) ?: return + report.addAnnotationDiffs(this, annDiff) + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodChecker.kt new file mode 100644 index 00000000000..0fd78bea356 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodChecker.kt @@ -0,0 +1,37 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.reports.MethodReport +import org.jetbrains.org.objectweb.asm.tree.MethodNode +import kotlin.reflect.KProperty1 + +const val ignoreMissingNullabilityAnnotationsOnInvisibleMethods = true + +interface MethodChecker : Checker { + fun check(method1: MethodNode, method2: MethodNode, report: MethodReport) +} + +inline fun methodPropertyChecker(name: String, crossinline get: (MethodNode) -> T) = + object : MethodPropertyChecker(name) { + override fun getProperty(node: MethodNode): T = + get(node) + } + +fun methodPropertyChecker(methodProperty: KProperty1) = + methodPropertyChecker(methodProperty.name) { methodProperty.get(it) } + +inline fun methodPropertyChecker(methodProperty: KProperty1, crossinline html: (T) -> String) = + object : MethodPropertyChecker(methodProperty.name) { + override fun getProperty(node: MethodNode): T = + methodProperty.get(node) + + override fun valueToHtml(value: T, other: T): String = + html(value) + } + +fun methodPropertyChecker(name: String, methodProperty: KProperty1) = + methodPropertyChecker(name) { methodProperty.get(it) } \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodParameterAnnotationsChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodParameterAnnotationsChecker.kt new file mode 100644 index 00000000000..00ee4ad90dd --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodParameterAnnotationsChecker.kt @@ -0,0 +1,35 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.defects.* +import org.jetbrains.kotlin.abicmp.reports.MethodReport +import org.jetbrains.org.objectweb.asm.tree.AnnotationNode +import org.jetbrains.org.objectweb.asm.tree.MethodNode +import kotlin.math.max +import kotlin.reflect.KProperty1 + +class MethodParameterAnnotationsChecker( + private val parameterAnnotationsProperty: KProperty1?>?>, +) : MethodChecker { + + override val name = "method.parameters.${parameterAnnotationsProperty.name}" + + val mismatchDefect = DefectType("${name}.mismatch", "Value parameter annotation mismatch", METHOD_A, VP_INDEX_A, VALUE1_A, VALUE2_A) + val missing1Defect = DefectType("${name}.missing1", "Missing value parameter annotation in #1", METHOD_A, VP_INDEX_A, VALUE2_A) + val missing2Defect = DefectType("${name}.missing2", "Missing value parameter annotation in #2", METHOD_A, VP_INDEX_A, VALUE1_A) + + override fun check(method1: MethodNode, method2: MethodNode, report: MethodReport) { + val paramAnnsList1 = parameterAnnotationsProperty.get(method1)?.toList().orEmpty() + val paramAnnsList2 = parameterAnnotationsProperty.get(method2)?.toList().orEmpty() + for (i in 0 until max(paramAnnsList1.size, paramAnnsList2.size)) { + val anns1 = paramAnnsList1.getOrElse(i) { emptyList() }.toAnnotations() + val anns2 = paramAnnsList2.getOrElse(i) { emptyList() }.toAnnotations() + val annDiff = compareAnnotations(anns1, anns2) ?: continue + report.addValueParameterAnnotationDiffs(this, i, annDiff) + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodPropertyChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodPropertyChecker.kt new file mode 100644 index 00000000000..7d15822f3f3 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodPropertyChecker.kt @@ -0,0 +1,30 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.reports.MethodReport +import org.jetbrains.kotlin.abicmp.reports.NamedDiffEntry +import org.jetbrains.org.objectweb.asm.tree.MethodNode + +abstract class MethodPropertyChecker(name: String) : + PropertyChecker("method.$name"), + MethodChecker { + + override fun check(method1: MethodNode, method2: MethodNode, report: MethodReport) { + val value1 = getProperty(method1) + val value2 = getProperty(method2) + if (!areEqual(value1, value2)) { + report.addPropertyDiff( + defectType, + NamedDiffEntry( + name, + valueToHtml(value1, value2), + valueToHtml(value2, value1) + ) + ) + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodsListChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodsListChecker.kt new file mode 100644 index 00000000000..8bb47582a2f --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MethodsListChecker.kt @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.defects.DefectType +import org.jetbrains.kotlin.abicmp.defects.METHOD_A +import org.jetbrains.kotlin.abicmp.isSynthetic +import org.jetbrains.kotlin.abicmp.listOfNotNull +import org.jetbrains.kotlin.abicmp.methodFlags +import org.jetbrains.kotlin.abicmp.reports.ClassReport +import org.jetbrains.kotlin.abicmp.reports.ListEntryDiff +import org.jetbrains.kotlin.abicmp.tasks.methodId +import org.jetbrains.org.objectweb.asm.Opcodes +import org.jetbrains.org.objectweb.asm.tree.ClassNode +import org.jetbrains.org.objectweb.asm.tree.MethodNode + +class MethodsListChecker : ClassChecker { + override val name = "class.methods" + + val missing1Defect = DefectType("${name}.missing1", "Missing method in #1", METHOD_A) + val missing2Defect = DefectType("${name}.missing2", "Missing method in #2", METHOD_A) + + override fun check(class1: ClassNode, class2: ClassNode, report: ClassReport) { + val methods1 = class1.loadMethods() + val methods2 = class2.loadMethods() + + val relevantMethodIds = methods1.keys.union(methods2.keys) + .filter { + val method1 = methods1[it] + val method2 = methods2[it] + acceptNonSyntheticMethods(method1, method2) + }.toSet() + + val methodIds1 = methods1.keys.intersect(relevantMethodIds).sorted() + val methodIds2 = methods2.keys.intersect(relevantMethodIds).sorted() + + val listDiff = compareLists(methodIds1, methodIds2) ?: return + report.addMethodListDiffs( + this, + listDiff.map { + ListEntryDiff( + it.value1?.toMethodWithFlags(methods1), + it.value2?.toMethodWithFlags(methods2) + ) + } + ) + } + + private fun acceptNonSyntheticMethods(method1: MethodNode?, method2: MethodNode?) = + method1 != null && !method1.access.isSynthetic() || + method2 != null && !method2.access.isSynthetic() + + private fun String.toMethodWithFlags(methods: Map): String { + val method = methods[this] ?: return this + return "$this ${method.access.methodFlags()}" + } +} + +fun ClassNode.loadMethods(): Map = + methods.listOfNotNull().filter { + (it.access and Opcodes.ACC_PUBLIC) != 0 || + (it.access and Opcodes.ACC_PROTECTED) != 0 + }.associateBy { it.methodId() } diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassFacadeMetadataChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassFacadeMetadataChecker.kt new file mode 100644 index 00000000000..8f3506279ff --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassFacadeMetadataChecker.kt @@ -0,0 +1,17 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.MultiFileClassFacadeMetadataReport + +interface MultiFileClassFacadeMetadataChecker : Checker { + fun check( + metadata1: KotlinClassMetadata.MultiFileClassFacade, + metadata2: KotlinClassMetadata.MultiFileClassFacade, + report: MultiFileClassFacadeMetadataReport, + ) +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassFacadeMetadataListChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassFacadeMetadataListChecker.kt new file mode 100644 index 00000000000..336aaaa2007 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassFacadeMetadataListChecker.kt @@ -0,0 +1,33 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.MultiFileClassFacadeMetadataReport + +abstract class MultiFileClassFacadeMetadataListChecker(name: String) : MultiFileClassFacadeMetadataChecker { + override fun check( + metadata1: KotlinClassMetadata.MultiFileClassFacade, + metadata2: KotlinClassMetadata.MultiFileClassFacade, + report: MultiFileClassFacadeMetadataReport, + ) { + val list1 = getList(metadata1) + val list2 = getList(metadata2) + + val diff = compareLists(list1.sorted(), list2.sorted()) ?: return + + report.addMembersListDiffs(diff) + } + + abstract fun getList(metadata: KotlinClassMetadata.MultiFileClassFacade): List + + override val name: String = "class.metadata.$name" +} + +fun multiFileClassFacadeMetadataListChecker(name: String, listGetter: (KotlinClassMetadata.MultiFileClassFacade) -> List) = + object : MultiFileClassFacadeMetadataListChecker(name) { + override fun getList(metadata: KotlinClassMetadata.MultiFileClassFacade) = listGetter(metadata) + } \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassPartMetadataChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassPartMetadataChecker.kt new file mode 100644 index 00000000000..3ea715ba0f5 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassPartMetadataChecker.kt @@ -0,0 +1,17 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.MultiFileClassPartMetadataReport + +interface MultiFileClassPartMetadataChecker : Checker { + fun check( + metadata1: KotlinClassMetadata.MultiFileClassPart, + metadata2: KotlinClassMetadata.MultiFileClassPart, + report: MultiFileClassPartMetadataReport, + ) +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassPartMetadataPropertyChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassPartMetadataPropertyChecker.kt new file mode 100644 index 00000000000..f4173026ba5 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/MultiFileClassPartMetadataPropertyChecker.kt @@ -0,0 +1,31 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.MultiFileClassPartMetadataReport +import org.jetbrains.kotlin.abicmp.reports.NamedDiffEntry + +abstract class MultiFileClassPartMetadataPropertyChecker(name: String) : + PropertyChecker("class.metadata.$name"), MultiFileClassPartMetadataChecker { + + override fun check( + metadata1: KotlinClassMetadata.MultiFileClassPart, + metadata2: KotlinClassMetadata.MultiFileClassPart, + report: MultiFileClassPartMetadataReport, + ) { + val value1 = getProperty(metadata1) + val value2 = getProperty(metadata2) + if (!areEqual(value1, value2)) { + report.addPropertyDiff(NamedDiffEntry(name, value1, value2)) + } + } +} + +fun multiFileClassPartMetadataPropertyChecker(name: String, propertyGetter: (KotlinClassMetadata.MultiFileClassPart) -> String) = + object : MultiFileClassPartMetadataPropertyChecker(name) { + override fun getProperty(node: KotlinClassMetadata.MultiFileClassPart) = propertyGetter(node) + } \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/PackageMetadataChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/PackageMetadataChecker.kt new file mode 100644 index 00000000000..068d31dfc92 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/PackageMetadataChecker.kt @@ -0,0 +1,13 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.KmPackage +import org.jetbrains.kotlin.abicmp.reports.PackageMetadataReport + +interface PackageMetadataChecker : Checker { + fun check(metadata1: KmPackage, metadata2: KmPackage, report: PackageMetadataReport) +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/PackageMetadataListChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/PackageMetadataListChecker.kt new file mode 100644 index 00000000000..732fa12d29e --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/PackageMetadataListChecker.kt @@ -0,0 +1,33 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.KmPackage +import org.jetbrains.kotlin.abicmp.reports.PackageMetadataReport + +abstract class PackageMetadataListChecker(name: String) : PackageMetadataChecker { + override fun check( + metadata1: KmPackage, + metadata2: KmPackage, + report: PackageMetadataReport, + ) { + val list1 = getList(metadata1) + val list2 = getList(metadata2) + + val diff = compareLists(list1.sorted(), list2.sorted()) ?: return + + report.addMembersListDiffs(diff) + } + + abstract fun getList(metadata: KmPackage): List + + override val name: String = "class.metadata.$name" +} + +fun fileFacadeMetadataListChecker(name: String, listGetter: (KmPackage) -> List) = + object : PackageMetadataListChecker(name) { + override fun getList(metadata: KmPackage) = listGetter(metadata) + } \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/SyntheticClassMetadataChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/SyntheticClassMetadataChecker.kt new file mode 100644 index 00000000000..18c08d421ea --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/SyntheticClassMetadataChecker.kt @@ -0,0 +1,17 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.SyntheticClassMetadataReport + +interface SyntheticClassMetadataChecker : Checker { + fun check( + metadata1: KotlinClassMetadata.SyntheticClass, + metadata2: KotlinClassMetadata.SyntheticClass, + report: SyntheticClassMetadataReport, + ) +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/SyntheticClassMetadataPropertyChecker.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/SyntheticClassMetadataPropertyChecker.kt new file mode 100644 index 00000000000..0f202ea04b5 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/SyntheticClassMetadataPropertyChecker.kt @@ -0,0 +1,31 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.NamedDiffEntry +import org.jetbrains.kotlin.abicmp.reports.SyntheticClassMetadataReport + +abstract class SyntheticClassMetadataPropertyChecker(name: String) : + PropertyChecker("class.metadata.$name"), SyntheticClassMetadataChecker { + + override fun check( + metadata1: KotlinClassMetadata.SyntheticClass, + metadata2: KotlinClassMetadata.SyntheticClass, + report: SyntheticClassMetadataReport, + ) { + val value1 = getProperty(metadata1) + val value2 = getProperty(metadata2) + if (!areEqual(value1, value2)) { + report.addPropertyDiff(NamedDiffEntry(name, value1, value2)) + } + } +} + +fun syntheticClassMetadataPropertyChecker(name: String, propertyGetter: (KotlinClassMetadata.SyntheticClass) -> String) = + object : SyntheticClassMetadataPropertyChecker(name) { + override fun getProperty(node: KotlinClassMetadata.SyntheticClass) = propertyGetter(node) + } \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/compareLists.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/compareLists.kt new file mode 100644 index 00000000000..e20089391d9 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/compareLists.kt @@ -0,0 +1,47 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import org.jetbrains.kotlin.abicmp.reports.ListEntryDiff + +fun compareLists(list1: List, list2: List): List? { + val result = ArrayList() + var i1 = 0 + var i2 = 0 + while (i1 < list1.size || i2 < list2.size) { + val s1 = list1.getOrNull(i1) + val s2 = list2.getOrNull(i2) + + if (s1 == s2) { + ++i1 + ++i2 + continue + } + + when { + s1 == null && s2 == null -> + break // really should not happen + s1 == null -> { + result.add(ListEntryDiff(null, s2)) + ++i2 + } + s2 == null -> { + result.add(ListEntryDiff(s1, null)) + ++i1 + } + s1 < s2 -> { + result.add(ListEntryDiff(s1, null)) + ++i1 + } + s1 > s2 -> { + result.add(ListEntryDiff(null, s2)) + ++i2 + } + } + } + + return if (result.isEmpty()) null else result +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/metadataUtils.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/metadataUtils.kt new file mode 100644 index 00000000000..96abcc4becf --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/metadataUtils.kt @@ -0,0 +1,67 @@ +/* + * Copyright 2010-2023 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.abicmp.checkers + +import kotlinx.metadata.* +import kotlinx.metadata.jvm.KotlinClassMetadata +import kotlinx.metadata.jvm.getterSignature +import kotlinx.metadata.jvm.localDelegatedProperties +import kotlinx.metadata.jvm.signature +import org.jetbrains.kotlin.abicmp.reports.MetadataPropertyReport +import org.jetbrains.kotlin.abicmp.tasks.GenericMetadataTask +import org.jetbrains.kotlin.kotlinp.* + +fun loadProperties(container: KmDeclarationContainer) = container.properties.associateBy { it.getterSignature?.toString() ?: it.name } + +fun loadConstructors(clazz: KotlinClassMetadata.Class) = clazz.kmClass.constructors.associateBy { it.signature.toString() } + +fun loadFunctions(container: KmDeclarationContainer) = container.functions.associateBy { (it.signature ?: it.name).toString() } + +fun loadTypeAliases(container: KmDeclarationContainer) = container.typeAliases.associateBy { it.name } + +fun loadLocalDelegatedProperties(kmPackage: KmPackage) = + kmPackage.localDelegatedProperties.associateBy { it.getterSignature?.toString() ?: it.name } + +fun loadLocalDelegatedProperties(clazz: KotlinClassMetadata.Class) = + clazz.kmClass.localDelegatedProperties.associateBy { it.getterSignature?.toString() ?: it.name } + +fun List.stringifyRelevantRequirements() = + // older versions of requirements are redundant for compiler with version 1.9 or newer + filter { it.version.major >= 2 || (it.version.major == 1 && it.version.minor >= 8) } + .map(::printVersionRequirement).sorted().joinToString(prefix = "[", postfix = "]") + +fun List.stringifyTypeListSorted() = map(::printType).sorted().joinToString(prefix = "[", postfix = "]") + +fun List.stringifyTypeParameters() = joinToString(prefix = "<", postfix = ">") { typeParam -> + printTypeParameter( + typeParam, + KotlinpSettings( + isVerbose = true, + sortDeclarations = true + ) + ) +} + +fun List.stringifyValueParameters() = joinToString(prefix = "(", postfix = ")", transform = ::printValueParameter) + +fun List.stringifyAnnotations() = joinToString(prefix = "[", postfix = "]", transform = ::renderAnnotation) + +inline fun checkMetadataMembers( + metadata1: R, + metadata2: R, + checkers: List>, + reportBuilder: (String) -> MetadataPropertyReport, + membersGetter: (R) -> Map, +) { + val membersMetadata1 = membersGetter(metadata1) + val membersMetadata2 = membersGetter(metadata2) + val commonIds = membersMetadata1.keys.intersect(membersMetadata2.keys).sorted() + for (id in commonIds) { + val member1 = membersMetadata1[id]!! + val member2 = membersMetadata2[id]!! + GenericMetadataTask(member1, member2, reportBuilder(id), checkers).run() + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/Defect.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/Defect.kt new file mode 100644 index 00000000000..1170d716726 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/Defect.kt @@ -0,0 +1,8 @@ +/* + * Copyright 2010-2023 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.abicmp.defects + +class Defect(val location: Location, val info: DefectInfo) \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/DefectInfo.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/DefectInfo.kt new file mode 100644 index 00000000000..7a49511df60 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/DefectInfo.kt @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2023 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.abicmp.defects + +class DefectAttribute(val id: String, val htmlId: String) + +class DefectType( + val id: String, + val messageText: String, + vararg val requiredAttributes: DefectAttribute, +) : Comparable { + override fun compareTo(other: DefectType): Int = + id.compareTo(other.id) + + override fun hashCode(): Int = id.hashCode() +} + +class DefectInfo( + val type: DefectType, + val attributes: Map, +) : Comparable { + init { + for (requiredAttribute in type.requiredAttributes) { + if (requiredAttribute !in attributes) { + throw IllegalArgumentException( + "Missing required attribute ${requiredAttribute.id} for defect type ${type.id}" + ) + } + } + } + + operator fun get(key: DefectAttribute) = attributes[key] + + override fun compareTo(other: DefectInfo): Int = + when (val typeCmp = type.compareTo(other.type)) { + 0 -> compareAttributes(other) + else -> typeCmp + } + + private fun compareAttributes(other: DefectInfo): Int { + for ((key, value) in attributes) { + val otherValue = other[key] ?: return 1 + when (val valueCmp = value.compareTo(otherValue)) { + 0 -> continue + else -> return valueCmp + } + } + return 0 + } + + override fun equals(other: Any?): Boolean = + other is DefectInfo && compareTo(other) == 0 + + override fun hashCode(): Int = + type.hashCode() +} diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/Location.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/Location.kt new file mode 100644 index 00000000000..e60a4037579 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/Location.kt @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2023 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.abicmp.defects + +sealed class Location : Comparable { + abstract val jarFileName: String + open val className: String? get() = null + open val methodName: String? get() = null + open val fieldName: String? get() = null + + enum class Kind { + JAR_FILE, CLASS, METHOD, FIELD + } + + abstract val kind: Kind + + override fun compareTo(other: Location): Int = + compareValuesBy( + this, other, + { it.kind }, + { it.jarFileName }, + { it.className }, + { it.methodName }, + { it.fieldName } + ) + + data class JarFile( + override val jarFileName: String, + ) : Location() { + override val kind get() = Kind.JAR_FILE + } + + data class Class( + override val jarFileName: String, + override val className: String, + ) : Location() { + override val kind get() = Kind.CLASS + fun method(methodName: String) = Method(jarFileName, className, methodName) + fun field(fieldName: String) = Field(jarFileName, className, fieldName) + } + + data class Method( + override val jarFileName: String, + override val className: String, + override val methodName: String, + ) : Location() { + override val kind get() = Kind.METHOD + } + + data class Field( + override val jarFileName: String, + override val className: String, + override val fieldName: String, + ) : Location() { + override val kind get() = Kind.FIELD + } +} diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/commonAttributes.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/commonAttributes.kt new file mode 100644 index 00000000000..685a6b98e08 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/defects/commonAttributes.kt @@ -0,0 +1,17 @@ +/* + * Copyright 2010-2023 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.abicmp.defects + +val JAR_FILE1_A = DefectAttribute("JAR_FILE1", "jarFile1") +val JAR_FILE2_A = DefectAttribute("JAR_FILE2", "jarFile2") +val CLASS_A = DefectAttribute("CLASS", "class") +val METHOD_A = DefectAttribute("METHOD", "method") +val FIELD_A = DefectAttribute("FIELD", "field") +val VALUE1_A = DefectAttribute("VALUE1", "value1") +val VALUE2_A = DefectAttribute("VALUE2", "value2") +val VP_INDEX_A = DefectAttribute("VP_INDEX", "vpIndex") +val INNER_CLASS_A = DefectAttribute("INNER_CLASS", "innerClass") +val METADATA_A = DefectAttribute("METADATA", "metadata") \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/html.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/html.kt new file mode 100644 index 00000000000..afd30bcc2bf --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/html.kt @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2023 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.abicmp + +import org.apache.commons.text.StringEscapeUtils +import java.io.PrintWriter + +const val NON_BREAKING_HYPHEN = "‑" + +fun String?.escapeHtml(): String { + if (this == null) return "NULL" + return StringEscapeUtils.escapeHtml4(this) +} + +fun Any?.toHtmlString(): String { + if (this == null) return "NULL" + return StringEscapeUtils.escapeHtml4(toString()).replace("\n", "
") +} + +fun PrintWriter.tag(tagName: String) { + print("<$tagName/>") +} + +inline fun PrintWriter.tag(tagName: String, body: () -> Unit) { + print("<$tagName>") + body() + println("") +} + +fun PrintWriter.tag(tagName: String, content: String) { + println("<$tagName>$content") +} + +inline fun PrintWriter.table(body: () -> Unit) { + tag("table", body) +} + +fun PrintWriter.tableHeader(vararg headers: String) { + tag("tr") { + for (header in headers) { + tag("th", header) + } + } +} + +fun PrintWriter.tableData(vararg data: String) { + tag("tr") { + for (d in data) { + tag("td", d) + } + } +} + +fun PrintWriter.tableDataWithClass(tdClass: String, vararg data: String) { + println("") + for (d in data) { + println("$d") + } + println("") +} + +fun Any.tag(tagName: String) = + "<$tagName>$this" \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ClassMetadataReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ClassMetadataReport.kt new file mode 100644 index 00000000000..e9686fb33a4 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ClassMetadataReport.kt @@ -0,0 +1,96 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.tag +import java.io.PrintWriter + +class ClassMetadataReport( + private val classInternalName: String, + val header1: String, + val header2: String, +) : ComparisonReport { + + private val membersDiffList = ArrayList() + + private val propertyDiffs = ArrayList() + + private val constructorReports = ArrayList() + private val functionReports = ArrayList() + private val propertyReports = ArrayList() + private val typeAliasReports = ArrayList() + private val localDelegatedPropertyReport = ArrayList() + + override fun isEmpty() = + membersDiffList.isEmpty() + && propertyDiffs.isEmpty() + && propertyReports.areAllEmpty() + && constructorReports.areAllEmpty() + && functionReports.areAllEmpty() + && typeAliasReports.areAllEmpty() + && localDelegatedPropertyReport.areAllEmpty() + + override fun writeAsHtml(output: PrintWriter) { + if (isEmpty()) return + + output.tag("h2", "CLASS METADATA $classInternalName") + + output.listDiff(header1, header2, membersDiffList) + output.propertyDiffTable(header1, header2, propertyDiffs) + + for (report in listOf( + constructorReports, + functionReports, + propertyReports, + typeAliasReports, + localDelegatedPropertyReport + ).flatten()) { + report.writeAsHtml(output) + } + } + + + fun constructorReport(id: String) = MetadataPropertyReport("CONSTRUCTOR $id", header1, header2).also { constructorReports.add(it) } + + fun functionReport(id: String) = MetadataPropertyReport("FUNCTION $id", header1, header2).also { functionReports.add(it) } + + fun propertyReport(id: String) = MetadataPropertyReport("PROPERTY $id", header1, header2).also { propertyReports.add(it) } + + fun typeAliasReport(id: String) = MetadataPropertyReport("TYPE ALIAS $id", header1, header2).also { typeAliasReports.add(it) } + + fun localDelegatedPropertyReport(id: String) = + MetadataPropertyReport("LOCAL DELEGATED PROPERTY $id", header1, header2).also { localDelegatedPropertyReport.add(it) } + + fun addMembersListDiffs(diffs: List) { + for (diff in diffs) { + membersDiffList.add(diff.toDiffEntry()) + } + } + + fun addPropertyDiff(diff: NamedDiffEntry) { + propertyDiffs.add(diff) + } + + fun TextTreeBuilderContext.appendClassMetadataReport() { + if (isNotEmpty()) { + node("CLASS METADATA") { + appendDiffEntries(header1, header2, membersDiffList) + + appendNamedDiffEntries(header1, header2, propertyDiffs, "Property") + + for (report in listOf( + constructorReports, + functionReports, + propertyReports, + typeAliasReports, + localDelegatedPropertyReport + ).flatten()) { + with(report) { appendReport() } + } + } + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ClassReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ClassReport.kt new file mode 100644 index 00000000000..1cd30e69d13 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ClassReport.kt @@ -0,0 +1,222 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.checkers.ClassAnnotationsChecker +import org.jetbrains.kotlin.abicmp.checkers.FieldsListChecker +import org.jetbrains.kotlin.abicmp.checkers.InnerClassesListChecker +import org.jetbrains.kotlin.abicmp.checkers.MethodsListChecker +import org.jetbrains.kotlin.abicmp.defects.* +import org.jetbrains.kotlin.abicmp.escapeHtml +import org.jetbrains.kotlin.abicmp.tag +import java.io.ByteArrayOutputStream +import java.io.PrintWriter + +class ClassReport( + private val location: Location.Class, + val classInternalName: String, + val header1: String, + val header2: String, + private val defectReport: DefectReport, +) : ComparisonReport { + + private val infoParagraphs = ArrayList() + + private val propertyDiffs = ArrayList() + private val annotationDiffs = ArrayList() + private val innerClassesDiffs = ArrayList() + private val methodListDiffs = ArrayList() + private val fieldListDiffs = ArrayList() + private val metadataDiffs = ArrayList() + + private val methodReports = ArrayList() + private val fieldReports = ArrayList() + + private var classMetadataReport: ClassMetadataReport? = null + private var fileFacadeMetadataReport: PackageMetadataReport? = null + private var multiFileClassFacadeMetadataReport: MultiFileClassFacadeMetadataReport? = null + private var multiFileClassPartMetadataReport: MultiFileClassPartMetadataReport? = null + private var syntheticClassMetadataReport: SyntheticClassMetadataReport? = null + + private val ComparisonReport?.isNullOrEmpty get() = this == null || this.isEmpty() + + override fun isEmpty(): Boolean = + metadataDiffs.isEmpty() && + propertyDiffs.isEmpty() && + annotationDiffs.isEmpty() && + innerClassesDiffs.isEmpty() && + methodListDiffs.isEmpty() && + getFilteredMethodReports().isEmpty() && + fieldListDiffs.isEmpty() && + getFilteredFieldReports().isEmpty() + && classMetadataReport.isNullOrEmpty + && fileFacadeMetadataReport.isNullOrEmpty + && multiFileClassFacadeMetadataReport.isNullOrEmpty + && multiFileClassPartMetadataReport.isNullOrEmpty + && syntheticClassMetadataReport.isNullOrEmpty + + fun addInfo(info: String) { + infoParagraphs.add(info) + } + + inline fun info(fm: PrintWriter.() -> Unit) { + val bytes = ByteArrayOutputStream() + val ps = PrintWriter(bytes) + ps.fm() + ps.close() + addInfo(String(bytes.toByteArray())) + } + + private fun DefectType.report(vararg attributes: Pair) { + defectReport.report(this, location, *attributes) + } + + fun addPropertyDiff(defectType: DefectType, diff: NamedDiffEntry) { + propertyDiffs.add(diff) + defectType.report(VALUE1_A to diff.value1, VALUE2_A to diff.value2) + } + + fun addAnnotationDiffs(checker: ClassAnnotationsChecker, diffs: List) { + for (diff in diffs) { + annotationDiffs.add(NamedDiffEntry(checker.name, diff.value1 ?: "---", diff.value2 ?: "---")) + when { + diff.value1 != null && diff.value2 != null -> + checker.mismatchDefect.report(VALUE1_A to diff.value1, VALUE2_A to diff.value2) + diff.value1 == null && diff.value2 != null -> + checker.missing1Defect.report(VALUE2_A to diff.value2) + diff.value1 != null && diff.value2 == null -> + checker.missing2Defect.report(VALUE1_A to diff.value1) + } + } + } + + fun addInnerClassesDiffs(checker: InnerClassesListChecker, diffs: List) { + for (diff in diffs) { + innerClassesDiffs.add(diff.toDiffEntry()) + reportMissing(diff, checker.missing1Defect, checker.missing2Defect, INNER_CLASS_A) + } + } + + fun addMethodListDiffs(checker: MethodsListChecker, diffs: List) { + for (diff in diffs) { + methodListDiffs.add(diff.toDiffEntry()) + reportMissing(diff, checker.missing1Defect, checker.missing2Defect, METHOD_A) + } + } + + fun addFieldListDiffs(checker: FieldsListChecker, diffs: List) { + for (diff in diffs) { + fieldListDiffs.add(diff.toDiffEntry()) + reportMissing(diff, checker.missing1Defect, checker.missing2Defect, FIELD_A) + } + } + + fun addMetadataDiff(diff: ListEntryDiff) { + metadataDiffs.add(diff.toDiffEntry()) + val missing1Defect = DefectType("class.metadata.missing1", "Missing metadata in #1", METADATA_A) + val missing2Defect = DefectType("class.metadata.missing2", "Missing metadata in #2", METADATA_A) + reportMissing(diff, missing1Defect, missing2Defect, METADATA_A) + } + + private fun reportMissing(diff: ListEntryDiff, missing1: DefectType, missing2: DefectType, attr: DefectAttribute) { + when { + diff.value1 == null && diff.value2 != null -> + missing1.report(attr to diff.value2) + diff.value1 != null && diff.value2 == null -> + missing2.report(attr to diff.value1) + } + } + + fun classMetadataReport() = ClassMetadataReport(classInternalName, header1, header2).also { this.classMetadataReport = it } + + fun fileFacadeMetadataReport() = PackageMetadataReport(classInternalName, header1, header2).also { this.fileFacadeMetadataReport = it } + + fun multiFileClassFacadeMetadataReport() = + MultiFileClassFacadeMetadataReport(classInternalName, header1, header2).also { this.multiFileClassFacadeMetadataReport = it } + + fun multiFileClassPartMetadataReport() = + MultiFileClassPartMetadataReport(classInternalName, header1, header2).also { this.multiFileClassPartMetadataReport = it } + + fun syntheticMetadataReport() = + SyntheticClassMetadataReport(classInternalName, header1, header2).also { this.syntheticClassMetadataReport = it } + + fun methodReport(methodId: String): MethodReport = + MethodReport(location.method(methodId), methodId, header1, header2, defectReport) + .also { methodReports.add(it) } + + fun fieldReport(fieldId: String): FieldReport = + FieldReport(location.field(fieldId), fieldId, header1, header2, defectReport) + .also { fieldReports.add(it) } + + private fun getFilteredMethodReports() = + methodReports.filter { !it.isEmpty() }.sortedBy { it.methodId } + + private fun getFilteredFieldReports() = + fieldReports.filter { !it.isEmpty() }.sortedBy { it.fieldId } + + fun TextTreeBuilderContext.appendClassReport() { + node("CLASS $classInternalName") { + classMetadataReport?.run { appendClassMetadataReport() } + fileFacadeMetadataReport?.run { appendPackageMetadataReport() } + multiFileClassFacadeMetadataReport?.run { appendMultiFileClassFacadeReport() } + multiFileClassPartMetadataReport?.run { appendMultiFileClassPartReport() } + syntheticClassMetadataReport?.run { appendSyntheticClassMetadataReport() } + + appendNamedDiffEntries(header1, header2, propertyDiffs, "Property") + appendNamedDiffEntries(header1, header2, annotationDiffs, "Annotation") + + + appendDiffEntries(header1, header2, innerClassesDiffs) + appendDiffEntries(header1, header2, methodListDiffs) + appendDiffEntries(header1, header2, metadataDiffs) + + for (mr in getFilteredMethodReports()) { + with(mr) { appendMethodReport() } + } + + appendDiffEntries(header1, header2, fieldListDiffs) + + for (fr in getFilteredFieldReports()) { + with(fr) { appendFieldReport() } + } + } + } + + override fun writeAsHtml(output: PrintWriter) { + output.tag("h1", "CLASS " + classInternalName.escapeHtml()) + + for (info in infoParagraphs) { + output.tag("p", info) + } + + output.propertyDiffTable(header1, header2, propertyDiffs) + + output.annotationDiffTable(header1, header2, annotationDiffs) + + output.listDiff(header1, header2, innerClassesDiffs) + + output.listDiff(header1, header2, methodListDiffs) + + output.listDiff(header1, header2, metadataDiffs) + + classMetadataReport?.run { writeAsHtml(output) } + fileFacadeMetadataReport?.run { writeAsHtml(output) } + multiFileClassFacadeMetadataReport?.run { writeAsHtml(output) } + multiFileClassPartMetadataReport?.run { writeAsHtml(output) } + syntheticClassMetadataReport?.run { writeAsHtml(output) } + + for (mr in getFilteredMethodReports()) { + mr.writeAsHtml(output) + } + + output.listDiff(header1, header2, fieldListDiffs) + + for (fr in getFilteredFieldReports()) { + fr.writeAsHtml(output) + } + } + +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ComparisonReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ComparisonReport.kt new file mode 100644 index 00000000000..159fabe93fd --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/ComparisonReport.kt @@ -0,0 +1,15 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import java.io.PrintWriter + +interface ComparisonReport { + fun isEmpty(): Boolean + fun writeAsHtml(output: PrintWriter) +} + +fun ComparisonReport.isNotEmpty() = !isEmpty() \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/DefectReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/DefectReport.kt new file mode 100644 index 00000000000..081957b7702 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/DefectReport.kt @@ -0,0 +1,21 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.defects.* + +class DefectReport { + val defects: MutableList = ArrayList() + + fun report(type: DefectType, location: Location, vararg attributes: Pair) { + defects.add(Defect(location, DefectInfo(type, attributes.toMap()))) + } + + fun isEmpty() = defects.isEmpty() +} + + + diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/DiffEntry.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/DiffEntry.kt new file mode 100644 index 00000000000..1cf9ad34a9b --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/DiffEntry.kt @@ -0,0 +1,22 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +class DiffEntry(val value1: String, val value2: String) + +class NamedDiffEntry(val name: String, val value1: String, val value2: String) + +class ListEntryDiff(val value1: String?, val value2: String?) + +class ListDiff(val diff1: List, val diff2: List) + +class TextDiffEntry(val lines1: List, val lines2: List) + +fun ListEntryDiff.toDiffEntry() = + DiffEntry(value1 ?: "---", value2 ?: "---") + +fun ListEntryDiff.toNamedDiffEntry(name: String) = + NamedDiffEntry(name, value1 ?: "---", value2 ?: "---") \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/FieldReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/FieldReport.kt new file mode 100644 index 00000000000..eb37d4fd1c3 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/FieldReport.kt @@ -0,0 +1,82 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.checkers.FieldAnnotationsChecker +import org.jetbrains.kotlin.abicmp.defects.* +import org.jetbrains.kotlin.abicmp.escapeHtml +import org.jetbrains.kotlin.abicmp.tag +import java.io.ByteArrayOutputStream +import java.io.PrintWriter + +class FieldReport( + private val location: Location.Field, + val fieldId: String, + val header1: String, + val header2: String, + private val defectReport: DefectReport, +) : ComparisonReport { + private val infoParagraphs = ArrayList() + + private val propertyDiffs = ArrayList() + private val annotationDiffs = ArrayList() + + fun addInfo(info: String) { + infoParagraphs.add(info) + } + + inline fun info(fm: PrintWriter.() -> Unit) { + val bytes = ByteArrayOutputStream() + val ps = PrintWriter(bytes) + ps.fm() + ps.close() + addInfo(String(bytes.toByteArray())) + } + + private fun DefectType.report(vararg attributes: Pair) { + defectReport.report(this, location, *attributes) + defectReport.report(this, location, *attributes) + } + + fun addPropertyDiff(defectType: DefectType, diff: NamedDiffEntry) { + propertyDiffs.add(diff) + defectType.report(VALUE1_A to diff.value1, VALUE2_A to diff.value2) + } + + fun addAnnotationDiffs(checker: FieldAnnotationsChecker, diffs: List) { + for (diff in diffs) { + annotationDiffs.add(diff.toNamedDiffEntry(checker.name)) + when { + diff.value1 != null && diff.value2 != null -> + checker.mismatchDefect.report(VALUE1_A to diff.value1, VALUE2_A to diff.value2) + diff.value1 == null && diff.value2 != null -> + checker.missing1Defect.report(VALUE2_A to diff.value2) + diff.value1 != null && diff.value2 == null -> + checker.missing2Defect.report(VALUE1_A to diff.value1) + } + } + } + + override fun isEmpty(): Boolean = propertyDiffs.isEmpty() && annotationDiffs.isEmpty() + + override fun writeAsHtml(output: PrintWriter) { + output.tag("h2", "> FIELD " + fieldId.escapeHtml()) + + for (info in infoParagraphs) { + output.tag("p", info) + } + + output.propertyDiffTable(header1, header2, propertyDiffs) + output.annotationDiffTable(header1, header2, annotationDiffs) + } + + fun TextTreeBuilderContext.appendFieldReport() { + node("FIELD $fieldId") { + appendNamedDiffEntries(header1, header2, propertyDiffs, "Property") + appendNamedDiffEntries(header1, header2, annotationDiffs, "Annotation") + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/JarReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/JarReport.kt new file mode 100644 index 00000000000..a7439612fed --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/JarReport.kt @@ -0,0 +1,106 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.defects.* +import org.jetbrains.kotlin.abicmp.tag +import java.io.ByteArrayOutputStream +import java.io.PrintWriter + +val MISSING_CLASS1_D = DefectType("jar.missingClass1", "Missing class in #1", CLASS_A, JAR_FILE1_A) +val MISSING_CLASS2_D = DefectType("jar.missingClass2", "Missing class in #2", CLASS_A, JAR_FILE2_A) + +class JarReport( + private val header: String, + private val header1: String, + private val header2: String, + private val jarFileName1: String, + private val jarFileName2: String, +) : ComparisonReport { + private val infoParagraphs = ArrayList() + + private val classReports = ArrayList() + + private val missingClassNames1 = HashSet() + private val missingClassNames2 = HashSet() + + val defectReport = DefectReport() + + fun classLocation(classInternalName: String) = + Location.Class(jarFileName1, classInternalName) + + fun addInfo(info: String) { + infoParagraphs.add(info) + } + + inline fun info(fm: PrintWriter.() -> Unit) { + val bytes = ByteArrayOutputStream() + val ps = PrintWriter(bytes) + ps.fm() + ps.close() + addInfo(String(bytes.toByteArray())) + } + + fun classReport(classInternalName: String) = + ClassReport(classLocation(classInternalName), classInternalName, header1, header2, defectReport) + .also { classReports.add(it) } + + private fun getFilteredClassReports(): List = + classReports.filter { !it.isEmpty() }.sortedBy { it.classInternalName } + + private val jar1Location = Location.JarFile(jarFileName1) + private val jar2Location = Location.JarFile(jarFileName2) + + fun addMissingClassName1(classInternalName: String) { + missingClassNames1.add(classInternalName) + defectReport.report( + MISSING_CLASS1_D, + jar1Location, + CLASS_A to classInternalName, + JAR_FILE1_A to jarFileName1 + ) + } + + fun addMissingClassName2(classInternalName: String) { + missingClassNames2.add(classInternalName) + defectReport.report( + MISSING_CLASS2_D, + jar2Location, + CLASS_A to classInternalName, + JAR_FILE2_A to jarFileName2 + ) + } + + override fun isEmpty(): Boolean = + defectReport.isEmpty() + + override fun writeAsHtml(output: PrintWriter) { + output.tag("h1", header) + + for (info in infoParagraphs) { + output.tag("p", info) + } + + for (classReport in getFilteredClassReports()) { + classReport.writeAsHtml(output) + } + + writeMissingClasses(output, jarFileName1, missingClassNames1) + writeMissingClasses(output, jarFileName2, missingClassNames2) + } + + private fun writeMissingClasses(output: PrintWriter, name: String, missing: Collection) { + if (missing.isNotEmpty()) { + output.tag("p", "Classes missing in $name: ${missing.size}") + output.tag("ul") { + for (className in missing) { + output.tag("li", className) + } + } + } + } +} + diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MetadataPropertyReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MetadataPropertyReport.kt new file mode 100644 index 00000000000..bdb297fa389 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MetadataPropertyReport.kt @@ -0,0 +1,34 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.tag +import java.io.PrintWriter + +class MetadataPropertyReport(val id: String, val header1: String, val header2: String) : ComparisonReport { + + private val propertyDiffs = ArrayList() + + override fun isEmpty() = propertyDiffs.isEmpty() + + override fun writeAsHtml(output: PrintWriter) { + if (isEmpty()) return + output.tag("h3", id) + output.propertyDiffTable(header1, header2, propertyDiffs) + } + + fun addPropertyDiff(diff: NamedDiffEntry) { + propertyDiffs.add(diff) + } + + fun TextTreeBuilderContext.appendReport() { + if (!isEmpty()) { + node(id) { + appendNamedDiffEntries(header1, header2, propertyDiffs, "Property") + } + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MethodReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MethodReport.kt new file mode 100644 index 00000000000..28dad5c1d6a --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MethodReport.kt @@ -0,0 +1,109 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.checkers.MethodAnnotationsChecker +import org.jetbrains.kotlin.abicmp.checkers.MethodParameterAnnotationsChecker +import org.jetbrains.kotlin.abicmp.defects.* +import org.jetbrains.kotlin.abicmp.escapeHtml +import org.jetbrains.kotlin.abicmp.tag +import java.io.ByteArrayOutputStream +import java.io.PrintWriter + +class MethodReport( + private val location: Location.Method, + val methodId: String, + val header1: String, + val header2: String, + private val defectReport: DefectReport, +) : ComparisonReport { + private val infoParagraphs = ArrayList() + + private val propertyDiffs = ArrayList() + private val annotationDiffs = ArrayList() + + fun addInfo(info: String) { + infoParagraphs.add(info) + } + + inline fun info(fm: PrintWriter.() -> Unit) { + val bytes = ByteArrayOutputStream() + val ps = PrintWriter(bytes) + ps.fm() + ps.close() + addInfo(String(bytes.toByteArray())) + } + + private fun DefectType.report(vararg attributes: Pair) { + defectReport.report(this, location, *attributes) + } + + fun addPropertyDiff(defectType: DefectType, diff: NamedDiffEntry) { + propertyDiffs.add(diff) + defectType.report(VALUE1_A to diff.value1, VALUE2_A to diff.value2) + } + + fun addAnnotationDiffs(checker: MethodAnnotationsChecker, diffs: List) { + for (diff in diffs) { + annotationDiffs.add(diff.toNamedDiffEntry(checker.name)) + when { + diff.value1 != null && diff.value2 != null -> + checker.mismatchDefect.report(VALUE1_A to diff.value1, VALUE2_A to diff.value2) + diff.value1 == null && diff.value2 != null -> + checker.missing1Defect.report(VALUE2_A to diff.value2) + diff.value1 != null && diff.value2 == null -> + checker.missing2Defect.report(VALUE1_A to diff.value1) + } + } + } + + fun addValueParameterAnnotationDiffs(checker: MethodParameterAnnotationsChecker, index: Int, diffs: List) { + val diffEntryName = "${checker.name}.p$index" + for (diff in diffs) { + annotationDiffs.add(diff.toNamedDiffEntry(diffEntryName)) + when { + diff.value1 != null && diff.value2 != null -> + checker.mismatchDefect.report( + VP_INDEX_A to index.toString(), + VALUE1_A to diff.value1, + VALUE2_A to diff.value2 + ) + diff.value1 == null && diff.value2 != null -> + checker.missing1Defect.report( + METHOD_A to methodId, + VP_INDEX_A to index.toString(), + VALUE2_A to diff.value2 + ) + diff.value1 != null && diff.value2 == null -> + checker.missing2Defect.report( + METHOD_A to methodId, + VP_INDEX_A to index.toString(), + VALUE1_A to diff.value1 + ) + } + } + } + + override fun isEmpty(): Boolean = propertyDiffs.isEmpty() && annotationDiffs.isEmpty() + + override fun writeAsHtml(output: PrintWriter) { + output.tag("h2", "> METHOD " + methodId.escapeHtml()) + + for (info in infoParagraphs) { + output.tag("p", info) + } + + output.propertyDiffTable(header1, header2, propertyDiffs) + output.annotationDiffTable(header1, header2, annotationDiffs) + } + + fun TextTreeBuilderContext.appendMethodReport() { + node("METHOD $methodId") { + appendNamedDiffEntries(header1, header2, propertyDiffs, "Property") + appendNamedDiffEntries(header1, header2, annotationDiffs, "Annotation") + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MultiFileClassFacadeMetadataReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MultiFileClassFacadeMetadataReport.kt new file mode 100644 index 00000000000..667ecd88649 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MultiFileClassFacadeMetadataReport.kt @@ -0,0 +1,37 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.tag +import java.io.PrintWriter + +class MultiFileClassFacadeMetadataReport(private val classInternalName: String, val header1: String, val header2: String) : + ComparisonReport { + + private val membersDiffList = ArrayList() + + override fun isEmpty() = membersDiffList.isEmpty() + + override fun writeAsHtml(output: PrintWriter) { + if (isEmpty()) return + output.tag("h2", "MULTIFILE CLASS FACADE METADATA $classInternalName") + output.listDiff(header1, header2, membersDiffList) + } + + fun addMembersListDiffs(diffs: List) { + for (diff in diffs) { + membersDiffList.add(diff.toDiffEntry()) + } + } + + fun TextTreeBuilderContext.appendMultiFileClassFacadeReport() { + if (isNotEmpty()) { + node("MULTIFILE FILE FACADE METADATA") { + appendDiffEntries(header1, header2, membersDiffList) + } + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MultiFileClassPartMetadataReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MultiFileClassPartMetadataReport.kt new file mode 100644 index 00000000000..3feeba7ce88 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/MultiFileClassPartMetadataReport.kt @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.tag +import java.io.PrintWriter + +class MultiFileClassPartMetadataReport(private val classInternalName: String, val header1: String, val header2: String) : ComparisonReport { + + private val propertyDiffs = ArrayList() + private var packageReport: PackageMetadataReport? = null + override fun isEmpty() = propertyDiffs.isEmpty() && packageReport.isNullOrEmpty() + + override fun writeAsHtml(output: PrintWriter) { + if (isEmpty()) return + + output.tag("h2", "MULTIFILE CLASS PART METADATA $classInternalName") + + output.propertyDiffTable(header1, header2, propertyDiffs) + + packageReport?.run { writeAsHtml(output) } + } + + fun packageReport() = PackageMetadataReport(classInternalName, header1, header2).also { packageReport = it } + + fun addPropertyDiff(diff: NamedDiffEntry) { + propertyDiffs.add(diff) + } + + fun TextTreeBuilderContext.appendMultiFileClassPartReport() { + if (isNotEmpty()) { + node("MULTIFILE FILE PART METADATA") { + appendNamedDiffEntries(header1, header2, propertyDiffs, "Property") + + packageReport?.run { appendPackageMetadataReport() } + } + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/PackageMetadataReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/PackageMetadataReport.kt new file mode 100644 index 00000000000..e9a028f6415 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/PackageMetadataReport.kt @@ -0,0 +1,75 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.tag +import java.io.PrintWriter + +class PackageMetadataReport(private val classInternalName: String, val header1: String, val header2: String) : ComparisonReport { + + private val membersDiffList = ArrayList() + + private val functionReports = ArrayList() + private val propertyReports = ArrayList() + private val typeAliasReports = ArrayList() + private val localDelegatedPropertyReport = ArrayList() + + + override fun isEmpty() = + membersDiffList.isEmpty() + && functionReports.areAllEmpty() + && propertyReports.areAllEmpty() + && typeAliasReports.areAllEmpty() + && localDelegatedPropertyReport.areAllEmpty() + + override fun writeAsHtml(output: PrintWriter) { + if (isEmpty()) return + + output.tag("h2", "PACKAGE METADATA $classInternalName") + output.listDiff(header1, header2, membersDiffList) + + for (report in listOf( + functionReports, + propertyReports, + typeAliasReports, + localDelegatedPropertyReport + ).flatten()) { + report.writeAsHtml(output) + } + } + + fun addMembersListDiffs(diffs: List) { + for (diff in diffs) { + membersDiffList.add(diff.toDiffEntry()) + } + } + + fun functionReport(id: String) = MetadataPropertyReport("FUNCTION $id", header1, header2).also { functionReports.add(it) } + + fun propertyReport(id: String) = MetadataPropertyReport("PROPERTY $id", header1, header2).also { propertyReports.add(it) } + + fun typeAliasReport(id: String) = MetadataPropertyReport("TYPE ALIAS $id", header1, header2).also { typeAliasReports.add(it) } + + fun localDelegatedPropertyReport(id: String) = + MetadataPropertyReport("LOCAL DELEGATED PROPERTY $id", header1, header2).also { localDelegatedPropertyReport.add(it) } + + fun TextTreeBuilderContext.appendPackageMetadataReport() { + if (isNotEmpty()) { + node("PACKAGE METADATA") { + appendDiffEntries(header1, header2, membersDiffList) + + for (report in listOf( + functionReports, + propertyReports, + typeAliasReports, + localDelegatedPropertyReport + ).flatten()) { + with(report) { appendReport() } + } + } + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/SummaryReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/SummaryReport.kt new file mode 100644 index 00000000000..227fbaf3ea1 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/SummaryReport.kt @@ -0,0 +1,110 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.* +import org.jetbrains.kotlin.abicmp.defects.DefectInfo +import org.jetbrains.kotlin.abicmp.defects.Location +import java.io.File +import java.io.PrintWriter + +class SummaryReport { + private val defectsByInfo: MutableMap> = HashMap() + + fun add(defectReport: DefectReport) { + for (defect in defectReport.defects) { + defectsByInfo.getOrPut(defect.info) { HashSet() }.add(defect.location) + } + } + + fun totalUnique() = defectsByInfo.keys.size + + fun totalDefects() = defectsByInfo.values.sumOf { it.size } + + fun writeReport(outputFile: File) { + PrintWriter(outputFile).use { out -> + out.tag("html") { + out.tag("head") { + out.tag("style", REPORT_CSS) + } + out.tag("body") { + out.writeReportBody() + } + } + } + } + + private fun PrintWriter.writeReportBody() { + tag("p") { + println("Total defects: ${totalDefects().tag("b")}, unique: ${totalUnique().tag("b")}") + } + + for (info in defectsByInfo.keys.sorted()) { + val locations = defectsByInfo[info]!! + writeDefectInfo(info) + writeLocations(locations.toList().sorted()) + } + } + + private fun PrintWriter.writeDefectInfo(info: DefectInfo) { + tag("p") { + tag("h2") { + println("[${info.type.id}] ${info.type.messageText}") + } + } + table { + for ((attr, value) in info.attributes) { + tableData(attr.htmlId, value.toHtmlString().withTag("code")) + } + } + println(" 
") + } + + private fun PrintWriter.writeLocations(locations: List) { + table { + when (locations.first()) { + is Location.JarFile -> + tableHeader("jar") + is Location.Class -> + tableHeader("jar", "class") + is Location.Method -> + tableHeader("jar", "class", "method") + is Location.Field -> + tableHeader("jar", "class", "field") + } + for (location in locations) { + when (location) { + is Location.JarFile -> + tableDataWithClass( + "location", + location.jarFileName.replace("-", NON_BREAKING_HYPHEN) + ) + is Location.Class -> + tableDataWithClass( + "location", + location.jarFileName.replace("-", NON_BREAKING_HYPHEN), + location.className.withTag("code") + ) + is Location.Method -> + tableDataWithClass( + "location", + location.jarFileName.replace("-", NON_BREAKING_HYPHEN), + location.className.withTag("code"), + location.methodName.withTag("code") + ) + is Location.Field -> + tableDataWithClass( + "location", + location.jarFileName.replace("-", NON_BREAKING_HYPHEN), + location.className.withTag("code"), + location.fieldName.withTag("code") + ) + } + } + } + } + +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/SyntheticClassMetadataReport.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/SyntheticClassMetadataReport.kt new file mode 100644 index 00000000000..454d7e9b969 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/SyntheticClassMetadataReport.kt @@ -0,0 +1,38 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.tag +import java.io.PrintWriter + +class SyntheticClassMetadataReport(private val classInternalName: String, val header1: String, val header2: String) : ComparisonReport { + + private val propertyDiffs = ArrayList() + + private var functionReport: MetadataPropertyReport? = null + + override fun isEmpty() = propertyDiffs.isEmpty() && functionReport.isNullOrEmpty() + + override fun writeAsHtml(output: PrintWriter) { + if (isEmpty()) return + output.tag("h2", "SYNTHETIC CLASS METADATA $classInternalName") + functionReport?.run { writeAsHtml(output) } + } + + fun functionReport() = MetadataPropertyReport("function", header1, header2).also { functionReport = it } + + fun addPropertyDiff(diff: NamedDiffEntry) { + propertyDiffs.add(diff) + } + + fun TextTreeBuilderContext.appendSyntheticClassMetadataReport() { + if (isNotEmpty()) { + node("SYNTHETIC CLASS METADATA") { + appendNamedDiffEntries(header1, header2, propertyDiffs, "Property") + } + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/css.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/css.kt new file mode 100644 index 00000000000..aeb993ba894 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/css.kt @@ -0,0 +1,29 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +const val REPORT_CSS = """ +table, th, td { + border: 1px solid black; + border-collapse: collapse; + padding: 2px; +} +th { + background: #B0B0B0; +} +td { + background: #EFEFB0; + vertical-align: top; +} +td.location { + background: #E0E0E0; + vertical-align: top; +} +hr { + border: 1px solid black; + border-collapse: collapse; +} +""" \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/plainTextDumpUtils.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/plainTextDumpUtils.kt new file mode 100644 index 00000000000..2a569c02d84 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/plainTextDumpUtils.kt @@ -0,0 +1,50 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import java.io.PrintWriter + +class TextTreeBuilderContext(val ident: String, val out: PrintWriter) + +private fun String.addIdent(ident: String) = "${ident}${replace("\n", "\n$ident")}" + +fun dumpTree(out: PrintWriter, body: TextTreeBuilderContext.() -> Unit) { + TextTreeBuilderContext("", out).also(body) + out.flush() +} + +fun TextTreeBuilderContext.node(header: String, body: TextTreeBuilderContext.() -> Unit = {}) { + out.println(header.addIdent(ident)) + TextTreeBuilderContext(ident + "\t", out).also(body) +} + +fun TextTreeBuilderContext.appendDiffEntries(header1: String, header2: String, diffs: ArrayList) { + if (diffs.isNotEmpty()) { + for (diff in diffs) { + node(header1) { + node(diff.value1) + } + node(header2) { + node(diff.value2) + } + } + } +} + +fun TextTreeBuilderContext.appendNamedDiffEntries(header1: String, header2: String, diffEntries: ArrayList, title: String) { + if (diffEntries.isNotEmpty()) { + for (entry in diffEntries) { + node("$title: ${entry.name}") { + node(header1) { + node(entry.value1) + } + node(header2) { + node(entry.value2) + } + } + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/reportUtils.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/reportUtils.kt new file mode 100644 index 00000000000..f63b3665ea8 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/reports/reportUtils.kt @@ -0,0 +1,51 @@ +/* + * Copyright 2010-2023 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.abicmp.reports + +import org.jetbrains.kotlin.abicmp.* +import java.io.PrintWriter + +fun String.withTag(tagName: String) = "<$tagName>$this" + +fun PrintWriter.propertyDiffTable(header1: String, header2: String, propertyDiffs: List) { + if (propertyDiffs.isNotEmpty()) { + table { + tableHeader("Property", header1, header2) + for (pd in propertyDiffs) { + tableData(pd.name, pd.value1.toHtmlString().withTag("code"), pd.value2.toHtmlString().withTag("code")) + } + } + println(" ") + } +} + +fun PrintWriter.annotationDiffTable(header1: String, header2: String, annotationDiffs: List) { + if (annotationDiffs.isNotEmpty()) { + table { + tableHeader("Annotation", header1, header2) + for (ad in annotationDiffs) { + tableData(ad.name, ad.value1.escapeHtml().withTag("code"), ad.value2.escapeHtml().withTag("code")) + } + } + println(" ") + } +} + +fun PrintWriter.listDiff(header1: String, header2: String, listDiffs: List) { + if (listDiffs.isNotEmpty()) { + table { + tableHeader(header1, header2) + for (me in listDiffs) { + tableData(me.value1.escapeHtml().withTag("code"), me.value2.escapeHtml().withTag("code")) + } + } + println(" ") + } +} + +fun ComparisonReport?.isNullOrEmpty() = this == null || isEmpty() + +fun List.areAllEmpty() = !any { it.isNotEmpty() } \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/CheckerConfiguration.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/CheckerConfiguration.kt new file mode 100644 index 00000000000..861b8fabaec --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/CheckerConfiguration.kt @@ -0,0 +1,224 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import kotlinx.metadata.ExperimentalContextReceivers +import kotlinx.metadata.hasConstant +import kotlinx.metadata.isVar +import kotlinx.metadata.jvm.* +import kotlinx.metadata.visibility +import org.jetbrains.kotlin.abicmp.* +import org.jetbrains.kotlin.abicmp.checkers.* +import org.jetbrains.kotlin.kotlinp.* +import org.jetbrains.org.objectweb.asm.tree.ClassNode +import org.jetbrains.org.objectweb.asm.tree.FieldNode +import org.jetbrains.org.objectweb.asm.tree.MethodNode +import kotlin.contracts.ExperimentalContracts + +private val allClassCheckers = listOf( + classPropertyChecker(ClassNode::version), + classPropertyChecker(ClassNode::access) { v -> "${v.toString(2)} ${v.classFlags()}" }, + classPropertyChecker("internalName", ClassNode::name), + classPropertyChecker(ClassNode::signature), + classPropertyChecker("superClassInternalName", ClassNode::superName), + classPropertyChecker("superInterfaces") { (it.interfaces as List).sorted() }, + classPropertyChecker(ClassNode::sourceFile), + classPropertyChecker(ClassNode::outerClass), + classPropertyChecker(ClassNode::outerMethod), + classPropertyChecker(ClassNode::outerMethodDesc), + ClassAnnotationsChecker(ClassNode::visibleAnnotations), + ClassAnnotationsChecker(ClassNode::invisibleAnnotations), + InnerClassesListChecker(), + MethodsListChecker(), + FieldsListChecker() +) + +private val allMethodCheckers = listOf( + methodPropertyChecker(MethodNode::access) { v -> "${v.toString(2)} ${v.methodFlags()}" }, + methodPropertyChecker("methodName", MethodNode::name), + methodPropertyChecker(MethodNode::desc), + methodPropertyChecker(MethodNode::signature), + methodPropertyChecker("exceptions") { it.exceptions.listOfNotNull().sorted() }, + methodPropertyChecker("annotationDefault") { it.annotationDefault?.toAnnotationArgumentValue() }, + MethodAnnotationsChecker(MethodNode::visibleAnnotations), + MethodAnnotationsChecker(MethodNode::invisibleAnnotations), + MethodParameterAnnotationsChecker(MethodNode::visibleParameterAnnotations), + MethodParameterAnnotationsChecker(MethodNode::invisibleParameterAnnotations) +) + +private val allConstructorMetadataCheckers = listOf( + constructorMetadataPropertyChecker("versionRequirements") { it.versionRequirements.stringifyRelevantRequirements() }, + constructorMetadataPropertyChecker("modifiers") { printConstructorModifiers(it) }, + constructorMetadataPropertyChecker("valueParameters") { it.valueParameters.stringifyValueParameters() } +) + +private val allFunctionMetadataCheckers = listOf( + functionMetadataPropertyChecker("lambdaClassOriginName") { it.lambdaClassOriginName.toString() }, + functionMetadataPropertyChecker("versionRequirements") { it.versionRequirements.stringifyRelevantRequirements() }, + functionMetadataPropertyChecker("contextReceiverTypes") { + @OptIn(ExperimentalContextReceivers::class) + it.contextReceiverTypes.stringifyTypeListSorted() + }, + functionMetadataPropertyChecker("modifiers") { printFunctionModifiers(it) }, + functionMetadataPropertyChecker("typeParameters") { it.typeParameters.stringifyTypeParameters() }, + functionMetadataPropertyChecker("receiverParameterType") { + it.receiverParameterType?.let { type -> printType(type) } ?: PROPERTY_VAL_STUB + }, + functionMetadataPropertyChecker("valueParameters") { it.valueParameters.stringifyValueParameters() }, + functionMetadataPropertyChecker("contract") { + @OptIn(ExperimentalContracts::class) + it.contract?.let { contract -> printContract(contract) } ?: PROPERTY_VAL_STUB + } +) + +private val allPropertyMetadataCheckers = listOf( + propertyMetadataPropertyChecker("versionRequirements") { it.versionRequirements.stringifyRelevantRequirements() }, + propertyMetadataPropertyChecker("fieldSignature") { it.fieldSignature?.toString() ?: PROPERTY_VAL_STUB }, + propertyMetadataPropertyChecker("getterSignature") { it.getterSignature?.toString() ?: PROPERTY_VAL_STUB }, + propertyMetadataPropertyChecker("setterSignature") { it.setterSignature?.toString() ?: PROPERTY_VAL_STUB }, + propertyMetadataPropertyChecker("syntheticMethodForAnnotations") { it.syntheticMethodForAnnotations?.toString() ?: PROPERTY_VAL_STUB }, + propertyMetadataPropertyChecker("syntheticMethodForDelegate") { it.syntheticMethodForDelegate?.toString() ?: PROPERTY_VAL_STUB }, + propertyMetadataPropertyChecker("isMovedFromInterfaceCompanion") { it.isMovedFromInterfaceCompanion.toString() }, + propertyMetadataPropertyChecker("contextReceiverTypes") { + @OptIn(ExperimentalContextReceivers::class) + it.contextReceiverTypes.stringifyTypeListSorted() + }, + propertyMetadataPropertyChecker("modifiers") { printPropertyModifiers(it) }, + propertyMetadataPropertyChecker("isVar") { it.isVar.toString() }, + propertyMetadataPropertyChecker("typeParameters") { it.typeParameters.stringifyTypeParameters() }, + propertyMetadataPropertyChecker("receiverParameterType") { + it.receiverParameterType?.let { type -> printType(type) } ?: PROPERTY_VAL_STUB + }, + propertyMetadataPropertyChecker("returnType") { printType(it.returnType) }, + propertyMetadataPropertyChecker("hasConstant") { it.hasConstant.toString() }, + propertyMetadataPropertyChecker("getterModifiers") { printPropertyAccessorModifiers(it.getter) }, + propertyMetadataPropertyChecker("setterModifiers") { + it.setter?.let { setter -> printPropertyAccessorModifiers(setter) } ?: PROPERTY_VAL_STUB + }, + propertyMetadataPropertyChecker("setterValueParameter") { + it.setterParameter?.let { param -> printValueParameter(param) } ?: PROPERTY_VAL_STUB + } +) + +private val allTypeAliasMetadataCheckers = listOf( + typeAliasMetadataPropertyChecker("versionRequirements") { it.versionRequirements.stringifyRelevantRequirements() }, + typeAliasMetadataPropertyChecker("annotations") { it.annotations.stringifyAnnotations() }, + typeAliasMetadataPropertyChecker("visibility") { it.visibility.toString() }, + typeAliasMetadataPropertyChecker("typeParameters") { it.typeParameters.stringifyTypeParameters() }, + typeAliasMetadataPropertyChecker("underlyingType") { printType(it.underlyingType) }, + typeAliasMetadataPropertyChecker("expandedType") { printType(it.expandedType) } +) + +private val allFieldCheckers = listOf( + fieldPropertyChecker(FieldNode::access) { v -> "${v.toString(2)} ${v.fieldFlags()}" }, + fieldPropertyChecker("fieldName", FieldNode::name), + fieldPropertyChecker(FieldNode::desc), + fieldPropertyChecker(FieldNode::signature), + fieldPropertyChecker("initialValue", FieldNode::value), + FieldAnnotationsChecker(FieldNode::visibleAnnotations), + FieldAnnotationsChecker(FieldNode::invisibleAnnotations) +) + +private val allClassMetadataCheckers = listOf( + classMetadataListChecker("constructors") { loadConstructors(it).keys.toList() }, + classMetadataListChecker("functions") { loadFunctions(it.kmClass).keys.toList() }, + classMetadataListChecker("properties") { loadProperties(it.kmClass).keys.toList() }, + classMetadataListChecker("typeAliases") { it.kmClass.typeAliases.map { typeAlias -> typeAlias.name } }, + classMetadataListChecker("nestedClasses") { it.kmClass.nestedClasses }, + classMetadataListChecker("enumEntries") { it.kmClass.enumEntries }, + classMetadataListChecker("sealedSubclasses") { it.kmClass.sealedSubclasses }, + classMetadataListChecker("localDelegatedProperties") { loadLocalDelegatedProperties(it).keys.toList() }, + + classMetadataPropertyChecker("typeParameters") { it.kmClass.typeParameters.stringifyTypeParameters() }, + classMetadataPropertyChecker("superTypes") { + it.kmClass.supertypes.map { type -> printType(type) }.sorted().joinToString(prefix = "[", postfix = "]") + }, + classMetadataPropertyChecker("companionObject") { it.kmClass.companionObject.toString() }, + classMetadataPropertyChecker("inlineClassUnderlyingPropertyName") { it.kmClass.inlineClassUnderlyingPropertyName.toString() }, + classMetadataPropertyChecker("inlineClassUnderlyingType") { + it.kmClass.inlineClassUnderlyingType?.let { type -> printType(type) } ?: "---" + }, + classMetadataPropertyChecker("contextReceiverTypes") { + @OptIn(ExperimentalContextReceivers::class) + it.kmClass.contextReceiverTypes.stringifyTypeListSorted() + }, + classMetadataPropertyChecker("versionRequirements") { it.kmClass.versionRequirements.stringifyRelevantRequirements() } +) + +private val allPackageMetadataCheckers = listOf( + fileFacadeMetadataListChecker("functions") { loadFunctions(it).keys.toList() }, + fileFacadeMetadataListChecker("properties") { loadProperties(it).keys.toList() }, + fileFacadeMetadataListChecker("typeAliases") { loadTypeAliases(it).keys.toList() }, + fileFacadeMetadataListChecker("localDelegatedProperties") { loadLocalDelegatedProperties(it).keys.toList() } +) + +private val allMultifileClassFacadeMetadataCheckers = listOf( + multiFileClassFacadeMetadataListChecker("partClassNames") { it.partClassNames } +) + +private val allMultifileClassPartMetadataCheckers = listOf( + multiFileClassPartMetadataPropertyChecker("facadeClassName") { it.facadeClassName } +) + +private val allSyntheticClassMetadataCheckers = listOf( + syntheticClassMetadataPropertyChecker("isLambda") { it.isLambda.toString() }, + syntheticClassMetadataPropertyChecker("function") { + it.kmLambda?.function?.let { function -> + printFunction( + function, + KotlinpSettings( + isVerbose = true, + sortDeclarations = true + ) + ) + } ?: PROPERTY_VAL_STUB + } +) + + +class CheckerConfigurationBuilder { + private val enabledExclusively = HashSet() + private val disabled = HashSet() + + fun enableExclusively(name: String) { + enabledExclusively.add(name) + } + + fun disable(name: String) { + disabled.add(name) + } + + fun build() = CheckerConfiguration(enabledExclusively, disabled) +} + +inline fun checkerConfiguration(b: CheckerConfigurationBuilder.() -> Unit): CheckerConfiguration { + val builder = CheckerConfigurationBuilder() + builder.b() + return builder.build() +} + +class CheckerConfiguration(private val enabledExclusively: Set, private val disabled: Set) { + + private fun List.filterOutDisabled() = filter { it.isEnabled() } + + val enabledClassCheckers: List = allClassCheckers.filterOutDisabled() + val enabledMethodCheckers: List = allMethodCheckers.filterOutDisabled() + val enabledFieldCheckers: List = allFieldCheckers.filterOutDisabled() + val enabledPropertyMetadataCheckers = allPropertyMetadataCheckers.filterOutDisabled() + val enabledConstructorMetadataCheckers = allConstructorMetadataCheckers.filterOutDisabled() + val enabledFunctionMetadataCheckers = allFunctionMetadataCheckers.filterOutDisabled() + val enabledTypeAliasMetadataCheckers = allTypeAliasMetadataCheckers.filterOutDisabled() + val enabledClassMetadataCheckers = allClassMetadataCheckers.filterOutDisabled() + val enabledPackageMetadataCheckers = allPackageMetadataCheckers.filterOutDisabled() + val enabledMultifileClassFacadeMetadataCheckers = allMultifileClassFacadeMetadataCheckers.filterOutDisabled() + val enabledMultifileClassPartMetadataCheckers = allMultifileClassPartMetadataCheckers.filterOutDisabled() + val enabledAllSyntheticClassMetadataCheckers = allSyntheticClassMetadataCheckers.filterOutDisabled() + + private fun Checker.isEnabled(): Boolean { + if (enabledExclusively.isNotEmpty() && name !in enabledExclusively) return false + return name !in disabled + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/ClassMetadataTask.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/ClassMetadataTask.kt new file mode 100644 index 00000000000..8a2e59a4086 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/ClassMetadataTask.kt @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.checkers.* +import org.jetbrains.kotlin.abicmp.reports.ClassMetadataReport + +class ClassMetadataTask( + private val configuration: CheckerConfiguration, + private val metadata1: KotlinClassMetadata.Class, + private val metadata2: KotlinClassMetadata.Class, + private val report: ClassMetadataReport, +) : Runnable { + override fun run() { + for (checker in configuration.enabledClassMetadataCheckers) { + checker.check(metadata1, metadata2, report) + } + + checkMetadataMembers( + metadata1, + metadata2, + configuration.enabledConstructorMetadataCheckers, + report::constructorReport, + ::loadConstructors + ) + + checkMetadataMembers( + metadata1, + metadata2, + configuration.enabledFunctionMetadataCheckers, + report::functionReport + ) { loadFunctions(it.kmClass) } + + checkMetadataMembers( + metadata1, + metadata2, + configuration.enabledPropertyMetadataCheckers, + report::propertyReport + ) { loadProperties(it.kmClass) } + + checkMetadataMembers( + metadata1, + metadata2, + configuration.enabledTypeAliasMetadataCheckers, + report::typeAliasReport + ) { loadTypeAliases(it.kmClass) } + + checkMetadataMembers( + metadata1, + metadata2, + configuration.enabledPropertyMetadataCheckers, + report::localDelegatedPropertyReport + ) { loadLocalDelegatedProperties(it) } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/ClassTask.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/ClassTask.kt new file mode 100644 index 00000000000..8f950c947e6 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/ClassTask.kt @@ -0,0 +1,152 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.checkers.loadFields +import org.jetbrains.kotlin.abicmp.checkers.loadMethods +import org.jetbrains.kotlin.abicmp.classFlags +import org.jetbrains.kotlin.abicmp.isSynthetic +import org.jetbrains.kotlin.abicmp.reports.ClassReport +import org.jetbrains.kotlin.abicmp.reports.ListEntryDiff +import org.jetbrains.kotlin.abicmp.tag +import org.jetbrains.kotlin.kotlinp.Kotlinp +import org.jetbrains.kotlin.kotlinp.KotlinpSettings +import org.jetbrains.kotlin.kotlinp.readKotlinClassHeader +import org.jetbrains.org.objectweb.asm.ClassReader +import org.jetbrains.org.objectweb.asm.ClassWriter +import org.jetbrains.org.objectweb.asm.tree.ClassNode +import org.jetbrains.org.objectweb.asm.tree.FieldNode +import org.jetbrains.org.objectweb.asm.tree.MethodNode + +class ClassTask( + private val checkerConfiguration: CheckerConfiguration, + private val class1: ClassNode, + private val class2: ClassNode, + private val report: ClassReport, +) : Runnable { + + override fun run() { + addClassInfo() + checkMetadata() + + for (checker in checkerConfiguration.enabledClassCheckers) { + checker.check(class1, class2, report) + } + + checkMethods() + checkFields() + } + + private fun checkMetadata() { + + fun ClassNode.getMetadata(): KotlinClassMetadata? { + val classWriter = ClassWriter(0) + accept(classWriter) + val classReader = ClassReader(classWriter.toByteArray()) + return classReader.readKotlinClassHeader()?.run { KotlinClassMetadata.readStrict(this) } + } + + val kotlinp = Kotlinp(KotlinpSettings(isVerbose = false, sortDeclarations = true)) + val metadata1 = class1.getMetadata() + val metadata2 = class2.getMetadata() + + if (metadata1 == null && metadata2 == null) return + + if (metadata1 == null || metadata2 == null) { + report.addMetadataDiff( + ListEntryDiff( + metadata1?.run { kotlinp.renderClassFile(metadata1) }, + metadata2?.run { kotlinp.renderClassFile(metadata2) }) + ) + return + } + + if (metadata1::class != metadata2::class) { + report.addMetadataDiff(ListEntryDiff(metadata1::class.simpleName, metadata2::class.simpleName)) + return + } + + when (metadata1) { + is KotlinClassMetadata.Class -> ClassMetadataTask( + checkerConfiguration, + metadata1, + metadata2 as KotlinClassMetadata.Class, + report.classMetadataReport() + ).run() + is KotlinClassMetadata.FileFacade -> PackageMetadataTask( + checkerConfiguration, + metadata1.kmPackage, + (metadata2 as KotlinClassMetadata.FileFacade).kmPackage, + report.fileFacadeMetadataReport() + ).run() + is KotlinClassMetadata.MultiFileClassFacade -> MultiFileClassFacadeMetadataTask( + checkerConfiguration, + metadata1, + metadata2 as KotlinClassMetadata.MultiFileClassFacade, + report.multiFileClassFacadeMetadataReport() + ) + is KotlinClassMetadata.MultiFileClassPart -> MultiFileClassPartMetadataTask( + checkerConfiguration, + metadata1, + metadata2 as KotlinClassMetadata.MultiFileClassPart, + report.multiFileClassPartMetadataReport() + ) + is KotlinClassMetadata.SyntheticClass -> SyntheticMetadataTask( + checkerConfiguration, + metadata1, + metadata2 as KotlinClassMetadata.SyntheticClass, + report.syntheticMetadataReport() + ) + is KotlinClassMetadata.Unknown -> {} + } + } + + private fun addClassInfo() { + report.info { + tag("p") { + tag("b", report.header1) + println(": ${class1.access.classFlags()}") + } + tag("p") { + tag("b", report.header2) + println(": ${class2.access.classFlags()}") + } + } + } + + private fun checkMethods() { + val methods1 = class1.loadMethods() + val methods2 = class2.loadMethods() + + val commonIds = methods1.keys.intersect(methods2.keys).sorted() + for (id in commonIds) { + val method1 = methods1[id]!! + val method2 = methods2[id]!! + if (method1.access.isSynthetic() && method2.access.isSynthetic()) continue + val methodReport = report.methodReport(id) + MethodTask(checkerConfiguration, method1, method2, methodReport).run() + } + } + + private fun checkFields() { + val fields1 = class1.loadFields() + val fields2 = class2.loadFields() + + val commonIds = fields1.keys.intersect(fields2.keys).sorted() + for (id in commonIds) { + val field1 = fields1[id]!! + val field2 = fields2[id]!! + if (field1.access.isSynthetic() && field2.access.isSynthetic()) continue + val fieldReport = report.fieldReport(id) + FieldTask(checkerConfiguration, field1, field2, fieldReport).run() + } + } +} + +fun MethodNode.methodId() = "$name$desc" + +fun FieldNode.fieldId() = "$name:$desc" diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/DirTask.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/DirTask.kt new file mode 100644 index 00000000000..dff0ebbb216 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/DirTask.kt @@ -0,0 +1,79 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import org.jetbrains.kotlin.abicmp.reports.SummaryReport +import java.io.File +import java.util.concurrent.Executors +import java.util.concurrent.Future +import java.util.jar.JarFile + +class DirTask( + private val dir1: File, + private val dir2: File, + private val id1: String?, + private val id2: String?, + private val header1: String, + private val header2: String, + private val reportDir: File, + private val checkerConfiguration: CheckerConfiguration = checkerConfiguration {}, +) : Runnable { + + private val executor = Executors.newWorkStealingPool() + + private val lastNameIndex = HashMap() + private val tasks = ArrayList>>() + + override fun run() { + println("Comparing directories: $dir1, $dir2") + walkRecursively(dir1, dir2) + val summary = SummaryReport() + tasks.forEach { (jarTask, future) -> + future.get() + summary.add(jarTask.defectReport) + } + + val summaryFile = File(reportDir, "SUMMARY.html") + println("Writing summary: $summaryFile") + summary.writeReport(summaryFile) + println("Done, ${summary.totalDefects()} defects, ${summary.totalUnique()} unique") + } + + private fun walkRecursively(subdir1: File, subdir2: File) { + val files1 = subdir1.listFiles() ?: return + for (file1 in files1) { + val file2 = File(subdir2, file1.name.replaceIfNotNull(id1, id2)) + if (file1.canRead() && file2.exists() && file2.canRead()) { + if (file1.isDirectory) { + if (file2.isDirectory) { + println("Comparing subdirectories: $file1, $file2") + walkRecursively(file1, file2) + } + } else if (file1.name.endsWith(".jar")) { + println("Comparing jars: $file1, $file2") + val index0 = lastNameIndex.getOrElse(file1.name) { 0 } + val index = index0 + 1 + lastNameIndex[file1.name] = index + val jarTaskHeader = file1.name.replaceIfNotNull(id1, "").replace(".jar", "") + val reportFile = File(reportDir, "$jarTaskHeader-REPORT-$index.html") + val jarTask = JarTask( + jarTaskHeader, + JarFile(file1), JarFile(file2), + header1, header2, + reportFile, checkerConfiguration + ) + tasks.add(jarTask to executor.submit(jarTask)) + } + } + } + } + + private fun String.replaceIfNotNull(pattern: String?, replaceWith: String?) = + if (pattern != null && replaceWith != null) + replace(pattern, replaceWith) + else + this +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/FieldTask.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/FieldTask.kt new file mode 100644 index 00000000000..851291b0ce7 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/FieldTask.kt @@ -0,0 +1,40 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import org.jetbrains.kotlin.abicmp.fieldFlags +import org.jetbrains.kotlin.abicmp.reports.FieldReport +import org.jetbrains.kotlin.abicmp.tag +import org.jetbrains.org.objectweb.asm.tree.FieldNode + +class FieldTask( + private val checkerConfiguration: CheckerConfiguration, + private val field1: FieldNode, + private val field2: FieldNode, + private val report: FieldReport, +) : Runnable { + + override fun run() { + addFieldInfo() + + for (checker in checkerConfiguration.enabledFieldCheckers) { + checker.check(field1, field2, report) + } + } + + private fun addFieldInfo() { + report.info { + tag("p") { + tag("b", report.header1) + println(": ${field1.access.fieldFlags()}") + } + tag("p") { + tag("b", report.header2) + println(": ${field2.access.fieldFlags()}") + } + } + } +} diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/GenericMetadataTask.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/GenericMetadataTask.kt new file mode 100644 index 00000000000..17b3c1afd0a --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/GenericMetadataTask.kt @@ -0,0 +1,22 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import org.jetbrains.kotlin.abicmp.checkers.GenericMetadataChecker +import org.jetbrains.kotlin.abicmp.reports.MetadataPropertyReport + +class GenericMetadataTask( + private val metadata1: T, + private val metadata2: T, + private val report: MetadataPropertyReport, + private val checkers: List> +) : Runnable { + override fun run() { + for (checker in checkers) { + checker.check(metadata1, metadata2, report) + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/JarTask.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/JarTask.kt new file mode 100644 index 00000000000..c8520443816 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/JarTask.kt @@ -0,0 +1,152 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import org.jetbrains.kotlin.abicmp.checkers.isSamAdapterName +import org.jetbrains.kotlin.abicmp.classFlags +import org.jetbrains.kotlin.abicmp.isSynthetic +import org.jetbrains.kotlin.abicmp.listOfNotNull +import org.jetbrains.kotlin.abicmp.reports.JarReport +import org.jetbrains.kotlin.abicmp.reports.REPORT_CSS +import org.jetbrains.kotlin.abicmp.reports.isNotEmpty +import org.jetbrains.kotlin.abicmp.tag +import org.jetbrains.org.objectweb.asm.ClassReader +import org.jetbrains.org.objectweb.asm.tree.ClassNode +import org.jetbrains.org.objectweb.asm.tree.InnerClassNode +import java.io.File +import java.io.InputStream +import java.io.PrintWriter +import java.util.jar.JarFile + +class JarTask( + header: String, + private val jarFile1: JarFile, + private val jarFile2: JarFile, + private val header1: String, + private val header2: String, + private val outputFile: File, + private val checkerConfiguration: CheckerConfiguration, +) : Runnable { + + private val ignoreAnonymousOrLocalClasses = true + private val ignoreJavaClasses = true + + private val report = JarReport(header, header1, header2, jarFile1.name, jarFile2.name) + + val defectReport get() = report.defectReport + + private var totalDiffs = 0 + + private val names1 = HashSet() + + override fun run() { + println("Comparing jars: ${jarFile1.name}, ${jarFile2.name}") + + addJarsInfo() + + checkJarFile1() + checkJarFile2() + + writeReportIfRequired() + } + + private fun checkJarFile1() { + jarFile1.stream().forEach { entry1 -> + val name1 = entry1.name + if (name1.endsWith(".class")) { + names1.add(name1) + val entry2 = jarFile2.getEntry(name1) + if (entry2 == null) { + val classNode = parseClassNode(jarFile1.getInputStream(entry1)) + if (!classNode.shouldBeIgnored()) { + report.addMissingClassName2("$name1 ${classNode.access.classFlags()}") + ++totalDiffs + } + } else { + val class1 = parseClassNode(jarFile1.getInputStream(entry1)) + val class2 = parseClassNode(jarFile2.getInputStream(entry2)) + + if (!class1.shouldBeIgnored() || !class2.shouldBeIgnored()) { + println("Comparing classes: ${class1.name}") + val classReport = report.classReport(class1.name) + val classTask = ClassTask(checkerConfiguration, class1, class2, classReport) + classTask.run() + if (classReport.isNotEmpty()) { + ++totalDiffs + } + } else { + println("Skipping $name1") + } + } + } + } + } + + private fun parseClassNode(input: InputStream): ClassNode = + ClassNode().also { ClassReader(input).accept(it, ClassReader.SKIP_CODE) } + + private fun checkJarFile2() { + jarFile2.stream().forEach { entry2 -> + val name2 = entry2.name + if (name2.endsWith(".class") && name2 !in names1) { + val classNode = parseClassNode(jarFile2.getInputStream(entry2)) + if (!classNode.shouldBeIgnored()) { + report.addMissingClassName1("$name2 ${classNode.access.classFlags()}") + ++totalDiffs + } + } + } + } + + private fun writeReportIfRequired() { + if (report.isNotEmpty()) { + PrintWriter(outputFile).use { out -> + out.tag("html") { + out.tag("head") { + out.printCss() + } + out.tag("body") { + report.writeAsHtml(out) + } + } + } + } + } + + private fun PrintWriter.printCss() { + tag("style", REPORT_CSS) + } + + private fun ClassNode.shouldBeIgnored(): Boolean { + if (ignoreJavaClasses && isJavaClass()) return true + if (access.isSynthetic()) return true + if (ignoreAnonymousOrLocalClasses && isAnonymousOrLocalClass()) return true + return false + } + + private fun ClassNode.isAnonymousOrLocalClass() = + isSamAdapterName(name) || + innerClasses.listOfNotNull().any { + it.name == this.name && it.outerName == null + } + + private fun ClassNode.isJavaClass() = + sourceFile != null && sourceFile.endsWith(".java") + + private fun addJarsInfo() { + report.info { + tag("p") { + tag("b", header1) + println(": ${jarFile1.name}") + } + tag("p") { + tag("b", header2) + println(": ${jarFile2.name}") + } + } + } +} + diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MethodTask.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MethodTask.kt new file mode 100644 index 00000000000..e2dfda3ecca --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MethodTask.kt @@ -0,0 +1,40 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import org.jetbrains.kotlin.abicmp.methodFlags +import org.jetbrains.kotlin.abicmp.reports.MethodReport +import org.jetbrains.kotlin.abicmp.tag +import org.jetbrains.org.objectweb.asm.tree.MethodNode + +class MethodTask( + private val checkerConfiguration: CheckerConfiguration, + private val method1: MethodNode, + private val method2: MethodNode, + private val report: MethodReport, +) : Runnable { + + override fun run() { + addMethodInfo() + + for (checker in checkerConfiguration.enabledMethodCheckers) { + checker.check(method1, method2, report) + } + } + + private fun addMethodInfo() { + report.info { + tag("p") { + tag("b", report.header1) + println(": ${method1.access.methodFlags()}") + } + tag("p") { + tag("b", report.header2) + println(": ${method2.access.methodFlags()}") + } + } + } +} diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MultiFileClassFacadeMetadataTask.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MultiFileClassFacadeMetadataTask.kt new file mode 100644 index 00000000000..9d38dddf39b --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MultiFileClassFacadeMetadataTask.kt @@ -0,0 +1,22 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.MultiFileClassFacadeMetadataReport + +class MultiFileClassFacadeMetadataTask( + private val configuration: CheckerConfiguration, + private val metadata1: KotlinClassMetadata.MultiFileClassFacade, + private val metadata2: KotlinClassMetadata.MultiFileClassFacade, + private val report: MultiFileClassFacadeMetadataReport, +) : Runnable { + override fun run() { + for (checker in configuration.enabledMultifileClassFacadeMetadataCheckers) { + checker.check(metadata1, metadata2, report) + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MultiFileClassPartMetadataTask.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MultiFileClassPartMetadataTask.kt new file mode 100644 index 00000000000..4c616c711ad --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/MultiFileClassPartMetadataTask.kt @@ -0,0 +1,23 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.MultiFileClassPartMetadataReport + +class MultiFileClassPartMetadataTask( + private val configuration: CheckerConfiguration, + private val metadata1: KotlinClassMetadata.MultiFileClassPart, + private val metadata2: KotlinClassMetadata.MultiFileClassPart, + private val report: MultiFileClassPartMetadataReport, +) : Runnable { + override fun run() { + for (checker in configuration.enabledMultifileClassPartMetadataCheckers) { + checker.check(metadata1, metadata2, report) + } + PackageMetadataTask(configuration, metadata1.kmPackage, metadata2.kmPackage, report.packageReport()).run() + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/PackageMetadataTask.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/PackageMetadataTask.kt new file mode 100644 index 00000000000..b10546ae7ea --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/PackageMetadataTask.kt @@ -0,0 +1,41 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import kotlinx.metadata.KmPackage +import org.jetbrains.kotlin.abicmp.checkers.* +import org.jetbrains.kotlin.abicmp.reports.PackageMetadataReport + +class PackageMetadataTask( + private val configuration: CheckerConfiguration, + private val metadata1: KmPackage, + private val metadata2: KmPackage, + private val report: PackageMetadataReport, +) : Runnable { + override fun run() { + for (checker in configuration.enabledPackageMetadataCheckers) { + checker.check(metadata1, metadata2, report) + } + + checkMetadataMembers(metadata1, metadata2, configuration.enabledFunctionMetadataCheckers, report::functionReport, ::loadFunctions) + checkMetadataMembers(metadata1, metadata2, configuration.enabledPropertyMetadataCheckers, report::propertyReport, ::loadProperties) + checkMetadataMembers( + metadata1, + metadata2, + configuration.enabledTypeAliasMetadataCheckers, + report::typeAliasReport, + ::loadTypeAliases + ) + checkMetadataMembers( + metadata1, + metadata2, + configuration.enabledPropertyMetadataCheckers, + report::localDelegatedPropertyReport, + ::loadLocalDelegatedProperties + ) + } + +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/SyntheticMetadataTask.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/SyntheticMetadataTask.kt new file mode 100644 index 00000000000..60a6eda06fe --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/SyntheticMetadataTask.kt @@ -0,0 +1,33 @@ +/* + * Copyright 2010-2023 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.abicmp.tasks + +import kotlinx.metadata.jvm.KotlinClassMetadata +import org.jetbrains.kotlin.abicmp.reports.SyntheticClassMetadataReport + +class SyntheticMetadataTask( + private val configuration: CheckerConfiguration, + private val metadata1: KotlinClassMetadata.SyntheticClass, + private val metadata2: KotlinClassMetadata.SyntheticClass, + private val report: SyntheticClassMetadataReport, +) : Runnable { + override fun run() { + for (checker in configuration.enabledAllSyntheticClassMetadataCheckers) { + checker.check(metadata1, metadata2, report) + } + + val lambda1 = metadata1.kmLambda + val lambda2 = metadata2.kmLambda + if (lambda1 != null && lambda2 != null) { + GenericMetadataTask( + lambda1.function, + lambda2.function, + report.functionReport(), + configuration.enabledFunctionMetadataCheckers + ).run() + } + } +} \ No newline at end of file diff --git a/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/util.kt b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/util.kt new file mode 100644 index 00000000000..4fa8650e019 --- /dev/null +++ b/libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/util.kt @@ -0,0 +1,10 @@ +/* + * Copyright 2010-2023 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.abicmp + +inline fun List?.listOfNotNull() = orEmpty().filterIsInstance() + +const val PROPERTY_VAL_STUB = "---" \ No newline at end of file diff --git a/libraries/tools/kotlinp/src/org/jetbrains/kotlin/kotlinp/printers.kt b/libraries/tools/kotlinp/src/org/jetbrains/kotlin/kotlinp/printers.kt index 1a7c54bc143..39ef1d20b73 100644 --- a/libraries/tools/kotlinp/src/org/jetbrains/kotlin/kotlinp/printers.kt +++ b/libraries/tools/kotlinp/src/org/jetbrains/kotlin/kotlinp/printers.kt @@ -13,6 +13,10 @@ private object SpecialCharacters { const val TYPE_ALIAS_MARKER = '^' } +fun printFunction(function: KmFunction, settings: KotlinpSettings): String { + return StringBuilder().also { visitFunction(function, settings, it) }.toString() +} + @OptIn(ExperimentalContextReceivers::class, ExperimentalContracts::class) private fun visitFunction( function: KmFunction, @@ -153,7 +157,7 @@ private fun visitTypeAlias( sb.appendLine() } -private fun printType(type: KmType): String { +fun printType(type: KmType): String { val classifier = when (val cls = type.classifier) { is KmClassifier.Class -> cls.name is KmClassifier.TypeParameter -> "T#${cls.id}" @@ -221,7 +225,7 @@ private fun printType(type: KmType): String { } } -private fun printTypeParameter( +fun printTypeParameter( typeParameter: KmTypeParameter, settings: KotlinpSettings ): String = buildString { @@ -241,7 +245,7 @@ private fun printTypeParameter( } } -private fun printValueParameter( +fun printValueParameter( valueParameter: KmValueParameter ): String { val type = printType(valueParameter.type) @@ -259,7 +263,7 @@ private fun printValueParameter( } } -private fun renderAnnotation(annotation: KmAnnotation): String = +fun renderAnnotation(annotation: KmAnnotation): String = annotation.className + if (annotation.arguments.isEmpty()) "" else annotation.arguments.entries.joinToString(prefix = "(", postfix = ")") { (name, argument) -> "$name = ${renderAnnotationArgument(argument)}" @@ -313,7 +317,7 @@ private fun String.sanitize(quote: Char): String = } } -private fun printVersionRequirement(versionRequirement: KmVersionRequirement): String { +fun printVersionRequirement(versionRequirement: KmVersionRequirement): String { val version = with(versionRequirement.version) { "$major.$minor.$patch" } return buildString { @@ -363,7 +367,7 @@ private fun > Iterable.sortIfNeededBy(settings: KotlinpS } @ExperimentalContracts -private fun printContract(kmContract: KmContract): String = buildString { +fun printContract(kmContract: KmContract): String = buildString { appendLine("contract {") kmContract.effects.map(::printEffect).forEach { effect -> appendLine(" $effect") @@ -746,7 +750,7 @@ private fun StringBuilder.appendClassModifiers(kmClass: KmClass) { append(CLASS_KIND_MAP[kmClass.kind]) } -private fun StringBuilder.appendConstructorModifiers(kmConstructor: KmConstructor) { +fun printConstructorModifiers(kmConstructor: KmConstructor) = buildString { append(VISIBILITY_MAP[kmConstructor.visibility]) appendFlags( kmConstructor.isSecondary to "/* secondary */", @@ -754,7 +758,11 @@ private fun StringBuilder.appendConstructorModifiers(kmConstructor: KmConstructo ) } -private fun StringBuilder.appendFunctionModifiers(kmFunction: KmFunction) { +private fun StringBuilder.appendConstructorModifiers(kmConstructor: KmConstructor) { + append(printConstructorModifiers(kmConstructor)) +} + +fun printFunctionModifiers(kmFunction: KmFunction) = buildString { append(VISIBILITY_MAP[kmFunction.visibility]) append(MODALITY_MAP[kmFunction.modality]) append(MEMBER_KIND_MAP[kmFunction.kind]) @@ -770,7 +778,11 @@ private fun StringBuilder.appendFunctionModifiers(kmFunction: KmFunction) { ) } -private fun StringBuilder.appendPropertyModifiers(kmProperty: KmProperty) { +private fun StringBuilder.appendFunctionModifiers(kmFunction: KmFunction) { + append(printFunctionModifiers(kmFunction)) +} + +fun printPropertyModifiers(kmProperty: KmProperty) = buildString { append(VISIBILITY_MAP[kmProperty.visibility]) append(MODALITY_MAP[kmProperty.modality]) append(MEMBER_KIND_MAP[kmProperty.kind]) @@ -783,7 +795,11 @@ private fun StringBuilder.appendPropertyModifiers(kmProperty: KmProperty) { ) } -private fun StringBuilder.appendPropertyAccessorModifiers(accessorAttributes: KmPropertyAccessorAttributes) { +private fun StringBuilder.appendPropertyModifiers(kmProperty: KmProperty) { + append(printPropertyModifiers(kmProperty)) +} + +fun printPropertyAccessorModifiers(accessorAttributes: KmPropertyAccessorAttributes) = buildString { append(VISIBILITY_MAP[accessorAttributes.visibility]) append(MODALITY_MAP[accessorAttributes.modality]) appendFlags( @@ -793,6 +809,10 @@ private fun StringBuilder.appendPropertyAccessorModifiers(accessorAttributes: Km ) } +private fun StringBuilder.appendPropertyAccessorModifiers(accessorAttributes: KmPropertyAccessorAttributes) { + append(printPropertyAccessorModifiers(accessorAttributes)) +} + private fun StringBuilder.appendValueParameterModifiers(valueParameter: KmValueParameter) = appendFlags( valueParameter.isCrossinline to "crossinline", valueParameter.isNoinline to "noinline" diff --git a/libraries/tools/kotlinp/src/org/jetbrains/kotlin/kotlinp/readKotlinClassHeader.kt b/libraries/tools/kotlinp/src/org/jetbrains/kotlin/kotlinp/readKotlinClassHeader.kt index a485f2b08cd..cb85ce8ec00 100644 --- a/libraries/tools/kotlinp/src/org/jetbrains/kotlin/kotlinp/readKotlinClassHeader.kt +++ b/libraries/tools/kotlinp/src/org/jetbrains/kotlin/kotlinp/readKotlinClassHeader.kt @@ -10,12 +10,14 @@ import org.jetbrains.org.objectweb.asm.* import java.io.File import java.io.FileInputStream -internal fun File.readKotlinClassHeader(): Metadata? { +internal fun File.readKotlinClassHeader(): Metadata? = ClassReader(FileInputStream(this)).readKotlinClassHeader() + +fun ClassReader.readKotlinClassHeader(): Metadata? { var header: Metadata? = null try { val metadataDesc = Type.getDescriptor(Metadata::class.java) - ClassReader(FileInputStream(this)).accept(object : ClassVisitor(Opcodes.API_VERSION) { + accept(object : ClassVisitor(Opcodes.API_VERSION) { override fun visitAnnotation(desc: String, visible: Boolean): AnnotationVisitor? = if (desc == metadataDesc) readMetadataVisitor { header = it } else null diff --git a/settings.gradle b/settings.gradle index 6a0e2bf25b8..6d22819051d 100644 --- a/settings.gradle +++ b/settings.gradle @@ -274,6 +274,8 @@ include ":kotlin-imports-dumper-compiler-plugin", ":repo:codebase-tests", ":repo:artifacts-tests" +include ":libraries:tools:abi-comparator" + include ":kotlin-atomicfu-compiler-plugin", ":kotlin-atomicfu-compiler-plugin-embeddable", ":kotlinx-atomicfu-runtime",