JVM KT-47851 fix redundant checkcast elimination

This commit is contained in:
Dmitry Petrov
2021-11-18 20:12:38 +03:00
committed by teamcityserver
parent 8b066fd345
commit e525e25518
12 changed files with 187 additions and 4 deletions
@@ -3489,6 +3489,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
public void testKt19246() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt19246.kt");
}
@Test
@TestMetadata("kt47851.kt")
public void testKt47851() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851.kt");
}
}
@Nested
@@ -3531,6 +3531,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
public void testKt19246() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt19246.kt");
}
@Test
@TestMetadata("kt47851.kt")
public void testKt47851() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851.kt");
}
}
@Nested
@@ -3128,6 +3128,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
public void testKt19246() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt19246.kt");
}
@TestMetadata("kt47851.kt")
public void testKt47851() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/classLiteral")