JVM box tests for KT-24193
This commit is contained in:
committed by
TeamCityServer
parent
a8d848ccbd
commit
ad8bed078f
Generated
+5
@@ -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");
|
||||
|
||||
@@ -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
|
||||
+5
@@ -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");
|
||||
|
||||
+5
@@ -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);
|
||||
}
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user