diff --git a/compiler/testData/codegen/boxInline/smap/multiFileFacade.kt b/compiler/testData/codegen/boxInline/smap/multiFileFacade.kt new file mode 100644 index 00000000000..ae3a53db870 --- /dev/null +++ b/compiler/testData/codegen/boxInline/smap/multiFileFacade.kt @@ -0,0 +1,57 @@ +// TARGET_BACKEND: JVM +// WITH_RUNTIME +// FILE: 1.kt + +@file:JvmName("Facade") +@file:JvmMultifileClass + +inline fun foo(l: () -> String): String = l() + +inline fun foo2(l: () -> String): String = foo(l) + + +// FILE: 2.kt + +fun box(): String = foo { "OK" } + +// FILE: 1.smap +SMAP +1.kt +Kotlin +*S Kotlin +*F ++ 1 1.kt +Facade___1Kt +*L +1#1,13:1 +8#1:14 +*E +*S KotlinDebug +*F ++ 1 1.kt +Facade___1Kt +*L +10#1:14 +*E + +// FILE: 2.smap +SMAP +2.kt +Kotlin +*S Kotlin +*F ++ 1 2.kt +_2Kt ++ 2 1.kt +Facade___1Kt +*L +1#1,5:1 +8#2:6 +*E +*S KotlinDebug +*F ++ 1 2.kt +_2Kt +*L +3#1:6 +*E \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxInlineCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxInlineCodegenTestGenerated.java index 2c952fa4ee0..2de2205abd6 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxInlineCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxInlineCodegenTestGenerated.java @@ -3315,6 +3315,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); } + @TestMetadata("multiFileFacade.kt") + public void testMultiFileFacade() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); + } + @TestMetadata("oneFile.kt") public void testOneFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java index 90b1ddb3e3a..0010462f2cb 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java @@ -3315,6 +3315,11 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); } + @TestMetadata("multiFileFacade.kt") + public void testMultiFileFacade() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); + } + @TestMetadata("oneFile.kt") public void testOneFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxInlineCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxInlineCodegenTestGenerated.java index 569b6c76bfd..52d0b4a940b 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxInlineCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxInlineCodegenTestGenerated.java @@ -3315,6 +3315,11 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); } + @TestMetadata("multiFileFacade.kt") + public void testMultiFileFacade() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); + } + @TestMetadata("oneFile.kt") public void testOneFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrCompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrCompileKotlinAgainstInlineKotlinTestGenerated.java index e8427875132..c2e62fe49eb 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrCompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrCompileKotlinAgainstInlineKotlinTestGenerated.java @@ -3315,6 +3315,11 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); } + @TestMetadata("multiFileFacade.kt") + public void testMultiFileFacade() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); + } + @TestMetadata("oneFile.kt") public void testOneFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt");