[FIR2IR] Correctly calculate offsets for implicit toLong() calls during constant evaluation

^KT-58132 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-04-24 17:38:51 +03:00
committed by Space Team
parent 4fe239375f
commit 903e969598
17 changed files with 99 additions and 2 deletions
@@ -6452,6 +6452,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/constants/kt9532.kt");
}
@Test
@TestMetadata("literalToLongConversion.kt")
public void testLiteralToLongConversion() throws Exception {
runTest("compiler/testData/codegen/box/constants/literalToLongConversion.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {
@@ -6598,6 +6598,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/constants/kt9532.kt");
}
@Test
@TestMetadata("literalToLongConversion.kt")
public void testLiteralToLongConversion() throws Exception {
runTest("compiler/testData/codegen/box/constants/literalToLongConversion.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {
@@ -6379,6 +6379,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/constants/kt9532.kt");
}
@Test
@TestMetadata("literalToLongConversion.kt")
public void testLiteralToLongConversion() throws Exception {
runTest("compiler/testData/codegen/box/constants/literalToLongConversion.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {
@@ -6525,6 +6525,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/constants/kt9532.kt");
}
@Test
@TestMetadata("literalToLongConversion.kt")
public void testLiteralToLongConversion() throws Exception {
runTest("compiler/testData/codegen/box/constants/literalToLongConversion.kt");
}
@Test
@TestMetadata("long.kt")
public void testLong() throws Exception {