KT-55308, KT-55769 Sort InnerClasses entries. Add DONT_SORT_DECLARATIONS directive
This commit is contained in:
committed by
Space Team
parent
63a0660cc3
commit
38a56ba8e8
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+2
@@ -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)
|
||||
}
|
||||
|
||||
+5
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user