JVM_IR KT-50215 KT-50076 extra test

This commit is contained in:
Dmitry Petrov
2021-12-13 17:29:30 +03:00
committed by TeamCityServer
parent 6adcbe081e
commit e47871f98b
10 changed files with 1395 additions and 8 deletions
@@ -4868,6 +4868,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
public void testKt47851a() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851a.kt");
}
@Test
@TestMetadata("kt50215.kt")
public void testKt50215() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt50215.kt");
}
}
@Nested
@@ -0,0 +1,19 @@
// WITH_RUNTIME
class A {
fun foo(x: Int = 32) = "OK"
}
var result = "failed"
fun whoops(x: Any) {
when (x) {
is A -> result = x.foo()
else -> throw AssertionError()
}
}
fun box(): String {
whoops(A())
return result
}
@@ -4772,6 +4772,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
public void testKt47851a() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851a.kt");
}
@Test
@TestMetadata("kt50215.kt")
public void testKt50215() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt50215.kt");
}
}
@Nested
@@ -4868,6 +4868,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
public void testKt47851a() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851a.kt");
}
@Test
@TestMetadata("kt50215.kt")
public void testKt50215() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt50215.kt");
}
}
@Nested
@@ -4177,6 +4177,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
public void testKt47851a() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851a.kt");
}
@TestMetadata("kt50215.kt")
public void testKt50215() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt50215.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/classLiteral")
@@ -3542,6 +3542,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
public void testKt47851() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851.kt");
}
@Test
@TestMetadata("kt50215.kt")
public void testKt50215() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt50215.kt");
}
}
@Nested
@@ -3584,6 +3584,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
public void testKt47851() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851.kt");
}
@Test
@TestMetadata("kt50215.kt")
public void testKt50215() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt50215.kt");
}
}
@Nested
@@ -3177,6 +3177,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
public void testKt47851() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851.kt");
}
@TestMetadata("kt50215.kt")
public void testKt50215() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt50215.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/classLiteral")
+1330 -8
View File
File diff suppressed because it is too large Load Diff
@@ -3624,6 +3624,12 @@ public class NativeExtBlackBoxTestGenerated extends AbstractNativeBlackBoxTest {
public void testKt47851() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851.kt");
}
@Test
@TestMetadata("kt50215.kt")
public void testKt50215() throws Exception {
runTest("compiler/testData/codegen/box/checkcastOptimization/kt50215.kt");
}
}
@Nested