[stdlib] Enable link-via-signatures to workaround KT-62798

This commit is contained in:
Ilya Gorbunov
2024-02-14 19:00:54 +01:00
committed by Space Team
parent 98f23c0fba
commit c2e28149e6
7 changed files with 39 additions and 0 deletions
@@ -2434,6 +2434,12 @@ public class FirLightTreeBytecodeTextTestGenerated extends AbstractFirLightTreeB
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInPrimitiveArray.kt");
}
@Test
@TestMetadata("forInRangeInlinedFromStdlib.kt")
public void testForInRangeInlinedFromStdlib() {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeInlinedFromStdlib.kt");
}
@Test
@TestMetadata("forInRangeSpecializedToUntil.kt")
public void testForInRangeSpecializedToUntil() {
@@ -2434,6 +2434,12 @@ public class FirPsiBytecodeTextTestGenerated extends AbstractFirPsiBytecodeTextT
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInPrimitiveArray.kt");
}
@Test
@TestMetadata("forInRangeInlinedFromStdlib.kt")
public void testForInRangeInlinedFromStdlib() {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeInlinedFromStdlib.kt");
}
@Test
@TestMetadata("forInRangeSpecializedToUntil.kt")
public void testForInRangeSpecializedToUntil() {
@@ -0,0 +1,8 @@
// WITH_STDLIB
fun f(array: Array<Int>): Int {
return array.maxBy { -it }
}
// 0 IntRange
// 0 iterator
@@ -9279,6 +9279,12 @@ public class JvmAbiConsistencyTestRestGenerated extends AbstractJvmAbiConsistenc
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInPrimitiveArray.kt");
}
@Test
@TestMetadata("forInRangeInlinedFromStdlib.kt")
public void testForInRangeInlinedFromStdlib() {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeInlinedFromStdlib.kt");
}
@Test
@TestMetadata("forInRangeSpecializedToUntil.kt")
public void testForInRangeSpecializedToUntil() {
@@ -2326,6 +2326,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInPrimitiveArray.kt");
}
@Test
@TestMetadata("forInRangeInlinedFromStdlib.kt")
public void testForInRangeInlinedFromStdlib() {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeInlinedFromStdlib.kt");
}
@Test
@TestMetadata("forInRangeSpecializedToUntil.kt")
public void testForInRangeSpecializedToUntil() {
@@ -2434,6 +2434,12 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInPrimitiveArray.kt");
}
@Test
@TestMetadata("forInRangeInlinedFromStdlib.kt")
public void testForInRangeInlinedFromStdlib() {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeInlinedFromStdlib.kt");
}
@Test
@TestMetadata("forInRangeSpecializedToUntil.kt")
public void testForInRangeSpecializedToUntil() {
+1
View File
@@ -118,6 +118,7 @@ kotlin {
"-Xuse-14-inline-classes-mangling-scheme",
"-Xbuiltins-from-sources",
"-Xno-new-java-annotation-targets",
"-Xlink-via-signatures",
diagnosticNamesArg,
)
)