From f0fba7be6483754fc5f84fed78d8bf2f54c77ea2 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Fri, 10 Mar 2023 00:18:25 +0100 Subject: [PATCH] K2: add bytecode listing tests #KT-57171 Fixed --- ...LightTreeBytecodeListingTestGenerated.java | 2543 +++++++++++++++++ .../FirPsiBytecodeListingTestGenerated.java | 2543 +++++++++++++++++ .../annotationsOnDelegatedMembers.kt | 5 +- .../propertyGetterSeveralUseSiteTargets.kt | 18 + .../propertyGetterSeveralUseSiteTargets.txt | 25 + .../repeatable/propertyGetterUseSiteTarget.kt | 6 +- .../collectionStubs/ListAndSet.kt | 3 + .../abstractStubSignatures/byteShortMap.kt | 3 + .../abstractStubSignatures/genericMap.kt | 3 + .../genericStringMap.kt | 3 + .../abstractStubSignatures/numberStringMap.kt | 5 +- .../specializedGenericMap.kt | 5 +- .../stringGenericMap.kt | 3 + .../collectionStubs/collectionByDelegation.kt | 5 +- .../collectionByDelegation2.kt | 5 +- .../collectionByDelegation2WithFullJdk.kt | 6 +- .../collectionByDelegation3.kt | 5 +- .../collectionByDelegation3WithFullJdk.kt | 5 +- .../collectionByDelegationWithFullJdk.kt | 6 +- .../collectionStubs/collectionsWithFullJdk.kt | 3 + .../extendingAbstractCollection.kt | 5 +- .../inheritingFromAbstractCollections.kt | 4 +- .../inheritingFromAbstractMap.kt | 8 +- .../inheritingFromAbstractMutableList.kt | 3 + .../collectionStubs/kt44233.kt | 3 +- .../noStubsForMapImplementations.kt | 5 +- .../collectionStubs/observableMutableMap.kt | 5 +- .../bytecodeListing/contextReceivers/class.kt | 4 +- .../contextReceivers/fromKEEP/canvas.kt | 4 +- .../contextReceivers/fromKEEP/compareTo.kt | 4 +- .../contextReceivers/fromKEEP/dp.kt | 4 +- .../fromKEEP/functionalType.kt | 4 +- .../contextReceivers/fromKEEP/monoidSum.kt | 4 +- .../contextReceivers/function.kt | 4 +- .../contextReceivers/property.kt | 4 +- .../coroutines/suspendConversion.kt | 3 + .../deprecated/deprecatedEnumEntryFields.kt | 2 + .../deprecated/inheritingDeprecation.kt | 5 +- .../testData/codegen/bytecodeListing/enum.kt | 5 +- .../codegen/bytecodeListing/enumEntries.kt | 3 + .../inlineClasses/annotationGetters.kt | 5 +- .../inlineClassTypeParametersInConstructor.kt | 4 +- .../inlineClasses/inlineCollection/map.kt | 5 +- .../inlineCollection/mutableMap.kt | 5 +- .../inlineCollectionOfInlineClass/map.kt | 5 +- .../mutableMap.kt | 5 +- .../codegen/bytecodeListing/kt45934.kt | 5 + .../multiplatform/optionalExpectation.kt | 3 + .../sam/nonApproxToValidSupertype.fir.txt | 51 + .../sam/nonApproxToValidSupertype.kt | 5 +- .../sam/nonApproxToValidSupertype2.fir.txt | 62 + .../sam/nonApproxToValidSupertype2.kt | 5 +- .../sealed/sealedClassConstructor_1_4.kt | 5 +- .../bytecodeListing/specialBridges/kt41123.kt | 5 +- .../bytecodeListing/specialBridges/kt48945.kt | 3 + .../signatures/implementsMap.kt | 5 +- .../specialBridges/specialBridgeForGet.kt | 3 + .../IrBytecodeListingTestGenerated.java | 6 + .../generators/GenerateJUnit5CompilerTests.kt | 8 + 59 files changed, 5423 insertions(+), 55 deletions(-) create mode 100644 compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeListingTestGenerated.java create mode 100644 compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeListingTestGenerated.java create mode 100644 compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterSeveralUseSiteTargets.kt create mode 100644 compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterSeveralUseSiteTargets.txt create mode 100644 compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.fir.txt create mode 100644 compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.fir.txt diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeListingTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeListingTestGenerated.java new file mode 100644 index 00000000000..01e798ddc0e --- /dev/null +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeListingTestGenerated.java @@ -0,0 +1,2543 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.test.runners.codegen; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +@TestMetadata("compiler/testData/codegen/bytecodeListing") +@TestDataPath("$PROJECT_ROOT") +public class FirLightTreeBytecodeListingTestGenerated extends AbstractFirLightTreeBytecodeListingTest { + @Test + @TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt") + public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.kt"); + } + + @Test + @TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt") + public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt"); + } + + @Test + @TestMetadata("accessorForTopLevelMembers.kt") + public void testAccessorForTopLevelMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorForTopLevelMembers.kt"); + } + + @Test + @TestMetadata("accessorsForProtectedStaticJavaFieldInOtherPackage.kt") + public void testAccessorsForProtectedStaticJavaFieldInOtherPackage() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorsForProtectedStaticJavaFieldInOtherPackage.kt"); + } + + @Test + public void testAllFilesPresentInBytecodeListing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectInGenericFun.kt") + public void testAnonymousObjectInGenericFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/anonymousObjectInGenericFun.kt"); + } + + @Test + @TestMetadata("callableNameIntrinsic.kt") + public void testCallableNameIntrinsic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/callableNameIntrinsic.kt"); + } + + @Test + @TestMetadata("callableReferenceArrayConstructorArguments.kt") + public void testCallableReferenceArrayConstructorArguments() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/callableReferenceArrayConstructorArguments.kt"); + } + + @Test + @TestMetadata("cloneable.kt") + public void testCloneable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/cloneable.kt"); + } + + @Test + @TestMetadata("companionObjectVisibility_after.kt") + public void testCompanionObjectVisibility_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/companionObjectVisibility_after.kt"); + } + + @Test + @TestMetadata("companionObjectVisibility_before.kt") + public void testCompanionObjectVisibility_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/companionObjectVisibility_before.kt"); + } + + @Test + @TestMetadata("defaultImpls.kt") + public void testDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultImpls.kt"); + } + + @Test + @TestMetadata("delegationToJavaInterfaceWithWildcardType.kt") + public void testDelegationToJavaInterfaceWithWildcardType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt"); + } + + @Test + @TestMetadata("deprecatedConstantPropertyInterfaceCompanion.kt") + public void testDeprecatedConstantPropertyInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecatedConstantPropertyInterfaceCompanion.kt"); + } + + @Test + @TestMetadata("deserializeLambdaMethod.kt") + public void testDeserializeLambdaMethod() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deserializeLambdaMethod.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/enum.kt"); + } + + @Test + @TestMetadata("enumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/enumEntries.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/extension.kt"); + } + + @Test + @TestMetadata("fileClassWithPrivateDeclarationsOnly_after.kt") + public void testFileClassWithPrivateDeclarationsOnly_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/fileClassWithPrivateDeclarationsOnly_after.kt"); + } + + @Test + @TestMetadata("fileClassWithPrivateDeclarationsOnly_before.kt") + public void testFileClassWithPrivateDeclarationsOnly_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/fileClassWithPrivateDeclarationsOnly_before.kt"); + } + + @Test + @TestMetadata("immutableCollection.kt") + public void testImmutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/immutableCollection.kt"); + } + + @Test + @TestMetadata("javaDeprecated.kt") + public void testJavaDeprecated() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/javaDeprecated.kt"); + } + + @Test + @TestMetadata("jvmOverloadsAndParametersAnnotations.kt") + public void testJvmOverloadsAndParametersAnnotations() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmOverloadsAndParametersAnnotations.kt"); + } + + @Test + @TestMetadata("jvmOverloadsExternal.kt") + public void testJvmOverloadsExternal() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmOverloadsExternal.kt"); + } + + @Test + @TestMetadata("jvmRecordStructure.kt") + public void testJvmRecordStructure() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmRecordStructure.kt"); + } + + @Test + @TestMetadata("kt42137.kt") + public void testKt42137() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt42137.kt"); + } + + @Test + @TestMetadata("kt42879.kt") + public void testKt42879() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt42879.kt"); + } + + @Test + @TestMetadata("kt43217.kt") + public void testKt43217() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt43217.kt"); + } + + @Test + @TestMetadata("kt43440.kt") + public void testKt43440() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt43440.kt"); + } + + @Test + @TestMetadata("kt45853.kt") + public void testKt45853() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt45853.kt"); + } + + @Test + @TestMetadata("kt45853a.kt") + public void testKt45853a() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt45853a.kt"); + } + + @Test + @TestMetadata("kt45934.kt") + public void testKt45934() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt45934.kt"); + } + + @Test + @TestMetadata("kt47328.kt") + public void testKt47328() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt47328.kt"); + } + + @Test + @TestMetadata("kt55769.kt") + public void testKt55769() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt55769.kt"); + } + + @Test + @TestMetadata("noCollectionStubMethodsInInterface.kt") + public void testNoCollectionStubMethodsInInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noCollectionStubMethodsInInterface.kt"); + } + + @Test + @TestMetadata("noDelegationsToPrivateInterfaceMembers.kt") + public void testNoDelegationsToPrivateInterfaceMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noDelegationsToPrivateInterfaceMembers.kt"); + } + + @Test + @TestMetadata("noReceiverInCallableReferenceClasses.kt") + public void testNoReceiverInCallableReferenceClasses() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noReceiverInCallableReferenceClasses.kt"); + } + + @Test + @TestMetadata("noRemoveAtInReadOnly.kt") + public void testNoRemoveAtInReadOnly() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly.kt"); + } + + @Test + @TestMetadata("overrideWithPrimitiveUpperBound.kt") + public void testOverrideWithPrimitiveUpperBound() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/overrideWithPrimitiveUpperBound.kt"); + } + + @Test + @TestMetadata("overrideWithPrimitiveUpperBound2.kt") + public void testOverrideWithPrimitiveUpperBound2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/overrideWithPrimitiveUpperBound2.kt"); + } + + @Test + @TestMetadata("privateCompanionFields.kt") + public void testPrivateCompanionFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateCompanionFields.kt"); + } + + @Test + @TestMetadata("privateDefaultImpls.kt") + public void testPrivateDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateDefaultImpls.kt"); + } + + @Test + @TestMetadata("privateDefaultSetter.kt") + public void testPrivateDefaultSetter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateDefaultSetter.kt"); + } + + @Test + @TestMetadata("privateNestedClassInInterface.kt") + public void testPrivateNestedClassInInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateNestedClassInInterface.kt"); + } + + @Test + @TestMetadata("rawTypeInSignature.kt") + public void testRawTypeInSignature() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt"); + } + + @Test + @TestMetadata("strictfpFlag.kt") + public void testStrictfpFlag() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/strictfpFlag.kt"); + } + + @Test + @TestMetadata("synchronizedFlag.kt") + public void testSynchronizedFlag() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/synchronizedFlag.kt"); + } + + @Test + @TestMetadata("varargsBridge.kt") + public void testVarargsBridge() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/varargsBridge.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationCtorCallGenerateSynthetic.kt") + public void testAnnotationCtorCallGenerateSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/annotationCtorCallGenerateSynthetic.kt"); + } + + @Test + @TestMetadata("annotationCtorCallNoSynthetic.kt") + public void testAnnotationCtorCallNoSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/annotationCtorCallNoSynthetic.kt"); + } + + @Test + @TestMetadata("annotationsOnDelegatedMembers.kt") + public void testAnnotationsOnDelegatedMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt"); + } + + @Test + @TestMetadata("defaultTargets.kt") + public void testDefaultTargets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/defaultTargets.kt"); + } + + @Test + @TestMetadata("deprecatedJvmOverloads.kt") + public void testDeprecatedJvmOverloads() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/deprecatedJvmOverloads.kt"); + } + + @Test + @TestMetadata("internalPropertyOrTypealias.kt") + public void testInternalPropertyOrTypealias() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/internalPropertyOrTypealias.kt"); + } + + @Test + @TestMetadata("JvmSynthetic.kt") + public void testJvmSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.kt"); + } + + @Test + @TestMetadata("kt27895.kt") + public void testKt27895() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt27895.kt"); + } + + @Test + @TestMetadata("kt43399.kt") + public void testKt43399() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43399.kt"); + } + + @Test + @TestMetadata("kt43459.kt") + public void testKt43459() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43459.kt"); + } + + @Test + @TestMetadata("kt9320.kt") + public void testKt9320() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt9320.kt"); + } + + @Test + @TestMetadata("literals.kt") + public void testLiterals() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/literals.kt"); + } + + @Test + @TestMetadata("localClassWithCapturedParams.kt") + public void testLocalClassWithCapturedParams() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/localClassWithCapturedParams.kt"); + } + + @Test + @TestMetadata("noAdditionalAnnotationsInAccessors.kt") + public void testNoAdditionalAnnotationsInAccessors() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/noAdditionalAnnotationsInAccessors.kt"); + } + + @Test + @TestMetadata("noAnnotationsInSyntheticAccessors.kt") + public void testNoAnnotationsInSyntheticAccessors() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/noAnnotationsInSyntheticAccessors.kt"); + } + + @Test + @TestMetadata("onProperties.kt") + public void testOnProperties() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/onProperties.kt"); + } + + @Test + @TestMetadata("onReceiver.kt") + public void testOnReceiver() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/onReceiver.kt"); + } + + @Test + @TestMetadata("unsignedTypes.kt") + public void testUnsignedTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/unsignedTypes.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/annotations/repeatable") + @TestDataPath("$PROJECT_ROOT") + public class Repeatable { + @Test + public void testAllFilesPresentInRepeatable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaAnnotation.kt") + public void testJavaAnnotation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/javaAnnotation.kt"); + } + + @Test + @TestMetadata("kotlinAnnotation.kt") + public void testKotlinAnnotation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinAnnotation.kt"); + } + + @Test + @TestMetadata("kotlinAnnotationWithBothRepeatables.kt") + public void testKotlinAnnotationWithBothRepeatables() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinAnnotationWithBothRepeatables.kt"); + } + + @Test + @TestMetadata("kotlinSpecificTargets.kt") + public void testKotlinSpecificTargets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinSpecificTargets.kt"); + } + + @Test + @TestMetadata("multipleRepeatableOrder.kt") + public void testMultipleRepeatableOrder() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/multipleRepeatableOrder.kt"); + } + + @Test + @TestMetadata("nonRepeatedAnnotationWithItsContainer.kt") + public void testNonRepeatedAnnotationWithItsContainer() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/nonRepeatedAnnotationWithItsContainer.kt"); + } + + @Test + @TestMetadata("propertyGetterSeveralUseSiteTargets.kt") + public void testPropertyGetterSeveralUseSiteTargets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterSeveralUseSiteTargets.kt"); + } + + @Test + @TestMetadata("propertyGetterUseSiteTarget.kt") + public void testPropertyGetterUseSiteTarget() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterUseSiteTarget.kt"); + } + + @Test + @TestMetadata("retentionAndTarget.kt") + public void testRetentionAndTarget() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/retentionAndTarget.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/callableReference") + @TestDataPath("$PROJECT_ROOT") + public class CallableReference { + @Test + @TestMetadata("adaptedReference.kt") + public void testAdaptedReference() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/callableReference/adaptedReference.kt"); + } + + @Test + public void testAllFilesPresentInCallableReference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs") + @TestDataPath("$PROJECT_ROOT") + public class CollectionStubs { + @Test + @TestMetadata("abstractMapRedefiningGetAny.kt") + public void testAbstractMapRedefiningGetAny() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractMapRedefiningGetAny.kt"); + } + + @Test + public void testAllFilesPresentInCollectionStubs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("collectionByDelegation.kt") + public void testCollectionByDelegation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation.kt"); + } + + @Test + @TestMetadata("collectionByDelegation2.kt") + public void testCollectionByDelegation2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2.kt"); + } + + @Test + @TestMetadata("collectionByDelegation2WithFullJdk.kt") + public void testCollectionByDelegation2WithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt"); + } + + @Test + @TestMetadata("collectionByDelegation3.kt") + public void testCollectionByDelegation3() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3.kt"); + } + + @Test + @TestMetadata("collectionByDelegation3WithFullJdk.kt") + public void testCollectionByDelegation3WithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt"); + } + + @Test + @TestMetadata("collectionByDelegationWithFullJdk.kt") + public void testCollectionByDelegationWithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt"); + } + + @Test + @TestMetadata("collectionWithInternalRemove.kt") + public void testCollectionWithInternalRemove() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove.kt"); + } + + @Test + @TestMetadata("collectionsWithFullJdk.kt") + public void testCollectionsWithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionsWithFullJdk.kt"); + } + + @Test + @TestMetadata("customListIterator.kt") + public void testCustomListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.kt"); + } + + @Test + @TestMetadata("customMutableListIterator.kt") + public void testCustomMutableListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.kt"); + } + + @Test + @TestMetadata("emptyList.kt") + public void testEmptyList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/emptyList.kt"); + } + + @Test + @TestMetadata("extendingAbstractCollection.kt") + public void testExtendingAbstractCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/extendingAbstractCollection.kt"); + } + + @Test + @TestMetadata("inheritingFromAbstractCollections.kt") + public void testInheritingFromAbstractCollections() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractCollections.kt"); + } + + @Test + @TestMetadata("inheritingFromAbstractMap.kt") + public void testInheritingFromAbstractMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMap.kt"); + } + + @Test + @TestMetadata("inheritingFromAbstractMutableList.kt") + public void testInheritingFromAbstractMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMutableList.kt"); + } + + @Test + @TestMetadata("intArrayList.kt") + public void testIntArrayList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/intArrayList.kt"); + } + + @Test + @TestMetadata("kt44233.kt") + public void testKt44233() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/kt44233.kt"); + } + + @Test + @TestMetadata("ListAndSet.kt") + public void testListAndSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt"); + } + + @Test + @TestMetadata("mapOfPrimitivesFullJdk.kt") + public void testMapOfPrimitivesFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/mapOfPrimitivesFullJdk.kt"); + } + + @Test + @TestMetadata("noStubsForCollection.kt") + public void testNoStubsForCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForCollection.kt"); + } + + @Test + @TestMetadata("noStubsForMapImplementations.kt") + public void testNoStubsForMapImplementations() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMapImplementations.kt"); + } + + @Test + @TestMetadata("noStubsForMutableSetIterators.kt") + public void testNoStubsForMutableSetIterators() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMutableSetIterators.kt"); + } + + @Test + @TestMetadata("noStubsForSetIterators.kt") + public void testNoStubsForSetIterators() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForSetIterators.kt"); + } + + @Test + @TestMetadata("noStubsInIterable.kt") + public void testNoStubsInIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInIterable.kt"); + } + + @Test + @TestMetadata("noStubsInJavaSuperClass.kt") + public void testNoStubsInJavaSuperClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInJavaSuperClass.kt"); + } + + @Test + @TestMetadata("noStubsInMutableIterable.kt") + public void testNoStubsInMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInMutableIterable.kt"); + } + + @Test + @TestMetadata("observableMutableMap.kt") + public void testObservableMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/observableMutableMap.kt"); + } + + @Test + @TestMetadata("stubForAbstractFun.kt") + public void testStubForAbstractFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFun.kt"); + } + + @Test + @TestMetadata("stubForAbstractFunInAbstractClass.kt") + public void testStubForAbstractFunInAbstractClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClass.kt"); + } + + @Test + @TestMetadata("stubForAbstractFunInAbstractClassWithCovariantOverride.kt") + public void testStubForAbstractFunInAbstractClassWithCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClassWithCovariantOverride.kt"); + } + + @Test + @TestMetadata("stubForAbstractFunWithCovariantOverride.kt") + public void testStubForAbstractFunWithCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunWithCovariantOverride.kt"); + } + + @Test + @TestMetadata("stubLikeMethodSignatures.kt") + public void testStubLikeMethodSignatures() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubLikeMethodSignatures.kt"); + } + + @Test + @TestMetadata("stubsFromSuperclass.kt") + public void testStubsFromSuperclass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclass.kt"); + } + + @Test + @TestMetadata("stubsFromSuperclassNoBridges.kt") + public void testStubsFromSuperclassNoBridges() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures") + @TestDataPath("$PROJECT_ROOT") + public class AbstractStubSignatures { + @Test + public void testAllFilesPresentInAbstractStubSignatures() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("byteShortMap.kt") + public void testByteShortMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMap.kt"); + } + + @Test + @TestMetadata("byteShortMutableMap.kt") + public void testByteShortMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMutableMap.kt"); + } + + @Test + @TestMetadata("collection.kt") + public void testCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/collection.kt"); + } + + @Test + @TestMetadata("genericCollection.kt") + public void testGenericCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericCollection.kt"); + } + + @Test + @TestMetadata("genericMap.kt") + public void testGenericMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMap.kt"); + } + + @Test + @TestMetadata("genericMutableCollection.kt") + public void testGenericMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableCollection.kt"); + } + + @Test + @TestMetadata("genericMutableList.kt") + public void testGenericMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableList.kt"); + } + + @Test + @TestMetadata("genericMutableMap.kt") + public void testGenericMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableMap.kt"); + } + + @Test + @TestMetadata("genericStringMap.kt") + public void testGenericStringMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMap.kt"); + } + + @Test + @TestMetadata("genericStringMutableMap.kt") + public void testGenericStringMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMutableMap.kt"); + } + + @Test + @TestMetadata("iterable.kt") + public void testIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/iterable.kt"); + } + + @Test + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/iterator.kt"); + } + + @Test + @TestMetadata("list.kt") + public void testList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/list.kt"); + } + + @Test + @TestMetadata("listIterator.kt") + public void testListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/listIterator.kt"); + } + + @Test + @TestMetadata("mapEntry.kt") + public void testMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mapEntry.kt"); + } + + @Test + @TestMetadata("mutableCollection.kt") + public void testMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableCollection.kt"); + } + + @Test + @TestMetadata("mutableIterable.kt") + public void testMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableIterable.kt"); + } + + @Test + @TestMetadata("mutableIterator.kt") + public void testMutableIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableIterator.kt"); + } + + @Test + @TestMetadata("mutableList.kt") + public void testMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableList.kt"); + } + + @Test + @TestMetadata("mutableListIterator.kt") + public void testMutableListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableListIterator.kt"); + } + + @Test + @TestMetadata("mutableMapEntry.kt") + public void testMutableMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableMapEntry.kt"); + } + + @Test + @TestMetadata("numberStringMap.kt") + public void testNumberStringMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMap.kt"); + } + + @Test + @TestMetadata("numberStringMutableMap.kt") + public void testNumberStringMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMutableMap.kt"); + } + + @Test + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/set.kt"); + } + + @Test + @TestMetadata("specializedGenericMap.kt") + public void testSpecializedGenericMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/specializedGenericMap.kt"); + } + + @Test + @TestMetadata("stringGenericMap.kt") + public void testStringGenericMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMap.kt"); + } + + @Test + @TestMetadata("stringGenericMutableMap.kt") + public void testStringGenericMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMutableMap.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray") + @TestDataPath("$PROJECT_ROOT") + public class ToArray { + @Test + public void testAllFilesPresentInToArray() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("customNonGenericToArray.kt") + public void testCustomNonGenericToArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.kt"); + } + + @Test + @TestMetadata("internalGenericToArray.kt") + public void testInternalGenericToArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.kt"); + } + + @Test + @TestMetadata("noToArrayInJava.kt") + public void testNoToArrayInJava() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/noToArrayInJava.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/contextReceivers") + @TestDataPath("$PROJECT_ROOT") + public class ContextReceivers { + @Test + public void testAllFilesPresentInContextReceivers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/class.kt"); + } + + @Test + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/function.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/property.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP") + @TestDataPath("$PROJECT_ROOT") + public class FromKEEP { + @Test + public void testAllFilesPresentInFromKEEP() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("canvas.kt") + public void testCanvas() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/canvas.kt"); + } + + @Test + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/compareTo.kt"); + } + + @Test + @TestMetadata("dp.kt") + public void testDp() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/dp.kt"); + } + + @Test + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.kt"); + } + + @Test + @TestMetadata("monoidSum.kt") + public void testMonoidSum() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/monoidSum.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/coroutines") + @TestDataPath("$PROJECT_ROOT") + public class Coroutines { + @Test + public void testAllFilesPresentInCoroutines() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("coroutineContextIntrinsic.kt") + public void testCoroutineContextIntrinsic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/coroutineContextIntrinsic.kt"); + } + + @Test + @TestMetadata("coroutineFields.kt") + public void testCoroutineFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/coroutineFields.kt"); + } + + @Test + @TestMetadata("oomInReturnUnit.kt") + public void testOomInReturnUnit() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/oomInReturnUnit.kt"); + } + + @Test + @TestMetadata("privateAccessor.kt") + public void testPrivateAccessor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/privateAccessor.kt"); + } + + @Test + @TestMetadata("privateSuspendFun.kt") + public void testPrivateSuspendFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/privateSuspendFun.kt"); + } + + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendConversion.kt"); + } + + @Test + @TestMetadata("suspendImpl.kt") + public void testSuspendImpl() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl.kt"); + } + + @Test + @TestMetadata("suspendReifiedFun.kt") + public void testSuspendReifiedFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendReifiedFun.kt"); + } + + @Test + @TestMetadata("tcoContinuation.kt") + public void testTcoContinuation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/tcoContinuation.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/coroutines/spilling") + @TestDataPath("$PROJECT_ROOT") + public class Spilling { + @Test + public void testAllFilesPresentInSpilling() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/coroutines/spilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("booleanParameter.kt") + public void testBooleanParameter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/booleanParameter.kt"); + } + + @Test + @TestMetadata("component1.kt") + public void testComponent1() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/component1.kt"); + } + + @Test + @TestMetadata("destructured.kt") + public void testDestructured() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/destructured.kt"); + } + + @Test + @TestMetadata("field.kt") + public void testField() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/field.kt"); + } + + @Test + @TestMetadata("lambda.kt") + public void testLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/lambda.kt"); + } + + @Test + @TestMetadata("select.kt") + public void testSelect() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/select.kt"); + } + + @Test + @TestMetadata("unreachable.kt") + public void testUnreachable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/unreachable.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + public class DefaultArguments { + @Test + public void testAllFilesPresentInDefaultArguments() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("functionInMultifileClass.kt") + public void testFunctionInMultifileClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/functionInMultifileClass.kt"); + } + + @Test + @TestMetadata("functionInMultifileClassWithInheritedParts.kt") + public void testFunctionInMultifileClassWithInheritedParts() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/functionInMultifileClassWithInheritedParts.kt"); + } + + @Test + @TestMetadata("internalNameMangling.kt") + public void testInternalNameMangling() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/internalNameMangling.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/delegatedProperty") + @TestDataPath("$PROJECT_ROOT") + public class DelegatedProperty { + @Test + public void testAllFilesPresentInDelegatedProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("delegateMethodIsNonOverridable.kt") + public void testDelegateMethodIsNonOverridable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegatedProperty/delegateMethodIsNonOverridable.kt"); + } + + @Test + @TestMetadata("delegatedPropertiesInCompanionObject.kt") + public void testDelegatedPropertiesInCompanionObject() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegatedProperty/delegatedPropertiesInCompanionObject.kt"); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegatedProperty/localDelegatedProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/deprecated") + @TestDataPath("$PROJECT_ROOT") + public class Deprecated { + @Test + public void testAllFilesPresentInDeprecated() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/deprecated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deprecatedClass.kt") + public void testDeprecatedClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedClass.kt"); + } + + @Test + @TestMetadata("deprecatedEnumEntryFields.kt") + public void testDeprecatedEnumEntryFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedEnumEntryFields.kt"); + } + + @Test + @TestMetadata("deprecatedInMultifileClass.kt") + public void testDeprecatedInMultifileClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedInMultifileClass.kt"); + } + + @Test + @TestMetadata("deprecatedLateinitVar.kt") + public void testDeprecatedLateinitVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedLateinitVar.kt"); + } + + @Test + @TestMetadata("deprecatedProperty.kt") + public void testDeprecatedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.kt"); + } + + @Test + @TestMetadata("hidden.kt") + public void testHidden() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/hidden.kt"); + } + + @Test + @TestMetadata("inheritingDeprecation.kt") + public void testInheritingDeprecation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt"); + } + + @Test + @TestMetadata("inlineClassTypesInSignature.kt") + public void testInlineClassTypesInSignature() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/inlineClassTypesInSignature.kt"); + } + + @Test + @TestMetadata("jvmStaticDeprecatedProperty.kt") + public void testJvmStaticDeprecatedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/jvmStaticDeprecatedProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericReified.kt") + public void testGenericReified() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/genericReified.kt"); + } + + @Test + @TestMetadata("inlineOnly.kt") + public void testInlineOnly() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineOnly.kt"); + } + + @Test + @TestMetadata("InlineOnlyMultifile.kt") + public void testInlineOnlyMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineOnlyMultifile.kt"); + } + + @Test + @TestMetadata("inlineOnlyProperty.kt") + public void testInlineOnlyProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineOnlyProperty.kt"); + } + + @Test + @TestMetadata("InlineOnlyPropertyMultifile.kt") + public void testInlineOnlyPropertyMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineOnlyPropertyMultifile.kt"); + } + + @Test + @TestMetadata("inlineReified.kt") + public void testInlineReified() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReified.kt"); + } + + @Test + @TestMetadata("InlineReifiedMultifile.kt") + public void testInlineReifiedMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineReifiedMultifile.kt"); + } + + @Test + @TestMetadata("inlineReifiedProperty.kt") + public void testInlineReifiedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedProperty.kt"); + } + + @Test + @TestMetadata("InlineReifiedPropertyMultifile.kt") + public void testInlineReifiedPropertyMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineReifiedPropertyMultifile.kt"); + } + + @Test + @TestMetadata("inlineReifiedPropertyVisibility.kt") + public void testInlineReifiedPropertyVisibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedPropertyVisibility.kt"); + } + + @Test + @TestMetadata("inlineReifiedVisibility.kt") + public void testInlineReifiedVisibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedVisibility.kt"); + } + + @Test + @TestMetadata("simpleNamed.kt") + public void testSimpleNamed() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/simpleNamed.kt"); + } + + @Test + @TestMetadata("suspendInlineReified.kt") + public void testSuspendInlineReified() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo") + @TestDataPath("$PROJECT_ROOT") + public class EnclosingInfo { + @Test + public void testAllFilesPresentInEnclosingInfo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("crossinlineLambdaChain.kt") + public void testCrossinlineLambdaChain() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.kt"); + } + + @Test + @TestMetadata("kt10259.kt") + public void testKt10259() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/kt10259.kt"); + } + + @Test + @TestMetadata("lambdaInInitBlockNoPrimaryConstructor.kt") + public void testLambdaInInitBlockNoPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/lambdaInInitBlockNoPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("lambdaInInnerClassConstructor.kt") + public void testLambdaInInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/lambdaInInnerClassConstructor.kt"); + } + + @Test + @TestMetadata("transformedConstructor.kt") + public void testTransformedConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/transformedConstructor.kt"); + } + + @Test + @TestMetadata("transformedConstructorWithNestedInline.kt") + public void testTransformedConstructorWithNestedInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/transformedConstructorWithNestedInline.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + public class InlineClasses { + @Test + public void testAllFilesPresentInInlineClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotatedPropertyWithInlineClassTypeInSignature.kt") + public void testAnnotatedPropertyWithInlineClassTypeInSignature() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotatedPropertyWithInlineClassTypeInSignature.kt"); + } + + @Test + @TestMetadata("annotationGetters.kt") + public void testAnnotationGetters() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotationGetters.kt"); + } + + @Test + @TestMetadata("annotationsOnHiddenConstructor.kt") + public void testAnnotationsOnHiddenConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotationsOnHiddenConstructor.kt"); + } + + @Test + @TestMetadata("companionObjectInsideInlineClass.kt") + public void testCompanionObjectInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/companionObjectInsideInlineClass.kt"); + } + + @Test + @TestMetadata("computablePropertiesInsideInlineClass.kt") + public void testComputablePropertiesInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/computablePropertiesInsideInlineClass.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/constructor.kt"); + } + + @Test + @TestMetadata("constructorsWithDefaultParameterValues.kt") + public void testConstructorsWithDefaultParameterValues() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/constructorsWithDefaultParameterValues.kt"); + } + + @Test + @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") + public void testDefaultInterfaceMethodsInInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMethodsInInlineClass.kt"); + } + + @Test + @TestMetadata("genericChild.kt") + public void testGenericChild() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/genericChild.kt"); + } + + @Test + @TestMetadata("hiddenConstructor.kt") + public void testHiddenConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/hiddenConstructor.kt"); + } + + @Test + @TestMetadata("inlineCharSequence.kt") + public void testInlineCharSequence() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCharSequence.kt"); + } + + @Test + @TestMetadata("inlineClassMembersVisibility.kt") + public void testInlineClassMembersVisibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassMembersVisibility.kt"); + } + + @Test + @TestMetadata("inlineClassTypeParametersInConstructor.kt") + public void testInlineClassTypeParametersInConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassTypeParametersInConstructor.kt"); + } + + @Test + @TestMetadata("inlineClassWithInlineClassUnderlyingType.kt") + public void testInlineClassWithInlineClassUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithInlineClassUnderlyingType.kt"); + } + + @Test + @TestMetadata("inlineClassWithManyKindsOfMembers.kt") + public void testInlineClassWithManyKindsOfMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.kt"); + } + + @Test + @TestMetadata("jvmName.kt") + public void testJvmName() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/jvmName.kt"); + } + + @Test + @TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt") + public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt"); + } + + @Test + @TestMetadata("memberExtensionProperty.kt") + public void testMemberExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/memberExtensionProperty.kt"); + } + + @Test + @TestMetadata("noArgConstructorForInlineClassParameter.kt") + public void testNoArgConstructorForInlineClassParameter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/noArgConstructorForInlineClassParameter.kt"); + } + + @Test + @TestMetadata("noBridgesForErasedInlineClass.kt") + public void testNoBridgesForErasedInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/noBridgesForErasedInlineClass.kt"); + } + + @Test + @TestMetadata("nullabilityAnnotationsOnInlineClassMembers.kt") + public void testNullabilityAnnotationsOnInlineClassMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullabilityAnnotationsOnInlineClassMembers.kt"); + } + + @Test + @TestMetadata("nullabilityInExpansion.kt") + public void testNullabilityInExpansion() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullabilityInExpansion.kt"); + } + + @Test + @TestMetadata("nullableAndNotNullPrimitive.kt") + public void testNullableAndNotNullPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullableAndNotNullPrimitive.kt"); + } + + @Test + @TestMetadata("overridingGenericMethodWithInlineClassParameterType.kt") + public void testOverridingGenericMethodWithInlineClassParameterType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/overridingGenericMethodWithInlineClassParameterType.kt"); + } + + @Test + @TestMetadata("overridingGenericMethodWithInlineClassReturnType.kt") + public void testOverridingGenericMethodWithInlineClassReturnType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/overridingGenericMethodWithInlineClassReturnType.kt"); + } + + @Test + @TestMetadata("primaryValsWithDifferentVisibilities.kt") + public void testPrimaryValsWithDifferentVisibilities() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/primaryValsWithDifferentVisibilities.kt"); + } + + @Test + @TestMetadata("publishedApiAnnotationOnInlineClassConstructor.kt") + public void testPublishedApiAnnotationOnInlineClassConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/publishedApiAnnotationOnInlineClassConstructor.kt"); + } + + @Test + @TestMetadata("shapeOfInlineClassWithPrimitive.kt") + public void testShapeOfInlineClassWithPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/shapeOfInlineClassWithPrimitive.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers") + @TestDataPath("$PROJECT_ROOT") + public class DefaultInterfaceMembers { + @Test + public void testAllFilesPresentInDefaultInterfaceMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaDefaultInterfaceMember.kt") + public void testJavaDefaultInterfaceMember() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/javaDefaultInterfaceMember.kt"); + } + + @Test + @TestMetadata("jvmDefaultAll.kt") + public void testJvmDefaultAll() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/jvmDefaultAll.kt"); + } + + @Test + @TestMetadata("jvmDefaultEnable.kt") + public void testJvmDefaultEnable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/jvmDefaultEnable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection") + @TestDataPath("$PROJECT_ROOT") + public class InlineCollection { + @Test + public void testAllFilesPresentInInlineCollection() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("collection.kt") + public void testCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/collection.kt"); + } + + @Test + @TestMetadata("iterable.kt") + public void testIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/iterable.kt"); + } + + @Test + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/iterator.kt"); + } + + @Test + @TestMetadata("list.kt") + public void testList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/list.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/map.kt"); + } + + @Test + @TestMetadata("mapEntry.kt") + public void testMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mapEntry.kt"); + } + + @Test + @TestMetadata("mutableCollection.kt") + public void testMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableCollection.kt"); + } + + @Test + @TestMetadata("mutableIterable.kt") + public void testMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableIterable.kt"); + } + + @Test + @TestMetadata("mutableIterator.kt") + public void testMutableIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableIterator.kt"); + } + + @Test + @TestMetadata("mutableList.kt") + public void testMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableList.kt"); + } + + @Test + @TestMetadata("mutableMap.kt") + public void testMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMap.kt"); + } + + @Test + @TestMetadata("mutableMapEntry.kt") + public void testMutableMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMapEntry.kt"); + } + + @Test + @TestMetadata("mutableSet.kt") + public void testMutableSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableSet.kt"); + } + + @Test + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/set.kt"); + } + + @Test + @TestMetadata("UIntArrayWithFullJdk.kt") + public void testUIntArrayWithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/UIntArrayWithFullJdk.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineCollectionOfInlineClass { + @Test + public void testAllFilesPresentInInlineCollectionOfInlineClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("collection.kt") + public void testCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/collection.kt"); + } + + @Test + @TestMetadata("iterable.kt") + public void testIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/iterable.kt"); + } + + @Test + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/iterator.kt"); + } + + @Test + @TestMetadata("list.kt") + public void testList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/list.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/map.kt"); + } + + @Test + @TestMetadata("mapEntry.kt") + public void testMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mapEntry.kt"); + } + + @Test + @TestMetadata("mutableCollection.kt") + public void testMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableCollection.kt"); + } + + @Test + @TestMetadata("mutableIterable.kt") + public void testMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableIterable.kt"); + } + + @Test + @TestMetadata("mutableIterator.kt") + public void testMutableIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableIterator.kt"); + } + + @Test + @TestMetadata("mutableList.kt") + public void testMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableList.kt"); + } + + @Test + @TestMetadata("mutableMap.kt") + public void testMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMap.kt"); + } + + @Test + @TestMetadata("mutableMapEntry.kt") + public void testMutableMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMapEntry.kt"); + } + + @Test + @TestMetadata("mutableSet.kt") + public void testMutableSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableSet.kt"); + } + + @Test + @TestMetadata("mutableSet2.kt") + public void testMutableSet2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableSet2.kt"); + } + + @Test + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/set.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult") + @TestDataPath("$PROJECT_ROOT") + public class ReturnResult { + @Test + public void testAllFilesPresentInReturnResult() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/class.kt"); + } + + @Test + @TestMetadata("classAnyOverride.kt") + public void testClassAnyOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classAnyOverride.kt"); + } + + @Test + @TestMetadata("classGenericOverride.kt") + public void testClassGenericOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classGenericOverride.kt"); + } + + @Test + @TestMetadata("classResultOverride.kt") + public void testClassResultOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classResultOverride.kt"); + } + + @Test + @TestMetadata("interface.kt") + public void testInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/interface.kt"); + } + + @Test + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/topLevel.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430") + @TestDataPath("$PROJECT_ROOT") + public class StdlibManglingIn1430 { + @Test + public void testAllFilesPresentInStdlibManglingIn1430() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("new.kt") + public void testNew() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430/new.kt"); + } + + @Test + @TestMetadata("old.kt") + public void testOld() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430/old.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8 { + @Test + public void testAllFilesPresentInJvm8() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults") + @TestDataPath("$PROJECT_ROOT") + public class Defaults { + @Test + public void testAllFilesPresentInDefaults() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility") + @TestDataPath("$PROJECT_ROOT") + public class AllCompatibility { + @Test + public void testAllFilesPresentInAllCompatibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deprecation.kt") + public void testDeprecation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/deprecation.kt"); + } + + @Test + @TestMetadata("deprecationWithDefault.kt") + public void testDeprecationWithDefault() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/deprecationWithDefault.kt"); + } + + @Test + @TestMetadata("interfaceProperty.kt") + public void testInterfaceProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/interfaceProperty.kt"); + } + + @Test + @TestMetadata("jvmDefaultWithoutCompatibility.kt") + public void testJvmDefaultWithoutCompatibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/jvmDefaultWithoutCompatibility.kt"); + } + + @Test + @TestMetadata("noDefaultImplsOnEmptySubInterface.kt") + public void testNoDefaultImplsOnEmptySubInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/noDefaultImplsOnEmptySubInterface.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization") + @TestDataPath("$PROJECT_ROOT") + public class Specialization { + @Test + public void testAllFilesPresentInSpecialization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("primitiveAndAny.kt") + public void testPrimitiveAndAny() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization/primitiveAndAny.kt"); + } + + @Test + @TestMetadata("primitiveAndNullable.kt") + public void testPrimitiveAndNullable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization/primitiveAndNullable.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable") + @TestDataPath("$PROJECT_ROOT") + public class Enable { + @Test + public void testAllFilesPresentInEnable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("interfaceProperty.kt") + public void testInterfaceProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable/interfaceProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl") + @TestDataPath("$PROJECT_ROOT") + public class NoDefaultImpl { + @Test + public void testAllFilesPresentInNoDefaultImpl() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("interfaceProperty.kt") + public void testInterfaceProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl/interfaceProperty.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvmStatic") + @TestDataPath("$PROJECT_ROOT") + public class JvmStatic { + @Test + public void testAllFilesPresentInJvmStatic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvmStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("jvmStaticExternal.kt") + public void testJvmStaticExternal() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/jvmStaticExternal.kt"); + } + + @Test + @TestMetadata("jvmStaticPrivate.kt") + public void testJvmStaticPrivate() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/jvmStaticPrivate.kt"); + } + + @Test + @TestMetadata("jvmStaticWithDefaultParameters.kt") + public void testJvmStaticWithDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/jvmStaticWithDefaultParameters.kt"); + } + + @Test + @TestMetadata("kt31389.kt") + public void testKt31389() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/kt31389.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/localFunctions") + @TestDataPath("$PROJECT_ROOT") + public class LocalFunctions { + @Test + public void testAllFilesPresentInLocalFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericClass.kt") + public void testGenericClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/genericClass.kt"); + } + + @Test + @TestMetadata("genericInnerClass.kt") + public void testGenericInnerClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/genericInnerClass.kt"); + } + + @Test + @TestMetadata("genericLocalClass.kt") + public void testGenericLocalClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/genericLocalClass.kt"); + } + + @Test + @TestMetadata("inInitBlock.kt") + public void testInInitBlock() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/inInitBlock.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/main") + @TestDataPath("$PROJECT_ROOT") + public class Main { + @Test + public void testAllFilesPresentInMain() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/main"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("multifileSuspend.kt") + public void testMultifileSuspend() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/multifileSuspend.kt"); + } + + @Test + @TestMetadata("parameterlessMain.kt") + public void testParameterlessMain() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/parameterlessMain.kt"); + } + + @Test + @TestMetadata("parameterlessMain_before.kt") + public void testParameterlessMain_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/parameterlessMain_before.kt"); + } + + @Test + @TestMetadata("suspendMain.kt") + public void testSuspendMain() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/suspendMain.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/multifileClasses") + @TestDataPath("$PROJECT_ROOT") + public class MultifileClasses { + @Test + public void testAllFilesPresentInMultifileClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyMultifileFacade.kt") + public void testEmptyMultifileFacade() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/emptyMultifileFacade.kt"); + } + + @Test + @TestMetadata("jvmSynthetic.kt") + public void testJvmSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/jvmSynthetic.kt"); + } + + @Test + @TestMetadata("kt43519.kt") + public void testKt43519() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/kt43519.kt"); + } + + @Test + @TestMetadata("multiClassPartSourceMultipleParts.kt") + public void testMultiClassPartSourceMultipleParts() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/multiClassPartSourceMultipleParts.kt"); + } + + @Test + @TestMetadata("multiClassPartSourceSinglePart.kt") + public void testMultiClassPartSourceSinglePart() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/multiClassPartSourceSinglePart.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/multiplatform") + @TestDataPath("$PROJECT_ROOT") + public class Multiplatform { + @Test + public void testAllFilesPresentInMultiplatform() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("optionalExpectation.kt") + public void testOptionalExpectation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multiplatform/optionalExpectation.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations") + @TestDataPath("$PROJECT_ROOT") + public class NullabilityAnnotations { + @Test + public void testAllFilesPresentInNullabilityAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lateInitNotNull.kt") + public void testLateInitNotNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/lateInitNotNull.kt"); + } + + @Test + @TestMetadata("nullabilityAnnotationsForReturnType.kt") + public void testNullabilityAnnotationsForReturnType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsForReturnType.kt"); + } + + @Test + @TestMetadata("nullabilityAnnotationsOnDelegatedMembers.kt") + public void testNullabilityAnnotationsOnDelegatedMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.kt"); + } + + @Test + @TestMetadata("platformTypes.kt") + public void testPlatformTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/platformTypes.kt"); + } + + @Test + @TestMetadata("samAdapterForJavaInterfaceWithNullability.kt") + public void testSamAdapterForJavaInterfaceWithNullability() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/samAdapterForJavaInterfaceWithNullability.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/sam") + @TestDataPath("$PROJECT_ROOT") + public class Sam { + @Test + public void testAllFilesPresentInSam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callableRefGenericFunInterface.kt") + public void testCallableRefGenericFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefGenericFunInterface.kt"); + } + + @Test + @TestMetadata("callableRefGenericSamInterface.kt") + public void testCallableRefGenericSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefGenericSamInterface.kt"); + } + + @Test + @TestMetadata("callableRefSpecializedFunInterface.kt") + public void testCallableRefSpecializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefSpecializedFunInterface.kt"); + } + + @Test + @TestMetadata("callableRefSpecializedSamInterface.kt") + public void testCallableRefSpecializedSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefSpecializedSamInterface.kt"); + } + + @Test + @TestMetadata("genericFunInterface.kt") + public void testGenericFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/genericFunInterface.kt"); + } + + @Test + @TestMetadata("genericSamInterface.kt") + public void testGenericSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/genericSamInterface.kt"); + } + + @Test + @TestMetadata("indySamConversionViaProxyFun.kt") + public void testIndySamConversionViaProxyFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/indySamConversionViaProxyFun.kt"); + } + + @Test + @TestMetadata("kt16650.kt") + public void testKt16650() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/kt16650.kt"); + } + + @Test + @TestMetadata("lambdaGenericFunInterface.kt") + public void testLambdaGenericFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericFunInterface.kt"); + } + + @Test + @TestMetadata("lambdaGenericSamInterface.kt") + public void testLambdaGenericSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericSamInterface.kt"); + } + + @Test + @TestMetadata("lambdaSpecializedFunInterface.kt") + public void testLambdaSpecializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaSpecializedFunInterface.kt"); + } + + @Test + @TestMetadata("lambdaSpecializedSamInterface.kt") + public void testLambdaSpecializedSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaSpecializedSamInterface.kt"); + } + + @Test + @TestMetadata("nonApproxToValidSupertype.kt") + public void testNonApproxToValidSupertype() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.kt"); + } + + @Test + @TestMetadata("nonApproxToValidSupertype2.kt") + public void testNonApproxToValidSupertype2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.kt"); + } + + @Test + @TestMetadata("privateInlineSamAdapter.kt") + public void testPrivateInlineSamAdapter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/privateInlineSamAdapter.kt"); + } + + @Test + @TestMetadata("reusedSamWrapperClasses.kt") + public void testReusedSamWrapperClasses() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/reusedSamWrapperClasses.kt"); + } + + @Test + @TestMetadata("samAdapterAndInlinedOne.kt") + public void testSamAdapterAndInlinedOne() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/samAdapterAndInlinedOne.kt"); + } + + @Test + @TestMetadata("samAdapterInInlineLambda.kt") + public void testSamAdapterInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/samAdapterInInlineLambda.kt"); + } + + @Test + @TestMetadata("severalProxyFunsInInit.kt") + public void testSeveralProxyFunsInInit() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/severalProxyFunsInInit.kt"); + } + + @Test + @TestMetadata("specializedFunInterface.kt") + public void testSpecializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/specializedFunInterface.kt"); + } + + @Test + @TestMetadata("specializedSamInterface.kt") + public void testSpecializedSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/specializedSamInterface.kt"); + } + + @Test + @TestMetadata("wrapperInlinedFromAnotherClass.kt") + public void testWrapperInlinedFromAnotherClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/wrapperInlinedFromAnotherClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/sealed") + @TestDataPath("$PROJECT_ROOT") + public class Sealed { + @Test + public void testAllFilesPresentInSealed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/sealed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationsOnSealedConstructor.kt") + public void testAnnotationsOnSealedConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/annotationsOnSealedConstructor.kt"); + } + + @Test + @TestMetadata("permittedSubclasses_1_7.kt") + public void testPermittedSubclasses_1_7() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/permittedSubclasses_1_7.kt"); + } + + @Test + @TestMetadata("sealedClassConstructor_1_4.kt") + public void testSealedClassConstructor_1_4() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_4.kt"); + } + + @Test + @TestMetadata("sealedClassConstructor_1_5.kt") + public void testSealedClassConstructor_1_5() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_5.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/specialBridges") + @TestDataPath("$PROJECT_ROOT") + public class SpecialBridges { + @Test + @TestMetadata("abstractCollections.kt") + public void testAbstractCollections() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractCollections.kt"); + } + + @Test + @TestMetadata("abstractIterables.kt") + public void testAbstractIterables() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractIterables.kt"); + } + + @Test + @TestMetadata("abstractLists.kt") + public void testAbstractLists() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractLists.kt"); + } + + @Test + @TestMetadata("abstractListsWithJavaBase.kt") + public void testAbstractListsWithJavaBase() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractListsWithJavaBase.kt"); + } + + @Test + @TestMetadata("abstractMutableCollectionOfPrimitive.kt") + public void testAbstractMutableCollectionOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableCollectionOfPrimitive.kt"); + } + + @Test + @TestMetadata("abstractMutableListOfPrimitive.kt") + public void testAbstractMutableListOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableListOfPrimitive.kt"); + } + + @Test + @TestMetadata("abstractMutableLists.kt") + public void testAbstractMutableLists() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableLists.kt"); + } + + @Test + @TestMetadata("abstractSets.kt") + public void testAbstractSets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractSets.kt"); + } + + @Test + public void testAllFilesPresentInSpecialBridges() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("charSequence.kt") + public void testCharSequence() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/charSequence.kt"); + } + + @Test + @TestMetadata("contains.kt") + public void testContains() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/contains.kt"); + } + + @Test + @TestMetadata("kt41123.kt") + public void testKt41123() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/kt41123.kt"); + } + + @Test + @TestMetadata("kt48945.kt") + public void testKt48945() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/kt48945.kt"); + } + + @Test + @TestMetadata("mutableCollectionOfPrimitive.kt") + public void testMutableCollectionOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/mutableCollectionOfPrimitive.kt"); + } + + @Test + @TestMetadata("mutableListOfPrimitive.kt") + public void testMutableListOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/mutableListOfPrimitive.kt"); + } + + @Test + @TestMetadata("noDefaultImplsOnEmptySubInterface.kt") + public void testNoDefaultImplsOnEmptySubInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/noDefaultImplsOnEmptySubInterface.kt"); + } + + @Test + @TestMetadata("noSpecialBridgeIfPresentInSuperClass.kt") + public void testNoSpecialBridgeIfPresentInSuperClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass.kt"); + } + + @Test + @TestMetadata("number.kt") + public void testNumber() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/number.kt"); + } + + @Test + @TestMetadata("redundantStubForSize.kt") + public void testRedundantStubForSize() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/redundantStubForSize.kt"); + } + + @Test + @TestMetadata("removeAtTwoSpecialBridges.kt") + public void testRemoveAtTwoSpecialBridges() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/removeAtTwoSpecialBridges.kt"); + } + + @Test + @TestMetadata("specialBridgeForGet.kt") + public void testSpecialBridgeForGet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.kt"); + } + + @Test + @TestMetadata("unsignedArray.kt") + public void testUnsignedArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/unsignedArray.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/specialBridges/signatures") + @TestDataPath("$PROJECT_ROOT") + public class Signatures { + @Test + public void testAllFilesPresentInSignatures() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges/signatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericClass.kt") + public void testGenericClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.kt"); + } + + @Test + @TestMetadata("implementsJavaMap.kt") + public void testImplementsJavaMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsJavaMap.kt"); + } + + @Test + @TestMetadata("implementsJavaMapWithCustomEntries.kt") + public void testImplementsJavaMapWithCustomEntries() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsJavaMapWithCustomEntries.kt"); + } + + @Test + @TestMetadata("implementsMap.kt") + public void testImplementsMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsMap.kt"); + } + + @Test + @TestMetadata("implementsSortedMap.kt") + public void testImplementsSortedMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsSortedMap.kt"); + } + + @Test + @TestMetadata("kt43610.kt") + public void testKt43610() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/kt43610.kt"); + } + + @Test + @TestMetadata("nonGenericClass.kt") + public void testNonGenericClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.kt"); + } + + @Test + @TestMetadata("partiallySpecializedClass.kt") + public void testPartiallySpecializedClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/valueClasses") + @TestDataPath("$PROJECT_ROOT") + public class ValueClasses { + @Test + public void testAllFilesPresentInValueClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/valueClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotations.kt") + public void testAnnotations() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/valueClasses/annotations.kt"); + } + } +} diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeListingTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeListingTestGenerated.java new file mode 100644 index 00000000000..c004302364a --- /dev/null +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeListingTestGenerated.java @@ -0,0 +1,2543 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.test.runners.codegen; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +@TestMetadata("compiler/testData/codegen/bytecodeListing") +@TestDataPath("$PROJECT_ROOT") +public class FirPsiBytecodeListingTestGenerated extends AbstractFirPsiBytecodeListingTest { + @Test + @TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt") + public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.kt"); + } + + @Test + @TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt") + public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt"); + } + + @Test + @TestMetadata("accessorForTopLevelMembers.kt") + public void testAccessorForTopLevelMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorForTopLevelMembers.kt"); + } + + @Test + @TestMetadata("accessorsForProtectedStaticJavaFieldInOtherPackage.kt") + public void testAccessorsForProtectedStaticJavaFieldInOtherPackage() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/accessorsForProtectedStaticJavaFieldInOtherPackage.kt"); + } + + @Test + public void testAllFilesPresentInBytecodeListing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObjectInGenericFun.kt") + public void testAnonymousObjectInGenericFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/anonymousObjectInGenericFun.kt"); + } + + @Test + @TestMetadata("callableNameIntrinsic.kt") + public void testCallableNameIntrinsic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/callableNameIntrinsic.kt"); + } + + @Test + @TestMetadata("callableReferenceArrayConstructorArguments.kt") + public void testCallableReferenceArrayConstructorArguments() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/callableReferenceArrayConstructorArguments.kt"); + } + + @Test + @TestMetadata("cloneable.kt") + public void testCloneable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/cloneable.kt"); + } + + @Test + @TestMetadata("companionObjectVisibility_after.kt") + public void testCompanionObjectVisibility_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/companionObjectVisibility_after.kt"); + } + + @Test + @TestMetadata("companionObjectVisibility_before.kt") + public void testCompanionObjectVisibility_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/companionObjectVisibility_before.kt"); + } + + @Test + @TestMetadata("defaultImpls.kt") + public void testDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultImpls.kt"); + } + + @Test + @TestMetadata("delegationToJavaInterfaceWithWildcardType.kt") + public void testDelegationToJavaInterfaceWithWildcardType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt"); + } + + @Test + @TestMetadata("deprecatedConstantPropertyInterfaceCompanion.kt") + public void testDeprecatedConstantPropertyInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecatedConstantPropertyInterfaceCompanion.kt"); + } + + @Test + @TestMetadata("deserializeLambdaMethod.kt") + public void testDeserializeLambdaMethod() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deserializeLambdaMethod.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/enum.kt"); + } + + @Test + @TestMetadata("enumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/enumEntries.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/extension.kt"); + } + + @Test + @TestMetadata("fileClassWithPrivateDeclarationsOnly_after.kt") + public void testFileClassWithPrivateDeclarationsOnly_after() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/fileClassWithPrivateDeclarationsOnly_after.kt"); + } + + @Test + @TestMetadata("fileClassWithPrivateDeclarationsOnly_before.kt") + public void testFileClassWithPrivateDeclarationsOnly_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/fileClassWithPrivateDeclarationsOnly_before.kt"); + } + + @Test + @TestMetadata("immutableCollection.kt") + public void testImmutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/immutableCollection.kt"); + } + + @Test + @TestMetadata("javaDeprecated.kt") + public void testJavaDeprecated() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/javaDeprecated.kt"); + } + + @Test + @TestMetadata("jvmOverloadsAndParametersAnnotations.kt") + public void testJvmOverloadsAndParametersAnnotations() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmOverloadsAndParametersAnnotations.kt"); + } + + @Test + @TestMetadata("jvmOverloadsExternal.kt") + public void testJvmOverloadsExternal() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmOverloadsExternal.kt"); + } + + @Test + @TestMetadata("jvmRecordStructure.kt") + public void testJvmRecordStructure() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmRecordStructure.kt"); + } + + @Test + @TestMetadata("kt42137.kt") + public void testKt42137() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt42137.kt"); + } + + @Test + @TestMetadata("kt42879.kt") + public void testKt42879() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt42879.kt"); + } + + @Test + @TestMetadata("kt43217.kt") + public void testKt43217() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt43217.kt"); + } + + @Test + @TestMetadata("kt43440.kt") + public void testKt43440() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt43440.kt"); + } + + @Test + @TestMetadata("kt45853.kt") + public void testKt45853() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt45853.kt"); + } + + @Test + @TestMetadata("kt45853a.kt") + public void testKt45853a() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt45853a.kt"); + } + + @Test + @TestMetadata("kt45934.kt") + public void testKt45934() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt45934.kt"); + } + + @Test + @TestMetadata("kt47328.kt") + public void testKt47328() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt47328.kt"); + } + + @Test + @TestMetadata("kt55769.kt") + public void testKt55769() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/kt55769.kt"); + } + + @Test + @TestMetadata("noCollectionStubMethodsInInterface.kt") + public void testNoCollectionStubMethodsInInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noCollectionStubMethodsInInterface.kt"); + } + + @Test + @TestMetadata("noDelegationsToPrivateInterfaceMembers.kt") + public void testNoDelegationsToPrivateInterfaceMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noDelegationsToPrivateInterfaceMembers.kt"); + } + + @Test + @TestMetadata("noReceiverInCallableReferenceClasses.kt") + public void testNoReceiverInCallableReferenceClasses() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noReceiverInCallableReferenceClasses.kt"); + } + + @Test + @TestMetadata("noRemoveAtInReadOnly.kt") + public void testNoRemoveAtInReadOnly() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly.kt"); + } + + @Test + @TestMetadata("overrideWithPrimitiveUpperBound.kt") + public void testOverrideWithPrimitiveUpperBound() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/overrideWithPrimitiveUpperBound.kt"); + } + + @Test + @TestMetadata("overrideWithPrimitiveUpperBound2.kt") + public void testOverrideWithPrimitiveUpperBound2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/overrideWithPrimitiveUpperBound2.kt"); + } + + @Test + @TestMetadata("privateCompanionFields.kt") + public void testPrivateCompanionFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateCompanionFields.kt"); + } + + @Test + @TestMetadata("privateDefaultImpls.kt") + public void testPrivateDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateDefaultImpls.kt"); + } + + @Test + @TestMetadata("privateDefaultSetter.kt") + public void testPrivateDefaultSetter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateDefaultSetter.kt"); + } + + @Test + @TestMetadata("privateNestedClassInInterface.kt") + public void testPrivateNestedClassInInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/privateNestedClassInInterface.kt"); + } + + @Test + @TestMetadata("rawTypeInSignature.kt") + public void testRawTypeInSignature() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt"); + } + + @Test + @TestMetadata("strictfpFlag.kt") + public void testStrictfpFlag() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/strictfpFlag.kt"); + } + + @Test + @TestMetadata("synchronizedFlag.kt") + public void testSynchronizedFlag() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/synchronizedFlag.kt"); + } + + @Test + @TestMetadata("varargsBridge.kt") + public void testVarargsBridge() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/varargsBridge.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationCtorCallGenerateSynthetic.kt") + public void testAnnotationCtorCallGenerateSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/annotationCtorCallGenerateSynthetic.kt"); + } + + @Test + @TestMetadata("annotationCtorCallNoSynthetic.kt") + public void testAnnotationCtorCallNoSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/annotationCtorCallNoSynthetic.kt"); + } + + @Test + @TestMetadata("annotationsOnDelegatedMembers.kt") + public void testAnnotationsOnDelegatedMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt"); + } + + @Test + @TestMetadata("defaultTargets.kt") + public void testDefaultTargets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/defaultTargets.kt"); + } + + @Test + @TestMetadata("deprecatedJvmOverloads.kt") + public void testDeprecatedJvmOverloads() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/deprecatedJvmOverloads.kt"); + } + + @Test + @TestMetadata("internalPropertyOrTypealias.kt") + public void testInternalPropertyOrTypealias() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/internalPropertyOrTypealias.kt"); + } + + @Test + @TestMetadata("JvmSynthetic.kt") + public void testJvmSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.kt"); + } + + @Test + @TestMetadata("kt27895.kt") + public void testKt27895() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt27895.kt"); + } + + @Test + @TestMetadata("kt43399.kt") + public void testKt43399() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43399.kt"); + } + + @Test + @TestMetadata("kt43459.kt") + public void testKt43459() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43459.kt"); + } + + @Test + @TestMetadata("kt9320.kt") + public void testKt9320() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/kt9320.kt"); + } + + @Test + @TestMetadata("literals.kt") + public void testLiterals() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/literals.kt"); + } + + @Test + @TestMetadata("localClassWithCapturedParams.kt") + public void testLocalClassWithCapturedParams() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/localClassWithCapturedParams.kt"); + } + + @Test + @TestMetadata("noAdditionalAnnotationsInAccessors.kt") + public void testNoAdditionalAnnotationsInAccessors() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/noAdditionalAnnotationsInAccessors.kt"); + } + + @Test + @TestMetadata("noAnnotationsInSyntheticAccessors.kt") + public void testNoAnnotationsInSyntheticAccessors() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/noAnnotationsInSyntheticAccessors.kt"); + } + + @Test + @TestMetadata("onProperties.kt") + public void testOnProperties() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/onProperties.kt"); + } + + @Test + @TestMetadata("onReceiver.kt") + public void testOnReceiver() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/onReceiver.kt"); + } + + @Test + @TestMetadata("unsignedTypes.kt") + public void testUnsignedTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/unsignedTypes.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/annotations/repeatable") + @TestDataPath("$PROJECT_ROOT") + public class Repeatable { + @Test + public void testAllFilesPresentInRepeatable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaAnnotation.kt") + public void testJavaAnnotation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/javaAnnotation.kt"); + } + + @Test + @TestMetadata("kotlinAnnotation.kt") + public void testKotlinAnnotation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinAnnotation.kt"); + } + + @Test + @TestMetadata("kotlinAnnotationWithBothRepeatables.kt") + public void testKotlinAnnotationWithBothRepeatables() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinAnnotationWithBothRepeatables.kt"); + } + + @Test + @TestMetadata("kotlinSpecificTargets.kt") + public void testKotlinSpecificTargets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinSpecificTargets.kt"); + } + + @Test + @TestMetadata("multipleRepeatableOrder.kt") + public void testMultipleRepeatableOrder() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/multipleRepeatableOrder.kt"); + } + + @Test + @TestMetadata("nonRepeatedAnnotationWithItsContainer.kt") + public void testNonRepeatedAnnotationWithItsContainer() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/nonRepeatedAnnotationWithItsContainer.kt"); + } + + @Test + @TestMetadata("propertyGetterSeveralUseSiteTargets.kt") + public void testPropertyGetterSeveralUseSiteTargets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterSeveralUseSiteTargets.kt"); + } + + @Test + @TestMetadata("propertyGetterUseSiteTarget.kt") + public void testPropertyGetterUseSiteTarget() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterUseSiteTarget.kt"); + } + + @Test + @TestMetadata("retentionAndTarget.kt") + public void testRetentionAndTarget() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/retentionAndTarget.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/callableReference") + @TestDataPath("$PROJECT_ROOT") + public class CallableReference { + @Test + @TestMetadata("adaptedReference.kt") + public void testAdaptedReference() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/callableReference/adaptedReference.kt"); + } + + @Test + public void testAllFilesPresentInCallableReference() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs") + @TestDataPath("$PROJECT_ROOT") + public class CollectionStubs { + @Test + @TestMetadata("abstractMapRedefiningGetAny.kt") + public void testAbstractMapRedefiningGetAny() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractMapRedefiningGetAny.kt"); + } + + @Test + public void testAllFilesPresentInCollectionStubs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("collectionByDelegation.kt") + public void testCollectionByDelegation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation.kt"); + } + + @Test + @TestMetadata("collectionByDelegation2.kt") + public void testCollectionByDelegation2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2.kt"); + } + + @Test + @TestMetadata("collectionByDelegation2WithFullJdk.kt") + public void testCollectionByDelegation2WithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt"); + } + + @Test + @TestMetadata("collectionByDelegation3.kt") + public void testCollectionByDelegation3() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3.kt"); + } + + @Test + @TestMetadata("collectionByDelegation3WithFullJdk.kt") + public void testCollectionByDelegation3WithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt"); + } + + @Test + @TestMetadata("collectionByDelegationWithFullJdk.kt") + public void testCollectionByDelegationWithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt"); + } + + @Test + @TestMetadata("collectionWithInternalRemove.kt") + public void testCollectionWithInternalRemove() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove.kt"); + } + + @Test + @TestMetadata("collectionsWithFullJdk.kt") + public void testCollectionsWithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionsWithFullJdk.kt"); + } + + @Test + @TestMetadata("customListIterator.kt") + public void testCustomListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.kt"); + } + + @Test + @TestMetadata("customMutableListIterator.kt") + public void testCustomMutableListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.kt"); + } + + @Test + @TestMetadata("emptyList.kt") + public void testEmptyList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/emptyList.kt"); + } + + @Test + @TestMetadata("extendingAbstractCollection.kt") + public void testExtendingAbstractCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/extendingAbstractCollection.kt"); + } + + @Test + @TestMetadata("inheritingFromAbstractCollections.kt") + public void testInheritingFromAbstractCollections() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractCollections.kt"); + } + + @Test + @TestMetadata("inheritingFromAbstractMap.kt") + public void testInheritingFromAbstractMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMap.kt"); + } + + @Test + @TestMetadata("inheritingFromAbstractMutableList.kt") + public void testInheritingFromAbstractMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMutableList.kt"); + } + + @Test + @TestMetadata("intArrayList.kt") + public void testIntArrayList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/intArrayList.kt"); + } + + @Test + @TestMetadata("kt44233.kt") + public void testKt44233() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/kt44233.kt"); + } + + @Test + @TestMetadata("ListAndSet.kt") + public void testListAndSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt"); + } + + @Test + @TestMetadata("mapOfPrimitivesFullJdk.kt") + public void testMapOfPrimitivesFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/mapOfPrimitivesFullJdk.kt"); + } + + @Test + @TestMetadata("noStubsForCollection.kt") + public void testNoStubsForCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForCollection.kt"); + } + + @Test + @TestMetadata("noStubsForMapImplementations.kt") + public void testNoStubsForMapImplementations() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMapImplementations.kt"); + } + + @Test + @TestMetadata("noStubsForMutableSetIterators.kt") + public void testNoStubsForMutableSetIterators() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMutableSetIterators.kt"); + } + + @Test + @TestMetadata("noStubsForSetIterators.kt") + public void testNoStubsForSetIterators() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForSetIterators.kt"); + } + + @Test + @TestMetadata("noStubsInIterable.kt") + public void testNoStubsInIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInIterable.kt"); + } + + @Test + @TestMetadata("noStubsInJavaSuperClass.kt") + public void testNoStubsInJavaSuperClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInJavaSuperClass.kt"); + } + + @Test + @TestMetadata("noStubsInMutableIterable.kt") + public void testNoStubsInMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInMutableIterable.kt"); + } + + @Test + @TestMetadata("observableMutableMap.kt") + public void testObservableMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/observableMutableMap.kt"); + } + + @Test + @TestMetadata("stubForAbstractFun.kt") + public void testStubForAbstractFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFun.kt"); + } + + @Test + @TestMetadata("stubForAbstractFunInAbstractClass.kt") + public void testStubForAbstractFunInAbstractClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClass.kt"); + } + + @Test + @TestMetadata("stubForAbstractFunInAbstractClassWithCovariantOverride.kt") + public void testStubForAbstractFunInAbstractClassWithCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClassWithCovariantOverride.kt"); + } + + @Test + @TestMetadata("stubForAbstractFunWithCovariantOverride.kt") + public void testStubForAbstractFunWithCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunWithCovariantOverride.kt"); + } + + @Test + @TestMetadata("stubLikeMethodSignatures.kt") + public void testStubLikeMethodSignatures() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubLikeMethodSignatures.kt"); + } + + @Test + @TestMetadata("stubsFromSuperclass.kt") + public void testStubsFromSuperclass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclass.kt"); + } + + @Test + @TestMetadata("stubsFromSuperclassNoBridges.kt") + public void testStubsFromSuperclassNoBridges() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures") + @TestDataPath("$PROJECT_ROOT") + public class AbstractStubSignatures { + @Test + public void testAllFilesPresentInAbstractStubSignatures() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("byteShortMap.kt") + public void testByteShortMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMap.kt"); + } + + @Test + @TestMetadata("byteShortMutableMap.kt") + public void testByteShortMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMutableMap.kt"); + } + + @Test + @TestMetadata("collection.kt") + public void testCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/collection.kt"); + } + + @Test + @TestMetadata("genericCollection.kt") + public void testGenericCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericCollection.kt"); + } + + @Test + @TestMetadata("genericMap.kt") + public void testGenericMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMap.kt"); + } + + @Test + @TestMetadata("genericMutableCollection.kt") + public void testGenericMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableCollection.kt"); + } + + @Test + @TestMetadata("genericMutableList.kt") + public void testGenericMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableList.kt"); + } + + @Test + @TestMetadata("genericMutableMap.kt") + public void testGenericMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableMap.kt"); + } + + @Test + @TestMetadata("genericStringMap.kt") + public void testGenericStringMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMap.kt"); + } + + @Test + @TestMetadata("genericStringMutableMap.kt") + public void testGenericStringMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMutableMap.kt"); + } + + @Test + @TestMetadata("iterable.kt") + public void testIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/iterable.kt"); + } + + @Test + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/iterator.kt"); + } + + @Test + @TestMetadata("list.kt") + public void testList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/list.kt"); + } + + @Test + @TestMetadata("listIterator.kt") + public void testListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/listIterator.kt"); + } + + @Test + @TestMetadata("mapEntry.kt") + public void testMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mapEntry.kt"); + } + + @Test + @TestMetadata("mutableCollection.kt") + public void testMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableCollection.kt"); + } + + @Test + @TestMetadata("mutableIterable.kt") + public void testMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableIterable.kt"); + } + + @Test + @TestMetadata("mutableIterator.kt") + public void testMutableIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableIterator.kt"); + } + + @Test + @TestMetadata("mutableList.kt") + public void testMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableList.kt"); + } + + @Test + @TestMetadata("mutableListIterator.kt") + public void testMutableListIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableListIterator.kt"); + } + + @Test + @TestMetadata("mutableMapEntry.kt") + public void testMutableMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableMapEntry.kt"); + } + + @Test + @TestMetadata("numberStringMap.kt") + public void testNumberStringMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMap.kt"); + } + + @Test + @TestMetadata("numberStringMutableMap.kt") + public void testNumberStringMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMutableMap.kt"); + } + + @Test + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/set.kt"); + } + + @Test + @TestMetadata("specializedGenericMap.kt") + public void testSpecializedGenericMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/specializedGenericMap.kt"); + } + + @Test + @TestMetadata("stringGenericMap.kt") + public void testStringGenericMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMap.kt"); + } + + @Test + @TestMetadata("stringGenericMutableMap.kt") + public void testStringGenericMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMutableMap.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray") + @TestDataPath("$PROJECT_ROOT") + public class ToArray { + @Test + public void testAllFilesPresentInToArray() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("customNonGenericToArray.kt") + public void testCustomNonGenericToArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.kt"); + } + + @Test + @TestMetadata("internalGenericToArray.kt") + public void testInternalGenericToArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.kt"); + } + + @Test + @TestMetadata("noToArrayInJava.kt") + public void testNoToArrayInJava() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/noToArrayInJava.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/contextReceivers") + @TestDataPath("$PROJECT_ROOT") + public class ContextReceivers { + @Test + public void testAllFilesPresentInContextReceivers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/class.kt"); + } + + @Test + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/function.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/property.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP") + @TestDataPath("$PROJECT_ROOT") + public class FromKEEP { + @Test + public void testAllFilesPresentInFromKEEP() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("canvas.kt") + public void testCanvas() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/canvas.kt"); + } + + @Test + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/compareTo.kt"); + } + + @Test + @TestMetadata("dp.kt") + public void testDp() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/dp.kt"); + } + + @Test + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.kt"); + } + + @Test + @TestMetadata("monoidSum.kt") + public void testMonoidSum() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/monoidSum.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/coroutines") + @TestDataPath("$PROJECT_ROOT") + public class Coroutines { + @Test + public void testAllFilesPresentInCoroutines() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("coroutineContextIntrinsic.kt") + public void testCoroutineContextIntrinsic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/coroutineContextIntrinsic.kt"); + } + + @Test + @TestMetadata("coroutineFields.kt") + public void testCoroutineFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/coroutineFields.kt"); + } + + @Test + @TestMetadata("oomInReturnUnit.kt") + public void testOomInReturnUnit() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/oomInReturnUnit.kt"); + } + + @Test + @TestMetadata("privateAccessor.kt") + public void testPrivateAccessor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/privateAccessor.kt"); + } + + @Test + @TestMetadata("privateSuspendFun.kt") + public void testPrivateSuspendFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/privateSuspendFun.kt"); + } + + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendConversion.kt"); + } + + @Test + @TestMetadata("suspendImpl.kt") + public void testSuspendImpl() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl.kt"); + } + + @Test + @TestMetadata("suspendReifiedFun.kt") + public void testSuspendReifiedFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendReifiedFun.kt"); + } + + @Test + @TestMetadata("tcoContinuation.kt") + public void testTcoContinuation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/tcoContinuation.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/coroutines/spilling") + @TestDataPath("$PROJECT_ROOT") + public class Spilling { + @Test + public void testAllFilesPresentInSpilling() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/coroutines/spilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("booleanParameter.kt") + public void testBooleanParameter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/booleanParameter.kt"); + } + + @Test + @TestMetadata("component1.kt") + public void testComponent1() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/component1.kt"); + } + + @Test + @TestMetadata("destructured.kt") + public void testDestructured() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/destructured.kt"); + } + + @Test + @TestMetadata("field.kt") + public void testField() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/field.kt"); + } + + @Test + @TestMetadata("lambda.kt") + public void testLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/lambda.kt"); + } + + @Test + @TestMetadata("select.kt") + public void testSelect() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/select.kt"); + } + + @Test + @TestMetadata("unreachable.kt") + public void testUnreachable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/unreachable.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + public class DefaultArguments { + @Test + public void testAllFilesPresentInDefaultArguments() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("functionInMultifileClass.kt") + public void testFunctionInMultifileClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/functionInMultifileClass.kt"); + } + + @Test + @TestMetadata("functionInMultifileClassWithInheritedParts.kt") + public void testFunctionInMultifileClassWithInheritedParts() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/functionInMultifileClassWithInheritedParts.kt"); + } + + @Test + @TestMetadata("internalNameMangling.kt") + public void testInternalNameMangling() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/internalNameMangling.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/delegatedProperty") + @TestDataPath("$PROJECT_ROOT") + public class DelegatedProperty { + @Test + public void testAllFilesPresentInDelegatedProperty() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("delegateMethodIsNonOverridable.kt") + public void testDelegateMethodIsNonOverridable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegatedProperty/delegateMethodIsNonOverridable.kt"); + } + + @Test + @TestMetadata("delegatedPropertiesInCompanionObject.kt") + public void testDelegatedPropertiesInCompanionObject() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegatedProperty/delegatedPropertiesInCompanionObject.kt"); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/delegatedProperty/localDelegatedProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/deprecated") + @TestDataPath("$PROJECT_ROOT") + public class Deprecated { + @Test + public void testAllFilesPresentInDeprecated() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/deprecated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deprecatedClass.kt") + public void testDeprecatedClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedClass.kt"); + } + + @Test + @TestMetadata("deprecatedEnumEntryFields.kt") + public void testDeprecatedEnumEntryFields() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedEnumEntryFields.kt"); + } + + @Test + @TestMetadata("deprecatedInMultifileClass.kt") + public void testDeprecatedInMultifileClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedInMultifileClass.kt"); + } + + @Test + @TestMetadata("deprecatedLateinitVar.kt") + public void testDeprecatedLateinitVar() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedLateinitVar.kt"); + } + + @Test + @TestMetadata("deprecatedProperty.kt") + public void testDeprecatedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.kt"); + } + + @Test + @TestMetadata("hidden.kt") + public void testHidden() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/hidden.kt"); + } + + @Test + @TestMetadata("inheritingDeprecation.kt") + public void testInheritingDeprecation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt"); + } + + @Test + @TestMetadata("inlineClassTypesInSignature.kt") + public void testInlineClassTypesInSignature() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/inlineClassTypesInSignature.kt"); + } + + @Test + @TestMetadata("jvmStaticDeprecatedProperty.kt") + public void testJvmStaticDeprecatedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/deprecated/jvmStaticDeprecatedProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericReified.kt") + public void testGenericReified() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/genericReified.kt"); + } + + @Test + @TestMetadata("inlineOnly.kt") + public void testInlineOnly() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineOnly.kt"); + } + + @Test + @TestMetadata("InlineOnlyMultifile.kt") + public void testInlineOnlyMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineOnlyMultifile.kt"); + } + + @Test + @TestMetadata("inlineOnlyProperty.kt") + public void testInlineOnlyProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineOnlyProperty.kt"); + } + + @Test + @TestMetadata("InlineOnlyPropertyMultifile.kt") + public void testInlineOnlyPropertyMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineOnlyPropertyMultifile.kt"); + } + + @Test + @TestMetadata("inlineReified.kt") + public void testInlineReified() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReified.kt"); + } + + @Test + @TestMetadata("InlineReifiedMultifile.kt") + public void testInlineReifiedMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineReifiedMultifile.kt"); + } + + @Test + @TestMetadata("inlineReifiedProperty.kt") + public void testInlineReifiedProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedProperty.kt"); + } + + @Test + @TestMetadata("InlineReifiedPropertyMultifile.kt") + public void testInlineReifiedPropertyMultifile() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/InlineReifiedPropertyMultifile.kt"); + } + + @Test + @TestMetadata("inlineReifiedPropertyVisibility.kt") + public void testInlineReifiedPropertyVisibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedPropertyVisibility.kt"); + } + + @Test + @TestMetadata("inlineReifiedVisibility.kt") + public void testInlineReifiedVisibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedVisibility.kt"); + } + + @Test + @TestMetadata("simpleNamed.kt") + public void testSimpleNamed() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/simpleNamed.kt"); + } + + @Test + @TestMetadata("suspendInlineReified.kt") + public void testSuspendInlineReified() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo") + @TestDataPath("$PROJECT_ROOT") + public class EnclosingInfo { + @Test + public void testAllFilesPresentInEnclosingInfo() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("crossinlineLambdaChain.kt") + public void testCrossinlineLambdaChain() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.kt"); + } + + @Test + @TestMetadata("kt10259.kt") + public void testKt10259() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/kt10259.kt"); + } + + @Test + @TestMetadata("lambdaInInitBlockNoPrimaryConstructor.kt") + public void testLambdaInInitBlockNoPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/lambdaInInitBlockNoPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("lambdaInInnerClassConstructor.kt") + public void testLambdaInInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/lambdaInInnerClassConstructor.kt"); + } + + @Test + @TestMetadata("transformedConstructor.kt") + public void testTransformedConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/transformedConstructor.kt"); + } + + @Test + @TestMetadata("transformedConstructorWithNestedInline.kt") + public void testTransformedConstructorWithNestedInline() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/transformedConstructorWithNestedInline.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + public class InlineClasses { + @Test + public void testAllFilesPresentInInlineClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotatedPropertyWithInlineClassTypeInSignature.kt") + public void testAnnotatedPropertyWithInlineClassTypeInSignature() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotatedPropertyWithInlineClassTypeInSignature.kt"); + } + + @Test + @TestMetadata("annotationGetters.kt") + public void testAnnotationGetters() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotationGetters.kt"); + } + + @Test + @TestMetadata("annotationsOnHiddenConstructor.kt") + public void testAnnotationsOnHiddenConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotationsOnHiddenConstructor.kt"); + } + + @Test + @TestMetadata("companionObjectInsideInlineClass.kt") + public void testCompanionObjectInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/companionObjectInsideInlineClass.kt"); + } + + @Test + @TestMetadata("computablePropertiesInsideInlineClass.kt") + public void testComputablePropertiesInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/computablePropertiesInsideInlineClass.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/constructor.kt"); + } + + @Test + @TestMetadata("constructorsWithDefaultParameterValues.kt") + public void testConstructorsWithDefaultParameterValues() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/constructorsWithDefaultParameterValues.kt"); + } + + @Test + @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") + public void testDefaultInterfaceMethodsInInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMethodsInInlineClass.kt"); + } + + @Test + @TestMetadata("genericChild.kt") + public void testGenericChild() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/genericChild.kt"); + } + + @Test + @TestMetadata("hiddenConstructor.kt") + public void testHiddenConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/hiddenConstructor.kt"); + } + + @Test + @TestMetadata("inlineCharSequence.kt") + public void testInlineCharSequence() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCharSequence.kt"); + } + + @Test + @TestMetadata("inlineClassMembersVisibility.kt") + public void testInlineClassMembersVisibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassMembersVisibility.kt"); + } + + @Test + @TestMetadata("inlineClassTypeParametersInConstructor.kt") + public void testInlineClassTypeParametersInConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassTypeParametersInConstructor.kt"); + } + + @Test + @TestMetadata("inlineClassWithInlineClassUnderlyingType.kt") + public void testInlineClassWithInlineClassUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithInlineClassUnderlyingType.kt"); + } + + @Test + @TestMetadata("inlineClassWithManyKindsOfMembers.kt") + public void testInlineClassWithManyKindsOfMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.kt"); + } + + @Test + @TestMetadata("jvmName.kt") + public void testJvmName() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/jvmName.kt"); + } + + @Test + @TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt") + public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt"); + } + + @Test + @TestMetadata("memberExtensionProperty.kt") + public void testMemberExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/memberExtensionProperty.kt"); + } + + @Test + @TestMetadata("noArgConstructorForInlineClassParameter.kt") + public void testNoArgConstructorForInlineClassParameter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/noArgConstructorForInlineClassParameter.kt"); + } + + @Test + @TestMetadata("noBridgesForErasedInlineClass.kt") + public void testNoBridgesForErasedInlineClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/noBridgesForErasedInlineClass.kt"); + } + + @Test + @TestMetadata("nullabilityAnnotationsOnInlineClassMembers.kt") + public void testNullabilityAnnotationsOnInlineClassMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullabilityAnnotationsOnInlineClassMembers.kt"); + } + + @Test + @TestMetadata("nullabilityInExpansion.kt") + public void testNullabilityInExpansion() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullabilityInExpansion.kt"); + } + + @Test + @TestMetadata("nullableAndNotNullPrimitive.kt") + public void testNullableAndNotNullPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullableAndNotNullPrimitive.kt"); + } + + @Test + @TestMetadata("overridingGenericMethodWithInlineClassParameterType.kt") + public void testOverridingGenericMethodWithInlineClassParameterType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/overridingGenericMethodWithInlineClassParameterType.kt"); + } + + @Test + @TestMetadata("overridingGenericMethodWithInlineClassReturnType.kt") + public void testOverridingGenericMethodWithInlineClassReturnType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/overridingGenericMethodWithInlineClassReturnType.kt"); + } + + @Test + @TestMetadata("primaryValsWithDifferentVisibilities.kt") + public void testPrimaryValsWithDifferentVisibilities() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/primaryValsWithDifferentVisibilities.kt"); + } + + @Test + @TestMetadata("publishedApiAnnotationOnInlineClassConstructor.kt") + public void testPublishedApiAnnotationOnInlineClassConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/publishedApiAnnotationOnInlineClassConstructor.kt"); + } + + @Test + @TestMetadata("shapeOfInlineClassWithPrimitive.kt") + public void testShapeOfInlineClassWithPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/shapeOfInlineClassWithPrimitive.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers") + @TestDataPath("$PROJECT_ROOT") + public class DefaultInterfaceMembers { + @Test + public void testAllFilesPresentInDefaultInterfaceMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("javaDefaultInterfaceMember.kt") + public void testJavaDefaultInterfaceMember() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/javaDefaultInterfaceMember.kt"); + } + + @Test + @TestMetadata("jvmDefaultAll.kt") + public void testJvmDefaultAll() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/jvmDefaultAll.kt"); + } + + @Test + @TestMetadata("jvmDefaultEnable.kt") + public void testJvmDefaultEnable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/jvmDefaultEnable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection") + @TestDataPath("$PROJECT_ROOT") + public class InlineCollection { + @Test + public void testAllFilesPresentInInlineCollection() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("collection.kt") + public void testCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/collection.kt"); + } + + @Test + @TestMetadata("iterable.kt") + public void testIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/iterable.kt"); + } + + @Test + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/iterator.kt"); + } + + @Test + @TestMetadata("list.kt") + public void testList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/list.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/map.kt"); + } + + @Test + @TestMetadata("mapEntry.kt") + public void testMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mapEntry.kt"); + } + + @Test + @TestMetadata("mutableCollection.kt") + public void testMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableCollection.kt"); + } + + @Test + @TestMetadata("mutableIterable.kt") + public void testMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableIterable.kt"); + } + + @Test + @TestMetadata("mutableIterator.kt") + public void testMutableIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableIterator.kt"); + } + + @Test + @TestMetadata("mutableList.kt") + public void testMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableList.kt"); + } + + @Test + @TestMetadata("mutableMap.kt") + public void testMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMap.kt"); + } + + @Test + @TestMetadata("mutableMapEntry.kt") + public void testMutableMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMapEntry.kt"); + } + + @Test + @TestMetadata("mutableSet.kt") + public void testMutableSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableSet.kt"); + } + + @Test + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/set.kt"); + } + + @Test + @TestMetadata("UIntArrayWithFullJdk.kt") + public void testUIntArrayWithFullJdk() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/UIntArrayWithFullJdk.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineCollectionOfInlineClass { + @Test + public void testAllFilesPresentInInlineCollectionOfInlineClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("collection.kt") + public void testCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/collection.kt"); + } + + @Test + @TestMetadata("iterable.kt") + public void testIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/iterable.kt"); + } + + @Test + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/iterator.kt"); + } + + @Test + @TestMetadata("list.kt") + public void testList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/list.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/map.kt"); + } + + @Test + @TestMetadata("mapEntry.kt") + public void testMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mapEntry.kt"); + } + + @Test + @TestMetadata("mutableCollection.kt") + public void testMutableCollection() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableCollection.kt"); + } + + @Test + @TestMetadata("mutableIterable.kt") + public void testMutableIterable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableIterable.kt"); + } + + @Test + @TestMetadata("mutableIterator.kt") + public void testMutableIterator() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableIterator.kt"); + } + + @Test + @TestMetadata("mutableList.kt") + public void testMutableList() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableList.kt"); + } + + @Test + @TestMetadata("mutableMap.kt") + public void testMutableMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMap.kt"); + } + + @Test + @TestMetadata("mutableMapEntry.kt") + public void testMutableMapEntry() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMapEntry.kt"); + } + + @Test + @TestMetadata("mutableSet.kt") + public void testMutableSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableSet.kt"); + } + + @Test + @TestMetadata("mutableSet2.kt") + public void testMutableSet2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableSet2.kt"); + } + + @Test + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/set.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult") + @TestDataPath("$PROJECT_ROOT") + public class ReturnResult { + @Test + public void testAllFilesPresentInReturnResult() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/class.kt"); + } + + @Test + @TestMetadata("classAnyOverride.kt") + public void testClassAnyOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classAnyOverride.kt"); + } + + @Test + @TestMetadata("classGenericOverride.kt") + public void testClassGenericOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classGenericOverride.kt"); + } + + @Test + @TestMetadata("classResultOverride.kt") + public void testClassResultOverride() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classResultOverride.kt"); + } + + @Test + @TestMetadata("interface.kt") + public void testInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/interface.kt"); + } + + @Test + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/topLevel.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430") + @TestDataPath("$PROJECT_ROOT") + public class StdlibManglingIn1430 { + @Test + public void testAllFilesPresentInStdlibManglingIn1430() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("new.kt") + public void testNew() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430/new.kt"); + } + + @Test + @TestMetadata("old.kt") + public void testOld() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430/old.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8") + @TestDataPath("$PROJECT_ROOT") + public class Jvm8 { + @Test + public void testAllFilesPresentInJvm8() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults") + @TestDataPath("$PROJECT_ROOT") + public class Defaults { + @Test + public void testAllFilesPresentInDefaults() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility") + @TestDataPath("$PROJECT_ROOT") + public class AllCompatibility { + @Test + public void testAllFilesPresentInAllCompatibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deprecation.kt") + public void testDeprecation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/deprecation.kt"); + } + + @Test + @TestMetadata("deprecationWithDefault.kt") + public void testDeprecationWithDefault() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/deprecationWithDefault.kt"); + } + + @Test + @TestMetadata("interfaceProperty.kt") + public void testInterfaceProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/interfaceProperty.kt"); + } + + @Test + @TestMetadata("jvmDefaultWithoutCompatibility.kt") + public void testJvmDefaultWithoutCompatibility() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/jvmDefaultWithoutCompatibility.kt"); + } + + @Test + @TestMetadata("noDefaultImplsOnEmptySubInterface.kt") + public void testNoDefaultImplsOnEmptySubInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/noDefaultImplsOnEmptySubInterface.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization") + @TestDataPath("$PROJECT_ROOT") + public class Specialization { + @Test + public void testAllFilesPresentInSpecialization() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("primitiveAndAny.kt") + public void testPrimitiveAndAny() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization/primitiveAndAny.kt"); + } + + @Test + @TestMetadata("primitiveAndNullable.kt") + public void testPrimitiveAndNullable() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization/primitiveAndNullable.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable") + @TestDataPath("$PROJECT_ROOT") + public class Enable { + @Test + public void testAllFilesPresentInEnable() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("interfaceProperty.kt") + public void testInterfaceProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable/interfaceProperty.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl") + @TestDataPath("$PROJECT_ROOT") + public class NoDefaultImpl { + @Test + public void testAllFilesPresentInNoDefaultImpl() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("interfaceProperty.kt") + public void testInterfaceProperty() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl/interfaceProperty.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/jvmStatic") + @TestDataPath("$PROJECT_ROOT") + public class JvmStatic { + @Test + public void testAllFilesPresentInJvmStatic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvmStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("jvmStaticExternal.kt") + public void testJvmStaticExternal() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/jvmStaticExternal.kt"); + } + + @Test + @TestMetadata("jvmStaticPrivate.kt") + public void testJvmStaticPrivate() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/jvmStaticPrivate.kt"); + } + + @Test + @TestMetadata("jvmStaticWithDefaultParameters.kt") + public void testJvmStaticWithDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/jvmStaticWithDefaultParameters.kt"); + } + + @Test + @TestMetadata("kt31389.kt") + public void testKt31389() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/jvmStatic/kt31389.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/localFunctions") + @TestDataPath("$PROJECT_ROOT") + public class LocalFunctions { + @Test + public void testAllFilesPresentInLocalFunctions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericClass.kt") + public void testGenericClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/genericClass.kt"); + } + + @Test + @TestMetadata("genericInnerClass.kt") + public void testGenericInnerClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/genericInnerClass.kt"); + } + + @Test + @TestMetadata("genericLocalClass.kt") + public void testGenericLocalClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/genericLocalClass.kt"); + } + + @Test + @TestMetadata("inInitBlock.kt") + public void testInInitBlock() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/inInitBlock.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/localFunctions/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/main") + @TestDataPath("$PROJECT_ROOT") + public class Main { + @Test + public void testAllFilesPresentInMain() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/main"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("multifileSuspend.kt") + public void testMultifileSuspend() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/multifileSuspend.kt"); + } + + @Test + @TestMetadata("parameterlessMain.kt") + public void testParameterlessMain() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/parameterlessMain.kt"); + } + + @Test + @TestMetadata("parameterlessMain_before.kt") + public void testParameterlessMain_before() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/parameterlessMain_before.kt"); + } + + @Test + @TestMetadata("suspendMain.kt") + public void testSuspendMain() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/main/suspendMain.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/multifileClasses") + @TestDataPath("$PROJECT_ROOT") + public class MultifileClasses { + @Test + public void testAllFilesPresentInMultifileClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("emptyMultifileFacade.kt") + public void testEmptyMultifileFacade() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/emptyMultifileFacade.kt"); + } + + @Test + @TestMetadata("jvmSynthetic.kt") + public void testJvmSynthetic() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/jvmSynthetic.kt"); + } + + @Test + @TestMetadata("kt43519.kt") + public void testKt43519() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/kt43519.kt"); + } + + @Test + @TestMetadata("multiClassPartSourceMultipleParts.kt") + public void testMultiClassPartSourceMultipleParts() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/multiClassPartSourceMultipleParts.kt"); + } + + @Test + @TestMetadata("multiClassPartSourceSinglePart.kt") + public void testMultiClassPartSourceSinglePart() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/multiClassPartSourceSinglePart.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/multiplatform") + @TestDataPath("$PROJECT_ROOT") + public class Multiplatform { + @Test + public void testAllFilesPresentInMultiplatform() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("optionalExpectation.kt") + public void testOptionalExpectation() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/multiplatform/optionalExpectation.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations") + @TestDataPath("$PROJECT_ROOT") + public class NullabilityAnnotations { + @Test + public void testAllFilesPresentInNullabilityAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lateInitNotNull.kt") + public void testLateInitNotNull() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/lateInitNotNull.kt"); + } + + @Test + @TestMetadata("nullabilityAnnotationsForReturnType.kt") + public void testNullabilityAnnotationsForReturnType() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsForReturnType.kt"); + } + + @Test + @TestMetadata("nullabilityAnnotationsOnDelegatedMembers.kt") + public void testNullabilityAnnotationsOnDelegatedMembers() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.kt"); + } + + @Test + @TestMetadata("platformTypes.kt") + public void testPlatformTypes() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/platformTypes.kt"); + } + + @Test + @TestMetadata("samAdapterForJavaInterfaceWithNullability.kt") + public void testSamAdapterForJavaInterfaceWithNullability() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/samAdapterForJavaInterfaceWithNullability.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/sam") + @TestDataPath("$PROJECT_ROOT") + public class Sam { + @Test + public void testAllFilesPresentInSam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("callableRefGenericFunInterface.kt") + public void testCallableRefGenericFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefGenericFunInterface.kt"); + } + + @Test + @TestMetadata("callableRefGenericSamInterface.kt") + public void testCallableRefGenericSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefGenericSamInterface.kt"); + } + + @Test + @TestMetadata("callableRefSpecializedFunInterface.kt") + public void testCallableRefSpecializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefSpecializedFunInterface.kt"); + } + + @Test + @TestMetadata("callableRefSpecializedSamInterface.kt") + public void testCallableRefSpecializedSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefSpecializedSamInterface.kt"); + } + + @Test + @TestMetadata("genericFunInterface.kt") + public void testGenericFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/genericFunInterface.kt"); + } + + @Test + @TestMetadata("genericSamInterface.kt") + public void testGenericSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/genericSamInterface.kt"); + } + + @Test + @TestMetadata("indySamConversionViaProxyFun.kt") + public void testIndySamConversionViaProxyFun() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/indySamConversionViaProxyFun.kt"); + } + + @Test + @TestMetadata("kt16650.kt") + public void testKt16650() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/kt16650.kt"); + } + + @Test + @TestMetadata("lambdaGenericFunInterface.kt") + public void testLambdaGenericFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericFunInterface.kt"); + } + + @Test + @TestMetadata("lambdaGenericSamInterface.kt") + public void testLambdaGenericSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericSamInterface.kt"); + } + + @Test + @TestMetadata("lambdaSpecializedFunInterface.kt") + public void testLambdaSpecializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaSpecializedFunInterface.kt"); + } + + @Test + @TestMetadata("lambdaSpecializedSamInterface.kt") + public void testLambdaSpecializedSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaSpecializedSamInterface.kt"); + } + + @Test + @TestMetadata("nonApproxToValidSupertype.kt") + public void testNonApproxToValidSupertype() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.kt"); + } + + @Test + @TestMetadata("nonApproxToValidSupertype2.kt") + public void testNonApproxToValidSupertype2() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.kt"); + } + + @Test + @TestMetadata("privateInlineSamAdapter.kt") + public void testPrivateInlineSamAdapter() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/privateInlineSamAdapter.kt"); + } + + @Test + @TestMetadata("reusedSamWrapperClasses.kt") + public void testReusedSamWrapperClasses() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/reusedSamWrapperClasses.kt"); + } + + @Test + @TestMetadata("samAdapterAndInlinedOne.kt") + public void testSamAdapterAndInlinedOne() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/samAdapterAndInlinedOne.kt"); + } + + @Test + @TestMetadata("samAdapterInInlineLambda.kt") + public void testSamAdapterInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/samAdapterInInlineLambda.kt"); + } + + @Test + @TestMetadata("severalProxyFunsInInit.kt") + public void testSeveralProxyFunsInInit() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/severalProxyFunsInInit.kt"); + } + + @Test + @TestMetadata("specializedFunInterface.kt") + public void testSpecializedFunInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/specializedFunInterface.kt"); + } + + @Test + @TestMetadata("specializedSamInterface.kt") + public void testSpecializedSamInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/specializedSamInterface.kt"); + } + + @Test + @TestMetadata("wrapperInlinedFromAnotherClass.kt") + public void testWrapperInlinedFromAnotherClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/wrapperInlinedFromAnotherClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/sealed") + @TestDataPath("$PROJECT_ROOT") + public class Sealed { + @Test + public void testAllFilesPresentInSealed() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/sealed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotationsOnSealedConstructor.kt") + public void testAnnotationsOnSealedConstructor() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/annotationsOnSealedConstructor.kt"); + } + + @Test + @TestMetadata("permittedSubclasses_1_7.kt") + public void testPermittedSubclasses_1_7() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/permittedSubclasses_1_7.kt"); + } + + @Test + @TestMetadata("sealedClassConstructor_1_4.kt") + public void testSealedClassConstructor_1_4() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_4.kt"); + } + + @Test + @TestMetadata("sealedClassConstructor_1_5.kt") + public void testSealedClassConstructor_1_5() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_5.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/specialBridges") + @TestDataPath("$PROJECT_ROOT") + public class SpecialBridges { + @Test + @TestMetadata("abstractCollections.kt") + public void testAbstractCollections() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractCollections.kt"); + } + + @Test + @TestMetadata("abstractIterables.kt") + public void testAbstractIterables() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractIterables.kt"); + } + + @Test + @TestMetadata("abstractLists.kt") + public void testAbstractLists() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractLists.kt"); + } + + @Test + @TestMetadata("abstractListsWithJavaBase.kt") + public void testAbstractListsWithJavaBase() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractListsWithJavaBase.kt"); + } + + @Test + @TestMetadata("abstractMutableCollectionOfPrimitive.kt") + public void testAbstractMutableCollectionOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableCollectionOfPrimitive.kt"); + } + + @Test + @TestMetadata("abstractMutableListOfPrimitive.kt") + public void testAbstractMutableListOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableListOfPrimitive.kt"); + } + + @Test + @TestMetadata("abstractMutableLists.kt") + public void testAbstractMutableLists() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableLists.kt"); + } + + @Test + @TestMetadata("abstractSets.kt") + public void testAbstractSets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractSets.kt"); + } + + @Test + public void testAllFilesPresentInSpecialBridges() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("charSequence.kt") + public void testCharSequence() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/charSequence.kt"); + } + + @Test + @TestMetadata("contains.kt") + public void testContains() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/contains.kt"); + } + + @Test + @TestMetadata("kt41123.kt") + public void testKt41123() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/kt41123.kt"); + } + + @Test + @TestMetadata("kt48945.kt") + public void testKt48945() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/kt48945.kt"); + } + + @Test + @TestMetadata("mutableCollectionOfPrimitive.kt") + public void testMutableCollectionOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/mutableCollectionOfPrimitive.kt"); + } + + @Test + @TestMetadata("mutableListOfPrimitive.kt") + public void testMutableListOfPrimitive() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/mutableListOfPrimitive.kt"); + } + + @Test + @TestMetadata("noDefaultImplsOnEmptySubInterface.kt") + public void testNoDefaultImplsOnEmptySubInterface() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/noDefaultImplsOnEmptySubInterface.kt"); + } + + @Test + @TestMetadata("noSpecialBridgeIfPresentInSuperClass.kt") + public void testNoSpecialBridgeIfPresentInSuperClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass.kt"); + } + + @Test + @TestMetadata("number.kt") + public void testNumber() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/number.kt"); + } + + @Test + @TestMetadata("redundantStubForSize.kt") + public void testRedundantStubForSize() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/redundantStubForSize.kt"); + } + + @Test + @TestMetadata("removeAtTwoSpecialBridges.kt") + public void testRemoveAtTwoSpecialBridges() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/removeAtTwoSpecialBridges.kt"); + } + + @Test + @TestMetadata("specialBridgeForGet.kt") + public void testSpecialBridgeForGet() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.kt"); + } + + @Test + @TestMetadata("unsignedArray.kt") + public void testUnsignedArray() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/unsignedArray.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/specialBridges/signatures") + @TestDataPath("$PROJECT_ROOT") + public class Signatures { + @Test + public void testAllFilesPresentInSignatures() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges/signatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("genericClass.kt") + public void testGenericClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.kt"); + } + + @Test + @TestMetadata("implementsJavaMap.kt") + public void testImplementsJavaMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsJavaMap.kt"); + } + + @Test + @TestMetadata("implementsJavaMapWithCustomEntries.kt") + public void testImplementsJavaMapWithCustomEntries() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsJavaMapWithCustomEntries.kt"); + } + + @Test + @TestMetadata("implementsMap.kt") + public void testImplementsMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsMap.kt"); + } + + @Test + @TestMetadata("implementsSortedMap.kt") + public void testImplementsSortedMap() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsSortedMap.kt"); + } + + @Test + @TestMetadata("kt43610.kt") + public void testKt43610() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/kt43610.kt"); + } + + @Test + @TestMetadata("nonGenericClass.kt") + public void testNonGenericClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.kt"); + } + + @Test + @TestMetadata("partiallySpecializedClass.kt") + public void testPartiallySpecializedClass() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/bytecodeListing/valueClasses") + @TestDataPath("$PROJECT_ROOT") + public class ValueClasses { + @Test + public void testAllFilesPresentInValueClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/valueClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("annotations.kt") + public void testAnnotations() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/valueClasses/annotations.kt"); + } + } +} diff --git a/compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt b/compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt index 807a2746c15..d853d1f6839 100644 --- a/compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt +++ b/compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57228 K2: annotations for interface member properties implemented by delegation are copied + annotation class Ann interface IFoo { @@ -7,4 +10,4 @@ interface IFoo { @Ann fun String.testExtFun() } -class DFoo(d: IFoo) : IFoo by d \ No newline at end of file +class DFoo(d: IFoo) : IFoo by d diff --git a/compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterSeveralUseSiteTargets.kt b/compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterSeveralUseSiteTargets.kt new file mode 100644 index 00000000000..7f891cad8e0 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterSeveralUseSiteTargets.kt @@ -0,0 +1,18 @@ +// !LANGUAGE: +RepeatableAnnotations +// TARGET_BACKEND: JVM_IR +// WITH_STDLIB +// FULL_JDK +// JVM_TARGET: 1.8 + +// IGNORE_BACKEND_K1: JVM_IR +// ^ "c", "d" is not detected because of KT-48141. + +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: ["c", "d", "a", "b"] because of KT-57219 K2: incorrect relative order of normal and use-site-targeted annotations on property getter in the resulting bytecode + +@Repeatable +annotation class A(val v: String) + +@get:A("a") @get:A("b") +val ab: Int + @get:A("c") @get:A("d") get() = 0 diff --git a/compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterSeveralUseSiteTargets.txt b/compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterSeveralUseSiteTargets.txt new file mode 100644 index 00000000000..041f1a278fb --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterSeveralUseSiteTargets.txt @@ -0,0 +1,25 @@ +@kotlin.jvm.internal.RepeatableContainer +@java.lang.annotation.Retention(value=RUNTIME) +@kotlin.Metadata +public annotation class A$Container { + // source: 'propertyGetterSeveralUseSiteTargets.kt' + public abstract method value(): A[] + public inner class A$Container +} + +@kotlin.annotation.Repeatable +@java.lang.annotation.Retention(value=RUNTIME) +@java.lang.annotation.Repeatable(value=A$Container::class) +@kotlin.Metadata +public annotation class A { + // source: 'propertyGetterSeveralUseSiteTargets.kt' + public abstract method v(): java.lang.String + public inner class A$Container +} + +@kotlin.Metadata +public final class PropertyGetterSeveralUseSiteTargetsKt { + // source: 'propertyGetterSeveralUseSiteTargets.kt' + public final static @A$Container(value=[A(v="a"), A(v="b"), A(v="c"), A(v="d")]) method getAb(): int + public inner class A$Container +} diff --git a/compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterUseSiteTarget.kt b/compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterUseSiteTarget.kt index 038b70147b9..52a24390102 100644 --- a/compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterUseSiteTarget.kt +++ b/compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterUseSiteTarget.kt @@ -4,6 +4,9 @@ // FULL_JDK // JVM_TARGET: 1.8 +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57219 K2: incorrect relative order of normal and use-site-targeted annotations on property getter in the resulting bytecode + @Repeatable annotation class A(val v: String) @@ -19,5 +22,4 @@ val ef: Int @get:A("g") val ghi: Int - // "i" is not detected because of KT-48141. - @A("h") @get:A("i") get() = 0 + @A("h") get() = 0 diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt index b2c1f1bbe3e..212710bf95c 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt @@ -1,6 +1,9 @@ // WITH_STDLIB // FULL_JDK +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57269 K2: collection stub for `sort` is not generated for custom List subclasses + import java.util.* class ListSet : List, Set { diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMap.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMap.kt index 1d3b2bf35cb..d9ccc6d70f8 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMap.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMap.kt @@ -1,3 +1,6 @@ // WITH_SIGNATURES +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + abstract class ByteShortMap : Map diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMap.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMap.kt index d64e0be043b..a41cf0c88a7 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMap.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMap.kt @@ -1,3 +1,6 @@ // WITH_SIGNATURES +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + abstract class GenericMap : Map diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMap.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMap.kt index 17e0263c891..9c1099764f4 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMap.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMap.kt @@ -1,3 +1,6 @@ // WITH_SIGNATURES +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + abstract class GenericStringMap : Map diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMap.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMap.kt index 017fd35359e..0d18ba3b7a8 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMap.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMap.kt @@ -1,3 +1,6 @@ // WITH_SIGNATURES -abstract class NumberStringMap : Map \ No newline at end of file +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + +abstract class NumberStringMap : Map diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/specializedGenericMap.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/specializedGenericMap.kt index 61f12b38f9b..653af2994ac 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/specializedGenericMap.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/specializedGenericMap.kt @@ -1,5 +1,8 @@ // WITH_SIGNATURES +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + abstract class GenericMap : Map -abstract class NumberStringMap : GenericMap() \ No newline at end of file +abstract class NumberStringMap : GenericMap() diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMap.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMap.kt index 466222bc908..a7b6292ada7 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMap.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMap.kt @@ -1,3 +1,6 @@ // WITH_SIGNATURES +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + abstract class StringGenericMap : Map diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation.kt index 20a78f0193d..ee44c08c0bb 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + class DGenericIterator(d: Iterator) : Iterator by d class DGenericListIterator(d: ListIterator) : ListIterator by d @@ -16,4 +19,4 @@ class DGenericMapEntry(d: Map.Entry) : Map.Entry by d class DGenericCollectionBySet(d: Set) : Collection by d -class DGenericCollectionByList(d: List) : Collection by d \ No newline at end of file +class DGenericCollectionByList(d: List) : Collection by d diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2.kt index 8296ca8b5a7..1c6a0fdb414 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + class DStringIterator(d: Iterator) : Iterator by d class DStringListIterator(d: ListIterator) : ListIterator by d @@ -16,4 +19,4 @@ class DStringMapEntry(d: Map.Entry) : Map.Entry class DStringCollectionBySet(d: Set) : Collection by d -class DStringCollectionByList(d: List) : Collection by d \ No newline at end of file +class DStringCollectionByList(d: List) : Collection by d diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt index 189d17dc937..41af041ccee 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt @@ -1,4 +1,8 @@ // FULL_JDK + +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57269 K2: collection stub for `sort` is not generated for custom List subclasses + class DStringIterator(d: Iterator) : Iterator by d class DStringListIterator(d: ListIterator) : ListIterator by d @@ -17,4 +21,4 @@ class DStringMapEntry(d: Map.Entry) : Map.Entry class DStringCollectionBySet(d: Set) : Collection by d -class DStringCollectionByList(d: List) : Collection by d \ No newline at end of file +class DStringCollectionByList(d: List) : Collection by d diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3.kt index c888599591c..1643272862b 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + class DIntIterator(d: Iterator) : Iterator by d class DIntListIterator(d: ListIterator) : ListIterator by d @@ -16,4 +19,4 @@ class DIntMapEntry(d: Map.Entry) : Map.Entry by d class DIntCollectionBySet(d: Set) : Collection by d -class DIntCollectionByList(d: List) : Collection by d \ No newline at end of file +class DIntCollectionByList(d: List) : Collection by d diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt index efe9a6ea960..21ce8575030 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt @@ -1,6 +1,9 @@ // FULL_JDK // See also: https://youtrack.jetbrains.com/issue/KT-42330 +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57269 K2: collection stub for `sort` is not generated for custom List subclasses + class DIntIterator(d: Iterator) : Iterator by d class DIntListIterator(d: ListIterator) : ListIterator by d @@ -19,4 +22,4 @@ class DIntMapEntry(d: Map.Entry) : Map.Entry by d class DIntCollectionBySet(d: Set) : Collection by d -class DIntCollectionByList(d: List) : Collection by d \ No newline at end of file +class DIntCollectionByList(d: List) : Collection by d diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt index f52c311e4d6..7b24895bc82 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt @@ -1,4 +1,8 @@ // FULL_JDK + +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57269 K2: collection stub for `sort` is not generated for custom List subclasses + class DGenericIterator(d: Iterator) : Iterator by d class DGenericListIterator(d: ListIterator) : ListIterator by d @@ -17,4 +21,4 @@ class DGenericMapEntry(d: Map.Entry) : Map.Entry by d class DGenericCollectionBySet(d: Set) : Collection by d -class DGenericCollectionByList(d: List) : Collection by d \ No newline at end of file +class DGenericCollectionByList(d: List) : Collection by d diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionsWithFullJdk.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionsWithFullJdk.kt index 16c9e12cd5f..971f0874427 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionsWithFullJdk.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionsWithFullJdk.kt @@ -1,6 +1,9 @@ // FULL_JDK // See: KT-42114, KT-42115 +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57269 K2: collection stub for `sort` is not generated for custom List subclasses + abstract class AbstractIterator : Iterator abstract class AbstractIterable : Iterable diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/extendingAbstractCollection.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/extendingAbstractCollection.kt index bce3019409a..d4f378b66b6 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/extendingAbstractCollection.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/extendingAbstractCollection.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57299 K2: VerifyError due to overriding final method `size` on a subclass of Collection and Set + abstract class AC : Collection -abstract class ASet : AC(), Set \ No newline at end of file +abstract class ASet : AC(), Set diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractCollections.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractCollections.kt index 55c187b865a..6c973b40aa0 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractCollections.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractCollections.kt @@ -1,5 +1,8 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57300 K2: subclass of MutableCollection with primitive element type has methods with boxed type + abstract class AIterD : AbstractIterator() abstract class ACollD : AbstractCollection() @@ -11,4 +14,3 @@ abstract class ASetD : AbstractSet() abstract class AMSetD : AbstractMutableSet() abstract class AListD : AbstractList() - diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMap.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMap.kt index de3bbd8be7f..518244e4c57 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMap.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMap.kt @@ -1,5 +1,11 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: +// 1) KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies +// 2) KT-57300 K2: subclass of MutableCollection with primitive element type has methods with boxed type +// (`containsValue(Ljava/lang/Double;)Z` instead of `containsValue(D)Z`) + abstract class AMapSD : AbstractMap() -abstract class AMMapSD : AbstractMutableMap() \ No newline at end of file +abstract class AMMapSD : AbstractMutableMap() diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMutableList.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMutableList.kt index dec37d43de6..b6ee90dadae 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMutableList.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMutableList.kt @@ -1,5 +1,8 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57300 K2: subclass of MutableCollection with primitive element type has methods with boxed type + abstract class AMListD : AbstractMutableList() abstract class AMListI : AbstractMutableList() diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/kt44233.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/kt44233.kt index ee8d1c784f9..a0c0d2ea5b8 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/kt44233.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/kt44233.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_K2: JVM_IR // FULL_JDK import java.util.concurrent.* @@ -11,4 +10,4 @@ class Test1 : Iterable { class Test2 : Iterable { private val received = Array(0) { "" } override fun iterator() = received.iterator() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMapImplementations.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMapImplementations.kt index 4c1a8f832e0..8c94d68b839 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMapImplementations.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMapImplementations.kt @@ -1,6 +1,9 @@ // Ensure the proper collection stubs are added, in // particular *not* when specialized implementations are provided. +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + class MyMap : Map { class MySet : Set { @@ -20,4 +23,4 @@ class MyMap : Map { override fun containsValue(value: V): Boolean = TODO() override fun get(key: K): V = TODO() override fun isEmpty(): Boolean = TODO() -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/observableMutableMap.kt b/compiler/testData/codegen/bytecodeListing/collectionStubs/observableMutableMap.kt index cbf96e95f27..93ac78a1707 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/observableMutableMap.kt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/observableMutableMap.kt @@ -1,5 +1,8 @@ // See KT-42033 +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + interface ObservableMap : Map abstract class ObservableMutableMap : ObservableMap { @@ -9,4 +12,4 @@ abstract class ObservableMutableMap : ObservableMap { fun putAll(from: Map) { } -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/contextReceivers/class.kt b/compiler/testData/codegen/bytecodeListing/contextReceivers/class.kt index 55b8f853ce3..3ee752af74a 100644 --- a/compiler/testData/codegen/bytecodeListing/contextReceivers/class.kt +++ b/compiler/testData/codegen/bytecodeListing/contextReceivers/class.kt @@ -1,7 +1,5 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K2: JVM_IR -// IGNORE_BACKEND: JVM class Outer { val x: Int = 1 @@ -16,4 +14,4 @@ fun f(outer: Outer) { with(outer) { Inner(3) } -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/canvas.kt b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/canvas.kt index 8ff4525fff6..67b3f280e47 100644 --- a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/canvas.kt +++ b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/canvas.kt @@ -1,7 +1,5 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K2: JVM_IR -// IGNORE_BACKEND: JVM interface Canvas { val suffix: String @@ -19,4 +17,4 @@ class Circle : Shape { object MyCanvas : Canvas { override val suffix = "" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/compareTo.kt b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/compareTo.kt index c96e0494573..f79a377f43f 100644 --- a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/compareTo.kt +++ b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/compareTo.kt @@ -1,7 +1,5 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K2: JVM_IR -// IGNORE_BACKEND: JVM data class Pair(val first: A, val second: B) @@ -9,4 +7,4 @@ context(Comparator) infix operator fun T.compareTo(other: T) = compare(this, other) context(Comparator) -val Pair.min get() = if (first < second) first else second \ No newline at end of file +val Pair.min get() = if (first < second) first else second diff --git a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/dp.kt b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/dp.kt index 3ba18876c0a..9fa5c3ef88c 100644 --- a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/dp.kt +++ b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/dp.kt @@ -1,10 +1,8 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K2: JVM_IR -// IGNORE_BACKEND: JVM class View { val coefficient = 42 } -context(View) val Int.dp get() = coefficient * this \ No newline at end of file +context(View) val Int.dp get() = coefficient * this diff --git a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.kt b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.kt index a13c57f65e2..ae1b55fa4db 100644 --- a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.kt +++ b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/functionalType.kt @@ -1,7 +1,5 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K2: JVM_IR -// IGNORE_BACKEND: JVM class Param class O { @@ -12,4 +10,4 @@ class K { } context(O) -fun K.f(g: context(O) K.(Param) -> T) = g(this@O, this@K, Param()) \ No newline at end of file +fun K.f(g: context(O) K.(Param) -> T) = g(this@O, this@K, Param()) diff --git a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/monoidSum.kt b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/monoidSum.kt index bd9872ffb6f..ab5491d7852 100644 --- a/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/monoidSum.kt +++ b/compiler/testData/codegen/bytecodeListing/contextReceivers/fromKEEP/monoidSum.kt @@ -1,7 +1,5 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K2: JVM_IR -// IGNORE_BACKEND: JVM // WITH_STDLIB interface Semigroup { @@ -21,4 +19,4 @@ object StringMonoid : Monoid { } context(Monoid) -fun List.sum(): T = fold(unit) { acc, e -> acc.combine(e) } \ No newline at end of file +fun List.sum(): T = fold(unit) { acc, e -> acc.combine(e) } diff --git a/compiler/testData/codegen/bytecodeListing/contextReceivers/function.kt b/compiler/testData/codegen/bytecodeListing/contextReceivers/function.kt index b937cd4d8b9..df21db03b9e 100644 --- a/compiler/testData/codegen/bytecodeListing/contextReceivers/function.kt +++ b/compiler/testData/codegen/bytecodeListing/contextReceivers/function.kt @@ -1,7 +1,5 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K2: JVM_IR -// IGNORE_BACKEND: JVM class C { val c = 42 @@ -16,4 +14,4 @@ fun bar(c: C) { with(c) { foo() } -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/contextReceivers/property.kt b/compiler/testData/codegen/bytecodeListing/contextReceivers/property.kt index f67519a7b66..3a79c8dfaa7 100644 --- a/compiler/testData/codegen/bytecodeListing/contextReceivers/property.kt +++ b/compiler/testData/codegen/bytecodeListing/contextReceivers/property.kt @@ -1,7 +1,5 @@ // !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K2: JVM_IR -// IGNORE_BACKEND: JVM interface A { fun a(): Int @@ -11,4 +9,4 @@ interface B { } context(A, B) -val c get() = a() + b() \ No newline at end of file +val c get() = a() + b() diff --git a/compiler/testData/codegen/bytecodeListing/coroutines/suspendConversion.kt b/compiler/testData/codegen/bytecodeListing/coroutines/suspendConversion.kt index d168d99491e..c5866d14193 100644 --- a/compiler/testData/codegen/bytecodeListing/coroutines/suspendConversion.kt +++ b/compiler/testData/codegen/bytecodeListing/coroutines/suspendConversion.kt @@ -1,5 +1,8 @@ // !LANGUAGE: +SuspendConversion +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57244 K2: slightly different naming scheme for suspend conversion adapters + fun myApply(f: suspend () -> Unit) {} fun test(f: () -> Unit) { diff --git a/compiler/testData/codegen/bytecodeListing/deprecated/deprecatedEnumEntryFields.kt b/compiler/testData/codegen/bytecodeListing/deprecated/deprecatedEnumEntryFields.kt index 57c96eddd6e..a200b54aa67 100644 --- a/compiler/testData/codegen/bytecodeListing/deprecated/deprecatedEnumEntryFields.kt +++ b/compiler/testData/codegen/bytecodeListing/deprecated/deprecatedEnumEntryFields.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57216 K2: non-trivial enum declaration does not have ACC_FINAL in the bytecode enum class Test { @Deprecated("") ENTRY1, diff --git a/compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt b/compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt index 6154d4ce155..89f7a322be3 100644 --- a/compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt +++ b/compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57228 K2: annotations for interface member properties implemented by delegation are copied + interface IFoo { @Deprecated("") val prop: String get() = "" @@ -24,4 +27,4 @@ class ExplicitOverride : IFoo { class ExplicitOverride2 : IFoo2 { override val prop: String get() = "" override val String.extProp: String get() = "" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/enum.kt b/compiler/testData/codegen/bytecodeListing/enum.kt index a193aa6cfd4..a933c98ab47 100644 --- a/compiler/testData/codegen/bytecodeListing/enum.kt +++ b/compiler/testData/codegen/bytecodeListing/enum.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57216 K2: non-trivial enum declaration does not have ACC_FINAL in the bytecode + enum class SimpleEnum { A, B, C } @@ -18,4 +21,4 @@ annotation class Ann enum class WithAnnotations { @Ann A, @Ann B -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/enumEntries.kt b/compiler/testData/codegen/bytecodeListing/enumEntries.kt index a1f7de90484..aa377ca30be 100644 --- a/compiler/testData/codegen/bytecodeListing/enumEntries.kt +++ b/compiler/testData/codegen/bytecodeListing/enumEntries.kt @@ -3,6 +3,9 @@ // FULL_JDK // WITH_STDLIB +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57216 K2: non-trivial enum declaration does not have ACC_FINAL in the bytecode + enum class SimpleEnum { A, B, C } diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/annotationGetters.kt b/compiler/testData/codegen/bytecodeListing/inlineClasses/annotationGetters.kt index c38afd884bb..fdc5f701025 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/annotationGetters.kt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/annotationGetters.kt @@ -1,6 +1,9 @@ // !LANGUAGE: +InlineClasses // WITH_STDLIB +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57211 K2: incorrect "error: an annotation argument must be a compile-time constant" on unsigned array in annotation argument + annotation class Ann( val u: UInt, val uba: UByteArray, @@ -16,4 +19,4 @@ annotation class Ann( [1u, 1u], ulongArrayOf(1u, 1u) ) -fun foo() {} \ No newline at end of file +fun foo() {} diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassTypeParametersInConstructor.kt b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassTypeParametersInConstructor.kt index c8f0b7ffcba..a0e59d3f76d 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassTypeParametersInConstructor.kt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassTypeParametersInConstructor.kt @@ -1,4 +1,6 @@ // !LANGUAGE: +InlineClasses +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57216 K2: non-trivial enum declaration does not have ACC_FINAL in the bytecode inline class Z(val x: Int) @@ -23,4 +25,4 @@ enum class TestEnum(val z: Z) { class TestInner { inner class Inner(val z: Z) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/map.kt b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/map.kt index 94045fd33a5..d1ccba730d4 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/map.kt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/map.kt @@ -1,5 +1,9 @@ // IGNORE_ANNOTATIONS +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies +// (in this case, it's `getOrDefault-impl` because of inline class mangling, and then `remove` is unmangled for some reason) + inline class InlineMap(private val map: Map) : Map { override val entries: Set> get() = map.entries override val keys: Set get() = map.keys @@ -10,4 +14,3 @@ inline class InlineMap(private val map: Map) : Map { override fun get(key: K): V? = map[key] override fun isEmpty(): Boolean = map.isEmpty() } - diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMap.kt b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMap.kt index a3fa6197dcc..ba5a86f627e 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMap.kt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMap.kt @@ -1,5 +1,9 @@ // IGNORE_ANNOTATIONS +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies +// (in this case, it's `remove-impl`/`getOrDefault-impl` because of inline class mangling) + inline class InlineMutableMap(private val mmap: MutableMap) : MutableMap { override val size: Int get() = mmap.size override fun containsKey(key: K): Boolean = mmap.containsKey(key) @@ -14,4 +18,3 @@ inline class InlineMutableMap(private val mmap: MutableMap) : Mutabl override fun putAll(from: Map) { mmap.putAll(from) } override fun remove(key: K): V? = mmap.remove(key) } - diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/map.kt b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/map.kt index c02a46530f3..3e0ece461eb 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/map.kt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/map.kt @@ -1,5 +1,9 @@ // IGNORE_ANNOTATIONS +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies +// (in this case, it's `getOrDefault-h8vw2VU` because of inline class mangling, and then `remove` is unmangled for some reason) + inline class IK(val x: Int) inline class IV(val x: Double) @@ -13,4 +17,3 @@ inline class InlineMap(private val map: Map) : Map { override fun get(key: IK): IV? = map[key] override fun isEmpty(): Boolean = map.isEmpty() } - diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMap.kt b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMap.kt index 92e4ec046bc..319ea71c594 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMap.kt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMap.kt @@ -1,5 +1,9 @@ // IGNORE_ANNOTATIONS +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies +// (in this case, it's `remove-YEowaJk`/`getOrDefault-h8vw2VU` because of inline class mangling) + inline class IK(val x: Int) inline class IV(val x: Double) @@ -17,4 +21,3 @@ inline class InlineMutableMap(private val mmap: MutableMap) : MutableMap override fun putAll(from: Map) { mmap.putAll(from) } override fun remove(key: IK): IV? = mmap.remove(key) } - diff --git a/compiler/testData/codegen/bytecodeListing/kt45934.kt b/compiler/testData/codegen/bytecodeListing/kt45934.kt index f9496acabb8..857a69584b2 100644 --- a/compiler/testData/codegen/bytecodeListing/kt45934.kt +++ b/compiler/testData/codegen/bytecodeListing/kt45934.kt @@ -1,3 +1,8 @@ +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: delegated implementation for `foo` is generated in `C`, which makes this code execute fine at runtime. +// For K1, invoking `C.foo` leads to AbstractMethodError, see KT-46120. +// Probably there should be a frontend error. (But if not, then K2 is correct.) + // FILE: kt45934.kt class C(client: J) : I by client diff --git a/compiler/testData/codegen/bytecodeListing/multiplatform/optionalExpectation.kt b/compiler/testData/codegen/bytecodeListing/multiplatform/optionalExpectation.kt index 721c3ad54d9..6c502a0e33d 100644 --- a/compiler/testData/codegen/bytecodeListing/multiplatform/optionalExpectation.kt +++ b/compiler/testData/codegen/bytecodeListing/multiplatform/optionalExpectation.kt @@ -3,6 +3,9 @@ // TARGET_BACKEND: JVM // WITH_STDLIB +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: K2 incorrectly generates Anno.class, need to investigate after KT-57243 is fixed. + @file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE") // TODO: support common sources in the test infrastructure @OptionalExpectation diff --git a/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.fir.txt b/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.fir.txt new file mode 100644 index 00000000000..d46d53b9512 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.fir.txt @@ -0,0 +1,51 @@ +@kotlin.Metadata +public interface A { + // source: 'nonApproxToValidSupertype.kt' +} + +@kotlin.Metadata +public interface B { + // source: 'nonApproxToValidSupertype.kt' +} + +@kotlin.Metadata +public final class G { + // source: 'nonApproxToValidSupertype.kt' + public method (): void + public final method check(@org.jetbrains.annotations.NotNull p0: IFoo): void +} + +@kotlin.Metadata +public interface IFoo { + // source: 'nonApproxToValidSupertype.kt' + public abstract method accept(@org.jetbrains.annotations.NotNull p0: X): void +} + +@kotlin.Metadata +final class NonApproxToValidSupertypeKt$test$1 { + // source: 'nonApproxToValidSupertype.kt' + enclosing method NonApproxToValidSupertypeKt.test()V + public final static field INSTANCE: NonApproxToValidSupertypeKt$test$1 + inner (anonymous) class NonApproxToValidSupertypeKt$test$1 + static method (): void + method (): void + public final method accept(@org.jetbrains.annotations.NotNull p0: X): void +} + +@kotlin.Metadata +public final class NonApproxToValidSupertypeKt { + // source: 'nonApproxToValidSupertype.kt' + inner (anonymous) class NonApproxToValidSupertypeKt$test$1 + public final static method sel(p0: java.lang.Object, p1: java.lang.Object): java.lang.Object + public final static method test(): void +} + +@kotlin.Metadata +public interface X { + // source: 'nonApproxToValidSupertype.kt' +} + +@kotlin.Metadata +public interface Z { + // source: 'nonApproxToValidSupertype.kt' +} diff --git a/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.kt b/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.kt index 70a5dceba63..276330eb411 100644 --- a/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.kt +++ b/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.kt @@ -1,3 +1,6 @@ +// K1 generates `accept(Object)` and bridge `accept(X)` in the SAM adapter. +// K2 generates `accept(X)` only. It is fine though, because if `check`'s parameter is passed where Z is expected, checkcast is added. + interface X interface Z @@ -17,4 +20,4 @@ class G where T: X, T: Z { fun test() { val g = sel(G(), G()) // g: G g.check {} // (*) target SAM type: IFoo<{ X & Z }> (TODO: report a compile time error for this case) -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.fir.txt b/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.fir.txt new file mode 100644 index 00000000000..0a54363d411 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.fir.txt @@ -0,0 +1,62 @@ +@kotlin.Metadata +public interface A { + // source: 'nonApproxToValidSupertype2.kt' +} + +@kotlin.Metadata +public interface B { + // source: 'nonApproxToValidSupertype2.kt' +} + +@kotlin.Metadata +public final class G { + // source: 'nonApproxToValidSupertype2.kt' + public method (): void + public final method check(@org.jetbrains.annotations.NotNull p0: IFoo): void +} + +@kotlin.Metadata +public interface IFoo { + // source: 'nonApproxToValidSupertype2.kt' + public abstract method accept(@org.jetbrains.annotations.NotNull p0: U): void +} + +@kotlin.Metadata +final class NonApproxToValidSupertype2Kt$test$1 { + // source: 'nonApproxToValidSupertype2.kt' + enclosing method NonApproxToValidSupertype2Kt.test()V + public final static field INSTANCE: NonApproxToValidSupertype2Kt$test$1 + inner (anonymous) class NonApproxToValidSupertype2Kt$test$1 + static method (): void + method (): void + public final method accept(@org.jetbrains.annotations.NotNull p0: X): void + public synthetic bridge method accept(p0: U): void +} + +@kotlin.Metadata +public final class NonApproxToValidSupertype2Kt { + // source: 'nonApproxToValidSupertype2.kt' + inner (anonymous) class NonApproxToValidSupertype2Kt$test$1 + public final static method sel(p0: java.lang.Object, p1: java.lang.Object): java.lang.Object + public final static method test(): void +} + +@kotlin.Metadata +public interface U { + // source: 'nonApproxToValidSupertype2.kt' +} + +@kotlin.Metadata +public interface W { + // source: 'nonApproxToValidSupertype2.kt' +} + +@kotlin.Metadata +public interface X { + // source: 'nonApproxToValidSupertype2.kt' +} + +@kotlin.Metadata +public interface Z { + // source: 'nonApproxToValidSupertype2.kt' +} diff --git a/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.kt b/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.kt index def8396ddb1..372e6ebd0b1 100644 --- a/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.kt +++ b/compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.kt @@ -1,3 +1,6 @@ +// K1 generates `accept(Object)` and bridge `accept(U)` in the SAM adapter. +// K2 generates `accept(X)` and bridge `accept(U)`. It is fine though, because if `check`'s parameter is passed where Z or W is expected, checkcast is added. + interface X: U, W interface Z: U, W @@ -20,4 +23,4 @@ class G where T: U, T: W { fun test() { val g = sel(G(), G()) g.check {} // TODO: report a compile time error for this case -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_4.kt b/compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_4.kt index 070b143bfb4..f2781dc8b7e 100644 --- a/compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_4.kt +++ b/compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_4.kt @@ -1,5 +1,8 @@ // !LANGUAGE: -AllowSealedInheritorsInDifferentFilesOfSamePackage +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: don't support legacy feature + sealed class TestNoSubclasses(val x: Int) sealed class TestSubclassAfter(val x: Int) @@ -11,4 +14,4 @@ sealed class TestSubclassAfterAllDefaults(val x: Int = 0) class X3 : TestSubclassAfterAllDefaults() class X4: TestSubclassBefore(1) -sealed class TestSubclassBefore(val x: Int) \ No newline at end of file +sealed class TestSubclassBefore(val x: Int) diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/kt41123.kt b/compiler/testData/codegen/bytecodeListing/specialBridges/kt41123.kt index 3be9464c34b..2f446f825b7 100644 --- a/compiler/testData/codegen/bytecodeListing/specialBridges/kt41123.kt +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/kt41123.kt @@ -1,5 +1,8 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + open class A : HashMap() -class B : A() \ No newline at end of file +class B : A() diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/kt48945.kt b/compiler/testData/codegen/bytecodeListing/specialBridges/kt48945.kt index d88eaee8305..56eadfe0d34 100644 --- a/compiler/testData/codegen/bytecodeListing/specialBridges/kt48945.kt +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/kt48945.kt @@ -1,6 +1,9 @@ // TARGET_BACKEND: JVM // FULL_JDK +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57301 K2: `getOrDefault` and bridges are not generated for certain Map subclasses + // FILE: kt48945.kt interface MSS : Map interface GM : Map diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsMap.kt b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsMap.kt index 42f1cc16ef7..cd593436bbe 100644 --- a/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsMap.kt +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsMap.kt @@ -1,5 +1,8 @@ // WITH_SIGNATURES +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57268 K2: extra methods `remove` and/or `getOrDefault` are generated for Map subclasses with JDK 1.6 in dependencies + interface MapN : Map abstract class MapImpl : Map { @@ -12,4 +15,4 @@ abstract class MapSImpl : Map { abstract class MapNImpl : MapN { override fun containsKey(key: A): Boolean = false -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.kt b/compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.kt index a8ce4efac64..a93fc78aeab 100644 --- a/compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.kt +++ b/compiler/testData/codegen/bytecodeListing/specialBridges/specialBridgeForGet.kt @@ -2,6 +2,9 @@ // WITH_STDLIB // FULL_JDK +// IGNORE_BACKEND_K2: JVM_IR +// FIR status: KT-57301 K2: `getOrDefault` and bridges are not generated for certain Map subclasses + abstract class AMap1(private val m: Map) : Map by m interface Value2 diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeListingTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeListingTestGenerated.java index 21c69427ef1..454f0fb4e91 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeListingTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeListingTestGenerated.java @@ -469,6 +469,12 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/nonRepeatedAnnotationWithItsContainer.kt"); } + @Test + @TestMetadata("propertyGetterSeveralUseSiteTargets.kt") + public void testPropertyGetterSeveralUseSiteTargets() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/propertyGetterSeveralUseSiteTargets.kt"); + } + @Test @TestMetadata("propertyGetterUseSiteTarget.kt") public void testPropertyGetterUseSiteTarget() throws Exception { diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt index c67c9c5095b..3cac9b9efa8 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt @@ -313,6 +313,14 @@ fun generateJUnit5CompilerTests(args: Array) { testClass { model("codegen/boxInline") } + + testClass { + model("codegen/bytecodeListing") + } + + testClass { + model("codegen/bytecodeListing") + } } testGroup(testsRoot = "compiler/fir/fir2ir/tests-gen", testDataRoot = "compiler/fir/fir2ir/testData") {