Minor. Add smap test for multifile facade
This commit is contained in:
@@ -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
|
||||||
+5
@@ -3315,6 +3315,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
|||||||
runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt");
|
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")
|
@TestMetadata("oneFile.kt")
|
||||||
public void testOneFile() throws Exception {
|
public void testOneFile() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt");
|
runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt");
|
||||||
|
|||||||
Generated
+5
@@ -3315,6 +3315,11 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
|||||||
runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt");
|
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")
|
@TestMetadata("oneFile.kt")
|
||||||
public void testOneFile() throws Exception {
|
public void testOneFile() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt");
|
runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt");
|
||||||
|
|||||||
+5
@@ -3315,6 +3315,11 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
|||||||
runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt");
|
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")
|
@TestMetadata("oneFile.kt")
|
||||||
public void testOneFile() throws Exception {
|
public void testOneFile() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt");
|
runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt");
|
||||||
|
|||||||
Generated
+5
@@ -3315,6 +3315,11 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
|||||||
runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt");
|
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")
|
@TestMetadata("oneFile.kt")
|
||||||
public void testOneFile() throws Exception {
|
public void testOneFile() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt");
|
runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user