JVM_IR. Proper lower toArray functions

This commit is contained in:
Mikhael Bogdanov
2019-11-18 16:49:12 +01:00
parent 6a18ef1417
commit 742c3a228a
6 changed files with 259 additions and 138 deletions
@@ -4061,6 +4061,24 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
}
}
@TestMetadata("compiler/testData/codegen/bytecodeText/toArray")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ToArray extends AbstractBytecodeTextTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInToArray() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/toArray"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}
@TestMetadata("noAccessorForToArray.kt")
public void testNoAccessorForToArray() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/toArray/noAccessorForToArray.kt");
}
}
@TestMetadata("compiler/testData/codegen/bytecodeText/unsignedTypes")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)