[Test] Reproduce KT-65415 and KT-66432
This commit is contained in:
committed by
Space Team
parent
d352cc9d96
commit
7a383373b0
+6
@@ -196,6 +196,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisibleFunctionWithReceiverWithSuppress.kt")
|
||||
public void testInvisibleFunctionWithReceiverWithSuppress() {
|
||||
|
||||
+6
@@ -196,6 +196,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisibleFunctionWithReceiverWithSuppress.kt")
|
||||
public void testInvisibleFunctionWithReceiverWithSuppress() {
|
||||
|
||||
+6
@@ -197,6 +197,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisibleFunctionWithReceiverWithSuppress.kt")
|
||||
public void testInvisibleFunctionWithReceiverWithSuppress() {
|
||||
|
||||
+6
@@ -197,6 +197,12 @@ public class FirLightTreeBlackBoxCodegenWithFir2IrFakeOverrideGeneratorTestGener
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisibleFunctionWithReceiverWithSuppress.kt")
|
||||
public void testInvisibleFunctionWithReceiverWithSuppress() {
|
||||
|
||||
+6
@@ -197,6 +197,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisibleFunctionWithReceiverWithSuppress.kt")
|
||||
public void testInvisibleFunctionWithReceiverWithSuppress() {
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// IGNORE_BACKEND_K1: JS_IR, JS_IR_ES6, WASM, NATIVE
|
||||
// IGNORE_BACKEND_K2: ANY
|
||||
// non-jvm backends are ignored because of KT-66432
|
||||
// ISSUE: KT-65415, KT-66432
|
||||
|
||||
// FILE: IntrinsicConstEvaluation.kt
|
||||
package kotlin.internal
|
||||
|
||||
annotation class IntrinsicConstEvaluation
|
||||
|
||||
// FILE: usage.kt
|
||||
import kotlin.internal.IntrinsicConstEvaluation
|
||||
|
||||
@IntrinsicConstEvaluation
|
||||
fun test(): String = "OK"
|
||||
|
||||
fun box(): String = test()
|
||||
+6
@@ -197,6 +197,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisibleFunctionWithReceiverWithSuppress.kt")
|
||||
public void testInvisibleFunctionWithReceiverWithSuppress() {
|
||||
|
||||
+6
@@ -161,6 +161,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaAnnotationArrayValueDefault.kt")
|
||||
public void testJavaAnnotationArrayValueDefault() {
|
||||
|
||||
+6
@@ -197,6 +197,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisibleFunctionWithReceiverWithSuppress.kt")
|
||||
public void testInvisibleFunctionWithReceiverWithSuppress() {
|
||||
|
||||
+6
@@ -197,6 +197,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisibleFunctionWithReceiverWithSuppress.kt")
|
||||
public void testInvisibleFunctionWithReceiverWithSuppress() {
|
||||
|
||||
+6
@@ -197,6 +197,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invisibleFunctionWithReceiverWithSuppress.kt")
|
||||
public void testInvisibleFunctionWithReceiverWithSuppress() {
|
||||
|
||||
+5
@@ -178,6 +178,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invisibleFunctionWithReceiverWithSuppress.kt")
|
||||
public void testInvisibleFunctionWithReceiverWithSuppress() {
|
||||
runTest("compiler/testData/codegen/box/annotations/invisibleFunctionWithReceiverWithSuppress.kt");
|
||||
|
||||
+6
@@ -53,6 +53,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotation.kt")
|
||||
public void testNestedAnnotation() {
|
||||
|
||||
Generated
+6
@@ -53,6 +53,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotation.kt")
|
||||
public void testNestedAnnotation() {
|
||||
|
||||
+6
@@ -53,6 +53,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotation.kt")
|
||||
public void testNestedAnnotation() {
|
||||
|
||||
+6
@@ -53,6 +53,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotation.kt")
|
||||
public void testNestedAnnotation() {
|
||||
|
||||
+6
@@ -64,6 +64,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotation.kt")
|
||||
public void testNestedAnnotation() {
|
||||
|
||||
+6
@@ -70,6 +70,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotation.kt")
|
||||
public void testNestedAnnotation() {
|
||||
|
||||
+6
@@ -58,6 +58,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotation.kt")
|
||||
public void testNestedAnnotation() {
|
||||
|
||||
+6
@@ -65,6 +65,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotation.kt")
|
||||
public void testNestedAnnotation() {
|
||||
|
||||
Generated
+6
@@ -53,6 +53,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotation.kt")
|
||||
public void testNestedAnnotation() {
|
||||
|
||||
Generated
+6
@@ -53,6 +53,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intrinsicConstEvaluationInSources.kt")
|
||||
public void testIntrinsicConstEvaluationInSources() {
|
||||
runTest("compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotation.kt")
|
||||
public void testNestedAnnotation() {
|
||||
|
||||
Reference in New Issue
Block a user