JVM_IR fix cast to non-null primitive type (FIR bootstrap issue)

This commit is contained in:
Dmitry Petrov
2022-01-13 11:03:18 +03:00
committed by Space
parent 2ba0a7b40f
commit d184babda6
11 changed files with 111 additions and 1 deletions
@@ -13941,6 +13941,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@Test
@TestMetadata("anyCastToPrimitiveCompareTo1.kt")
public void testAnyCastToPrimitiveCompareTo1() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/anyCastToPrimitiveCompareTo1.kt");
}
@Test
@TestMetadata("anyCastToPrimitiveCompareTo2.kt")
public void testAnyCastToPrimitiveCompareTo2() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/anyCastToPrimitiveCompareTo2.kt");
}
@Test
@TestMetadata("anyToReal.kt")
public void testAnyToReal() throws Exception {
@@ -13983,6 +13983,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("anyCastToPrimitiveCompareTo1.kt")
public void testAnyCastToPrimitiveCompareTo1() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/anyCastToPrimitiveCompareTo1.kt");
}
@Test
@TestMetadata("anyCastToPrimitiveCompareTo2.kt")
public void testAnyCastToPrimitiveCompareTo2() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/anyCastToPrimitiveCompareTo2.kt");
}
@Test
@TestMetadata("anyToReal.kt")
public void testAnyToReal() throws Exception {
@@ -11710,6 +11710,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ieee754"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("anyCastToPrimitiveCompareTo1.kt")
public void testAnyCastToPrimitiveCompareTo1() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/anyCastToPrimitiveCompareTo1.kt");
}
@TestMetadata("anyCastToPrimitiveCompareTo2.kt")
public void testAnyCastToPrimitiveCompareTo2() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/anyCastToPrimitiveCompareTo2.kt");
}
@TestMetadata("anyToReal.kt")
public void testAnyToReal() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/anyToReal.kt");