From 64a300bfcde82d7c6e6d5aa0543c4cc3cf2f2198 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Wed, 27 Jan 2021 12:22:36 +0300 Subject: [PATCH] [TD] Update testdata according to previous commit --- compiler/testData/codegen/box/jvm8/defaults/26360.kt | 4 ++-- .../anonymousObject/anonymousObjectOnCallSite.kt | 2 +- .../anonymousObjectOnCallSiteSuperParams.kt | 2 +- .../anonymousObjectOnDeclarationSite.kt | 2 +- .../anonymousObjectOnDeclarationSiteSuperParams.kt | 2 +- .../anonymousObject/capturedLambdaInInline.kt | 2 +- .../anonymousObject/capturedLambdaInInline2.kt | 2 +- .../anonymousObject/capturedLambdaInInline3.kt | 2 +- .../anonymousObject/capturedLambdaInInlineObject.kt | 2 +- .../boxInline/anonymousObject/changingReturnType.kt | 2 +- .../anonymousObject/inlineCallInsideInlineLambda.kt | 7 ++++--- .../codegen/boxInline/anonymousObject/kt13133.kt | 1 - .../codegen/boxInline/anonymousObject/kt13182.kt | 1 - .../codegen/boxInline/anonymousObject/kt13374.kt | 1 - .../codegen/boxInline/anonymousObject/kt14011.kt | 1 - .../codegen/boxInline/anonymousObject/kt14011_2.kt | 1 - .../codegen/boxInline/anonymousObject/kt14011_3.kt | 1 - .../codegen/boxInline/anonymousObject/kt15751.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt16193.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt17972.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt17972_2.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt17972_3.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt17972_4.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt17972_5.kt | 4 ++-- .../boxInline/anonymousObject/kt17972_super.kt | 4 ++-- .../boxInline/anonymousObject/kt17972_super2.kt | 4 ++-- .../boxInline/anonymousObject/kt17972_super3.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt19389.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt19399.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt19434.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt19434_2.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt19723.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt34656.kt | 2 +- .../codegen/boxInline/anonymousObject/kt38197.kt | 4 ++-- .../codegen/boxInline/anonymousObject/kt42815.kt | 4 ++-- .../boxInline/anonymousObject/kt42815_delegated.kt | 2 +- .../codegen/boxInline/anonymousObject/kt9064.kt | 2 +- .../codegen/boxInline/anonymousObject/kt9064v2.kt | 2 +- .../objectInLambdaCapturesAnotherObject.kt | 2 +- .../properRecapturingInClass/inlinelambdaChain.kt | 2 +- .../properRecapturingInClass/lambdaChain.kt | 2 +- .../properRecapturingInClass/lambdaChainSimple.kt | 2 +- .../properRecapturingInClass/lambdaChainSimple_2.kt | 2 +- .../properRecapturingInClass/lambdaChain_2.kt | 2 +- .../properRecapturingInClass/lambdaChain_3.kt | 2 +- .../properRecapturingInClass/noInlineLambda.kt | 2 +- .../codegen/boxInline/anonymousObject/sam.kt | 1 - .../codegen/boxInline/anonymousObject/sam/kt17091.kt | 2 +- .../codegen/boxInline/anonymousObject/sam/kt21671.kt | 2 +- .../boxInline/anonymousObject/sam/kt21671_2.kt | 2 +- .../boxInline/anonymousObject/sam/kt21671_3.kt | 2 +- .../codegen/boxInline/anonymousObject/sam/kt22304.kt | 3 +-- .../boxInline/anonymousObject/sam/samOnCallSite.kt | 4 ++-- .../anonymousObject/sharedFromCrossinline.kt | 2 +- .../anonymousObject/twoCapturedReceivers/kt8668.kt | 2 +- .../anonymousObject/twoCapturedReceivers/kt8668_2.kt | 2 +- .../anonymousObject/twoCapturedReceivers/kt8668_3.kt | 2 +- .../twoDifferentDispatchReceivers.kt | 2 +- .../twoCapturedReceivers/twoExtensionReceivers.kt | 2 +- .../argumentOrder/boundFunctionReference.kt | 1 - .../argumentOrder/boundFunctionReference2.kt | 1 - .../argumentOrder/defaultParametersAndLastVararg.kt | 3 +-- ...defaultParametersAndLastVarargWithCorrectOrder.kt | 3 +-- .../boxInline/argumentOrder/extensionInClass.kt | 2 +- .../argumentOrder/varargAndDefaultParameters.kt | 5 ++--- .../varargAndDefaultParametersWithCorrectOrder.kt | 3 +-- .../boxInline/arrayConvention/simpleAccessInClass.kt | 2 +- .../simpleAccessWithDefaultInClass.kt | 2 +- .../arrayConvention/simpleAccessWithLambdaInClass.kt | 2 +- .../jvmAssertInlineFunctionAssertionsDisabled.kt | 8 ++++---- .../jvmAssertInlineFunctionAssertionsEnabled.kt | 10 +++++----- .../boxInline/assert/jvmAssertInlineLambda.kt | 10 +++++----- .../codegen/boxInline/assert/jvmClassInitializer.kt | 8 ++++---- .../codegen/boxInline/assert/jvmCompanion.kt | 8 ++++---- .../codegen/boxInline/assert/jvmCrossinlineLambda.kt | 10 +++++----- .../boxInline/assert/jvmCrossinlineLambda2.kt | 10 +++++----- .../assert/jvmCrossinlineLambdaDeclarationSite.kt | 10 +++++----- .../jvmCrossinlineLambdaDeclarationSiteOnly.kt | 8 ++++---- .../assert/jvmCrossinlineSAMDeclarationSite.kt | 8 ++++---- .../codegen/boxInline/assert/jvmDoubleInline.kt | 8 ++++---- .../boxInline/assert/jvmInlineUsedAsNoinline.kt | 6 +++--- .../testData/codegen/boxInline/builders/builders.kt | 4 ++-- .../boxInline/builders/buildersAndLambdaCapturing.kt | 4 ++-- .../bytecodePreprocessing/apiVersionAtLeast1.kt | 2 +- .../callableReference/bound/classProperty.kt | 2 +- .../callableReference/bound/extensionReceiver.kt | 2 +- .../boxInline/callableReference/bound/filter.kt | 2 +- .../bound/inlineValueParameterInsteadOfReceiver.kt | 2 +- .../boxInline/callableReference/bound/kt18728.kt | 2 +- .../boxInline/callableReference/bound/kt18728_2.kt | 2 +- .../boxInline/callableReference/bound/kt18728_3.kt | 2 +- .../boxInline/callableReference/bound/kt18728_4.kt | 2 +- .../codegen/boxInline/callableReference/bound/map.kt | 2 +- .../boxInline/callableReference/bound/mixed.kt | 2 +- .../callableReference/bound/objectProperty.kt | 2 +- .../bound/propertyImportedFromObject.kt | 2 +- .../boxInline/callableReference/bound/sideEffect.kt | 2 +- .../bound/topLevelExtensionProperty.kt | 2 +- .../codegen/boxInline/callableReference/kt15449.kt | 2 +- .../codegen/boxInline/callableReference/kt15751_2.kt | 6 +++--- .../codegen/boxInline/callableReference/kt16411.kt | 2 +- .../codegen/boxInline/callableReference/kt35101.kt | 2 +- .../boxInline/callableReference/propertyReference.kt | 2 +- .../boxInline/callableReference/topLevelProperty.kt | 2 +- .../codegen/boxInline/capture/captureInlinable.kt | 2 +- .../boxInline/capture/captureInlinableAndOther.kt | 2 +- .../codegen/boxInline/complex/forEachLine.kt | 2 +- .../testData/codegen/boxInline/complex/kt44429.kt | 4 ++-- .../codegen/boxInline/complex/lambdaInLambda.kt | 2 +- .../codegen/boxInline/complex/swapAndWith.kt | 2 +- .../codegen/boxInline/complex/swapAndWith2.kt | 2 +- compiler/testData/codegen/boxInline/complex/with.kt | 4 ++-- .../codegen/boxInline/complexStack/asCheck.kt | 2 +- ...llConstructorArgumentsAndInlineLambdaParameter.kt | 2 +- .../valInitializationAndUsageInNestedLambda.kt | 2 +- .../codegen/boxInline/defaultValues/33Parameters.kt | 2 +- .../defaultValues/33ParametersInConstructor.kt | 2 +- .../boxInline/defaultValues/defaultInExtension.kt | 2 +- .../defaultValues/inlineLambdaInNoInlineDefault.kt | 4 ++-- .../codegen/boxInline/defaultValues/kt11479.kt | 2 +- .../defaultValues/kt11479InlinedDefaultParameter.kt | 2 +- .../codegen/boxInline/defaultValues/kt14564.kt | 4 ++-- .../codegen/boxInline/defaultValues/kt16496.kt | 2 +- .../codegen/boxInline/defaultValues/kt18689.kt | 2 +- .../codegen/boxInline/defaultValues/kt18689_2.kt | 2 +- .../codegen/boxInline/defaultValues/kt18689_3.kt | 2 +- .../codegen/boxInline/defaultValues/kt18689_4.kt | 2 +- .../callableReferences/boundFunctionReference.kt | 2 +- .../boundFunctionReferenceOnInt.kt | 2 +- .../boundFunctionReferenceOnLong.kt | 2 +- .../callableReferences/boundPropertyReference.kt | 2 +- .../boundPropertyReferenceOnInt.kt | 2 +- .../boundPropertyReferenceOnLong.kt | 2 +- .../callableReferences/constuctorReference.kt | 2 +- .../callableReferences/differentInvokeSignature.kt | 4 ++-- .../callableReferences/differentInvokeSignature2.kt | 4 ++-- .../callableReferences/functionImportedFromObject.kt | 2 +- .../callableReferences/functionReference.kt | 2 +- .../callableReferences/functionReferenceFromClass.kt | 2 +- .../functionReferenceFromObject.kt | 2 +- .../innerClassConstuctorReference.kt | 2 +- .../mutableBoundPropertyReferenceFromClass.kt | 2 +- .../mutablePropertyReferenceFromClass.kt | 2 +- .../callableReferences/privateFunctionReference.kt | 2 +- .../callableReferences/privatePropertyReference.kt | 2 +- .../callableReferences/propertyImportedFromObject.kt | 2 +- .../callableReferences/propertyReference.kt | 2 +- .../callableReferences/propertyReferenceFromClass.kt | 2 +- .../propertyReferenceFromObject.kt | 2 +- .../lambdaInlining/defaultCallInDefaultLambda.kt | 1 - .../lambdaInlining/defaultLambdaInNoInline.kt | 4 ++-- .../lambdaInlining/differentInvokeSignature.kt | 4 ++-- .../lambdaInlining/instanceCapturedInClass.kt | 2 +- .../lambdaInlining/instanceCapturedInInterface.kt | 2 +- .../defaultValues/lambdaInlining/jvmStaticDefault.kt | 4 ++-- .../defaultValues/lambdaInlining/kt21827.kt | 3 +-- .../defaultValues/lambdaInlining/kt21946.kt | 4 ++-- .../defaultValues/lambdaInlining/kt24477.kt | 4 ++-- .../defaultValues/lambdaInlining/kt25106.kt | 4 ++-- .../defaultValues/lambdaInlining/kt26636.kt | 4 ++-- .../defaultValues/lambdaInlining/noInline.kt | 4 ++-- .../lambdaInlining/nonDefaultInlineInNoInline.kt | 4 ++-- .../defaultValues/lambdaInlining/receiverClash.kt | 2 +- .../defaultValues/lambdaInlining/receiverClash2.kt | 2 +- .../lambdaInlining/receiverClashInClass.kt | 4 ++-- .../lambdaInlining/receiverClashInClass2.kt | 2 +- .../boxInline/defaultValues/lambdaInlining/simple.kt | 2 +- .../defaultValues/lambdaInlining/simpleErased.kt | 2 +- .../lambdaInlining/simpleErasedStaticInstance.kt | 2 +- .../defaultValues/lambdaInlining/simpleExtension.kt | 2 +- .../defaultValues/lambdaInlining/simpleGeneric.kt | 2 +- .../lambdaInlining/simpleStaticInstance.kt | 2 +- .../defaultValues/lambdaInlining/thisClash.kt | 2 +- .../defaultValues/lambdaInlining/thisClashInClass.kt | 4 ++-- .../defaultValues/maskElimination/32Parameters.kt | 2 +- .../defaultValues/maskElimination/33Parameters.kt | 2 +- .../defaultValues/maskElimination/kt18792.kt | 2 +- .../defaultValues/maskElimination/kt19679.kt | 2 +- .../defaultValues/maskElimination/kt19679_2.kt | 2 +- .../defaultValues/maskElimination/kt19679_3.kt | 2 +- .../defaultValues/maskElimination/simple.kt | 2 +- .../boxInline/defaultValues/varArgNoInline.kt | 6 +++--- .../codegen/boxInline/delegatedProperty/kt16864.kt | 4 ++-- .../codegen/boxInline/enclosingInfo/inlineChain.kt | 2 +- .../boxInline/enclosingInfo/objectInInlineFun.kt | 2 +- .../transformedConstructorWithAdditionalObject.kt | 2 +- compiler/testData/codegen/boxInline/enum/kt10569.kt | 3 +-- compiler/testData/codegen/boxInline/enum/kt18254.kt | 4 ++-- compiler/testData/codegen/boxInline/enum/valueOf.kt | 2 +- .../codegen/boxInline/enum/valueOfCapturedType.kt | 2 +- .../testData/codegen/boxInline/enum/valueOfChain.kt | 2 +- .../boxInline/enum/valueOfChainCapturedType.kt | 2 +- .../codegen/boxInline/enum/valueOfNonReified.kt | 2 +- compiler/testData/codegen/boxInline/enum/values.kt | 2 +- .../testData/codegen/boxInline/enum/valuesAsArray.kt | 2 +- .../codegen/boxInline/enum/valuesCapturedType.kt | 2 +- .../testData/codegen/boxInline/enum/valuesChain.kt | 2 +- .../boxInline/enum/valuesChainCapturedType.kt | 2 +- .../codegen/boxInline/enum/valuesNonReified.kt | 2 +- .../boxInline/functionExpression/extension.kt | 2 +- .../inlineClassWithInlineValReturningInlineClass.kt | 4 ++-- .../inlineFunctionInsideInlineClassesBox.kt | 2 +- .../unboxGenericParameter/funInterface/any.kt | 4 ++-- .../unboxGenericParameter/funInterface/anyN.kt | 4 ++-- .../unboxGenericParameter/funInterface/iface.kt | 4 ++-- .../unboxGenericParameter/funInterface/ifaceChild.kt | 4 ++-- .../unboxGenericParameter/funInterface/primitive.kt | 4 ++-- .../unboxGenericParameter/funInterface/string.kt | 2 +- .../unboxGenericParameter/lambda/any.kt | 4 ++-- .../unboxGenericParameter/lambda/anyN.kt | 4 ++-- .../unboxGenericParameter/lambda/iface.kt | 4 ++-- .../unboxGenericParameter/lambda/ifaceChild.kt | 4 ++-- .../unboxGenericParameter/lambda/primitive.kt | 4 ++-- .../unboxGenericParameter/lambda/string.kt | 2 +- .../unboxGenericParameter/objectLiteral/any.kt | 4 ++-- .../unboxGenericParameter/objectLiteral/anyN.kt | 4 ++-- .../unboxGenericParameter/objectLiteral/iface.kt | 4 ++-- .../objectLiteral/ifaceChild.kt | 4 ++-- .../unboxGenericParameter/objectLiteral/primitive.kt | 4 ++-- .../unboxGenericParameter/objectLiteral/string.kt | 2 +- .../codegen/boxInline/innerClasses/innerLambda.kt | 2 +- .../boxInline/lambdaClassClash/lambdaClassClash.kt | 2 +- .../boxInline/lambdaClassClash/noInlineLambdaX2.kt | 2 +- .../boxInline/lambdaTransformation/lambdaCloning.kt | 2 +- .../lambdaTransformation/lambdaInLambda2.kt | 4 ++-- .../lambdaTransformation/lambdaInLambdaNoInline.kt | 2 +- .../lambdaTransformation/regeneratedLambdaName.kt | 2 +- .../lambdaTransformation/regeneratedLambdaName2.kt | 4 ++-- .../boxInline/lambdaTransformation/sameCaptured.kt | 2 +- .../boxInline/localFunInLambda/defaultParam.kt | 2 +- .../lambdaInLambdaCapturesAnotherFun.kt | 2 +- .../boxInline/localFunInLambda/localFunInLambda.kt | 4 ++-- .../localFunInLambdaCapturesAnotherFun.kt | 2 +- .../multiModule/tryCatchWithRecursiveInline.kt | 2 -- .../multifileClasses/inlineFromOtherPackage.kt | 2 +- .../codegen/boxInline/noInline/extensionReceiver.kt | 2 +- .../codegen/boxInline/noInline/lambdaAsGeneric.kt | 2 +- .../boxInline/noInline/lambdaAsNonFunction.kt | 2 +- .../testData/codegen/boxInline/noInline/noInline.kt | 2 +- .../boxInline/noInline/noInlineLambdaChain.kt | 2 +- .../noInlineLambdaChainWithCapturedInline.kt | 2 +- .../codegen/boxInline/noInline/withoutInline.kt | 2 +- .../boxInline/nonLocalReturns/noInlineLocalReturn.kt | 3 +-- .../nonLocalReturns/nonLocalReturnFromOuterLambda.kt | 4 +--- .../nonLocalReturns/returnFromFunctionExpr.kt | 2 +- .../tryFinally/callSite/exceptionTableSplit.kt | 2 +- .../callSite/exceptionTableSplitNoReturn.kt | 2 +- .../tryFinally/exceptionTable/exceptionInFinally.kt | 2 +- .../tryFinally/exceptionTable/kt31653.kt | 4 ++-- .../tryFinally/exceptionTable/kt31653_2.kt | 4 ++-- .../tryFinally/exceptionTable/kt31923.kt | 2 +- .../tryFinally/exceptionTable/kt31923_2.kt | 2 +- .../tryFinally/exceptionTable/kt31923_wrong.kt | 2 +- .../boxInline/nonLocalReturns/tryFinally/kt16417.kt | 4 ++-- .../boxInline/nonLocalReturns/tryFinally/kt20433.kt | 2 +- .../nonLocalReturns/tryFinally/kt20433_2.kt | 2 +- .../nonLocalReturns/tryFinally/kt20433_2_void.kt | 2 +- .../nonLocalReturns/tryFinally/kt20433_void.kt | 2 +- .../boxInline/nonLocalReturns/tryFinally/kt26384.kt | 2 +- .../nonLocalReturns/tryFinally/kt26384_2.kt | 2 +- .../boxInline/nonLocalReturns/tryFinally/kt28546.kt | 2 +- .../tryFinally/nonLocalReturnFromCatchBlock.kt | 5 +---- .../tryFinally/nonLocalReturnFromOuterLambda.kt | 4 +--- .../tryFinally/nonLocalReturnToCatchBlock.kt | 4 +--- .../codegen/boxInline/optimizations/kt20844.kt | 4 ++-- .../private/privateInInlineInMultiFileFacade.kt | 2 +- .../boxInline/property/augAssignmentAndInc.kt | 2 +- .../boxInline/property/augAssignmentAndIncInClass.kt | 2 +- .../augAssignmentAndIncInClassViaConvention.kt | 2 +- .../property/augAssignmentAndIncOnExtension.kt | 2 +- .../augAssignmentAndIncOnExtensionInClass.kt | 2 +- .../property/augAssignmentAndIncViaConvention.kt | 2 +- .../codegen/boxInline/property/fromObject.kt | 2 +- .../testData/codegen/boxInline/property/kt22649.kt | 2 +- .../testData/codegen/boxInline/property/property.kt | 2 +- .../codegen/boxInline/property/reifiedVal.kt | 2 +- .../codegen/boxInline/property/reifiedVar.kt | 2 +- .../testData/codegen/boxInline/property/simple.kt | 2 +- .../codegen/boxInline/property/simpleExtension.kt | 2 +- .../codegen/boxInline/reified/capturedLambda.kt | 4 ++-- .../codegen/boxInline/reified/capturedLambda2.kt | 4 ++-- .../codegen/boxInline/reified/checkCast/chain.kt | 2 +- .../codegen/boxInline/reified/checkCast/kt26435.kt | 4 ++-- .../codegen/boxInline/reified/checkCast/kt26435_2.kt | 4 ++-- .../codegen/boxInline/reified/checkCast/kt26435_3.kt | 4 ++-- .../codegen/boxInline/reified/checkCast/kt8043.kt | 2 +- .../codegen/boxInline/reified/checkCast/nullable.kt | 2 +- .../codegen/boxInline/reified/checkCast/simple.kt | 2 +- .../boxInline/reified/checkCast/simpleSafe.kt | 2 +- .../boxInline/reified/checkCast/simple_1_3.kt | 2 +- .../codegen/boxInline/reified/defaultLambda/chain.kt | 4 ++-- .../boxInline/reified/defaultLambda/nested.kt | 6 +++--- .../boxInline/reified/defaultLambda/nested2.kt | 4 ++-- .../boxInline/reified/defaultLambda/nested2Static.kt | 4 ++-- .../boxInline/reified/defaultLambda/nestedStatic.kt | 6 +++--- .../boxInline/reified/defaultLambda/simple.kt | 4 ++-- .../reified/defaultLambda/transitiveChain.kt | 4 ++-- .../reified/defaultLambda/transitiveChainStatic.kt | 4 ++-- .../boxInline/reified/dontSubstituteNonReified.kt | 3 +-- .../testData/codegen/boxInline/reified/kt11081.kt | 2 +- .../testData/codegen/boxInline/reified/kt11677.kt | 4 ++-- .../testData/codegen/boxInline/reified/kt15956.kt | 10 +++++----- .../testData/codegen/boxInline/reified/kt15997.kt | 6 +++--- .../testData/codegen/boxInline/reified/kt15997_2.kt | 6 +++--- .../testData/codegen/boxInline/reified/kt6988.kt | 2 +- .../testData/codegen/boxInline/reified/kt6988_2.kt | 2 +- .../testData/codegen/boxInline/reified/kt6990.kt | 2 +- .../testData/codegen/boxInline/reified/kt9637.kt | 4 ++-- .../testData/codegen/boxInline/reified/packages.kt | 4 ++-- .../boxInline/signature/inProjectionSubstitution.kt | 4 ++-- .../boxInline/signature/outProjectionSubstitution.kt | 4 ++-- .../codegen/boxInline/signature/recursion.kt | 4 ++-- .../boxInline/signature/sameFormalParameterName.kt | 6 +++--- .../signature/sameReifiedFormalParameterName.kt | 6 +++--- .../signature/starProjectionSubstitution.kt | 4 ++-- .../boxInline/signature/typeParameterInLambda.kt | 6 +++--- .../signature/typeParametersSubstitution.kt | 4 ++-- .../signature/typeParametersSubstitution2.kt | 4 ++-- .../codegen/boxInline/simple/destructuring.kt | 2 +- .../boxInline/simple/destructuringIndexClash.kt | 2 +- .../testData/codegen/boxInline/simple/extension.kt | 2 +- .../testData/codegen/boxInline/simple/kt28547.kt | 2 +- .../codegen/boxInline/simple/rootConstructor.kt | 2 +- compiler/testData/codegen/boxInline/simple/vararg.kt | 2 +- .../codegen/boxInline/smap/anonymous/kt19175.kt | 4 ++-- .../codegen/boxInline/smap/anonymous/lambda.kt | 6 +++--- .../boxInline/smap/anonymous/lambdaOnCallSite.kt | 6 +++--- .../smap/anonymous/lambdaOnInlineCallSite.kt | 9 +++------ .../codegen/boxInline/smap/anonymous/object.kt | 6 +++--- .../boxInline/smap/anonymous/objectOnCallSite.kt | 6 +++--- .../smap/anonymous/objectOnInlineCallSite.kt | 9 +++------ .../smap/anonymous/objectOnInlineCallSite2.kt | 6 +++--- .../anonymous/objectOnInlineCallSiteWithCapture.kt | 2 +- .../smap/anonymous/severalMappingsForDefaultFile.kt | 2 +- .../testData/codegen/boxInline/smap/assertion.kt | 4 ++-- .../testData/codegen/boxInline/smap/classCycle.kt | 4 ++-- .../boxInline/smap/classFromDefaultPackage.kt | 2 +- .../testData/codegen/boxInline/smap/crossroutines.kt | 5 ++--- .../codegen/boxInline/smap/defaultFunction.kt | 6 +++--- .../boxInline/smap/defaultFunctionWithInlineCall.kt | 4 ++-- .../smap/defaultLambda/defaultLambdaInAnonymous.kt | 8 ++++---- .../boxInline/smap/defaultLambda/inlinInDefault.kt | 6 +++--- .../boxInline/smap/defaultLambda/inlinInDefault2.kt | 6 +++--- .../smap/defaultLambda/inlineAnonymousInDefault.kt | 8 ++++---- .../smap/defaultLambda/inlineAnonymousInDefault2.kt | 8 ++++---- .../codegen/boxInline/smap/defaultLambda/kt21827.kt | 6 +++--- .../codegen/boxInline/smap/defaultLambda/nested.kt | 6 +++--- .../codegen/boxInline/smap/defaultLambda/simple.kt | 6 +++--- .../codegen/boxInline/smap/defaultLambda/simple2.kt | 6 +++--- .../testData/codegen/boxInline/smap/forInline.kt | 6 +++--- .../codegen/boxInline/smap/inlineOnly/noSmap.kt | 4 ++-- .../boxInline/smap/inlineOnly/noSmapWithProperty.kt | 5 +++-- .../codegen/boxInline/smap/inlineOnly/reified.kt | 4 ++-- .../boxInline/smap/inlineOnly/reifiedProperty.kt | 4 ++-- .../boxInline/smap/inlineOnly/stdlibInlineOnly.kt | 2 +- .../smap/inlineOnly/stdlibInlineOnlyOneLine.kt | 2 +- .../codegen/boxInline/smap/interleavedFiles.kt | 4 ++-- compiler/testData/codegen/boxInline/smap/kt23369.kt | 4 ++-- .../testData/codegen/boxInline/smap/kt23369_2.kt | 6 +++--- .../testData/codegen/boxInline/smap/kt23369_3.kt | 6 +++--- compiler/testData/codegen/boxInline/smap/kt35006.kt | 4 ++-- .../codegen/boxInline/smap/multiFileFacade.kt | 4 ++-- .../boxInline/smap/newsmap/differentMapping.kt | 4 ++-- .../smap/newsmap/mappingInInlineFunLambda.kt | 4 ++-- .../smap/newsmap/mappingInSubInlineLambda.kt | 4 ++-- .../mappingInSubInlineLambdaSameFileInline.kt | 4 ++-- compiler/testData/codegen/boxInline/smap/oneFile.kt | 4 ++-- .../testData/codegen/boxInline/smap/rangeFolding.kt | 4 ++-- .../codegen/boxInline/smap/rangeFoldingInClass.kt | 4 ++-- .../boxInline/smap/resolve/inlineComponent.kt | 4 ++-- .../codegen/boxInline/smap/resolve/inlineIterator.kt | 4 ++-- compiler/testData/codegen/boxInline/smap/smap.kt | 4 ++-- .../codegen/boxInline/smap/smapWithNewSyntax.kt | 4 ++-- .../codegen/boxInline/smap/smapWithOldSyntax.kt | 4 ++-- .../boxInline/special/loopInStoreLoadChains.kt | 2 +- .../boxInline/special/loopInStoreLoadChains2.kt | 2 +- .../codegen/boxInline/stackOnReturn/elvis.kt | 2 +- .../codegen/boxInline/stackOnReturn/ifThenElse.kt | 2 +- .../codegen/boxInline/stackOnReturn/kt17591.kt | 2 +- .../codegen/boxInline/stackOnReturn/kt17591a.kt | 2 +- .../codegen/boxInline/stackOnReturn/kt17591b.kt | 2 +- .../boxInline/stackOnReturn/mixedTypesOnStack1.kt | 2 +- .../boxInline/stackOnReturn/mixedTypesOnStack2.kt | 2 +- .../boxInline/stackOnReturn/mixedTypesOnStack3.kt | 2 +- .../boxInline/stackOnReturn/nonLocalReturn1.kt | 2 +- .../boxInline/stackOnReturn/nonLocalReturn2.kt | 2 +- .../boxInline/stackOnReturn/nonLocalReturn3.kt | 2 +- .../boxInline/stackOnReturn/poppedLocalReturn.kt | 2 +- .../boxInline/stackOnReturn/poppedLocalReturn2.kt | 2 +- .../codegen/boxInline/stackOnReturn/returnLong.kt | 2 +- .../codegen/boxInline/stackOnReturn/tryFinally.kt | 2 +- .../suspend/callableReference/isAsReified.kt | 2 +- .../suspend/callableReference/isAsReified2.kt | 2 +- .../boxInline/suspend/callableReference/simple.kt | 4 ++-- .../codegen/boxInline/suspend/capturedVariables.kt | 4 ++-- ...ineSuspendLambdaInsideCrossinlineSuspendLambda.kt | 4 ++-- .../boxInline/suspend/debugMetadataCrossinline.kt | 2 +- .../defaultParameter/defaultValueCrossinline.kt | 4 ++-- .../suspend/defaultParameter/defaultValueInClass.kt | 4 ++-- .../suspend/defaultParameter/defaultValueInline.kt | 4 ++-- .../defaultValueInlineFromMultiFileFacade.kt | 4 ++-- .../codegen/boxInline/suspend/delegatedProperties.kt | 6 +++--- .../doubleRegenerationWithNonSuspendingLambda.kt | 4 ++-- .../codegen/boxInline/suspend/enclodingMethod.kt | 6 +++--- .../codegen/boxInline/suspend/fileNameInMetadata.kt | 2 +- .../suspend/inlineOrdinaryOfCrossinlineSuspend.kt | 4 ++-- .../suspend/inlineOrdinaryOfNoinlineSuspend.kt | 4 ++-- .../boxInline/suspend/inlineSuspendContinuation.kt | 4 ++-- .../suspend/inlineSuspendInMultifileClass.kt | 12 ++++++------ .../suspend/inlineSuspendOfCrossinlineOrdinary.kt | 4 ++-- .../suspend/inlineSuspendOfCrossinlineSuspend.kt | 4 ++-- .../suspend/inlineSuspendOfNoinlineOrdinary.kt | 4 ++-- .../suspend/inlineSuspendOfNoinlineSuspend.kt | 4 ++-- .../boxInline/suspend/inlineSuspendOfOrdinary.kt | 4 ++-- .../boxInline/suspend/inlineSuspendOfSuspend.kt | 4 ++-- .../testData/codegen/boxInline/suspend/jvmName.kt | 4 ++-- .../testData/codegen/boxInline/suspend/kt26658.kt | 4 ++-- .../boxInline/suspend/maxStackWithCrossinline.kt | 4 ++-- .../codegen/boxInline/suspend/multipleLocals.kt | 4 ++-- .../boxInline/suspend/multipleSuspensionPoints.kt | 4 ++-- .../receiver/inlineOrdinaryOfCrossinlineSuspend.kt | 4 ++-- .../receiver/inlineOrdinaryOfNoinlineSuspend.kt | 4 ++-- .../receiver/inlineSuspendOfCrossinlineOrdinary.kt | 6 +++--- .../receiver/inlineSuspendOfCrossinlineSuspend.kt | 4 ++-- .../receiver/inlineSuspendOfNoinlineOrdinary.kt | 6 +++--- .../receiver/inlineSuspendOfNoinlineSuspend.kt | 4 ++-- .../suspend/receiver/inlineSuspendOfOrdinary.kt | 4 ++-- .../suspend/receiver/inlineSuspendOfSuspend.kt | 4 ++-- .../codegen/boxInline/suspend/returnValue.kt | 4 ++-- .../boxInline/suspend/stateMachine/innerLambda.kt | 6 +++--- .../suspend/stateMachine/innerLambdaInsideLambda.kt | 8 ++++---- .../stateMachine/innerLambdaWithoutCrossinline.kt | 6 +++--- .../boxInline/suspend/stateMachine/innerMadness.kt | 8 ++++---- .../suspend/stateMachine/innerMadnessCallSite.kt | 8 ++++---- .../boxInline/suspend/stateMachine/innerObject.kt | 6 +++--- .../stateMachine/innerObjectInsideInnerObject.kt | 6 +++--- .../stateMachine/innerObjectSeveralFunctions.kt | 6 +++--- .../innerObjectWithoutCapturingCrossinline.kt | 6 +++--- .../suspend/stateMachine/lambdaTransformation.kt | 8 ++++---- .../boxInline/suspend/stateMachine/normalInline.kt | 6 +++--- .../suspend/stateMachine/numberOfSuspentions.kt | 6 +++--- .../suspend/stateMachine/unreachableSuspendMarker.kt | 12 ++++++------ .../codegen/boxInline/suspend/tryCatchReceiver.kt | 4 ++-- .../boxInline/suspend/tryCatchStackTransform.kt | 4 ++-- .../directFieldAccessInCrossInline.kt | 3 +-- .../withinInlineLambda/privateInCrossInline.kt | 3 +-- .../withinInlineLambda/superInCrossInline.kt | 5 ++--- .../codegen/boxInline/tryCatchFinally/tryCatch.kt | 2 +- .../codegen/boxInline/tryCatchFinally/tryCatch2.kt | 2 +- .../boxInline/tryCatchFinally/tryCatchFinally.kt | 2 +- .../testData/codegen/boxInline/varargs/kt17653.kt | 1 - .../boxInline/varargs/varargAndDefaultParameters.kt | 1 - .../boxInline/varargs/varargAndDefaultParameters2.kt | 3 +-- 453 files changed, 736 insertions(+), 777 deletions(-) diff --git a/compiler/testData/codegen/box/jvm8/defaults/26360.kt b/compiler/testData/codegen/box/jvm8/defaults/26360.kt index 46c91da9952..424c557cb13 100644 --- a/compiler/testData/codegen/box/jvm8/defaults/26360.kt +++ b/compiler/testData/codegen/box/jvm8/defaults/26360.kt @@ -1,4 +1,4 @@ -// !JVM_TARGET: 1.8 +// JVM_TARGET: 1.8 // !JVM_DEFAULT_MODE: enable // WITH_RUNTIME // TARGET_BACKEND: JVM @@ -17,4 +17,4 @@ interface SubAB : SubA, SubB fun box(): String { return object : SubAB {}.value() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt b/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt index 7a81294a751..27dc6cd2224 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -15,7 +16,6 @@ inline fun doWork(job: ()-> R) : R { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box() : String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt b/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt index bfbbb44d282..698b018e5ac 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -15,7 +16,6 @@ inline fun doWork(job: ()-> R) : R { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box() : String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt b/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt index 9a8d1f21d2f..c0b9a0e37af 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -53,7 +54,6 @@ inline fun doWorkInConstructor(crossinline jobO: ()-> R, crossinline jobK: ( // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun test1(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt b/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt index 9344cbacd75..63c12e71632 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -40,7 +41,6 @@ inline fun doWorkInConstructor(crossinline jobO: ()-> R, crossinline jobK: ( // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun test1(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt b/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt index e93b5834074..f2efe4b2595 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -10,7 +11,6 @@ public inline fun call(f: () -> T): T = f() // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt b/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt index 65bd20276ef..0d83d5346c3 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -10,7 +11,6 @@ public inline fun call(f: () -> T): T = f() // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt b/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt index c8ad1f3620a..db1605835d3 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -10,7 +11,6 @@ public inline fun call(crossinline f: () -> T): T = {{ f() }()}() // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt b/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt index 575323aa02a..fbdc4bd5d2f 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -20,7 +21,6 @@ public inline fun call(crossinline f: () -> T): T = object : A { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt b/compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt index 7f115210d1e..6ec999b6ed5 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -21,7 +22,6 @@ inline fun Self.directed(): Task = // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING //KT-7490 import test.* diff --git a/compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt b/compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt index f8d3d179c08..44017420879 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt @@ -1,3 +1,5 @@ +// DUMP_SMAP +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -15,7 +17,6 @@ object B { } // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* @@ -32,9 +33,9 @@ fun box(): String { return z; } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt index 02aa42afd34..43705f544cf 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt @@ -31,4 +31,3 @@ fun box(): String { return "OK" } - diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt index 91d42494a12..012d6a2ae86 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt @@ -22,4 +22,3 @@ fun box(): String { }() } } - diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt index 5db8f48053e..dd611500ec2 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt @@ -34,4 +34,3 @@ fun box(): String { zz.zz() return result } - diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt index 1e8e1ab579c..c3998dbd9e3 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt @@ -18,4 +18,3 @@ fun box(): String { return result } - diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt index 3997d2aa02f..075ce50b76b 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt @@ -18,4 +18,3 @@ fun box(): String { return result } - diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt index 77cf8a653b5..f9ffa64c370 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt @@ -22,4 +22,3 @@ fun box(): String { return result } - diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt index be971af9fd7..45850deea27 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt package test class A { @@ -32,4 +32,4 @@ fun box(): String { var result = "fail" A().foo { result = "OK" } return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt index 7f612614e5a..926e006294d 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt @@ -1,5 +1,5 @@ // TARGET_BACKEND: JVM -//WITH_RUNTIME +// WITH_RUNTIME //FULL_JDK // FILE: 1.kt package test @@ -27,4 +27,4 @@ fun box(): String { crashMe.invoke() return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt index 42272555489..45acc89773e 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -24,10 +25,9 @@ fun noInline(init: () -> T): T { } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { return Test().test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt index 04ac09e1f8e..671ac0d51f2 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -24,10 +25,9 @@ inline fun inlineFun2(init: () -> T): T { } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { return Test().test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt index d5550708d35..6d3e705a32b 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -26,10 +27,9 @@ fun noInline(init: () -> T): T { } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { return Test().test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt index 63a24a7a48c..43d6b45c7d1 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -28,10 +29,9 @@ fun noInline(init: () -> T): T { } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { return Test().test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt index e244855dd3d..a4b2106bd0b 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -26,10 +27,9 @@ fun noInline(init: () -> T): T { } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { return Test().test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt index 81121ef7928..877156d4a40 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -26,10 +27,9 @@ fun noInline(init: () -> T): T { } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { return Test().test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt index 8f07e0d611e..4a7564954d0 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -28,10 +29,9 @@ fun noInline(init: () -> T): T { } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { return Test().test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt index 2e6ec71e3f4..f77a584ad1d 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -30,10 +31,9 @@ fun noInline(init: () -> T): T { } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { return Test().test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt index 17cd0a8fc78..dbb70055413 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt @@ -1,10 +1,10 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt public inline fun myWith(receiver: T, block: T.() -> R): R { return receiver.block() } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING object Foo2 { operator fun Any?.get(key: String) = "OK" } @@ -21,4 +21,4 @@ object Main { fun box(): String { return Main.bar() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt index be7f1378341..77d72c38bdb 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt @@ -1,4 +1,4 @@ -//WITH_RUNTIME +// WITH_RUNTIME // FILE: 1.kt class Foo { var bar = "" @@ -38,4 +38,4 @@ fun box(): String { foo.start() return foo.bar -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt index 88cfdd9de98..895c8db2cdb 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt @@ -1,6 +1,6 @@ +// WITH_RUNTIME // TARGET_BACKEND: JVM // FILE: 1.kt -//WITH_RUNTIME package test annotation class MethodAnnotation @@ -21,4 +21,4 @@ import test.* fun box(): String { return reproduceIssue { "OK" } -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt index 7f397cb3469..0852e8f7dd3 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt @@ -1,6 +1,6 @@ +// WITH_RUNTIME // TARGET_BACKEND: JVM // FILE: 1.kt -//WITH_RUNTIME package test annotation class FieldAnnotation @@ -22,4 +22,4 @@ import test.* fun box(): String { return reproduceIssue { "K" } -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt index b02b61375c8..fe04838910f 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -6,7 +7,6 @@ inline fun String.fire(message: String? = null) { } // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* @@ -18,4 +18,4 @@ fun box(): String { } } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt index 9e6aa1d1bd1..b58c2daf3d1 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt @@ -18,4 +18,4 @@ val x = f { "O" } fun box() : String { return x.call() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt index aa9e6933b1e..4ab0e602cc1 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt var result = "Fail" diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt index 9590ce4726f..a515aefe61e 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt @@ -1,10 +1,10 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test inline fun myRun(x: () -> String) = x() // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* class C { @@ -18,4 +18,4 @@ class C { constructor(y: String) } -fun box(): String = C("").x \ No newline at end of file +fun box(): String = C("").x diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt index 15051795575..a01a5cb1309 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt @@ -27,4 +27,4 @@ class C { constructor(y: String) } -fun box(): String = C("").x \ No newline at end of file +fun box(): String = C("").x diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt index d5a4c742c58..48568a9827b 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -20,7 +21,6 @@ inline fun test(s: () -> Z): Z { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt b/compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt index c68ac612b04..d5dadb7fa2a 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -24,7 +25,6 @@ inline fun test(s: () -> Z): Z { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt b/compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt index 165d34191c8..5d89009247c 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -7,7 +8,6 @@ public inline fun myRun(block: () -> Unit) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt index 2d1ad3de754..99175772043 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -33,7 +34,6 @@ class A { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt index e9a6f6be895..fd2de6c7348 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -31,7 +32,6 @@ class A { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt index 6a46172ff5c..805e2f35db2 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -27,7 +28,6 @@ class A { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt index 2229d03b306..5b10abfcb76 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -29,7 +30,6 @@ class A { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt index 52e6faed839..b71f39b14dc 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -32,7 +33,6 @@ class A { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt index 94cfc46759f..1c9b689beb6 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -32,7 +33,6 @@ class A { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt index fa95495148c..72c687a32c5 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -25,7 +26,6 @@ class B(val o: String, val k: String) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/sam.kt b/compiler/testData/codegen/boxInline/anonymousObject/sam.kt index d11940a5afb..004211257a2 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/sam.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/sam.kt @@ -17,4 +17,3 @@ fun box(): String { return result } - diff --git a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt index 2c817aedeff..6db6c12e32b 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt @@ -1,6 +1,6 @@ +// FULL_JDK // TARGET_BACKEND: JVM // FILE: 1.kt -// FULL_JDK package test diff --git a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt index 02177766d3c..f5c1f4dd4b9 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt @@ -1,7 +1,7 @@ +// FULL_JDK // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // FILE: 1.kt -// FULL_JDK package test import java.util.concurrent.Executors diff --git a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt index 80c3f78b55c..549e17b6621 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt @@ -1,7 +1,7 @@ +// FULL_JDK // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // FILE: 1.kt -// FULL_JDK package test import java.util.concurrent.Executors diff --git a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt index 85bce2e68a1..b1b9f8ff0c9 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt @@ -1,7 +1,7 @@ +// FULL_JDK // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // FILE: 1.kt -// FULL_JDK package test import java.util.concurrent.Executors diff --git a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt index 55ad5290480..84b94ee69ad 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt @@ -1,6 +1,6 @@ +// FULL_JDK // TARGET_BACKEND: JVM // FILE: 1.kt -// FULL_JDK package test @@ -24,4 +24,3 @@ fun box() : String { } } } - diff --git a/compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt b/compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt index e42883e304c..3d1cdf7812d 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt @@ -1,7 +1,8 @@ +// FULL_JDK +// NO_CHECK_LAMBDA_INLINING // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // FILE: 1.kt -// FULL_JDK package test @@ -11,7 +12,6 @@ inline fun doWork(job: ()-> Unit) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* import java.util.concurrent.Executors diff --git a/compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt b/compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt index ca3bfb93949..4f8e83e9483 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt @@ -26,4 +26,4 @@ import test.* fun box(): String { return test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt b/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt index 6aabb90b5b5..fc112e9a37d 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -23,7 +24,6 @@ class A { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt b/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt index fd874aa8b4b..1aa15ecd316 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // IGNORE_BACKEND: JS // FILE: 1.kt @@ -18,7 +19,6 @@ class Person(val name: String) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt b/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt index 72954a802db..00bf2d328e0 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // IGNORE_BACKEND: JS // FILE: 1.kt @@ -18,7 +19,6 @@ class Person(val name: String) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt b/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt index 6262b59f8e7..f43a9df08f2 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // IGNORE_BACKEND: JS // FILE: 1.kt @@ -21,7 +22,6 @@ class Person(val name: String) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt b/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt index 6a3117bc503..6030c0268fb 100644 --- a/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt +++ b/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // IGNORE_BACKEND: JS // FILE: 1.kt @@ -17,7 +18,6 @@ fun Person.companyName(call: () -> String) = call() // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt b/compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt index 0607fff5303..965184f2ecc 100644 --- a/compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt +++ b/compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt @@ -38,4 +38,3 @@ fun box(): String { return "OK" } - diff --git a/compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt b/compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt index afeec54fea1..0dc1e28cf75 100644 --- a/compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt +++ b/compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt @@ -38,4 +38,3 @@ fun box(): String { return "OK" } - diff --git a/compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt b/compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt index 09cc2734835..71d393c6b70 100644 --- a/compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt +++ b/compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt @@ -1,9 +1,9 @@ +// WITH_RUNTIME // !LANGUAGE: -UseCorrectExecutionOrderForVarargArguments // IGNORE_BACKEND: JS // IGNORE_BACKEND_FIR: JVM_IR // NO_CHECK_LAMBDA_INLINING // FILE: 1.kt -// WITH_RUNTIME // KJS_WITH_FULL_RUNTIME package test @@ -54,4 +54,3 @@ fun box(): String { return "OK" } - diff --git a/compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt b/compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt index fd92edb8b60..d9103906060 100644 --- a/compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt +++ b/compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt @@ -1,7 +1,7 @@ +// WITH_RUNTIME // !LANGUAGE: +UseCorrectExecutionOrderForVarargArguments // NO_CHECK_LAMBDA_INLINING // FILE: 1.kt -// WITH_RUNTIME // KJS_WITH_FULL_RUNTIME package test @@ -52,4 +52,3 @@ fun box(): String { return "OK" } - diff --git a/compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt b/compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt index 6d9a45da4c5..d51974ebbe7 100644 --- a/compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt +++ b/compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt @@ -1,6 +1,6 @@ +// WITH_RUNTIME // NO_CHECK_LAMBDA_INLINING // FILE: 1.kt -// WITH_RUNTIME package test class Z { diff --git a/compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt b/compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt index 43223e68c0a..65186240ef6 100644 --- a/compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt +++ b/compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt @@ -1,3 +1,5 @@ +// IGNORE_BACKEND: NATIVE +// WITH_RUNTIME // !LANGUAGE: -UseCorrectExecutionOrderForVarargArguments // IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JS, JS_IR @@ -6,9 +8,7 @@ // IGNORE_BACKEND_FIR: JVM_IR // NO_CHECK_LAMBDA_INLINING // FILE: 1.kt -// WITH_RUNTIME // KJS_WITH_FULL_RUNTIME -// IGNORE_BACKEND: NATIVE package test open class A(val value: String) @@ -57,4 +57,3 @@ fun box(): String { return "OK" } - diff --git a/compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt b/compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt index 44b4ee8548d..edaf2dcef51 100644 --- a/compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt +++ b/compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt @@ -1,7 +1,7 @@ +// WITH_RUNTIME // !LANGUAGE: +UseCorrectExecutionOrderForVarargArguments // NO_CHECK_LAMBDA_INLINING // FILE: 1.kt -// WITH_RUNTIME // KJS_WITH_FULL_RUNTIME package test @@ -51,4 +51,3 @@ fun box(): String { return "OK" } - diff --git a/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt b/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt index 98947d35b34..dc03fde71b2 100644 --- a/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt +++ b/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test var res = 1 diff --git a/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt b/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt index 974b843f626..5e9debf1c8d 100644 --- a/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt +++ b/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test var res = 1 diff --git a/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt b/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt index 550aa88fa5d..981e33051f0 100644 --- a/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt +++ b/compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test var res = 1 diff --git a/compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt b/compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt index 90f80821001..0072e60d236 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt @@ -1,7 +1,7 @@ -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// FILE: inline.kt -// WITH_RUNTIME // FULL_JDK +// WITH_RUNTIME +// ASSERTIONS_MODE: jvm +// FILE: inline.kt // TARGET_BACKEND: JVM package test @@ -35,4 +35,4 @@ fun box(): String { var c = disableAssertions() c.check() return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt b/compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt index 5a3c2e7cd52..b492b5b88da 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt @@ -1,8 +1,8 @@ -// TARGET_BACKEND: JVM -// FILE: inline.kt -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// WITH_RUNTIME // FULL_JDK +// WITH_RUNTIME +// TARGET_BACKEND: JVM +// ASSERTIONS_MODE: jvm +// FILE: inline.kt package test @@ -38,4 +38,4 @@ fun box(): String { return "FAIL 2" } catch (ignore: AssertionError) {} return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt b/compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt index 236cc73f0d7..3a1e02e703b 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt @@ -1,8 +1,8 @@ -// TARGET_BACKEND: JVM -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// FILE: inline.kt -// WITH_RUNTIME // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// TARGET_BACKEND: JVM +// ASSERTIONS_MODE: jvm +// FILE: inline.kt package test @@ -125,4 +125,4 @@ fun box(): String { } catch (ignore: AssertionError) { } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt b/compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt index a8f683ca521..e83146e2a39 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt @@ -1,8 +1,8 @@ -// TARGET_BACKEND: JVM -// FILE: inline.kt -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// WITH_RUNTIME // FULL_JDK +// WITH_RUNTIME +// TARGET_BACKEND: JVM +// ASSERTIONS_MODE: jvm +// FILE: inline.kt package test class A { diff --git a/compiler/testData/codegen/boxInline/assert/jvmCompanion.kt b/compiler/testData/codegen/boxInline/assert/jvmCompanion.kt index 5a9cc78e9be..3f62e91cc10 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmCompanion.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmCompanion.kt @@ -1,8 +1,8 @@ -// TARGET_BACKEND: JVM -// FILE: inline.kt -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// WITH_RUNTIME // FULL_JDK +// WITH_RUNTIME +// TARGET_BACKEND: JVM +// ASSERTIONS_MODE: jvm +// FILE: inline.kt package test var result = "OK" diff --git a/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt b/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt index eaec865e991..f435c0513cd 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt @@ -1,8 +1,8 @@ -// TARGET_BACKEND: JVM -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// FILE: inline.kt -// WITH_RUNTIME // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// TARGET_BACKEND: JVM +// ASSERTIONS_MODE: jvm +// FILE: inline.kt package test @@ -128,4 +128,4 @@ fun box(): String { } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt b/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt index a18624e0d19..7ed04b99e98 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt @@ -1,8 +1,8 @@ -// TARGET_BACKEND: JVM -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// FILE: inline.kt -// WITH_RUNTIME // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// TARGET_BACKEND: JVM +// ASSERTIONS_MODE: jvm +// FILE: inline.kt package test @@ -232,4 +232,4 @@ fun box(): String { } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt b/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt index 0433feeaea0..9eec178e5f0 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt @@ -1,8 +1,8 @@ -// TARGET_BACKEND: JVM -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// FILE: inline.kt -// WITH_RUNTIME // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// TARGET_BACKEND: JVM +// ASSERTIONS_MODE: jvm +// FILE: inline.kt package test @@ -228,4 +228,4 @@ fun box(): String { } catch (ignore: AssertionError) {} return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt b/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt index 9c5503be500..7769099a2c8 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt @@ -1,8 +1,8 @@ -// TARGET_BACKEND: JVM -// FILE: inline.kt -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// WITH_RUNTIME // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// TARGET_BACKEND: JVM +// ASSERTIONS_MODE: jvm +// FILE: inline.kt package test diff --git a/compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt b/compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt index c1e7be54172..0b5c4d110ea 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt @@ -1,8 +1,8 @@ -// TARGET_BACKEND: JVM -// FILE: inline.kt -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// WITH_RUNTIME // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// TARGET_BACKEND: JVM +// ASSERTIONS_MODE: jvm +// FILE: inline.kt package test diff --git a/compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt b/compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt index 76954785e4e..3e02a0a66a3 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt @@ -1,8 +1,8 @@ -// TARGET_BACKEND: JVM -// FILE: inline.kt -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// WITH_RUNTIME // FULL_JDK +// WITH_RUNTIME +// TARGET_BACKEND: JVM +// ASSERTIONS_MODE: jvm +// FILE: inline.kt package test class A { diff --git a/compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt b/compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt index 4e94b54888c..adb740393c9 100644 --- a/compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt +++ b/compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt @@ -1,10 +1,10 @@ +// FULL_JDK +// WITH_RUNTIME // Not a multi-module test. // TARGET_BACKEND: JVM // IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_IR, JVM_MULTI_MODULE_OLD_AGAINST_IR, JVM_MULTI_MODULE_IR_AGAINST_OLD +// ASSERTIONS_MODE: jvm // FILE: A.kt -// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm -// WITH_RUNTIME -// FULL_JDK class A { inline fun inlineMe(crossinline c : () -> String) = { diff --git a/compiler/testData/codegen/boxInline/builders/builders.kt b/compiler/testData/codegen/boxInline/builders/builders.kt index bec67f420a3..b65a5ccfcd1 100644 --- a/compiler/testData/codegen/boxInline/builders/builders.kt +++ b/compiler/testData/codegen/boxInline/builders/builders.kt @@ -1,6 +1,7 @@ +// WITH_RUNTIME +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_RUNTIME package builders import java.util.ArrayList @@ -112,7 +113,6 @@ fun htmlNoInline(init: HTML.() -> Unit): HTML { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import builders.* fun testAllInline() : String { diff --git a/compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt b/compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt index eaf608e3da0..bbae10dc907 100644 --- a/compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt +++ b/compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt @@ -1,6 +1,7 @@ +// WITH_RUNTIME +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_RUNTIME package builders import java.util.ArrayList @@ -112,7 +113,6 @@ fun htmlNoInline(init: HTML.() -> Unit): HTML { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import builders.* inline fun testAllInline(f: () -> String) : String { diff --git a/compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt b/compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt index b7c6ea35ca0..0f90a108ae2 100644 --- a/compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt +++ b/compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt @@ -42,4 +42,4 @@ fun box(): String { if (!properFunctionWasClled) return "Fail 1" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt b/compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt index d005b752b41..8f3fc8659bc 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt @@ -14,4 +14,4 @@ import test.* fun box(): String { return test(Foo("OK")::a) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt b/compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt index c031c5192d7..80546076c9c 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt @@ -17,4 +17,4 @@ fun String.test() : String { fun box() : String { return "O".test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/filter.kt b/compiler/testData/codegen/boxInline/callableReference/bound/filter.kt index d088e2d624d..5bcb842d45b 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/filter.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/filter.kt @@ -19,4 +19,4 @@ fun box(): String { val a = A("OK") val s = arrayOf("OK") return s.filter(a::filter).first() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt b/compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt index e6b566216ba..ebc8b0f8aa7 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt @@ -12,4 +12,4 @@ import test.* fun box(): String { return Z().run(Q()::f) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt b/compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt index 8da9f6097a1..7c2ad04f717 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt @@ -13,4 +13,4 @@ import test.* fun box(): String { val result = 1.map(2::plus) return if (result == 3) "OK" else "fail $result" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt b/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt index 164bc0ee3ec..69f522815bc 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt @@ -13,4 +13,4 @@ import test.* fun box(): String { val result = 1.map(3L::plus) return if (result == 4L) "OK" else "fail $result" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt b/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt index 40df3101338..ee848b6af20 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt @@ -16,4 +16,4 @@ val Int.myInc fun box(): String { val result = map(2::myInc) return if (result == 3) "OK" else "fail $result" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt b/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt index 0bcc8fd80d4..b5892928e79 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt @@ -15,4 +15,4 @@ val Long.myInc fun box(): String { val result = map(2L::myInc) return if (result == 3L) "OK" else "fail $result" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/map.kt b/compiler/testData/codegen/boxInline/callableReference/bound/map.kt index 0141e93a7f6..7b8f43e10d2 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/map.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/map.kt @@ -19,4 +19,4 @@ fun box(): String { val a = A("O") val s = arrayOf("K") return s.map(a::map).first() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt b/compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt index 426984d7d1e..bf18025a278 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt @@ -20,4 +20,4 @@ private val foo = Foo() fun box(): String { val result = inlineFn("a", foo::foo, 5, foo::foo2, "end") return if (result == "aOK5OK2end") "OK" else "fail: $result" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt b/compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt index 4400cd85b8d..982b87307fc 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt @@ -16,4 +16,4 @@ import test.* fun box(): String { return test(Foo::a) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt b/compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt index c08e617e2b1..a56d4199610 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt @@ -17,4 +17,4 @@ import test.test fun box(): String { return test(::a) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt b/compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt index 006c8a1fbd3..a09e78ab929 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt @@ -27,4 +27,4 @@ fun box(): String { if (result != effects) return "fail 1: $effects != $result" return if (result == "ABCD") "OK" else "fail 2: $result" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt b/compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt index ad0438b07f4..3b3b29fb7e8 100644 --- a/compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt +++ b/compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt @@ -17,4 +17,4 @@ import test.* fun box(): String { return test(Foo("OK")::a) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/kt15449.kt b/compiler/testData/codegen/boxInline/callableReference/kt15449.kt index 265fe026478..9dc7865787b 100644 --- a/compiler/testData/codegen/boxInline/callableReference/kt15449.kt +++ b/compiler/testData/codegen/boxInline/callableReference/kt15449.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -14,7 +15,6 @@ class X { } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* class A { diff --git a/compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt b/compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt index c4ec3fdcb42..c418555e93e 100644 --- a/compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt +++ b/compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt @@ -1,6 +1,7 @@ -// FILE: 1.kt // IGNORE_BACKEND: JS // WITH_RUNTIME +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt // KJS_WITH_FULL_RUNTIME package test @@ -14,7 +15,6 @@ public inline fun Iterable.mymapNotNull(transform: (T) -> R?): L } // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* var result = -1; @@ -36,4 +36,4 @@ fun fff(): Int { fun something(increase: (Int) -> Int, x: Int): Int? { return increase(x) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/kt16411.kt b/compiler/testData/codegen/boxInline/callableReference/kt16411.kt index d9465d269b3..e60965c87e0 100644 --- a/compiler/testData/codegen/boxInline/callableReference/kt16411.kt +++ b/compiler/testData/codegen/boxInline/callableReference/kt16411.kt @@ -14,4 +14,4 @@ object Foo { fun box(): String { return startFlow(Foo::Requester).dealToBeOffered -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/kt35101.kt b/compiler/testData/codegen/boxInline/callableReference/kt35101.kt index 601fa365d5e..6fbcc6fab9c 100644 --- a/compiler/testData/codegen/boxInline/callableReference/kt35101.kt +++ b/compiler/testData/codegen/boxInline/callableReference/kt35101.kt @@ -11,4 +11,4 @@ import test.* fun box(): String { val result = true.let2(Boolean::not) return if (!result) "OK" else "fail" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/propertyReference.kt b/compiler/testData/codegen/boxInline/callableReference/propertyReference.kt index 8a1091e81c6..57d505b6a72 100644 --- a/compiler/testData/codegen/boxInline/callableReference/propertyReference.kt +++ b/compiler/testData/codegen/boxInline/callableReference/propertyReference.kt @@ -14,4 +14,4 @@ import test.* fun box(): String { return test(Foo("OK"), Foo::a) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt b/compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt index ae31ab979ce..3246f7ac1a6 100644 --- a/compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt +++ b/compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt @@ -15,4 +15,4 @@ import test.* fun box(): String { return test(::a) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/capture/captureInlinable.kt b/compiler/testData/codegen/boxInline/capture/captureInlinable.kt index 0e55f8165c5..a7052c5d163 100644 --- a/compiler/testData/codegen/boxInline/capture/captureInlinable.kt +++ b/compiler/testData/codegen/boxInline/capture/captureInlinable.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -13,7 +14,6 @@ fun notInline(job: ()-> R) : R { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt b/compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt index 222c0cabea3..d50c2039755 100644 --- a/compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt +++ b/compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -14,7 +15,6 @@ fun notInline(job: ()-> R) : R { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/complex/forEachLine.kt b/compiler/testData/codegen/boxInline/complex/forEachLine.kt index 46583110d88..f0954f9d27f 100644 --- a/compiler/testData/codegen/boxInline/complex/forEachLine.kt +++ b/compiler/testData/codegen/boxInline/complex/forEachLine.kt @@ -1,6 +1,6 @@ +// WITH_RUNTIME // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_RUNTIME package test public class Input(val s1: String, val s2: String) { diff --git a/compiler/testData/codegen/boxInline/complex/kt44429.kt b/compiler/testData/codegen/boxInline/complex/kt44429.kt index ad0f79ce0d9..6a1f6d97966 100644 --- a/compiler/testData/codegen/boxInline/complex/kt44429.kt +++ b/compiler/testData/codegen/boxInline/complex/kt44429.kt @@ -1,14 +1,14 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test inline fun takeT(t: T) {} // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { val f = { null } as () -> Int takeT(f()) return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt b/compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt index dc34b8598f2..e4456efc697 100644 --- a/compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt +++ b/compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt @@ -1,6 +1,6 @@ +// WITH_RUNTIME // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_RUNTIME package test public class Input(val s1: String, val s2: String) { diff --git a/compiler/testData/codegen/boxInline/complex/swapAndWith.kt b/compiler/testData/codegen/boxInline/complex/swapAndWith.kt index 0c1f2a7c6ed..2f3ef1a05de 100644 --- a/compiler/testData/codegen/boxInline/complex/swapAndWith.kt +++ b/compiler/testData/codegen/boxInline/complex/swapAndWith.kt @@ -17,4 +17,4 @@ fun box(): String { return test("O") { this + "K" } -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/complex/swapAndWith2.kt b/compiler/testData/codegen/boxInline/complex/swapAndWith2.kt index bd914e909a6..7060a7f9775 100644 --- a/compiler/testData/codegen/boxInline/complex/swapAndWith2.kt +++ b/compiler/testData/codegen/boxInline/complex/swapAndWith2.kt @@ -16,4 +16,4 @@ fun box(): String { return test("O") { this + "K" } -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/complex/with.kt b/compiler/testData/codegen/boxInline/complex/with.kt index 54e147cfeeb..ae66986c3ed 100644 --- a/compiler/testData/codegen/boxInline/complex/with.kt +++ b/compiler/testData/codegen/boxInline/complex/with.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt // WITH_RUNTIME +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt package test @@ -34,7 +35,6 @@ public inline fun with2(receiver : T, crossinline body : T.() -> Unit) : Un // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun Data.test1(d: Data) : Long { diff --git a/compiler/testData/codegen/boxInline/complexStack/asCheck.kt b/compiler/testData/codegen/boxInline/complexStack/asCheck.kt index 7f7e24c804a..4999f9438d7 100644 --- a/compiler/testData/codegen/boxInline/complexStack/asCheck.kt +++ b/compiler/testData/codegen/boxInline/complexStack/asCheck.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt // KJS_WITH_FULL_RUNTIME package test diff --git a/compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt b/compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt index a3d6c8ea41d..e26a1145b36 100644 --- a/compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt +++ b/compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt @@ -20,4 +20,4 @@ inline fun inlineMe(limit: Int, c: (String) -> String): A { // FILE: 2.kt fun box(): String { return inlineMe(1) { "OK" }.s -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt b/compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt index 077d52c72c1..3150b557fa2 100644 --- a/compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt +++ b/compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts // IGNORE_BACKEND: NATIVE @@ -15,7 +16,6 @@ public inline fun myrun(block: () -> R): R { } // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* diff --git a/compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt b/compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt index 50a8bbc1fa4..f699cc43f11 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt @@ -50,4 +50,4 @@ import test.* fun box(): String { return test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt b/compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt index e0d10b91911..81e673c333a 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt @@ -48,4 +48,4 @@ import test.* fun box(): String { val test = Test() return test.p14 + test.p33 -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt b/compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt index c48b83e2365..c17f2205ac2 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test inline public fun String.run(p1: String? = null): String { diff --git a/compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt b/compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt index f34c22c551e..e52c19e30d9 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt package test inline fun inlineFun(crossinline inlineLambda: () -> String, noinline noInlineLambda: () -> String = { inlineLambda() }): String { @@ -7,7 +8,6 @@ inline fun inlineFun(crossinline inlineLambda: () -> String, noinline noInlineLa } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/defaultValues/kt11479.kt b/compiler/testData/codegen/boxInline/defaultValues/kt11479.kt index 9c757fcfdab..eb13179e0c7 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/kt11479.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/kt11479.kt @@ -22,4 +22,4 @@ fun box(): String { getOrCreate { z = "OK"; z } return z -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt b/compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt index 65308a1fd16..1750543f610 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt @@ -27,4 +27,4 @@ fun box(): String { getOrCreate { z = "OK"; z } return z -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/kt14564.kt b/compiler/testData/codegen/boxInline/defaultValues/kt14564.kt index c9a422774fc..875bab02e4d 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/kt14564.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/kt14564.kt @@ -1,5 +1,5 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt -//NO_CHECK_LAMBDA_INLINING package test @@ -33,4 +33,4 @@ fun box(): String { } }) return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/kt16496.kt b/compiler/testData/codegen/boxInline/defaultValues/kt16496.kt index ba75a44799b..84934845def 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/kt16496.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/kt16496.kt @@ -22,4 +22,4 @@ fun box(): String { return f { x++ } -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/kt18689.kt b/compiler/testData/codegen/boxInline/defaultValues/kt18689.kt index f64cd2306d2..4af89575ce7 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/kt18689.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/kt18689.kt @@ -18,4 +18,4 @@ private val foo = Foo() fun box(): String { return inlineFn(foo::foo) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt b/compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt index 5ad6a07bf34..2c4b9f1368d 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt @@ -18,4 +18,4 @@ private val foo = Foo() fun box(): String { return inlineFn(foo::foo) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt b/compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt index 137eaa4138d..3376515e6a5 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt @@ -18,4 +18,4 @@ private val foo = Foo() fun box(): String { return inlineFn(foo::foo, "K") -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt b/compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt index 23c19b4b11d..e74b60c4611 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt @@ -18,4 +18,4 @@ private val foo = Foo() fun box(): String { return inlineFn(foo::foo) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt index 703220a40c2..536b2967fdb 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test class A(val value: String) { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt index f23f5089438..d805cd164de 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test inline fun inlineFun(a: Int, lambda: (Int) -> Int = 1::plus): Int { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt index f23f5089438..d805cd164de 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test inline fun inlineFun(a: Int, lambda: (Int) -> Int = 1::plus): Int { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt index 1645f590258..dcf3c089a7a 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test class A(val ok: String) diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt index 3b2d0b580c2..971a34cfeba 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test val Int.myInc diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt index a9740fca74e..5d4034581db 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test val Long.myInc diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt index 0de4aa09ebf..f8435c3bf4f 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test class A(val value: String) { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt index 7f8648be1b2..ede1ae0132e 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test open class Base @@ -18,4 +18,4 @@ import test.* fun box(): String { return (inlineFun() as Child).value -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt index aaa780dbd2e..db325f80f60 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test fun foo(a: Number): String = "OK" @@ -13,4 +13,4 @@ import test.* fun box(): String { return inlineFun() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt index 377813e4227..28480455689 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt @@ -1,3 +1,4 @@ +// SKIP_INLINE_CHECK_IN: inlineFun$default // FILE: 1.kt package test @@ -11,7 +12,6 @@ inline fun stub() {} // FILE: 2.kt -// SKIP_INLINE_CHECK_IN: inlineFun$default import test.A.ok inline fun inlineFun(lambda: () -> String = ::ok): String { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt index fc4a641273b..330ce0a14b1 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test fun ok() = "OK" diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt index b30f6c8800b..9601111557d 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test class A(val value: String) { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt index 71b571dd5e8..bc723a1d120 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test fun ok() = "OK" diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt index 4402e747e1b..8e93f851e98 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test class A(val value: String) { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt index f240eec619d..37c1e66b6dd 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test class A { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt index 98a4f3a9ac7..bbf26481d83 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test class A { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt index b02e2936d06..01445da6948 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test private fun ok() = "OK" diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt index 37b283777ce..176926e7702 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test private val ok = "OK" diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt index ee6db8b4d9f..3a2bdfa64d9 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt @@ -1,3 +1,4 @@ +// SKIP_INLINE_CHECK_IN: inlineFun$default // FILE: 1.kt package test @@ -8,7 +9,6 @@ inline fun stub() {} // FILE: 2.kt -// SKIP_INLINE_CHECK_IN: inlineFun$default import test.A.ok inline fun inlineFun(lambda: () -> String = ::ok): String { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt index 2d2f32305f4..deab72d47c4 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test val ok = "OK" diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt index c58b8d70e09..78fee3cfe15 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test class A(val ok: String) diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt index 10f829fbb35..1d2cceaf958 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test object A { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt index d63787b9e0d..bfbeb9c76ca 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt @@ -12,4 +12,3 @@ inline fun foo(f: () -> String = { bar() }) = f() fun box(): String { return foo() } - diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt index 1b40fffadb8..bfebf8d7b28 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt package test inline fun inlineFun(crossinline inlineLambda: () -> String = { "OK" }, noinline noInlineLambda: () -> String = { inlineLambda() }): String { @@ -7,7 +8,6 @@ inline fun inlineFun(crossinline inlineLambda: () -> String = { "OK" }, noinline } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING // CHECK_CALLED_IN_SCOPE: function=inlineFun$lambda_0 scope=box import test.* diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt index d4ce1284679..a23736994d8 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test @@ -15,4 +15,4 @@ import test.* fun box(): String { return (inlineFun() as Child).value -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt index 897f9f4a392..23c85415305 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test class A(val value: String) { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt index 3916a7bd0ef..3ebc7165c81 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt // CHECK_CONTAINS_NO_CALLS: test package test diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt index e3ea90f24dc..bc6f33a7187 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt @@ -1,7 +1,7 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// WITH_RUNTIME +// FILE: 1.kt // TARGET_BACKEND: JVM -//WITH_RUNTIME package test object X { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt index bcb63c5cc0f..baee63484a6 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: lParams$default +// FILE: 1.kt package test //A lot of blank lines [Don't delete] @@ -39,4 +39,3 @@ fun box(): String { lParams() } } - diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt index b843e6e6a55..ead76228865 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt package test interface Call { @@ -17,4 +17,4 @@ import test.* fun box(): String { return test("OK").run() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt index d093fc4c95f..15d5dd84785 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test class Item @@ -13,4 +13,4 @@ import test.* fun box(): String { return inlineFun("OK") -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt index 192c79daabe..72633eb8446 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test inline fun inlineFun(action: () -> Any = { "OK" }): Any { @@ -11,4 +11,4 @@ import test.* fun box(): String { return inlineFun() as String -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt index 3a8a5257d27..8d30e802be8 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt @@ -1,7 +1,7 @@ +// SKIP_INLINE_CHECK_IN: enumOrThrow$default // TARGET_BACKEND: JVM // WITH_RUNTIME // FILE: 1.kt -// SKIP_INLINE_CHECK_IN: enumOrThrow$default package test enum class TarEnum { @@ -21,4 +21,4 @@ import test.* fun box(): String { return "OK".enumOrThrow()!!.name -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt index 2f9c2618cc3..7e2a4620c07 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -8,11 +9,10 @@ inline fun inlineFun(capturedParam: String, noinline lambda: () -> String = { ca fun call(lambda: () -> String ) = lambda() // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING // CHECK_CALLED_IN_SCOPE: function=inlineFun$lambda scope=box // CHECK_CALLED_IN_SCOPE: function=call scope=box import test.* fun box(): String { return inlineFun("OK") -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt index 5d5d8f59341..3ad8d956d3a 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt package test inline fun inlineFun(crossinline inlineLambda: () -> String, noinline noInlineLambda: () -> String = { inlineLambda() }): String { @@ -7,7 +8,6 @@ inline fun inlineFun(crossinline inlineLambda: () -> String, noinline noInlineLa } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING // CHECK_CALLED_IN_SCOPE: function=inlineFun$lambda scope=inlineFun import test.* diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt index 5b3a4f122fb..1d509a34873 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test inline fun String.inlineFun(crossinline lambda: () -> String = { this }): String { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt index 458a717c608..eb1aaacfa86 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test inline fun String.inlineFun(crossinline lambda: () -> String, crossinline dlambda: () -> String = { this }): String { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt index f7366dbfe05..cf8b2298fc6 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// WITH_RUNTIME +// FILE: 1.kt package test class A(val value: String) { @@ -12,7 +13,6 @@ class A(val value: String) { } // FILE: 2.kt -//WITH_RUNTIME // CHECK_CALLED_IN_SCOPE: function=A$inlineFun$lambda scope=box // CHECK_CALLED_IN_SCOPE: function=A$inlineFun$lambda_0 scope=box import test.* diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt index f497af6035a..d2d45f33b9f 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test class A(val value: String) { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt index 087d6396a7e..54a94ccda3e 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test inline fun inlineFun(capturedParam: String, lambda: () -> String = { capturedParam }): String { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt index 06c34bf8e5f..04e288789b3 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test inline fun inlineFun(capturedParam: String, lambda: () -> Any = { capturedParam as Any }): Any { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt index bc091c6b80f..80c1829de84 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test inline fun inlineFun(lambda: () -> Any = { "OK" as Any }): Any { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt index 012d29a9e6d..3d3a8575301 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test inline fun inlineFun(param: String, lambda: String.() -> String = { this }): String { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt index 8a5c76bffdb..6859fe86654 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test open class A(val value: String) diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt index 9a70f87d40f..17dddc3eed3 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test inline fun inlineFun(lambda: () -> String = { "OK" }): String { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt index 4ce52bb364e..58da56c9a72 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// FILE: 1.kt package test inline fun String.inlineFun(crossinline lambda: () -> String = { { this }() }): String { diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt index 6c899fd9157..e29ff68c7ca 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default +// WITH_RUNTIME +// FILE: 1.kt package test class A(val value: String) { @@ -13,7 +14,6 @@ class A(val value: String) { } // FILE: 2.kt -//WITH_RUNTIME // CHECK_CALLED_IN_SCOPE: function=A$inlineFun$lambda scope=box // CHECK_CALLED_IN_SCOPE: function=A$inlineFun$lambda_0 scope=box import test.* diff --git a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt index 5ec5e8be2a5..997f9c24aa0 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt @@ -63,4 +63,4 @@ fun box(): String { return "fail 4: ${test(p20 = "O", p22 = "K", p32 = "23")}" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt index 70b89a7c6d2..c70fc9e903e 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt @@ -67,4 +67,4 @@ fun box(): String { return "fail 4: ${test(p20 = "O", p22 = "K", p32 = "33", p33 ="32")}" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt index 24ea76ce57c..b2e2206fb42 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt @@ -1,5 +1,5 @@ +// WITH_RUNTIME // FILE: 1.kt -//WITH_RUNTIME package test diff --git a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt index 046b61f6bd1..3126af1726d 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt @@ -16,4 +16,4 @@ fun box(): String { build({ result = "OK" }) return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt index 001a65f8d62..bb90a3dca20 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt @@ -12,4 +12,4 @@ import test.* fun box(): String { build () return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt index 8a8385a6857..43bdfcbf558 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt @@ -17,4 +17,4 @@ fun box(): String { build ({ result = "OK" }) return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt index bca4b1fd4a8..6de5f843e28 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt @@ -33,4 +33,4 @@ fun box() : String { if (A().test("KK") != "KK") return "fail 3: ${A().test("KK")}" return A().test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt b/compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt index bfd1c940bc5..fc2824e553b 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt @@ -1,5 +1,6 @@ +// WITH_RUNTIME +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt -//WITH_RUNTIME package test var res = "" @@ -11,10 +12,9 @@ inline fun inlineFun(vararg s : () -> String = arrayOf({ "OK" })) { } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { inlineFun() return res -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt b/compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt index 0261b5f3b00..11b21806041 100644 --- a/compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt +++ b/compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -6,7 +7,6 @@ inline fun mrun(lambda: () -> T): T = lambda() // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* object Whatever { @@ -20,4 +20,4 @@ fun box(): String { val keys = key }.keys } -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt b/compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt index 0cd603b46d5..61daf66375e 100644 --- a/compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt +++ b/compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt @@ -1,6 +1,6 @@ +// WITH_REFLECT // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test inline fun call(s: () -> R) = s() diff --git a/compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt b/compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt index aaf8ff5d5d9..5f933d3a5d3 100644 --- a/compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt +++ b/compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt @@ -1,6 +1,6 @@ +// WITH_REFLECT // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test interface Z { diff --git a/compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt b/compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt index b453fa0cf19..13677fd9150 100644 --- a/compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt +++ b/compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt @@ -1,6 +1,6 @@ +// WITH_REFLECT // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test interface Z { diff --git a/compiler/testData/codegen/boxInline/enum/kt10569.kt b/compiler/testData/codegen/boxInline/enum/kt10569.kt index 2ffd30c8ad8..e0471e976bf 100644 --- a/compiler/testData/codegen/boxInline/enum/kt10569.kt +++ b/compiler/testData/codegen/boxInline/enum/kt10569.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test var result = "" @@ -28,4 +28,3 @@ fun box(): String { } return result } - diff --git a/compiler/testData/codegen/boxInline/enum/kt18254.kt b/compiler/testData/codegen/boxInline/enum/kt18254.kt index eb5cf04573c..3c838a25634 100644 --- a/compiler/testData/codegen/boxInline/enum/kt18254.kt +++ b/compiler/testData/codegen/boxInline/enum/kt18254.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt // WITH_RUNTIME +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt package test inline fun stub() {} @@ -9,7 +10,6 @@ enum class Z { } // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/enum/valueOf.kt b/compiler/testData/codegen/boxInline/enum/valueOf.kt index 5a9f2420163..298c3fc4c73 100644 --- a/compiler/testData/codegen/boxInline/enum/valueOf.kt +++ b/compiler/testData/codegen/boxInline/enum/valueOf.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test inline fun > myValueOf(): String { diff --git a/compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt b/compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt index c0519a81e3e..e56ad3a6c54 100644 --- a/compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt +++ b/compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test inline fun > myValueOf(): String { diff --git a/compiler/testData/codegen/boxInline/enum/valueOfChain.kt b/compiler/testData/codegen/boxInline/enum/valueOfChain.kt index 15d240b28c5..48c25e8d07b 100644 --- a/compiler/testData/codegen/boxInline/enum/valueOfChain.kt +++ b/compiler/testData/codegen/boxInline/enum/valueOfChain.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test inline fun > myValueOf(): String { diff --git a/compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt b/compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt index 74b5f0f3bb5..428054afc22 100644 --- a/compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt +++ b/compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test inline fun > myValueOf(): String { diff --git a/compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt b/compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt index 761813faec2..e84f2760272 100644 --- a/compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt +++ b/compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test inline fun myValueOf(): String { diff --git a/compiler/testData/codegen/boxInline/enum/values.kt b/compiler/testData/codegen/boxInline/enum/values.kt index 81c0954c4de..7cd9aa6966e 100644 --- a/compiler/testData/codegen/boxInline/enum/values.kt +++ b/compiler/testData/codegen/boxInline/enum/values.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt // KJS_WITH_FULL_RUNTIME package test diff --git a/compiler/testData/codegen/boxInline/enum/valuesAsArray.kt b/compiler/testData/codegen/boxInline/enum/valuesAsArray.kt index 57dd9b4f6e0..65e31b37664 100644 --- a/compiler/testData/codegen/boxInline/enum/valuesAsArray.kt +++ b/compiler/testData/codegen/boxInline/enum/valuesAsArray.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt // KJS_WITH_FULL_RUNTIME package test diff --git a/compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt b/compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt index de5782e0353..a336b0c641a 100644 --- a/compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt +++ b/compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt // KJS_WITH_FULL_RUNTIME package test diff --git a/compiler/testData/codegen/boxInline/enum/valuesChain.kt b/compiler/testData/codegen/boxInline/enum/valuesChain.kt index 05742940ef7..6d3da298793 100644 --- a/compiler/testData/codegen/boxInline/enum/valuesChain.kt +++ b/compiler/testData/codegen/boxInline/enum/valuesChain.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt // KJS_WITH_FULL_RUNTIME package test diff --git a/compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt b/compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt index ef372571afc..a04127ad7da 100644 --- a/compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt +++ b/compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt // KJS_WITH_FULL_RUNTIME package test diff --git a/compiler/testData/codegen/boxInline/enum/valuesNonReified.kt b/compiler/testData/codegen/boxInline/enum/valuesNonReified.kt index 6b161a6f9b2..696b058943e 100644 --- a/compiler/testData/codegen/boxInline/enum/valuesNonReified.kt +++ b/compiler/testData/codegen/boxInline/enum/valuesNonReified.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt // KJS_WITH_FULL_RUNTIME package test diff --git a/compiler/testData/codegen/boxInline/functionExpression/extension.kt b/compiler/testData/codegen/boxInline/functionExpression/extension.kt index 747e96a6b61..9ca257477e9 100644 --- a/compiler/testData/codegen/boxInline/functionExpression/extension.kt +++ b/compiler/testData/codegen/boxInline/functionExpression/extension.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt inline fun Inline.calcExt(s: (Int) -> Int, p: Int) : Int { return s(p) } diff --git a/compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt b/compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt index 8fca27fd435..f85510a0aa4 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: 1.kt @@ -12,9 +13,8 @@ inline class IC2(val x: String) // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* fun box() : String = - IC1("OK").test.x \ No newline at end of file + IC1("OK").test.x diff --git a/compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt b/compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt index a138e428a0a..6031ebf82de 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: 1.kt @@ -13,7 +14,6 @@ inline class A(val x: Int) { inline fun stub() {} // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING // ^ TODO import test.* diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt index 7658fec1fb2..f1131a72a6e 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -11,7 +12,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() @@ -44,4 +44,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt index 7080acab31c..f5b99dc75cf 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -11,7 +12,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() @@ -44,4 +44,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt index abf2462a71f..5e170886739 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -15,7 +16,6 @@ inline fun IC.extensionInline(): T = (value as FooHolder).value as T inline fun normalInline(a: IC): T = (a.value as FooHolder).value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() @@ -48,4 +48,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt index 8b0829224b3..253a95c70b4 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -15,7 +16,6 @@ inline fun IC.extensionInline(): T = (value as FooHolder).value as T inline fun normalInline(a: IC): T = (a.value as FooHolder).value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() @@ -48,4 +48,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt index 9841750ba54..dcbf96086a3 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -11,7 +12,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() @@ -44,4 +44,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt index 7cb7cea35e1..288fd64f14b 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -10,7 +11,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt index 3ed119240ab..e2f3c343bbb 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -11,7 +12,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() @@ -40,4 +40,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt index ae83caa6fa4..904732c438e 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -11,7 +12,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() @@ -40,4 +40,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt index 016b8d8434d..e1ca8c53d5f 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -15,7 +16,6 @@ inline fun IC.extensionInline(): T = (value as FooHolder).value as T inline fun normalInline(a: IC): T = (a.value as FooHolder).value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() @@ -44,4 +44,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt index f718726117f..0024e2185cc 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -15,7 +16,6 @@ inline fun IC.extensionInline(): T = (value as FooHolder).value as T inline fun normalInline(a: IC): T = (a.value as FooHolder).value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() @@ -44,4 +44,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt index d3a9e4085e6..2cfceffe81d 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -11,7 +12,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() @@ -40,4 +40,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt index 0072106d1cc..4d97374fbbf 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -10,7 +11,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a) { it.extensionInline() diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt index 069c28fa678..8d582e17f6b 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -11,7 +12,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a, object : IFace { override fun call(it: IC): T = it.extensionInline() @@ -44,4 +44,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt index 6e47f095e6c..ed0fc096f9f 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -11,7 +12,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a, object : IFace { override fun call(it: IC): T = it.extensionInline() @@ -44,4 +44,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt index b7a307b2761..ff7e0526c76 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -15,7 +16,6 @@ inline fun IC.extensionInline(): T = (value as FooHolder).value as T inline fun normalInline(a: IC): T = (a.value as FooHolder).value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a, object : IFace { override fun call(it: IC): T = it.extensionInline() @@ -48,4 +48,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt index 90d922c8bd4..43603e03684 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -15,7 +16,6 @@ inline fun IC.extensionInline(): T = (value as FooHolder).value as T inline fun normalInline(a: IC): T = (a.value as FooHolder).value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a, object : IFace { override fun call(it: IC): T = it.extensionInline() @@ -48,4 +48,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt index 3caa1af2e78..b36c8a35b7b 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -11,7 +12,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a, object : IFace { override fun call(it: IC): T = it.extensionInline() @@ -44,4 +44,4 @@ fun box(): String { if (res != 45) return "FAIL 4: $res" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt index bdf6307c30c..bae96b42ec8 100644 --- a/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt +++ b/compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +InlineClasses // FILE: inline.kt @@ -10,7 +11,6 @@ inline fun IC.extensionInline(): T = value as T inline fun normalInline(a: IC): T = a.value as T // FILE: box.kt -// NO_CHECK_LAMBDA_INLINING fun extension(a: IC): T = bar(a, object : IFace { override fun call(it: IC): T = it.extensionInline() diff --git a/compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt b/compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt index 1ca55eb4619..9288a1b52ae 100644 --- a/compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt +++ b/compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt @@ -1,6 +1,6 @@ +// WITH_RUNTIME // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_RUNTIME package test inline fun foo1() = run { diff --git a/compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt b/compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt index 6b77f48e346..eab8722d15a 100644 --- a/compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt +++ b/compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package zzz @@ -13,7 +14,6 @@ fun doCalc(lambda2: () -> Int): Int { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import zzz.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt b/compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt index 97ac05955d3..0a8cb8dd274 100644 --- a/compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt +++ b/compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -12,7 +13,6 @@ inline fun Int.noInlineLambda() = { s++ } () // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun test1(): Int { return 1.inlineMethod() diff --git a/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt b/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt index 0d4a9e06dba..5a4c427b89c 100644 --- a/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt +++ b/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -12,7 +13,6 @@ inline fun doSmth2(a: T) : String { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun test1(s: Long): String { diff --git a/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt b/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt index ac0f4a222d6..63d5659aa32 100644 --- a/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt +++ b/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt @@ -1,6 +1,7 @@ +// WITH_RUNTIME +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_RUNTIME package test inline fun mfun(f: () -> R) { @@ -13,7 +14,6 @@ fun noInline(suffix: String, l: (s: String) -> Unit) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* import java.util.* diff --git a/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt b/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt index 86aab34cb6d..c14d3bf90a1 100644 --- a/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt +++ b/compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -16,7 +17,6 @@ inline fun doSmth(a: String): String { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun test1(param: String): String { diff --git a/compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt b/compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt index 80e630ccc3b..98826899e95 100644 --- a/compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt +++ b/compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -9,7 +10,6 @@ inline fun call(crossinline f: () -> R) : R { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun sameName(s: Long): Long { diff --git a/compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt b/compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt index bfebbf8816a..44b199d52c1 100644 --- a/compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt +++ b/compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // CHECK_BYTECODE_LISTING // FILE: 1.kt package test @@ -7,7 +8,6 @@ inline fun call(crossinline f: () -> R) : R { } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* inline fun sameName(s: Long): String = call { "FAIL" } @@ -17,4 +17,4 @@ fun box(): String { val result = sameName(1) sameName(1L) return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt b/compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt index 3cdd3687bf2..81ab734fca0 100644 --- a/compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt +++ b/compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -19,7 +20,6 @@ fun notInline(job: ()-> R) : R { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun testSameCaptured() : String { diff --git a/compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt b/compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt index aaa80a83e67..a9efb6e2195 100644 --- a/compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt +++ b/compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt @@ -1,9 +1,9 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt inline fun run(c: () -> T): T = c() // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING interface Runnable { fun run(): String diff --git a/compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt b/compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt index ba32dcfee23..9c5eb1a069e 100644 --- a/compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt +++ b/compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -7,7 +8,6 @@ public inline fun myRun(block: () -> Unit) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt b/compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt index aef72d1f305..981322fb0d6 100644 --- a/compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt +++ b/compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt // WITH_RUNTIME +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt package test public class Data(val value: Int) @@ -14,7 +15,6 @@ public inline fun use(block: ()-> R) : R { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun test1(d: Data): Int { diff --git a/compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt b/compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt index f5ae9ebb3db..eff2d539dd1 100644 --- a/compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt +++ b/compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -7,7 +8,6 @@ public inline fun myRun(block: () -> Unit) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt b/compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt index 4eb4e712acb..37a14120126 100644 --- a/compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt +++ b/compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt @@ -1,5 +1,4 @@ // IGNORE_BACKEND: NATIVE -// MODULE: lib // FILE: lib.kt inline fun T.andAlso(block: (T) -> Unit): T { block(this) @@ -14,7 +13,6 @@ inline fun tryCatch(block: () -> T, onSuccess: (T) -> Unit) { }.andAlso { onSuccess(it) } } -// MODULE: main(lib) // FILE: main.kt fun box(): String { var result = false diff --git a/compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt b/compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt index 4071a3fa702..32ec13cc615 100644 --- a/compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt +++ b/compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt @@ -1,6 +1,6 @@ +// WITH_RUNTIME // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_RUNTIME @file:[JvmName("MultifileClass") JvmMultifileClass] package a diff --git a/compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt b/compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt index 40555a42091..b42489e9975 100644 --- a/compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt +++ b/compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt inline fun (() -> String).test(): (() -> String) = { invoke() + this.invoke() + this() } @@ -7,7 +8,6 @@ inline fun (() -> String).extensionNoInline(): String = this() + (this.hashCode( // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING fun box(): String { val res = { "OK" }.test()() diff --git a/compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt b/compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt index fa760a238c1..868f75c9f18 100644 --- a/compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt +++ b/compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt inline fun test(p: T) { @@ -6,7 +7,6 @@ inline fun test(p: T) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING fun box() : String { test {"123"} diff --git a/compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt b/compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt index 98751109cac..088358060ff 100644 --- a/compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt +++ b/compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt inline fun test(p: Any) { @@ -6,7 +7,6 @@ inline fun test(p: Any) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING fun box() : String { test {"123"} diff --git a/compiler/testData/codegen/boxInline/noInline/noInline.kt b/compiler/testData/codegen/boxInline/noInline/noInline.kt index 8c313f6bba9..fe9b209d305 100644 --- a/compiler/testData/codegen/boxInline/noInline/noInline.kt +++ b/compiler/testData/codegen/boxInline/noInline/noInline.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt inline fun calc(s: (Int) -> Int, noinline p: (Int) -> Int) : Int { @@ -9,7 +10,6 @@ inline fun extensionLambda(noinline bar: Int.() -> Int) = 10.bar() // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING fun test1(): Int { return calc( { l: Int -> 2*l}, { l: Int -> 4*l}) } diff --git a/compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt b/compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt index 541efe7cbf3..00b697703a9 100644 --- a/compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt +++ b/compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -8,7 +9,6 @@ inline fun inlineFun(arg: T, f: (T) -> Unit) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun test1(param: String): String { diff --git a/compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt b/compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt index 133f57d8324..e13b49aea6a 100644 --- a/compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt +++ b/compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -8,7 +9,6 @@ inline fun inlineFun(arg: T, f: (T) -> Unit) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* inline fun test1(crossinline param: () -> String): String { diff --git a/compiler/testData/codegen/boxInline/noInline/withoutInline.kt b/compiler/testData/codegen/boxInline/noInline/withoutInline.kt index 7508473e98b..24944c2a3ca 100644 --- a/compiler/testData/codegen/boxInline/noInline/withoutInline.kt +++ b/compiler/testData/codegen/boxInline/noInline/withoutInline.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt class Inline { @@ -9,7 +10,6 @@ class Inline { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING fun test1(): Int { val inlineX = Inline() var p = { l : Int -> l}; diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt index cc2c560762a..1556391ce4c 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -11,8 +12,6 @@ public inline fun notUsed(block: ()-> R) : R { } // FILE: 2.kt - -//NO_CHECK_LAMBDA_INLINING import test.* fun test1(b: Boolean): String { diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt index af6f1e3d223..e6ee69c4578 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -11,9 +12,6 @@ inline fun test(l: () -> String): String { } // FILE: 2.kt - -//NO_CHECK_LAMBDA_INLINING - import test.* fun test1() : String { diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt index d053ea76bcf..a23d95a76db 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // IGNORE_BACKEND_FIR: JVM_IR // FILE: 1.kt @@ -7,7 +8,6 @@ inline fun foo(f: () -> Unit) { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING fun test(): String = fun (): String { foo { return "OK" } return "fail" diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt index 772ed7e18e3..1db5f2f8c97 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test public class Holder(var value: String = "") { diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt index 0144754000f..408b61f0373 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test public class Holder(var value: String = "") { diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt index baa08eed3be..d56ca90cd31 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test public interface MCloseable { diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt index 886bc6502e3..9a8f4826bf6 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt @@ -1,4 +1,5 @@ // !LANGUAGE: +ProperFinally +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -26,7 +27,6 @@ fun main(args: Array) { } // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* @@ -39,4 +39,4 @@ fun box(): String { } return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt index 5cc01c86878..0e023cc3d10 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt @@ -1,4 +1,5 @@ // !LANGUAGE: +ProperFinally +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -24,7 +25,6 @@ class A { } // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* @@ -34,4 +34,4 @@ fun box(): String { if (a.field != -1) return "fail: -1 != ${a.field}" return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt index 181ebd431ef..aeb60bf3f49 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt @@ -41,4 +41,4 @@ fun box(): String { } return if (result == "lambda finally") "OK" else "fail: $result" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt index 3e0a0277b7a..55d776f297d 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt @@ -40,4 +40,4 @@ fun box(): String { } return if (result == "lambda finally") "OK" else "fail: $result" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt index 7032bc1d1cd..281fba6d29f 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt @@ -42,4 +42,4 @@ fun box(): String { } return if (result == "lambda finally catch finally") "OK" else "fail: $result" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt index f0c0cf98472..59ed142bef9 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // !LANGUAGE: +ProperFinally // FILE: 1.kt package test @@ -29,7 +30,6 @@ class A { } // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* @@ -47,4 +47,4 @@ fun box(): String { } return a.c ({ "OK" }) as String -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt index fe95b3d1f13..c6fedd4b991 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt @@ -1,5 +1,5 @@ +// WITH_RUNTIME // FILE: 1.kt -//WITH_RUNTIME package test public inline fun T.mylet(block: (T) -> R): R { diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt index 1214eb64235..63d3a3f32ac 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt @@ -1,5 +1,5 @@ +// WITH_RUNTIME // FILE: 1.kt -//WITH_RUNTIME package test public inline fun T.mylet(block: (T) -> R): R { diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt index 2988a95f25b..12ce9285160 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt @@ -1,5 +1,5 @@ +// WITH_RUNTIME // FILE: 1.kt -//WITH_RUNTIME package test public inline fun T.mylet(block: (T) -> R): R { diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt index c8be6a91d48..4a4e743b8b1 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt @@ -1,5 +1,5 @@ +// WITH_RUNTIME // FILE: 1.kt -//WITH_RUNTIME package test public inline fun T.mylet(block: (T) -> R): R { diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt index b0c09676d00..681fca58c3e 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt @@ -32,4 +32,4 @@ class Test(val value: () -> String) { fun box(): String { return Test { "OK" }.test() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt index 4e363c62c1a..7ca3d20c0c0 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt @@ -51,4 +51,4 @@ fun box(): String { return "fail 3: $globalResult" } return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt index ec00c945eed..56e865f10d8 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt @@ -31,4 +31,4 @@ fun box(): String { } return "fail" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt index 240ec77b316..965e17f9296 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt @@ -1,4 +1,3 @@ -// MODULE: lib // FILE: lib.kt package utils @@ -31,8 +30,6 @@ fun log(s: String): String { inline fun myRun(f: () -> Unit) = f() - -// MODULE: main(lib) // FILE: main.kt import utils.* @@ -51,4 +48,4 @@ fun box(): String { LOG = "" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt index 90ad2de9c7c..9084756e932 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -11,9 +12,6 @@ inline fun test(l: () -> String): String { } // FILE: 2.kt - -//NO_CHECK_LAMBDA_INLINING - import test.* fun test1(): String { diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt index 319213c08c8..a2de409455b 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt @@ -1,4 +1,3 @@ -// MODULE: lib // FILE: lib.kt package utils @@ -30,7 +29,6 @@ fun log(s: String): String { inline fun myRun(f: () -> Unit) = f() -// MODULE: main(lib) // FILE: main.kt import utils.* @@ -48,4 +46,4 @@ fun box(): String { if (LOG != "bar(2) #1;") return "fail3: $LOG" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/optimizations/kt20844.kt b/compiler/testData/codegen/boxInline/optimizations/kt20844.kt index 7775771039c..159b08be858 100644 --- a/compiler/testData/codegen/boxInline/optimizations/kt20844.kt +++ b/compiler/testData/codegen/boxInline/optimizations/kt20844.kt @@ -1,5 +1,5 @@ +// WITH_RUNTIME // FILE: 1.kt -//WITH_RUNTIME package test data class Address( @@ -24,4 +24,4 @@ fun box(): String { ) return result.firstName + result.lastName -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt b/compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt index e5a4efe858c..9a0c3b95fe8 100644 --- a/compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt +++ b/compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt @@ -1,6 +1,6 @@ +// WITH_RUNTIME // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_RUNTIME @file:kotlin.jvm.JvmMultifileClass @file:kotlin.jvm.JvmName("TestKt") package test diff --git a/compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt b/compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt index ca1708d8003..4fcebc290ff 100644 --- a/compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt +++ b/compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt @@ -25,4 +25,4 @@ fun box(): String { if (p != 4) return "fail 5: $p" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt b/compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt index 036922d341c..6de336068e0 100644 --- a/compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt +++ b/compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt @@ -29,4 +29,4 @@ fun box(): String { if (p != 4) return "fail 5: $p" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt b/compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt index 502ba5a9892..2fe6644607d 100644 --- a/compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt +++ b/compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt @@ -39,4 +39,4 @@ fun box(): String { if (p.result != 4) return "fail 5: ${p.result}" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt b/compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt index db7b05756a2..d5a98942c4e 100644 --- a/compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt +++ b/compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt @@ -26,4 +26,4 @@ fun box(): String { if (p != 6) return "fail 5: $p" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt b/compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt index 22c34128acf..881ac90a4f7 100644 --- a/compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt +++ b/compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt @@ -32,4 +32,4 @@ fun box(): String { } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt b/compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt index b02eef4c149..e9febc9ac44 100644 --- a/compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt +++ b/compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt @@ -36,4 +36,4 @@ fun box(): String { if (p.result != 4) return "fail 5: ${p.result}" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/property/fromObject.kt b/compiler/testData/codegen/boxInline/property/fromObject.kt index 92b99c1cf97..c06ac1d7ca4 100644 --- a/compiler/testData/codegen/boxInline/property/fromObject.kt +++ b/compiler/testData/codegen/boxInline/property/fromObject.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test open class A(var result: String) { diff --git a/compiler/testData/codegen/boxInline/property/kt22649.kt b/compiler/testData/codegen/boxInline/property/kt22649.kt index 0f2f73b6dee..c5f4af454f6 100644 --- a/compiler/testData/codegen/boxInline/property/kt22649.kt +++ b/compiler/testData/codegen/boxInline/property/kt22649.kt @@ -14,4 +14,4 @@ fun test(s: Int?) { fun box() : String { test(1) return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/property/property.kt b/compiler/testData/codegen/boxInline/property/property.kt index 3265987a72b..fd8cceb92c6 100644 --- a/compiler/testData/codegen/boxInline/property/property.kt +++ b/compiler/testData/codegen/boxInline/property/property.kt @@ -159,4 +159,4 @@ fun box(): String { if (a.p15 != 151515) return "test15: ${a.p15}" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/property/reifiedVal.kt b/compiler/testData/codegen/boxInline/property/reifiedVal.kt index f88d11b18fc..767eeef5bb3 100644 --- a/compiler/testData/codegen/boxInline/property/reifiedVal.kt +++ b/compiler/testData/codegen/boxInline/property/reifiedVal.kt @@ -13,4 +13,4 @@ class OK fun box(): String { return OK().value ?: "fail" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/property/reifiedVar.kt b/compiler/testData/codegen/boxInline/property/reifiedVar.kt index ace575f220f..3cc151b6573 100644 --- a/compiler/testData/codegen/boxInline/property/reifiedVar.kt +++ b/compiler/testData/codegen/boxInline/property/reifiedVar.kt @@ -23,4 +23,4 @@ fun box(): String { o.value = "K" return o.value -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/property/simple.kt b/compiler/testData/codegen/boxInline/property/simple.kt index c8a6f4dff07..c94c65fb7d3 100644 --- a/compiler/testData/codegen/boxInline/property/simple.kt +++ b/compiler/testData/codegen/boxInline/property/simple.kt @@ -22,4 +22,4 @@ fun box(): String { if (value != 4) return "fail 3: $value" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/property/simpleExtension.kt b/compiler/testData/codegen/boxInline/property/simpleExtension.kt index 5a9db92386c..6dc5bdeaf59 100644 --- a/compiler/testData/codegen/boxInline/property/simpleExtension.kt +++ b/compiler/testData/codegen/boxInline/property/simpleExtension.kt @@ -22,4 +22,4 @@ fun box(): String { if (p != 37) return "fail 3: $p" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/reified/capturedLambda.kt b/compiler/testData/codegen/boxInline/reified/capturedLambda.kt index baab480f19f..571110e6dd6 100644 --- a/compiler/testData/codegen/boxInline/reified/capturedLambda.kt +++ b/compiler/testData/codegen/boxInline/reified/capturedLambda.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt // WITH_RUNTIME +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt package test inline fun foo() = bar() {"OK"} @@ -12,7 +13,6 @@ public inline fun call(f: () -> T): T = f() // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* val x: () -> String = foo() diff --git a/compiler/testData/codegen/boxInline/reified/capturedLambda2.kt b/compiler/testData/codegen/boxInline/reified/capturedLambda2.kt index dcc09a82265..fc52afb7ee8 100644 --- a/compiler/testData/codegen/boxInline/reified/capturedLambda2.kt +++ b/compiler/testData/codegen/boxInline/reified/capturedLambda2.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt // WITH_REFLECT +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt package test inline fun bar(crossinline tasksFactory: () -> T) = { @@ -11,7 +12,6 @@ public inline fun call(f: () -> T): T = f() // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* inline fun foo() = bar() {"OK"} diff --git a/compiler/testData/codegen/boxInline/reified/checkCast/chain.kt b/compiler/testData/codegen/boxInline/reified/checkCast/chain.kt index 68c84679224..393582ccc4d 100644 --- a/compiler/testData/codegen/boxInline/reified/checkCast/chain.kt +++ b/compiler/testData/codegen/boxInline/reified/checkCast/chain.kt @@ -1,6 +1,6 @@ +// WITH_RUNTIME // IGNORE_BACKEND: JS // FILE: 1.kt -// WITH_RUNTIME package test class A diff --git a/compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt b/compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt index fa41a95c1db..d9aed0bac33 100644 --- a/compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt +++ b/compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test enum class Id { @@ -34,4 +34,4 @@ fun box(): String { val a = doSth(A(Id.OK))!! return a.id.name -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt b/compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt index 6d8e446a808..e82a6aaf7b0 100644 --- a/compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt +++ b/compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test @@ -31,4 +31,4 @@ fun box(): String { process(A("OK")) return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt b/compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt index 13ba4ed9a16..9ff625a679d 100644 --- a/compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt +++ b/compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test @@ -29,4 +29,4 @@ import test.* fun box(): String { return process(A("OK")).name -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt b/compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt index f667157c6e7..42f02572d77 100644 --- a/compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt +++ b/compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt @@ -1,8 +1,8 @@ +// WITH_RUNTIME // TODO: Reified generics required some design to unify behavior across all backends // IGNORE_BACKEND: JS, JS_IR // IGNORE_BACKEND: JS_IR_ES6 // FILE: 1.kt -// WITH_RUNTIME package test inline fun T.castTo(): R = this as R diff --git a/compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt b/compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt index f36bc591125..2aa76d75006 100644 --- a/compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt +++ b/compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test class A diff --git a/compiler/testData/codegen/boxInline/reified/checkCast/simple.kt b/compiler/testData/codegen/boxInline/reified/checkCast/simple.kt index a7905ee70c5..c1fc04a1a7d 100644 --- a/compiler/testData/codegen/boxInline/reified/checkCast/simple.kt +++ b/compiler/testData/codegen/boxInline/reified/checkCast/simple.kt @@ -1,8 +1,8 @@ +// WITH_RUNTIME // TODO: Reified generics required some design to unify behavior across all backends // IGNORE_BACKEND: JS, JS_IR // IGNORE_BACKEND: JS_IR_ES6 // FILE: 1.kt -// WITH_RUNTIME package test class A diff --git a/compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt b/compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt index 268f0dfc9ad..29e66dc5433 100644 --- a/compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt +++ b/compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt package test class A diff --git a/compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt b/compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt index ab0802369aa..ab0a88e0b46 100644 --- a/compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt +++ b/compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt @@ -1,7 +1,7 @@ +// WITH_RUNTIME // KOTLIN_CONFIGURATION_FLAGS: +JVM.NO_UNIFIED_NULL_CHECKS // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_RUNTIME package test class A diff --git a/compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt b/compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt index f1d5d5da942..464830f676f 100644 --- a/compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt +++ b/compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt @@ -1,7 +1,7 @@ -// TARGET_BACKEND: JVM -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default // WITH_RUNTIME +// TARGET_BACKEND: JVM +// FILE: 1.kt package test class OK diff --git a/compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt b/compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt index 5b8159e93e9..d5ba2771359 100644 --- a/compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt +++ b/compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt @@ -1,7 +1,8 @@ -// TARGET_BACKEND: JVM -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default // WITH_RUNTIME +// NO_CHECK_LAMBDA_INLINING +// TARGET_BACKEND: JVM +// FILE: 1.kt package test inline fun inlineFun(p: String, lambda: () -> String = { { p + T::class.java.simpleName } () }): String { @@ -9,7 +10,6 @@ inline fun inlineFun(p: String, lambda: () -> String = { { p + T::cl } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* class K diff --git a/compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt b/compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt index 8ec501bb4bd..ab22289c243 100644 --- a/compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt +++ b/compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt @@ -1,7 +1,7 @@ -// TARGET_BACKEND: JVM -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default // WITH_RUNTIME +// TARGET_BACKEND: JVM +// FILE: 1.kt package test inline fun inlineFun(p: String, crossinline lambda: () -> String = { { p + T::class.java.simpleName } () }): String { diff --git a/compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt b/compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt index 4156c4365fa..0359a407217 100644 --- a/compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt +++ b/compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt @@ -1,7 +1,7 @@ -// TARGET_BACKEND: JVM -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default // WITH_RUNTIME +// TARGET_BACKEND: JVM +// FILE: 1.kt package test inline fun inlineFun(crossinline lambda: () -> String = { { T::class.java.simpleName } () }): String { diff --git a/compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt b/compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt index ba3540939dc..9de9aaa8bc1 100644 --- a/compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt +++ b/compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt @@ -1,7 +1,8 @@ -// TARGET_BACKEND: JVM -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default // WITH_RUNTIME +// NO_CHECK_LAMBDA_INLINING +// TARGET_BACKEND: JVM +// FILE: 1.kt package test inline fun inlineFun(lambda: () -> String = { { T::class.java.simpleName } () }): String { @@ -9,7 +10,6 @@ inline fun inlineFun(lambda: () -> String = { { T::class.java.simple } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* class OK diff --git a/compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt b/compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt index e4e9095672f..10162d73dc4 100644 --- a/compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt +++ b/compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt @@ -1,7 +1,7 @@ -// TARGET_BACKEND: JVM -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default // WITH_RUNTIME +// TARGET_BACKEND: JVM +// FILE: 1.kt package test inline fun inlineFun(lambda: () -> String = { T::class.java.simpleName }): String { diff --git a/compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt b/compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt index 5125aedda2b..be8839cad11 100644 --- a/compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt +++ b/compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt @@ -1,7 +1,7 @@ -// TARGET_BACKEND: JVM -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default // WITH_RUNTIME +// TARGET_BACKEND: JVM +// FILE: 1.kt package test class K diff --git a/compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt b/compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt index 45a2764dc40..6a9e21a3487 100644 --- a/compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt +++ b/compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt @@ -1,7 +1,7 @@ -// TARGET_BACKEND: JVM -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: inlineFun$default // WITH_RUNTIME +// TARGET_BACKEND: JVM +// FILE: 1.kt package test class OK diff --git a/compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt b/compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt index 0d7dc844be6..2bf9fb7da44 100644 --- a/compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt +++ b/compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -7,7 +8,6 @@ class B : A inline fun foo(a: Any) = (a as? T != null).toString()[0] // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { @@ -15,4 +15,3 @@ fun box(): String { if (s != "ftt") return "fail: $s" return "OK" } - diff --git a/compiler/testData/codegen/boxInline/reified/kt11081.kt b/compiler/testData/codegen/boxInline/reified/kt11081.kt index 76132d061a6..245fa659014 100644 --- a/compiler/testData/codegen/boxInline/reified/kt11081.kt +++ b/compiler/testData/codegen/boxInline/reified/kt11081.kt @@ -1,6 +1,6 @@ +// WITH_REFLECT // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test open class TypeRef { diff --git a/compiler/testData/codegen/boxInline/reified/kt11677.kt b/compiler/testData/codegen/boxInline/reified/kt11677.kt index 49ce1597496..1dbc51787fa 100644 --- a/compiler/testData/codegen/boxInline/reified/kt11677.kt +++ b/compiler/testData/codegen/boxInline/reified/kt11677.kt @@ -1,7 +1,7 @@ +// WITH_REFLECT +// FULL_JDK // TARGET_BACKEND: JVM // FILE: 1.kt -// FULL_JDK -// WITH_REFLECT package test diff --git a/compiler/testData/codegen/boxInline/reified/kt15956.kt b/compiler/testData/codegen/boxInline/reified/kt15956.kt index d0456a2afb5..1406d92527a 100644 --- a/compiler/testData/codegen/boxInline/reified/kt15956.kt +++ b/compiler/testData/codegen/boxInline/reified/kt15956.kt @@ -1,8 +1,8 @@ -// FILE: 1.kt -// WITH_REFLECT -// IGNORE_BACKEND: JS, JS_IR -// IGNORE_BACKEND: NATIVE // IGNORE_BACKEND: JS_IR_ES6 +// IGNORE_BACKEND: NATIVE +// IGNORE_BACKEND: JS, JS_IR +// WITH_REFLECT +// FILE: 1.kt package foo @@ -23,4 +23,4 @@ class A(val O: Int, val K: Int) fun box(): String { return f() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/reified/kt15997.kt b/compiler/testData/codegen/boxInline/reified/kt15997.kt index d5e316774ee..f136c8e5347 100644 --- a/compiler/testData/codegen/boxInline/reified/kt15997.kt +++ b/compiler/testData/codegen/boxInline/reified/kt15997.kt @@ -1,6 +1,6 @@ -// FILE: 1.kt -// FULL_JDK // WITH_REFLECT +// FULL_JDK +// FILE: 1.kt // TARGET_BACKEND: JVM package test @@ -25,4 +25,4 @@ class OK { fun box(): String { OK().value = Unit return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/reified/kt15997_2.kt b/compiler/testData/codegen/boxInline/reified/kt15997_2.kt index 8124757b654..197643d32f9 100644 --- a/compiler/testData/codegen/boxInline/reified/kt15997_2.kt +++ b/compiler/testData/codegen/boxInline/reified/kt15997_2.kt @@ -1,6 +1,6 @@ -// FILE: 1.kt -// FULL_JDK // WITH_REFLECT +// FULL_JDK +// FILE: 1.kt // TARGET_BACKEND: JVM package test @@ -34,4 +34,4 @@ class OK { fun box(): String { OK().value = Unit return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/reified/kt6988.kt b/compiler/testData/codegen/boxInline/reified/kt6988.kt index 43c3fe42e2d..00596b7c1a8 100644 --- a/compiler/testData/codegen/boxInline/reified/kt6988.kt +++ b/compiler/testData/codegen/boxInline/reified/kt6988.kt @@ -1,6 +1,6 @@ +// WITH_REFLECT // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test interface Call { diff --git a/compiler/testData/codegen/boxInline/reified/kt6988_2.kt b/compiler/testData/codegen/boxInline/reified/kt6988_2.kt index 669fa7e0897..84bad0cb25c 100644 --- a/compiler/testData/codegen/boxInline/reified/kt6988_2.kt +++ b/compiler/testData/codegen/boxInline/reified/kt6988_2.kt @@ -1,6 +1,6 @@ +// WITH_REFLECT // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test diff --git a/compiler/testData/codegen/boxInline/reified/kt6990.kt b/compiler/testData/codegen/boxInline/reified/kt6990.kt index c3f4f9ea17f..4b39aa8ad9e 100644 --- a/compiler/testData/codegen/boxInline/reified/kt6990.kt +++ b/compiler/testData/codegen/boxInline/reified/kt6990.kt @@ -1,8 +1,8 @@ +// WITH_REFLECT // TARGET_BACKEND: JVM // IGNORE_BACKEND: ANDROID // FILE: 1.kt -// WITH_REFLECT package test public inline fun inlineMeIfYouCan(): String? = diff --git a/compiler/testData/codegen/boxInline/reified/kt9637.kt b/compiler/testData/codegen/boxInline/reified/kt9637.kt index 42ade47a265..8d9b3cf92e6 100644 --- a/compiler/testData/codegen/boxInline/reified/kt9637.kt +++ b/compiler/testData/codegen/boxInline/reified/kt9637.kt @@ -1,6 +1,7 @@ +// WITH_REFLECT +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test import java.util.* @@ -20,7 +21,6 @@ public class Box // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* class Boxer { diff --git a/compiler/testData/codegen/boxInline/reified/packages.kt b/compiler/testData/codegen/boxInline/reified/packages.kt index 508bff65a38..d9249ef1bc6 100644 --- a/compiler/testData/codegen/boxInline/reified/packages.kt +++ b/compiler/testData/codegen/boxInline/reified/packages.kt @@ -1,6 +1,7 @@ +// WITH_REFLECT +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test public abstract class A @@ -23,7 +24,6 @@ inline fun foo3(x: Any, y: Any): Boolean { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt b/compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt index ca3f588d679..c59db9712ed 100644 --- a/compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt +++ b/compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt @@ -1,6 +1,7 @@ +// WITH_REFLECT +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test interface F { @@ -16,7 +17,6 @@ inline fun Array.copyOfRange1(crossinline toIndex: () -> Int) = // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* import java.util.* diff --git a/compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt b/compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt index dc05def5a23..cfdacba9e8a 100644 --- a/compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt +++ b/compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt @@ -1,6 +1,7 @@ +// WITH_REFLECT +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test interface F { @@ -16,7 +17,6 @@ inline fun Array.copyOfRange1(crossinline toIndex: () -> Int) = // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* import java.util.* diff --git a/compiler/testData/codegen/boxInline/signature/recursion.kt b/compiler/testData/codegen/boxInline/signature/recursion.kt index 4b394b9ca04..5787136a28c 100644 --- a/compiler/testData/codegen/boxInline/signature/recursion.kt +++ b/compiler/testData/codegen/boxInline/signature/recursion.kt @@ -1,6 +1,7 @@ +// WITH_REFLECT +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test @@ -10,7 +11,6 @@ inline fun stub() { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* import java.util.* diff --git a/compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt b/compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt index 2c58a9da41b..ec4bced980e 100644 --- a/compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt +++ b/compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt @@ -1,6 +1,8 @@ +// WITH_REFLECT +// FULL_JDK +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test class B @@ -23,8 +25,6 @@ open class Test { // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING -// FULL_JDK import test.* import java.util.* diff --git a/compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt b/compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt index 22c8776122e..1c1426dd93f 100644 --- a/compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt +++ b/compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt @@ -1,6 +1,8 @@ +// WITH_REFLECT +// FULL_JDK +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test class B @@ -23,8 +25,6 @@ open class Test { // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING -// FULL_JDK import test.* import java.util.* diff --git a/compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt b/compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt index b795b338486..d21eb211b78 100644 --- a/compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt +++ b/compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt @@ -1,6 +1,7 @@ +// WITH_REFLECT +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test interface F { @@ -16,7 +17,6 @@ inline fun Array.copyOfRange1(crossinline toIndex: () -> Int) = // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* import java.util.* diff --git a/compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt b/compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt index 255f1c05722..a7104afdefc 100644 --- a/compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt +++ b/compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt @@ -1,6 +1,8 @@ +// WITH_REFLECT +// FULL_JDK +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test open class Test { @@ -16,8 +18,6 @@ open class Test { // FILE: 2.kt -// NO_CHECK_LAMBDA_INLINING -// FULL_JDK import test.* import java.util.* diff --git a/compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt b/compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt index 06d63ce0a21..24d25bca09b 100644 --- a/compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt +++ b/compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt @@ -1,6 +1,7 @@ +// WITH_REFLECT +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test import java.util.* @@ -27,7 +28,6 @@ open class CustomerService { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* import java.util.* diff --git a/compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt b/compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt index 143856ebb2f..7adf449f0c4 100644 --- a/compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt +++ b/compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt @@ -1,6 +1,7 @@ +// WITH_REFLECT +// NO_CHECK_LAMBDA_INLINING // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test interface MComparator { @@ -28,7 +29,6 @@ open class CustomerService { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { diff --git a/compiler/testData/codegen/boxInline/simple/destructuring.kt b/compiler/testData/codegen/boxInline/simple/destructuring.kt index ea489b8e8d7..59b19014167 100644 --- a/compiler/testData/codegen/boxInline/simple/destructuring.kt +++ b/compiler/testData/codegen/boxInline/simple/destructuring.kt @@ -17,4 +17,4 @@ import test.* fun box(): String { foo { i, (a1, a2, a3) -> i + a3 } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt b/compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt index eeb9f2bfefb..24e7b61a534 100644 --- a/compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt +++ b/compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt @@ -32,4 +32,4 @@ fun box(): String { foo { i, (a1, a2, a3) -> a3 + i } foo2 { i, (a1, a2, a3) -> i + a3 } return res -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/simple/extension.kt b/compiler/testData/codegen/boxInline/simple/extension.kt index ad48f1b993f..0a990fe114a 100644 --- a/compiler/testData/codegen/boxInline/simple/extension.kt +++ b/compiler/testData/codegen/boxInline/simple/extension.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt inline fun Inline.calcExt(s: (Int) -> Int, p: Int) : Int { return s(p) } diff --git a/compiler/testData/codegen/boxInline/simple/kt28547.kt b/compiler/testData/codegen/boxInline/simple/kt28547.kt index 6960b6f3663..cd6a19aa033 100644 --- a/compiler/testData/codegen/boxInline/simple/kt28547.kt +++ b/compiler/testData/codegen/boxInline/simple/kt28547.kt @@ -49,4 +49,4 @@ fun box(): String { ) return result -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/simple/rootConstructor.kt b/compiler/testData/codegen/boxInline/simple/rootConstructor.kt index 1af43ae7c06..7cd01cc4e77 100644 --- a/compiler/testData/codegen/boxInline/simple/rootConstructor.kt +++ b/compiler/testData/codegen/boxInline/simple/rootConstructor.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -13,7 +14,6 @@ fun notInline(job: ()-> R) : R { // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* val s = doWork({11}) diff --git a/compiler/testData/codegen/boxInline/simple/vararg.kt b/compiler/testData/codegen/boxInline/simple/vararg.kt index 9297265eb7b..76b278d8ad7 100644 --- a/compiler/testData/codegen/boxInline/simple/vararg.kt +++ b/compiler/testData/codegen/boxInline/simple/vararg.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt // KJS_WITH_FULL_RUNTIME package test diff --git a/compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt b/compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt index e7aeaec4f71..e43e2f41ebc 100644 --- a/compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt +++ b/compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt @@ -29,7 +29,7 @@ fun box(): String { } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt @@ -42,7 +42,7 @@ test/Introspector$SchemaRetriever$inSchema$1 1#1,12:1 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt b/compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt index 1690def94fa..bb0652c21ae 100644 --- a/compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt +++ b/compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt @@ -13,7 +14,6 @@ inline fun call(crossinline init: () -> Unit) { import builders.* -//NO_CHECK_LAMBDA_INLINING fun test(): String { var res = "Fail" @@ -29,7 +29,7 @@ fun box(): String { return test() } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt @@ -42,7 +42,7 @@ builders/_1Kt$call$1 1#1,12:1 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt b/compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt index 53e46025ae0..72f27645570 100644 --- a/compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt +++ b/compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt @@ -6,7 +7,6 @@ package builders inline fun call(crossinline init: () -> Unit) { return init() } -//NO_CHECK_LAMBDA_INLINING // FILE: 2.kt @@ -30,9 +30,9 @@ fun box(): String { return test() } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt b/compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt index 949f01e9968..fe2371a5e96 100644 --- a/compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt +++ b/compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt @@ -1,7 +1,5 @@ -// IGNORE_BACKEND_MULTI_MODULE: JVM_IR, JVM_MULTI_MODULE_IR_AGAINST_OLD +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt -// IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND_FIR: JVM_IR package builders inline fun call(crossinline init: () -> Unit) { return init() @@ -28,11 +26,10 @@ inline fun test(): String { fun box(): String { return test() } -//NO_CHECK_LAMBDA_INLINING -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap //TODO //7#1,3:26 diff --git a/compiler/testData/codegen/boxInline/smap/anonymous/object.kt b/compiler/testData/codegen/boxInline/smap/anonymous/object.kt index 5e410c30c0a..10891d59f68 100644 --- a/compiler/testData/codegen/boxInline/smap/anonymous/object.kt +++ b/compiler/testData/codegen/boxInline/smap/anonymous/object.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt @@ -30,9 +31,8 @@ fun test(): String { fun box(): String { return test() } -//NO_CHECK_LAMBDA_INLINING -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt @@ -45,7 +45,7 @@ builders/_1Kt$call$1 1#1,14:1 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt b/compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt index eabbb2ea24c..5fa90ffa9b8 100644 --- a/compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt +++ b/compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt @@ -30,11 +31,10 @@ fun test(): String { fun box(): String { return test() } -//NO_CHECK_LAMBDA_INLINING -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap //SMAP SMAP diff --git a/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt b/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt index fae9a58df06..94f3a7a06a4 100644 --- a/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt +++ b/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt @@ -1,7 +1,5 @@ -// IGNORE_BACKEND_MULTI_MODULE: JVM_IR, JVM_MULTI_MODULE_IR_AGAINST_OLD +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt -// IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND_FIR: JVM_IR package builders inline fun call(crossinline init: () -> Unit) { return init() @@ -30,11 +28,10 @@ inline fun test(): String { fun box(): String { return test() } -//NO_CHECK_LAMBDA_INLINING -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap //7#1,3:28 //10#1,8:32 - could be merged in one big interval due preprocessing of inline function diff --git a/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt b/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt index 5e91d05e299..1b34a3ff4ca 100644 --- a/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt +++ b/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package builders @@ -28,9 +29,8 @@ import builders.* fun box(): String { return test() } -//NO_CHECK_LAMBDA_INLINING -// FILE: 1.sxmap +// SMAP_FILE: 1.sxmap //TODO SHOULD BE LESS @@ -56,7 +56,7 @@ builders/BuildersPackage$objectOnInlineCallSite2_2$HASH$test$1$1 1#1,42:1 *E -// FILE: 2.sxmap +// SMAP_FILE: 2.sxmap SXMAP objectOnInlineCallSite2.1.kt diff --git a/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt b/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt index 41b7502d7d0..a1d56a3a7b2 100644 --- a/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt +++ b/compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt @@ -30,6 +31,5 @@ import builders.* fun box(): String { return test{"OK"} } -//NO_CHECK_LAMBDA_INLINING //TODO diff --git a/compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt b/compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt index 544454d615c..4bc97904ec2 100644 --- a/compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt +++ b/compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt @@ -32,7 +32,7 @@ inline fun test(z: () -> Unit) { } -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/smap/assertion.kt b/compiler/testData/codegen/boxInline/smap/assertion.kt index 779611b7b2c..eef59ca5d0c 100644 --- a/compiler/testData/codegen/boxInline/smap/assertion.kt +++ b/compiler/testData/codegen/boxInline/smap/assertion.kt @@ -36,9 +36,9 @@ fun box(): String { return "OK" } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/classCycle.kt b/compiler/testData/codegen/boxInline/smap/classCycle.kt index 7c6f7ac5bf9..ad3273a254b 100644 --- a/compiler/testData/codegen/boxInline/smap/classCycle.kt +++ b/compiler/testData/codegen/boxInline/smap/classCycle.kt @@ -16,7 +16,7 @@ import test.* fun box() = A().a() -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -65,7 +65,7 @@ test/A 6#1:18 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt b/compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt index fe9b11919d2..ce18ad6eb4f 100644 --- a/compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt +++ b/compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt @@ -12,7 +12,7 @@ fun box(): String { return "OK" } -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/crossroutines.kt b/compiler/testData/codegen/boxInline/smap/crossroutines.kt index 23b3608f04c..2e1712e4705 100644 --- a/compiler/testData/codegen/boxInline/smap/crossroutines.kt +++ b/compiler/testData/codegen/boxInline/smap/crossroutines.kt @@ -1,7 +1,6 @@ // This test depends on line numbers // WITH_RUNTIME // FILE: 1.kt -// IGNORE_BACKEND_FIR: JVM_IR package test interface SuspendRunnable { @@ -48,7 +47,7 @@ fun box(): String { return res } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -82,7 +81,7 @@ test/_1Kt$inlineMe1$2$run$1 1#1,23:1 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/smap/defaultFunction.kt b/compiler/testData/codegen/boxInline/smap/defaultFunction.kt index b0a216e0368..0442bd85f17 100644 --- a/compiler/testData/codegen/boxInline/smap/defaultFunction.kt +++ b/compiler/testData/codegen/boxInline/smap/defaultFunction.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt @@ -7,14 +8,13 @@ inline fun inlineFun(capturedParam: String, noinline lambda: () -> String = { ca } // FILE: 2.kt -//NO_CHECK_LAMBDA_INLINING import test.* fun box(): String { return inlineFun("OK") } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -26,4 +26,4 @@ test/_1Kt$inlineFun$1 1#1,9:1 *E -// FILE: 2.TODO \ No newline at end of file +// SMAP_FILE: 2.TODO diff --git a/compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt b/compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt index cab3ac62c0d..b9506f5c2f8 100644 --- a/compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt +++ b/compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt @@ -18,7 +18,7 @@ fun box(): String { return inlineFun() } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -37,7 +37,7 @@ test/_1Kt 11#1:15 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt b/compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt index c06c6e1ecb2..7ab39ebe795 100644 --- a/compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt +++ b/compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt @@ -1,6 +1,6 @@ +// SKIP_INLINE_CHECK_IN: lParams$default // FILE: 1.kt -// SKIP_INLINE_CHECK_IN: lParams$default package test //A lot of blank lines [Don't delete] @@ -43,7 +43,7 @@ fun box(): String { return lParams() } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -100,7 +100,7 @@ test/_1Kt$kValue$1 1#1,39:1 *E -// FILE: 2.smap-nonseparate-compilation +// SMAP_FILE: 2.smap-nonseparate-compilation SMAP 2.kt @@ -126,7 +126,7 @@ _2Kt 5#1:14 *E -// FILE: 2.smap-separate-compilation +// SMAP_FILE: 2.smap-separate-compilation SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt b/compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt index b6925a7206a..2b1213bbea0 100644 --- a/compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt +++ b/compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt @@ -1,6 +1,6 @@ +// SKIP_INLINE_CHECK_IN: lParams$default // FILE: 1.kt -// SKIP_INLINE_CHECK_IN: lParams$default package test //A lot of blank lines [Don't delete] @@ -45,7 +45,7 @@ fun box(): String { } } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -66,7 +66,7 @@ test/_1Kt$lParams$1 33#1:40 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt b/compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt index 9deda9047a2..8170f75d447 100644 --- a/compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt +++ b/compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // SKIP_INLINE_CHECK_IN: lParams$default +// FILE: 1.kt package test @@ -81,7 +81,7 @@ fun box(): String { } } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -102,7 +102,7 @@ test/_1Kt$lParams$1 51#1:76 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt b/compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt index a5496dd3c34..3ab4cc99c80 100644 --- a/compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt +++ b/compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt @@ -1,7 +1,7 @@ +// SKIP_INLINE_CHECK_IN: lParams$default // IGNORE_BACKEND: JS // FILE: 1.kt -// SKIP_INLINE_CHECK_IN: lParams$default package test //A lot of blank lines [Don't delete] @@ -44,7 +44,7 @@ fun box(): String { return lParams() } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -90,7 +90,7 @@ test/_1Kt$kValue$1 1#1,40:1 *E -// FILE: 2.smap-nonseparate-compilation +// SMAP_FILE: 2.smap-nonseparate-compilation SMAP 2.kt @@ -118,7 +118,7 @@ _2Kt 5#1:14 *E -// FILE: 2.smap-separate-compilation +// SMAP_FILE: 2.smap-separate-compilation SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt b/compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt index e4a0d619da3..85001ad2e9e 100644 --- a/compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt +++ b/compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt @@ -1,7 +1,7 @@ +// SKIP_INLINE_CHECK_IN: lParams$default // IGNORE_BACKEND: JS // FILE: 1.kt -// SKIP_INLINE_CHECK_IN: lParams$default package test //A lot of blank lines [Don't delete] @@ -46,7 +46,7 @@ fun box(): String { } } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -92,7 +92,7 @@ test/_1Kt$kValue$1 1#1,40:1 *E -// FILE: 2.smap-nonseparate-compilation +// SMAP_FILE: 2.smap-nonseparate-compilation SMAP 2.kt @@ -120,7 +120,7 @@ _2Kt 6#1:16 *E -// FILE: 2.smap-separate-compilation +// SMAP_FILE: 2.smap-separate-compilation SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt b/compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt index 793f1f6f49d..67d376e9c49 100644 --- a/compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt +++ b/compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt @@ -1,6 +1,6 @@ +// SKIP_INLINE_CHECK_IN: lParams$default // FILE: 1.kt -// SKIP_INLINE_CHECK_IN: lParams$default package test //A lot of blank lines [Don't delete] @@ -44,7 +44,7 @@ fun box(): String { } } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -56,7 +56,7 @@ test/_1Kt$lParams$1 1#1,38:1 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt b/compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt index ba04e586364..407a2dbb7ae 100644 --- a/compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt +++ b/compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt @@ -1,6 +1,6 @@ +// SKIP_INLINE_CHECK_IN: inlineFun$default // FILE: 1.kt -// SKIP_INLINE_CHECK_IN: inlineFun$default package test @@ -18,7 +18,7 @@ fun box(): String { return inlineFun("OK") } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -41,7 +41,7 @@ test/_1Kt$inlineFun$1 1#1,13:1 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt b/compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt index e54918f3aaa..7263d5dae01 100644 --- a/compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt +++ b/compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt @@ -1,6 +1,6 @@ +// SKIP_INLINE_CHECK_IN: inlineFun$default // FILE: 1.kt -// SKIP_INLINE_CHECK_IN: inlineFun$default package test @@ -16,7 +16,7 @@ fun box(): String { return inlineFun("OK") } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -28,7 +28,7 @@ test/_1Kt$inlineFun$1 1#1,11:1 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt b/compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt index 82d37489a0e..a182d77ba89 100644 --- a/compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt +++ b/compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt @@ -1,6 +1,6 @@ +// SKIP_INLINE_CHECK_IN: lParams$default // FILE: 1.kt -// SKIP_INLINE_CHECK_IN: lParams$default package test //A lot of blank lines [Don't delete] @@ -42,7 +42,7 @@ fun box(): String { return lParams() } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -54,7 +54,7 @@ test/_1Kt$lParams$1 1#1,38:1 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/forInline.kt b/compiler/testData/codegen/boxInline/smap/forInline.kt index 67840ef676f..65f67788e6d 100644 --- a/compiler/testData/codegen/boxInline/smap/forInline.kt +++ b/compiler/testData/codegen/boxInline/smap/forInline.kt @@ -37,9 +37,9 @@ class SomeIterator { } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin @@ -58,4 +58,4 @@ SomeIterator _2Kt *L 5#1:32,6 -*E \ No newline at end of file +*E diff --git a/compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt b/compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt index a8668f4f105..c393d577c0f 100644 --- a/compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt +++ b/compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt // KJS_WITH_FULL_RUNTIME package test inline fun stub() { @@ -12,4 +12,4 @@ fun box(): String { return "KO".reversed() } -// FILE: 2.smap +// SMAP_FILE: 2.smap diff --git a/compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt b/compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt index 16a2e6e5eb7..43871b6618a 100644 --- a/compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt +++ b/compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt +// IGNORE_FIR_DIAGNOSTICS // WITH_RUNTIME +// FILE: 1.kt package test inline fun stub() { @@ -17,4 +18,4 @@ fun box(): String { return prop } -// FILE: 2.smap +// SMAP_FILE: 2.smap diff --git a/compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt b/compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt index c12d2cdc6bf..df52f451ccd 100644 --- a/compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt +++ b/compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt @@ -1,6 +1,6 @@ +// WITH_REFLECT // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test inline fun className() = T::class.java.simpleName @@ -16,7 +16,7 @@ fun box(): String { return "OK" } -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt b/compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt index cee0ed27120..a0f8ed93b3b 100644 --- a/compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt +++ b/compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt @@ -1,6 +1,6 @@ +// WITH_REFLECT // TARGET_BACKEND: JVM // FILE: 1.kt -// WITH_REFLECT package test inline val T.className: String; get() = T::class.java.simpleName @@ -16,7 +16,7 @@ fun box(): String { return "OK" } -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt b/compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt index 99fd142bdb9..2fdba55bde7 100644 --- a/compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt +++ b/compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt @@ -19,6 +19,6 @@ fun box(): String { }) } -// FILE: 2.smap +// SMAP_FILE: 2.smap // See KT-23064 for the problem, InlineOnlySmapSkipper for an explanation, and // `stdlibInlineOnlyOneLine.kt` for the case where something should actually happen. diff --git a/compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt b/compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt index 0eb8edfba86..356d23c7400 100644 --- a/compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt +++ b/compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt @@ -14,7 +14,7 @@ fun box(): String { return "O".myLet(fun (it: String): String { return it + k }) } -// FILE: 2.smap +// SMAP_FILE: 2.smap // See KT-23064 for the problem and InlineOnlySmapSkipper for an explanation. SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/interleavedFiles.kt b/compiler/testData/codegen/boxInline/smap/interleavedFiles.kt index 0ad34b218a5..1c4812aaa85 100644 --- a/compiler/testData/codegen/boxInline/smap/interleavedFiles.kt +++ b/compiler/testData/codegen/boxInline/smap/interleavedFiles.kt @@ -19,9 +19,9 @@ fun box(): String { return "OK" } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/smap/kt23369.kt b/compiler/testData/codegen/boxInline/smap/kt23369.kt index ad4dc7aacb1..61a87a097fa 100644 --- a/compiler/testData/codegen/boxInline/smap/kt23369.kt +++ b/compiler/testData/codegen/boxInline/smap/kt23369.kt @@ -14,9 +14,9 @@ fun box(): String { return inlineFun { "OK" } } -// FILE: 1+a.smap +// SMAP_FILE: 1+a.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/kt23369_2.kt b/compiler/testData/codegen/boxInline/smap/kt23369_2.kt index 5056bf17280..b73957a898a 100644 --- a/compiler/testData/codegen/boxInline/smap/kt23369_2.kt +++ b/compiler/testData/codegen/boxInline/smap/kt23369_2.kt @@ -1,5 +1,5 @@ -// FILE: 1+ a.kt +// FILE: a.kt package test @@ -14,9 +14,9 @@ fun box(): String { return inlineFun { "OK" } } -// FILE: 1+ a.smap +// SMAP_FILE: 1+ a.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/kt23369_3.kt b/compiler/testData/codegen/boxInline/smap/kt23369_3.kt index 9cdb1363488..232b944d8cc 100644 --- a/compiler/testData/codegen/boxInline/smap/kt23369_3.kt +++ b/compiler/testData/codegen/boxInline/smap/kt23369_3.kt @@ -1,5 +1,5 @@ -// FILE: + a.kt +// FILE: a.kt package test @@ -14,9 +14,9 @@ fun box(): String { return inlineFun { "OK" } } -// FILE: + a.smap +// SMAP_FILE: + a.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/kt35006.kt b/compiler/testData/codegen/boxInline/smap/kt35006.kt index 6c4480ed3f8..cae42315fd2 100644 --- a/compiler/testData/codegen/boxInline/smap/kt35006.kt +++ b/compiler/testData/codegen/boxInline/smap/kt35006.kt @@ -15,9 +15,9 @@ fun box(): String { // KotlinDebug: } } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/smap/multiFileFacade.kt b/compiler/testData/codegen/boxInline/smap/multiFileFacade.kt index 257424317e4..2630e94a90b 100644 --- a/compiler/testData/codegen/boxInline/smap/multiFileFacade.kt +++ b/compiler/testData/codegen/boxInline/smap/multiFileFacade.kt @@ -14,7 +14,7 @@ inline fun foo2(l: () -> String): String = foo(l) fun box(): String = foo { "OK" } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -33,7 +33,7 @@ Facade___1Kt 10#1:14 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt b/compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt index 6806931d187..7d52d3f349f 100644 --- a/compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt +++ b/compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt @@ -27,9 +27,9 @@ fun box(): String { return result } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt b/compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt index 605f24a02ad..3bccd7b875b 100644 --- a/compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt +++ b/compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt @@ -31,7 +31,7 @@ fun box(): String { } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -53,7 +53,7 @@ test/_1Kt$test$1 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt b/compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt index 7f7c70cc6f6..7ffadc5f40d 100644 --- a/compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt +++ b/compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt @@ -34,9 +34,9 @@ fun box(): String { } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt b/compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt index 22e52e09da1..13166690a2b 100644 --- a/compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt +++ b/compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt @@ -34,9 +34,9 @@ fun box(): String { } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/oneFile.kt b/compiler/testData/codegen/boxInline/smap/oneFile.kt index df2e0247903..0fbf18955b5 100644 --- a/compiler/testData/codegen/boxInline/smap/oneFile.kt +++ b/compiler/testData/codegen/boxInline/smap/oneFile.kt @@ -19,9 +19,9 @@ inline fun test(p: () -> String): String { return pd + p() } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap //TODO should be empty SMAP diff --git a/compiler/testData/codegen/boxInline/smap/rangeFolding.kt b/compiler/testData/codegen/boxInline/smap/rangeFolding.kt index 6856000760d..a98fe3f8297 100644 --- a/compiler/testData/codegen/boxInline/smap/rangeFolding.kt +++ b/compiler/testData/codegen/boxInline/smap/rangeFolding.kt @@ -27,7 +27,7 @@ fun box(): String { return "OK" } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -50,7 +50,7 @@ test/_1Kt 11#1:17 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt b/compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt index c1112c9549b..593dcdc9335 100644 --- a/compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt +++ b/compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt @@ -29,7 +29,7 @@ fun box(): String { return "OK" } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -58,7 +58,7 @@ test/D 12#1:19 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt b/compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt index 499cbff507e..1e8e648e190 100644 --- a/compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt +++ b/compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt @@ -18,9 +18,9 @@ fun box(): String { return if (p == 1 && l == 11) "OK" else "fail: $p" } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt b/compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt index 031109f2e5b..a4c6ff6dfa1 100644 --- a/compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt +++ b/compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt @@ -19,9 +19,9 @@ fun box(): String { return if (p == 15) "OK" else "fail: $p" } -// FILE: 1.smap +// SMAP_FILE: 1.smap -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt diff --git a/compiler/testData/codegen/boxInline/smap/smap.kt b/compiler/testData/codegen/boxInline/smap/smap.kt index ba121ab90b2..b43c582f6db 100644 --- a/compiler/testData/codegen/boxInline/smap/smap.kt +++ b/compiler/testData/codegen/boxInline/smap/smap.kt @@ -43,7 +43,7 @@ fun box(): String { return expected } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt @@ -65,7 +65,7 @@ builders/_1Kt 19#1:26,2 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP diff --git a/compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt b/compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt index 990c428c0bc..e2d0d0fff0d 100644 --- a/compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt +++ b/compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt @@ -19,7 +19,7 @@ fun box(): String { return inlineFun() } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -38,7 +38,7 @@ test/_1Kt 10#1:16 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt b/compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt index 46ba2cb2991..0413447a45d 100644 --- a/compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt +++ b/compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt @@ -19,7 +19,7 @@ fun box(): String { return inlineFun() } -// FILE: 1.smap +// SMAP_FILE: 1.smap SMAP 1.kt Kotlin @@ -39,7 +39,7 @@ test/_1Kt 10#1:16 *E -// FILE: 2.smap +// SMAP_FILE: 2.smap SMAP 2.kt Kotlin diff --git a/compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt b/compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt index 1d368d6595e..1fc9c6b9f59 100644 --- a/compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt +++ b/compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt @@ -16,4 +16,4 @@ inline fun test(noinline foo: () -> String, noinline bar: () -> String): String // FILE: 2.kt fun box(): String = - test({ "OK" }, { "wrong lambda" }) \ No newline at end of file + test({ "OK" }, { "wrong lambda" }) diff --git a/compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt b/compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt index 9e0289e38d0..1bf35f4f44d 100644 --- a/compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt +++ b/compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt @@ -22,4 +22,4 @@ inline fun test(crossinline foo: String.() -> String): String { // FILE: 2.kt -fun box(): String = test { "OK" } \ No newline at end of file +fun box(): String = test { "OK" } diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt b/compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt index 6e4d98a72b9..296cd377044 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt @@ -7,4 +7,4 @@ inline fun test(value: Any?): String? { // FILE: 2.kt fun box(): String = - test(null) ?: "OK" \ No newline at end of file + test(null) ?: "OK" diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt b/compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt index 0e59babfb80..dc4efbbc0e1 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt @@ -7,4 +7,4 @@ inline fun test(value: Any?): String? { // FILE: 2.kt fun box(): String = - test(null) ?: "OK" \ No newline at end of file + test(null) ?: "OK" diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt b/compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt index c9a891f0e7d..07dc2cf1425 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt @@ -4,4 +4,4 @@ inline fun alwaysOk(s: String, fn: (String) -> String): String { } // FILE: 2.kt -fun box() = alwaysOk("what?") { it } \ No newline at end of file +fun box() = alwaysOk("what?") { it } diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt b/compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt index adb5010e8c7..79980c7076a 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt @@ -4,4 +4,4 @@ inline fun alwaysOk(s: String, fn: (String) -> String): String { } // FILE: 2.kt -fun box() = alwaysOk("what?") { it } \ No newline at end of file +fun box() = alwaysOk("what?") { it } diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt b/compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt index 672946db11d..ec5d2d49f0b 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt @@ -12,4 +12,4 @@ inline fun alwaysOk(s: String, fn: (String) -> String): String { } // FILE: 2.kt -fun box() = alwaysOk("what?") { it } \ No newline at end of file +fun box() = alwaysOk("what?") { it } diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt b/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt index 08d6a84c259..5913cc47992 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt @@ -7,4 +7,4 @@ inline fun test1(value: Any?): String? { // FILE: 2.kt fun box(): String = - test1(null) ?: "OK" \ No newline at end of file + test1(null) ?: "OK" diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt b/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt index 22268ac2f98..a01c77ba33a 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt @@ -7,4 +7,4 @@ inline fun test2(value: Any?): String? { // FILE: 2.kt fun box(): String = - test2(null) ?: "OK" \ No newline at end of file + test2(null) ?: "OK" diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt b/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt index 64a61b6f014..596fe6a9c2b 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt @@ -7,4 +7,4 @@ inline fun test3(value: Any?): String? { // FILE: 2.kt fun box(): String = - test3(null) ?: "OK" \ No newline at end of file + test3(null) ?: "OK" diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt b/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt index be2436f1741..563753dd36d 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt @@ -13,4 +13,4 @@ fun box(): String { } } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt b/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt index 940085bab29..7a4ce064b4f 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt @@ -13,4 +13,4 @@ fun box(): String { } } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt b/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt index 8453f9f606f..0350fcdb5b3 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt @@ -15,4 +15,4 @@ fun box(): String { } } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt b/compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt index af4d4e66a47..191250dd50c 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt @@ -12,4 +12,4 @@ inline fun inlineMe2(fn: (String) -> String): String { } // FILE: 2.kt -fun box() = inlineMe1 { _, _ -> "FAIL1" } + inlineMe2 { it } \ No newline at end of file +fun box() = inlineMe1 { _, _ -> "FAIL1" } + inlineMe2 { it } diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt b/compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt index 5a65c3db3da..e08146b4a46 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt @@ -7,4 +7,4 @@ inline fun alwaysOk(s: String, fn: (String) -> String): String { }) } // FILE: 2.kt -fun box() = alwaysOk("what?") { it } \ No newline at end of file +fun box() = alwaysOk("what?") { it } diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt b/compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt index 2f5cdbc9a0a..ff02cb10288 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt @@ -9,4 +9,4 @@ inline fun test(value: Any?): Long { fun box(): String { val t = test(null) return if (t == 1L) "OK" else "fail: t=$t" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt b/compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt index 6b5b4ec2f30..fdff170830c 100644 --- a/compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt +++ b/compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt @@ -14,4 +14,4 @@ inline fun test(value: Any?): String? { // FILE: 2.kt fun box(): String = - test(null) ?: if (finallyFlag) "OK" else "finallyFlag not set" \ No newline at end of file + test(null) ?: if (finallyFlag) "OK" else "finallyFlag not set" diff --git a/compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt b/compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt index e013e9714b0..aed11016e5f 100644 --- a/compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt +++ b/compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt @@ -28,4 +28,4 @@ fun box(): String { res = if (isSuspend(::callMe)) callSuspend(::callMe) else "!isSuspend" } return res -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt b/compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt index 85254e64c69..3e510df660f 100644 --- a/compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt +++ b/compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt @@ -31,4 +31,4 @@ fun box(): String { res = if (adapted.isSuspend()) adapted.callSuspend() else "!isSuspend" } return res -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt b/compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt index 071bd8d88dc..760637d1bf3 100644 --- a/compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt +++ b/compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt @@ -1,3 +1,5 @@ +// WITH_COROUTINES +// WITH_RUNTIME // !LANGUAGE: +ReleaseCoroutines // NO_CHECK_LAMBDA_INLINING // FILE: test.kt @@ -5,8 +7,6 @@ inline suspend fun foo(x: suspend () -> String) = x() // FILE: box.kt -// WITH_RUNTIME -// WITH_COROUTINES import helpers.ContinuationAdapter import kotlin.coroutines.* diff --git a/compiler/testData/codegen/boxInline/suspend/capturedVariables.kt b/compiler/testData/codegen/boxInline/suspend/capturedVariables.kt index d916a116d42..72b6343a18d 100644 --- a/compiler/testData/codegen/boxInline/suspend/capturedVariables.kt +++ b/compiler/testData/codegen/boxInline/suspend/capturedVariables.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt b/compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt index 5b00ac8e5a2..ee3ee7ee296 100644 --- a/compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt +++ b/compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt b/compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt index 1abfca2af49..7571a9f0d9b 100644 --- a/compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt +++ b/compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt @@ -33,4 +33,4 @@ fun box(): String { res = it } return if (res.contains(".invokeSuspend(inline.kt:")) "OK" else res -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt b/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt index 911f9ebd0d5..31d6a4ec144 100644 --- a/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt +++ b/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt b/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt index 7613e3e4e85..4fdc593bad6 100644 --- a/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt +++ b/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: test.kt class C { suspend inline fun test(default: C = this, lambda: suspend () -> String) = lambda() } diff --git a/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt b/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt index 644d74c3e4f..34a30a26446 100644 --- a/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt +++ b/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt b/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt index 22633a69837..f2ca770d8ac 100644 --- a/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt +++ b/compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt b/compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt index 79dd8b581f6..b5e929608c4 100644 --- a/compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt +++ b/compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME -// WITH_COROUTINES // WITH_REFLECT +// WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt b/compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt index ac7ca97eb5d..91eb9d7943f 100644 --- a/compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt +++ b/compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt interface Flow { abstract suspend fun collect(collector: FlowCollector) diff --git a/compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt b/compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt index d0975166d0e..a84ff393a51 100644 --- a/compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt +++ b/compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt @@ -1,8 +1,8 @@ +// WITH_COROUTINES +// WITH_RUNTIME +// FULL_JDK // TARGET_BACKEND: JVM // FILE: flow.kt -// FULL_JDK -// WITH_RUNTIME -// WITH_COROUTINES package flow diff --git a/compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt b/compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt index 1d2b33952bf..be5e5c7fd3b 100644 --- a/compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt +++ b/compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt @@ -57,4 +57,4 @@ fun box(): String { } if ("(Test.kt:" !in str) return str return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt b/compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt index a5521b9c995..2b5a0159903 100644 --- a/compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt +++ b/compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt b/compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt index 1d256ff2ae7..f9da1df8875 100644 --- a/compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt +++ b/compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt b/compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt index 2272e155a1c..29a62b9688a 100644 --- a/compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt +++ b/compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: test.kt // TARGET_BACKEND: JVM suspend inline fun test1(c: () -> Unit) { diff --git a/compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt b/compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt index 65b84089576..694f75ec49a 100644 --- a/compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt +++ b/compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt @@ -1,13 +1,13 @@ -// FILE: test.kt -// WITH_RUNTIME +// TARGET_BACKEND: JVM +// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR +// IGNORE_BACKEND: JVM // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// TARGET_BACKEND: JVM -// !INHERIT_MULTIFILE_PARTS +// WITH_RUNTIME +// INHERIT_MULTIFILE_PARTS +// FILE: test.kt // The lambda in box() attempts to store the result in a null Ref for some reason. -// IGNORE_BACKEND: JVM -// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR @file:JvmMultifileClass @file:JvmName("XKt") diff --git a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt index 202ff0ace90..7ccbf8b2f3c 100644 --- a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt +++ b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt index 96ea53cf6c1..d73acb961cc 100644 --- a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt +++ b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt index 97d3a8bd5e3..8df83d3fd6f 100644 --- a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt +++ b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt index b0567dab7c2..c65fdf3b87a 100644 --- a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt +++ b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt index b3c16a7b24f..6488173c648 100644 --- a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt +++ b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt index dd34e3ca116..8b583103923 100644 --- a/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt +++ b/compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/jvmName.kt b/compiler/testData/codegen/boxInline/suspend/jvmName.kt index abe9f30594e..4c512e9eb44 100644 --- a/compiler/testData/codegen/boxInline/suspend/jvmName.kt +++ b/compiler/testData/codegen/boxInline/suspend/jvmName.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: test.kt // TARGET_BACKEND: JVM import kotlin.coroutines.* diff --git a/compiler/testData/codegen/boxInline/suspend/kt26658.kt b/compiler/testData/codegen/boxInline/suspend/kt26658.kt index ead8808034a..6a4708acb64 100644 --- a/compiler/testData/codegen/boxInline/suspend/kt26658.kt +++ b/compiler/testData/codegen/boxInline/suspend/kt26658.kt @@ -1,6 +1,6 @@ -// FILE: inlined.kt -// WITH_RUNTIME // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: inlined.kt import kotlin.coroutines.* class Controller(val s: String) diff --git a/compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt b/compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt index 53a2f13b391..52c55478056 100644 --- a/compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt +++ b/compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt @@ -1,8 +1,8 @@ -// FILE: inlined.kt +// WITH_COROUTINES // WITH_RUNTIME // NO_CHECK_LAMBDA_INLINING // WITH_RUNTIME -// WITH_COROUTINES +// FILE: inlined.kt fun handle(f: suspend () -> Unit) {} open class Foo { diff --git a/compiler/testData/codegen/boxInline/suspend/multipleLocals.kt b/compiler/testData/codegen/boxInline/suspend/multipleLocals.kt index b0e93f73385..d5b1205751c 100644 --- a/compiler/testData/codegen/boxInline/suspend/multipleLocals.kt +++ b/compiler/testData/codegen/boxInline/suspend/multipleLocals.kt @@ -1,7 +1,7 @@ -// FILE: inlined.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: inlined.kt object Result { var a: String = "" var b: Int = 0 diff --git a/compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt b/compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt index 48426297d9c..bd7d6652913 100644 --- a/compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt +++ b/compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt @@ -1,7 +1,7 @@ -// FILE: inlined.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: inlined.kt suspend inline fun inlineMe(c: suspend () -> Unit) { c() diff --git a/compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt b/compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt index 3cacae437c4..57c08ce085c 100644 --- a/compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt +++ b/compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt // SKIP_SOURCEMAP_REMAPPING import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt b/compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt index 86f6d390bc6..27983c09463 100644 --- a/compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt +++ b/compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt // SKIP_SOURCEMAP_REMAPPING import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt index 6f3e3ea9f39..227cf591a1a 100644 --- a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt +++ b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME -// WITH_COROUTINES // IGNORE_BACKEND: JS +// WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt index 9b3e95addfa..c97a816e144 100644 --- a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt +++ b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt // SKIP_SOURCEMAP_REMAPPING import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt index 2170b31a764..60991f5f1e8 100644 --- a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt +++ b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME -// WITH_COROUTINES // IGNORE_BACKEND: JS +// WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt index 260096b26ed..d5e10a525f7 100644 --- a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt +++ b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt @@ -1,6 +1,6 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES +// WITH_RUNTIME +// FILE: test.kt // SKIP_SOURCEMAP_REMAPPING import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt index f9b1f99e407..d8add2a095e 100644 --- a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt +++ b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt index 36b3072b44e..dd27ab9f67a 100644 --- a/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt +++ b/compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt @@ -1,7 +1,7 @@ -// FILE: test.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: test.kt import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/returnValue.kt b/compiler/testData/codegen/boxInline/suspend/returnValue.kt index 817db3ecb44..6027ef9dbcb 100644 --- a/compiler/testData/codegen/boxInline/suspend/returnValue.kt +++ b/compiler/testData/codegen/boxInline/suspend/returnValue.kt @@ -1,7 +1,7 @@ -// FILE: inlined.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: inlined.kt import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt index 7677d0f4170..3bad0815fe3 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt @@ -1,8 +1,8 @@ -// FILE: inlined.kt -// WITH_RUNTIME +// CHECK_STATE_MACHINE // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// CHECK_STATE_MACHINE +// WITH_RUNTIME +// FILE: inlined.kt suspend inline fun crossinlineMe(crossinline c: suspend () -> Unit) { val l: suspend () -> Unit = { diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt index d1a5918c833..dc06546ebf0 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt @@ -1,9 +1,9 @@ -// IGNORE_BACKEND_FIR: JVM_IR -// FILE: inlined.kt -// WITH_RUNTIME +// CHECK_STATE_MACHINE // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// CHECK_STATE_MACHINE +// WITH_RUNTIME +// IGNORE_BACKEND_FIR: JVM_IR +// FILE: inlined.kt suspend inline fun crossinlineMe(crossinline c: suspend () -> Unit) { val l: suspend () -> Unit = { diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt index f286865f78a..7f99a38d66b 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt @@ -1,8 +1,8 @@ -// FILE: inlined.kt -// WITH_RUNTIME +// CHECK_STATE_MACHINE // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// CHECK_STATE_MACHINE +// WITH_RUNTIME +// FILE: inlined.kt import kotlin.coroutines.intrinsics.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt index fc31a227aea..db10d94fbc6 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt @@ -1,9 +1,9 @@ -// IGNORE_BACKEND_FIR: JVM_IR -// FILE: inlined.kt -// WITH_RUNTIME +// CHECK_STATE_MACHINE // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// CHECK_STATE_MACHINE +// WITH_RUNTIME +// IGNORE_BACKEND_FIR: JVM_IR +// FILE: inlined.kt interface SuspendRunnable { suspend fun run() diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt index a60a9da3935..70efa6faab8 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt @@ -1,9 +1,9 @@ -// IGNORE_BACKEND_FIR: JVM_IR -// FILE: inlined.kt -// WITH_RUNTIME +// CHECK_STATE_MACHINE // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// CHECK_STATE_MACHINE +// WITH_RUNTIME +// IGNORE_BACKEND_FIR: JVM_IR +// FILE: inlined.kt interface SuspendRunnable { suspend fun run() diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt index e9912fc010d..79b9e0feb42 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt @@ -1,8 +1,8 @@ -// FILE: inlined.kt -// WITH_RUNTIME +// CHECK_STATE_MACHINE // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// CHECK_STATE_MACHINE +// WITH_RUNTIME +// FILE: inlined.kt interface SuspendRunnable { suspend fun run() diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt index 47d6a5f9fc6..a06660f30c4 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt @@ -1,8 +1,8 @@ -// FILE: inlined.kt -// WITH_RUNTIME +// CHECK_STATE_MACHINE // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// CHECK_STATE_MACHINE +// WITH_RUNTIME +// FILE: inlined.kt interface SuspendRunnable { suspend fun run() diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt index a5c6a414adb..1cfac08b35b 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt @@ -1,8 +1,8 @@ -// FILE: inlined.kt -// WITH_RUNTIME +// CHECK_STATE_MACHINE // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// CHECK_STATE_MACHINE +// WITH_RUNTIME +// FILE: inlined.kt interface SuspendRunnable { suspend fun run1() diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt index 48accc627e6..9f5db6f933e 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt @@ -1,8 +1,8 @@ -// FILE: inlined.kt -// WITH_RUNTIME +// CHECK_STATE_MACHINE // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// CHECK_STATE_MACHINE +// WITH_RUNTIME +// FILE: inlined.kt import kotlin.coroutines.intrinsics.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt index fafeea1c713..3833dbc2175 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt @@ -1,8 +1,8 @@ -// FILE: test.kt -// WITH_RUNTIME -// WITH_COROUTINES // CHECK_STATE_MACHINE +// WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: test.kt import helpers.* import kotlin.coroutines.* @@ -47,4 +47,4 @@ fun box(): String { Sample().test() StateMachineChecker.check(0, checkFinished = false) return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt index 6fd44fd96b6..dc9ae43c1fa 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt @@ -1,8 +1,8 @@ -// FILE: inlined.kt -// WITH_RUNTIME +// CHECK_STATE_MACHINE // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// CHECK_STATE_MACHINE +// WITH_RUNTIME +// FILE: inlined.kt suspend inline fun crossinlineMe(crossinline c: suspend () -> Unit) { c() diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt index b95ad874df8..abc7caf0bd7 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt @@ -1,8 +1,8 @@ -// FILE: inlined.kt -// WITH_RUNTIME +// CHECK_STATE_MACHINE // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING -// CHECK_STATE_MACHINE +// WITH_RUNTIME +// FILE: inlined.kt suspend inline fun crossinlineMe(crossinline c: suspend () -> Unit) { val l: suspend () -> Unit = { c() } diff --git a/compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt b/compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt index 59c4e082522..5e230a600cf 100644 --- a/compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt +++ b/compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt @@ -1,9 +1,10 @@ -// FILE: inline.kt -// WITH_RUNTIME -// WITH_COROUTINES -// FULL_JDK -// NO_CHECK_LAMBDA_INLINING // CHECK_STATE_MACHINE +// WITH_COROUTINES +// WITH_COROUTINES +// NO_CHECK_LAMBDA_INLINING +// FULL_JDK +// WITH_RUNTIME +// FILE: inline.kt import helpers.* import kotlin.coroutines.intrinsics.* @@ -17,7 +18,6 @@ inline suspend fun inlineMe(): Unit { } // FILE: box.kt -// WITH_COROUTINES import kotlin.coroutines.* import helpers.* diff --git a/compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt b/compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt index e3c6e91aaee..f3035250a83 100644 --- a/compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt +++ b/compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt @@ -1,7 +1,7 @@ -// FILE: inlined.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: inlined.kt interface Flow { suspend fun collect(collector: FlowCollector) diff --git a/compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt b/compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt index ce8cd56391d..ebb30f0aa42 100644 --- a/compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt +++ b/compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt @@ -1,7 +1,7 @@ -// FILE: inlined.kt -// WITH_RUNTIME // WITH_COROUTINES // NO_CHECK_LAMBDA_INLINING +// WITH_RUNTIME +// FILE: inlined.kt suspend inline fun inlineMe(c: suspend (String) -> String, d: suspend () -> String): String { return c(try { d() } catch (e: Exception) { "Exception 1 ${e.message}" }) diff --git a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt index ff03266a302..03ba10fb886 100644 --- a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt +++ b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -7,8 +8,6 @@ inline fun call(crossinline s: () -> String): String { } // FILE: 2.kt - -//NO_CHECK_LAMBDA_INLINING import test.* class A { diff --git a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt index 4bf507eea06..601ff564e81 100644 --- a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt +++ b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt @@ -1,3 +1,4 @@ +// NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test @@ -9,8 +10,6 @@ inline fun call(crossinline s: () -> String): String { } // FILE: 2.kt - -//NO_CHECK_LAMBDA_INLINING import test.* class A { diff --git a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt index 4c5559410c1..8ba4ec259d5 100644 --- a/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt +++ b/compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt @@ -1,5 +1,6 @@ -// FILE: 1.kt +// NO_CHECK_LAMBDA_INLINING +// FILE: 1.kt package test inline fun call(crossinline s: () -> String): String { @@ -16,8 +17,6 @@ open class Base { } // FILE: 2.kt - -//NO_CHECK_LAMBDA_INLINING import test.* class A : Base() { diff --git a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt index 2a7cce314b1..0667e62e7eb 100644 --- a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt +++ b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt @@ -1,6 +1,6 @@ -// FILE: 1.kt // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME +// FILE: 1.kt class My(val value: Int) diff --git a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt index ce2bdba99aa..b7e45eb1b1f 100644 --- a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt +++ b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt @@ -1,6 +1,6 @@ -// FILE: 1.kt // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME +// FILE: 1.kt class My(val value: Int) diff --git a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt index 15020c02fc8..a824368c775 100644 --- a/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt +++ b/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt @@ -1,6 +1,6 @@ -// FILE: 1.kt // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME +// FILE: 1.kt class My(val value: Int) diff --git a/compiler/testData/codegen/boxInline/varargs/kt17653.kt b/compiler/testData/codegen/boxInline/varargs/kt17653.kt index c5b4c61339e..e6c48fdc149 100644 --- a/compiler/testData/codegen/boxInline/varargs/kt17653.kt +++ b/compiler/testData/codegen/boxInline/varargs/kt17653.kt @@ -15,4 +15,3 @@ fun box(): String { this + "K" } } - diff --git a/compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt b/compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt index 4e4f5cbd8df..9a0a8351d20 100644 --- a/compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt +++ b/compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt @@ -15,4 +15,3 @@ fun box(): String { this + "K" } } - diff --git a/compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt b/compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt index 6de05961739..59de2f06ff8 100644 --- a/compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt +++ b/compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt @@ -1,5 +1,5 @@ -// FILE: 1.kt // WITH_RUNTIME +// FILE: 1.kt // KJS_WITH_FULL_RUNTIME package test @@ -16,4 +16,3 @@ fun box(): String { this } } -