JVM_IR: add test for serialization of raw types

This commit is contained in:
Georgy Bronnikov
2021-08-07 17:30:17 +03:00
committed by TeamCityServer
parent 3b8cb4b00d
commit 1d913a6bf0
6 changed files with 46 additions and 0 deletions
@@ -4109,6 +4109,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
public void testIndices() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
}
@Test
@TestMetadata("rawType.kt")
public void testRawType() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/rawType.kt");
}
}
@Nested
@@ -0,0 +1,16 @@
// TARGET_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: UseRawType.java
import java.util.List;
public class UseRawType {
static public List useList(List arg) {
return arg;
}
}
// FILE: use.kt
inline fun callRawType() = UseRawType.useList(listOf("OK")) as List<String>
// FILE: box.kt
fun box() = callRawType()[0]
@@ -4109,6 +4109,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
public void testIndices() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
}
@Test
@TestMetadata("rawType.kt")
public void testRawType() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/rawType.kt");
}
}
@Nested
@@ -4109,6 +4109,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
public void testIndices() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
}
@Test
@TestMetadata("rawType.kt")
public void testRawType() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/rawType.kt");
}
}
@Nested
@@ -4109,6 +4109,12 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
public void testIndices() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
}
@Test
@TestMetadata("rawType.kt")
public void testRawType() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/rawType.kt");
}
}
@Nested
@@ -4109,6 +4109,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
public void testIndices() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/indices.kt");
}
@Test
@TestMetadata("rawType.kt")
public void testRawType() throws Exception {
runTest("compiler/testData/codegen/boxInline/signatureMangling/rawType.kt");
}
}
@Nested