FIR LT: Add box inline tests for FIR + LT (failing on SMAP so far)
This commit is contained in:
@@ -37,7 +37,7 @@ abstract class ObjectTransformer<out T : TransformationInfo>(@JvmField val trans
|
|||||||
val classBuilder = state.factory.newVisitor(
|
val classBuilder = state.factory.newVisitor(
|
||||||
JvmDeclarationOrigin.NO_ORIGIN,
|
JvmDeclarationOrigin.NO_ORIGIN,
|
||||||
Type.getObjectType(transformationInfo.newClassName),
|
Type.getObjectType(transformationInfo.newClassName),
|
||||||
listOf(inliningContext.callSiteInfo.file!!)
|
listOfNotNull(inliningContext.callSiteInfo.file)
|
||||||
)
|
)
|
||||||
|
|
||||||
return RemappingClassBuilder(
|
return RemappingClassBuilder(
|
||||||
|
|||||||
+5683
File diff suppressed because it is too large
Load Diff
+13
@@ -6,6 +6,7 @@
|
|||||||
package org.jetbrains.kotlin.test.runners.codegen
|
package org.jetbrains.kotlin.test.runners.codegen
|
||||||
|
|
||||||
import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder
|
import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder
|
||||||
|
import org.jetbrains.kotlin.test.directives.FirDiagnosticsDirectives
|
||||||
|
|
||||||
open class AbstractBlackBoxInlineCodegenTest : AbstractBlackBoxCodegenTest() {
|
open class AbstractBlackBoxInlineCodegenTest : AbstractBlackBoxCodegenTest() {
|
||||||
override fun configure(builder: TestConfigurationBuilder) {
|
override fun configure(builder: TestConfigurationBuilder) {
|
||||||
@@ -27,3 +28,15 @@ open class AbstractFirBlackBoxInlineCodegenTest : AbstractFirBlackBoxCodegenTest
|
|||||||
builder.useInlineHandlers()
|
builder.useInlineHandlers()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open class AbstractFirLightTreeBlackBoxInlineCodegenTest : AbstractFirBlackBoxCodegenTest() {
|
||||||
|
override fun configure(builder: TestConfigurationBuilder) {
|
||||||
|
super.configure(builder)
|
||||||
|
with(builder) {
|
||||||
|
useInlineHandlers()
|
||||||
|
defaultDirectives {
|
||||||
|
+FirDiagnosticsDirectives.USE_LIGHT_TREE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
+4
@@ -231,6 +231,10 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
|
|||||||
model("codegen/boxInline")
|
model("codegen/boxInline")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
testClass<AbstractFirLightTreeBlackBoxInlineCodegenTest> {
|
||||||
|
model("codegen/boxInline")
|
||||||
|
}
|
||||||
|
|
||||||
testClass<AbstractFirSteppingTest> {
|
testClass<AbstractFirSteppingTest> {
|
||||||
model("debug/stepping")
|
model("debug/stepping")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user