KT-55308, KT-55769 Sort InnerClasses entries. Add DONT_SORT_DECLARATIONS directive

This commit is contained in:
Pavel Mikhailovskii
2023-01-13 01:07:10 +00:00
committed by Space Team
parent 63a0660cc3
commit 38a56ba8e8
14 changed files with 432 additions and 57 deletions
@@ -211,6 +211,12 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest {
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 {
@@ -217,6 +217,12 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes
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 {
@@ -8,6 +8,7 @@ package org.jetbrains.kotlin.test.backend.handlers
import org.jetbrains.kotlin.codegen.BytecodeListingTextCollectingVisitor
import org.jetbrains.kotlin.test.directives.CodegenTestDirectives
import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.CHECK_BYTECODE_LISTING
import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.DONT_SORT_DECLARATIONS
import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.IGNORE_ANNOTATIONS
import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.WITH_SIGNATURES
import org.jetbrains.kotlin.test.directives.FirDiagnosticsDirectives.FIR_IDENTICAL
@@ -36,6 +37,7 @@ class BytecodeListingHandler(testServices: TestServices) : JvmBinaryArtifactHand
BytecodeListingTextCollectingVisitor.Filter.ForCodegenTests,
withSignatures = WITH_SIGNATURES in module.directives,
withAnnotations = IGNORE_ANNOTATIONS !in module.directives,
sortDeclarations = DONT_SORT_DECLARATIONS !in module.directives,
)
multiModuleInfoDumper.builderForModule(module).append(dump)
}
@@ -81,6 +81,11 @@ object CodegenTestDirectives : SimpleDirectivesContainer() {
applicability = Global
)
val DONT_SORT_DECLARATIONS by directive(
description = "Do not sort declarations",
applicability = Global
)
val RUN_DEX_CHECKER by directive(
description = "Run DxChecker and D8Checker"
)