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
@@ -4859,6 +4859,18 @@ public class NativeExtBlackBoxTestGenerated extends AbstractNativeBlackBoxTest {
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");
}
@Test
@TestMetadata("kt47851a.kt")
public void testKt47851a() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851a.kt");
}
}
@Nested
@@ -7956,6 +7968,18 @@ public class NativeExtBlackBoxTestGenerated extends AbstractNativeBlackBoxTest {
runTest("compiler/testData/codegen/box/constructorCall/inlineFunInLocalClassConstructorCall.kt");
}
@Test
@TestMetadata("kt49615.kt")
public void testKt49615() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/kt49615.kt");
}
@Test
@TestMetadata("kt49615a.kt")
public void testKt49615a() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/kt49615a.kt");
}
@Test
@TestMetadata("loopInInlineFun.kt")
public void testLoopInInlineFun() throws Exception {