JVM_IR KT-40304 KT-41998 special handling for 'removeAt'

This commit is contained in:
Dmitry Petrov
2020-09-17 18:32:07 +03:00
parent 9008944860
commit ee3ada4e55
17 changed files with 1081 additions and 11 deletions
@@ -5033,6 +5033,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/collections/readOnlyMap.kt");
}
@TestMetadata("removeAtBridgeClashWithJava.kt")
public void testRemoveAtBridgeClashWithJava() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeAtBridgeClashWithJava.kt");
}
@TestMetadata("removeAtInt.kt")
public void testRemoveAtInt() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeAtInt.kt");
@@ -794,6 +794,21 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
@TestMetadata("abstractLists.kt")
public void testAbstractLists() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractLists.kt");
}
@TestMetadata("abstractListsWithJavaBase.kt")
public void testAbstractListsWithJavaBase() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractListsWithJavaBase.kt");
}
@TestMetadata("abstractMutableLists.kt")
public void testAbstractMutableLists() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableLists.kt");
}
public void testAllFilesPresentInSpecialBridges() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@@ -5033,6 +5033,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/collections/readOnlyMap.kt");
}
@TestMetadata("removeAtBridgeClashWithJava.kt")
public void testRemoveAtBridgeClashWithJava() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeAtBridgeClashWithJava.kt");
}
@TestMetadata("removeAtInt.kt")
public void testRemoveAtInt() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeAtInt.kt");
@@ -5003,6 +5003,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/collections/readOnlyMap.kt");
}
@TestMetadata("removeAtBridgeClashWithJava.kt")
public void testRemoveAtBridgeClashWithJava() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeAtBridgeClashWithJava.kt");
}
@TestMetadata("removeAtInt.kt")
public void testRemoveAtInt() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeAtInt.kt");
@@ -764,6 +764,21 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
}
@TestMetadata("abstractLists.kt")
public void testAbstractLists() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractLists.kt");
}
@TestMetadata("abstractListsWithJavaBase.kt")
public void testAbstractListsWithJavaBase() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractListsWithJavaBase.kt");
}
@TestMetadata("abstractMutableLists.kt")
public void testAbstractMutableLists() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableLists.kt");
}
public void testAllFilesPresentInSpecialBridges() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}