[K/N] Fix cast to NativePtr mis-compilation

^KT-59022
This commit is contained in:
Pavel Kunyavskiy
2023-06-07 14:06:22 +02:00
committed by Space Team
parent af05f4c201
commit 456783436c
6 changed files with 58 additions and 1 deletions
@@ -3682,6 +3682,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/casts/objectToPrimitiveWithAssertion.kt");
}
@Test
@TestMetadata("toNativePointers.kt")
public void testToNativePointers() throws Exception {
runTest("compiler/testData/codegen/box/casts/toNativePointers.kt");
}
@Test
@TestMetadata("unitAsAny.kt")
public void testUnitAsAny() throws Exception {
@@ -3760,6 +3760,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/casts/objectToPrimitiveWithAssertion.kt");
}
@Test
@TestMetadata("toNativePointers.kt")
public void testToNativePointers() throws Exception {
runTest("compiler/testData/codegen/box/casts/toNativePointers.kt");
}
@Test
@TestMetadata("unitAsAny.kt")
public void testUnitAsAny() throws Exception {
@@ -3644,6 +3644,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/casts/objectToPrimitiveWithAssertion.kt");
}
@Test
@TestMetadata("toNativePointers.kt")
public void testToNativePointers() throws Exception {
runTest("compiler/testData/codegen/box/casts/toNativePointers.kt");
}
@Test
@TestMetadata("unitAsAny.kt")
public void testUnitAsAny() throws Exception {
@@ -3683,6 +3683,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/casts/objectToPrimitiveWithAssertion.kt");
}
@Test
@TestMetadata("toNativePointers.kt")
public void testToNativePointers() throws Exception {
runTest("compiler/testData/codegen/box/casts/toNativePointers.kt");
}
@Test
@TestMetadata("unitAsAny.kt")
public void testUnitAsAny() throws Exception {