Minor. Add smap test for multifile facade

This commit is contained in:
Mikhail Bogdanov
2020-04-08 07:26:14 +02:00
parent 9334327bbf
commit 1772f20d48
5 changed files with 77 additions and 0 deletions
@@ -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
@@ -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");
@@ -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");
@@ -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");
@@ -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");