[FIR] KT-58444: Ensure the compiler crashes
This commit is contained in:
committed by
Space Team
parent
c8023eac13
commit
87cab95713
+18
@@ -85,4 +85,22 @@ class CustomK2Tests : KGPBaseTest() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Disabled("disable until kotlin/native dependency is updated to include KT-58444")
|
||||
@GradleTest
|
||||
@DisplayName("Compiling shared native source with intrinsic initializer from common source set in Native-shared source set. KT-58444")
|
||||
fun kt58444NativeSharedConstantIntrinsic(gradleVersion: GradleVersion) {
|
||||
with(
|
||||
project(
|
||||
"kt-58444-native-shared-constant-intrinsic",
|
||||
gradleVersion,
|
||||
buildOptions = defaultBuildOptions.copy(languageVersion = "2.0"),
|
||||
)
|
||||
) {
|
||||
val taskToExecute = ":compileNativeMainKotlinMetadata"
|
||||
build(taskToExecute) {
|
||||
assertTasksExecuted(taskToExecute)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
import org.jetbrains.kotlin.utils.addToStdlib.ifNotEmpty
|
||||
|
||||
group = "test"
|
||||
version = "1.0"
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
targetHierarchy.default()
|
||||
jvm {}
|
||||
linuxX64 {}
|
||||
linuxArm64 {}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
const val BATCH_SIZE: Int = 16 * 1024
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun foo() {
|
||||
BATCH_SIZE
|
||||
}
|
||||
Reference in New Issue
Block a user