diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeTextTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeTextTestGenerated.java index cf015b1dbd2..804b1ce2488 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeTextTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBytecodeTextTestGenerated.java @@ -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() { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeTextTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeTextTestGenerated.java index 177c723ceff..56eba1d3747 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeTextTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBytecodeTextTestGenerated.java @@ -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() { diff --git a/compiler/testData/codegen/bytecodeText/forLoop/forInRangeInlinedFromStdlib.kt b/compiler/testData/codegen/bytecodeText/forLoop/forInRangeInlinedFromStdlib.kt new file mode 100644 index 00000000000..3df1a7a0006 --- /dev/null +++ b/compiler/testData/codegen/bytecodeText/forLoop/forInRangeInlinedFromStdlib.kt @@ -0,0 +1,8 @@ +// WITH_STDLIB + +fun f(array: Array): Int { + return array.maxBy { -it } +} + +// 0 IntRange +// 0 iterator \ No newline at end of file diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java index 0e3f1e2c3ad..7e84ac15533 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestRestGenerated.java @@ -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() { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BytecodeTextTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BytecodeTextTestGenerated.java index 8e6f484f244..127ef16dc01 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BytecodeTextTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BytecodeTextTestGenerated.java @@ -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() { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeTextTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeTextTestGenerated.java index ebcf8e62ab2..aefd385895e 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeTextTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeTextTestGenerated.java @@ -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() { diff --git a/libraries/stdlib/build.gradle.kts b/libraries/stdlib/build.gradle.kts index 7040c442385..99ab94020fd 100644 --- a/libraries/stdlib/build.gradle.kts +++ b/libraries/stdlib/build.gradle.kts @@ -118,6 +118,7 @@ kotlin { "-Xuse-14-inline-classes-mangling-scheme", "-Xbuiltins-from-sources", "-Xno-new-java-annotation-targets", + "-Xlink-via-signatures", diagnosticNamesArg, ) )