[stdlib] Enable link-via-signatures to workaround KT-62798
This commit is contained in:
committed by
Space Team
parent
98f23c0fba
commit
c2e28149e6
+6
@@ -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() {
|
||||
|
||||
+6
@@ -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
|
||||
+6
@@ -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() {
|
||||
|
||||
+6
@@ -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() {
|
||||
|
||||
+6
@@ -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() {
|
||||
|
||||
@@ -118,6 +118,7 @@ kotlin {
|
||||
"-Xuse-14-inline-classes-mangling-scheme",
|
||||
"-Xbuiltins-from-sources",
|
||||
"-Xno-new-java-annotation-targets",
|
||||
"-Xlink-via-signatures",
|
||||
diagnosticNamesArg,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user