JVM box tests for KT-24193

This commit is contained in:
Dmitry Petrov
2020-12-23 15:35:22 +03:00
committed by TeamCityServer
parent a8d848ccbd
commit ad8bed078f
5 changed files with 33 additions and 0 deletions
@@ -1504,6 +1504,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/bridges/kt1959.kt");
}
@TestMetadata("kt24193.kt")
public void testKt24193() throws Exception {
runTest("compiler/testData/codegen/box/bridges/kt24193.kt");
}
@TestMetadata("kt2498.kt")
public void testKt2498() throws Exception {
runTest("compiler/testData/codegen/box/bridges/kt2498.kt");
+13
View File
@@ -0,0 +1,13 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM
interface Foo : Cloneable
class Bar(val test: String) : Foo {
fun createClone(): Bar {
return this.clone() as Bar
}
}
fun box() =
Bar("OK").createClone().test
@@ -1504,6 +1504,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/bridges/kt1959.kt");
}
@TestMetadata("kt24193.kt")
public void testKt24193() throws Exception {
runTest("compiler/testData/codegen/box/bridges/kt24193.kt");
}
@TestMetadata("kt2498.kt")
public void testKt2498() throws Exception {
runTest("compiler/testData/codegen/box/bridges/kt2498.kt");
@@ -1371,6 +1371,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Bridges extends AbstractLightAnalysisModeTest {
@TestMetadata("kt24193.kt")
public void ignoreKt24193() throws Exception {
runTest("compiler/testData/codegen/box/bridges/kt24193.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@@ -1504,6 +1504,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/bridges/kt1959.kt");
}
@TestMetadata("kt24193.kt")
public void testKt24193() throws Exception {
runTest("compiler/testData/codegen/box/bridges/kt24193.kt");
}
@TestMetadata("kt2498.kt")
public void testKt2498() throws Exception {
runTest("compiler/testData/codegen/box/bridges/kt2498.kt");