Add test for IR serialization

This commit is contained in:
Georgy Bronnikov
2021-12-17 14:11:45 +03:00
committed by TeamCityServer
parent f0fb0cbefe
commit d2738c02cc
6 changed files with 43 additions and 0 deletions
@@ -4216,6 +4216,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
}
@Test
@TestMetadata("inheritFromJava.kt")
public void testInheritFromJava() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/inheritFromJava.kt");
}
@Test
@TestMetadata("rawType.kt")
public void testRawType() throws Exception {
@@ -0,0 +1,13 @@
// TARGET_BACKEND: JVM_IR
// FILE: Base.java
public class Base {
public String ok() { return "OK"; }
}
// FILE: Derived.kt
class Derived: Base()
inline fun ok() = Derived().ok()
// FILE: box.kt
fun box() = ok()
@@ -4216,6 +4216,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
}
@Test
@TestMetadata("inheritFromJava.kt")
public void testInheritFromJava() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/inheritFromJava.kt");
}
@Test
@TestMetadata("rawType.kt")
public void testRawType() throws Exception {
@@ -4216,6 +4216,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
}
@Test
@TestMetadata("inheritFromJava.kt")
public void testInheritFromJava() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/inheritFromJava.kt");
}
@Test
@TestMetadata("rawType.kt")
public void testRawType() throws Exception {
@@ -4216,6 +4216,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
}
@Test
@TestMetadata("inheritFromJava.kt")
public void testInheritFromJava() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/inheritFromJava.kt");
}
@Test
@TestMetadata("rawType.kt")
public void testRawType() throws Exception {
@@ -4216,6 +4216,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
}
@Test
@TestMetadata("inheritFromJava.kt")
public void testInheritFromJava() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/inheritFromJava.kt");
}
@Test
@TestMetadata("rawType.kt")
public void testRawType() throws Exception {