Make copy for disabled ir tests
This commit is contained in:
committed by
TeamCityServer
parent
5ff4d648f4
commit
209ec68591
@@ -0,0 +1,16 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.EMIT_JVM_TYPE_ANNOTATIONS
|
||||
// RENDER_ANNOTATIONS
|
||||
// TARGET_BACKEND: JVM
|
||||
// JVM_TARGET: 1.8
|
||||
package foo
|
||||
|
||||
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
annotation class TypeAnn
|
||||
|
||||
enum class Kotlin (s: @TypeAnn String) {
|
||||
A("123") {
|
||||
fun foo() {}
|
||||
};
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
final class foo/Kotlin$A : foo/Kotlin {
|
||||
()V
|
||||
void <init>(java.lang.String $enum$name, int $enum$ordinal)
|
||||
|
||||
public final void foo()
|
||||
}
|
||||
|
||||
Ljava/lang/Enum<Lfoo/Kotlin;>;
|
||||
public class foo/Kotlin : java/lang/Enum {
|
||||
private final static foo.Kotlin[] $VALUES
|
||||
|
||||
public final static foo.Kotlin A
|
||||
|
||||
private final static foo.Kotlin[] $values()
|
||||
|
||||
static void <clinit>()
|
||||
|
||||
(Ljava/lang/String;)V
|
||||
private void <init>(java.lang.String $enum$name, int $enum$ordinal, java.lang.String s)
|
||||
@Lfoo/TypeAnn;([]) : METHOD_FORMAL_PARAMETER 0, null
|
||||
|
||||
public void <init>(java.lang.String $enum$name, int $enum$ordinal, java.lang.String s, kotlin.jvm.internal.DefaultConstructorMarker $constructor_marker)
|
||||
|
||||
public static foo.Kotlin valueOf(java.lang.String value)
|
||||
|
||||
public static foo.Kotlin[] values()
|
||||
}
|
||||
|
||||
public abstract interface foo/TypeAnn : java/lang/Object, java/lang/annotation/Annotation {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.EMIT_JVM_TYPE_ANNOTATIONS
|
||||
// RENDER_ANNOTATIONS
|
||||
// TARGET_BACKEND: JVM
|
||||
// JVM_TARGET: 1.8
|
||||
package foo
|
||||
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
annotation class TypeAnn(val name: String)
|
||||
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
annotation class TypeAnnBinary
|
||||
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class TypeAnnSource
|
||||
|
||||
class Kotlin {
|
||||
|
||||
fun foo2(): @TypeAnn("2") @TypeAnnBinary @TypeAnnSource String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun foo3() = foo2()
|
||||
|
||||
fun foo4() = { foo2() }()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
Lkotlin/jvm/internal/Lambda;Lkotlin/jvm/functions/Function0<Ljava/lang/String;>;
|
||||
final class foo/Kotlin$foo4$1 : kotlin/jvm/internal/Lambda, kotlin/jvm/functions/Function0 {
|
||||
final foo.Kotlin this$0
|
||||
|
||||
void <init>(foo.Kotlin $receiver)
|
||||
|
||||
public final java.lang.String invoke()
|
||||
@Lorg/jetbrains/annotations/NotNull;([]) // invisible
|
||||
@Lfoo/TypeAnn;([name="2"]) : METHOD_RETURN, null
|
||||
@Lfoo/TypeAnnBinary;([]) : METHOD_RETURN, null // invisible
|
||||
|
||||
public java.lang.Object invoke()
|
||||
}
|
||||
|
||||
public final class foo/Kotlin : java/lang/Object {
|
||||
public void <init>()
|
||||
|
||||
public final java.lang.String foo2()
|
||||
@Lorg/jetbrains/annotations/NotNull;([]) // invisible
|
||||
@Lfoo/TypeAnn;([name="2"]) : METHOD_RETURN, null
|
||||
@Lfoo/TypeAnnBinary;([]) : METHOD_RETURN, null // invisible
|
||||
|
||||
public final java.lang.String foo3()
|
||||
@Lorg/jetbrains/annotations/NotNull;([]) // invisible
|
||||
@Lfoo/TypeAnn;([name="2"]) : METHOD_RETURN, null
|
||||
@Lfoo/TypeAnnBinary;([]) : METHOD_RETURN, null // invisible
|
||||
|
||||
public final java.lang.String foo4()
|
||||
@Lorg/jetbrains/annotations/NotNull;([]) // invisible
|
||||
@Lfoo/TypeAnn;([name="2"]) : METHOD_RETURN, null
|
||||
@Lfoo/TypeAnnBinary;([]) : METHOD_RETURN, null // invisible
|
||||
}
|
||||
|
||||
public abstract interface foo/TypeAnn : java/lang/Object, java/lang/annotation/Annotation {
|
||||
public abstract java.lang.String name()
|
||||
}
|
||||
|
||||
public abstract interface foo/TypeAnnBinary : java/lang/Object, java/lang/annotation/Annotation {
|
||||
|
||||
}
|
||||
|
||||
public abstract interface foo/TypeAnnSource : java/lang/Object, java/lang/annotation/Annotation {
|
||||
|
||||
}
|
||||
Generated
+10
@@ -135,6 +135,11 @@ public class AsmLikeInstructionListingTestGenerated extends AbstractAsmLikeInstr
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/enumClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumClassConstructor_ir.kt")
|
||||
public void testEnumClassConstructor_ir() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/enumClassConstructor_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extension.kt")
|
||||
public void testExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/extension.kt");
|
||||
@@ -145,6 +150,11 @@ public class AsmLikeInstructionListingTestGenerated extends AbstractAsmLikeInstr
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/implicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicit_ir.kt")
|
||||
public void testImplicit_ir() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/implicit_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassConstructor.kt")
|
||||
public void testInnerClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/innerClassConstructor.kt");
|
||||
|
||||
Generated
+10
@@ -135,6 +135,11 @@ public class IrAsmLikeInstructionListingTestGenerated extends AbstractIrAsmLikeI
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/enumClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumClassConstructor_ir.kt")
|
||||
public void testEnumClassConstructor_ir() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/enumClassConstructor_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extension.kt")
|
||||
public void testExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/extension.kt");
|
||||
@@ -145,6 +150,11 @@ public class IrAsmLikeInstructionListingTestGenerated extends AbstractIrAsmLikeI
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/implicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicit_ir.kt")
|
||||
public void testImplicit_ir() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/implicit_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassConstructor.kt")
|
||||
public void testInnerClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/innerClassConstructor.kt");
|
||||
|
||||
Reference in New Issue
Block a user