Fix code generation for Array<C> element access where C is inline class
This commit is contained in:
+28
@@ -590,6 +590,34 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/arrays/varargsWithJava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/arraysOfInlineClass")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ArraysOfInlineClass extends AbstractBlackBoxCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("accessArrayOfInlineClass.kt")
|
||||
public void testAccessArrayOfInlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysOfInlineClass/accessArrayOfInlineClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessArrayOfUnsigned.kt")
|
||||
public void testAccessArrayOfUnsigned() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysOfInlineClass/accessArrayOfUnsigned.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInArraysOfInlineClass() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/arrays/arraysOfInlineClass"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("arrayOfInlineClassOfArrayOfInlineClass.kt")
|
||||
public void testArrayOfInlineClassOfArrayOfInlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/arraysOfInlineClass/arrayOfInlineClassOfArrayOfInlineClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/multiDecl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user