[klib] Test signature descriptions in irText tests

KT-59486
This commit is contained in:
Sergej Jaskiewicz
2023-06-22 17:30:00 +02:00
committed by Space Team
parent 6142d75bb4
commit 5e63f7627f
562 changed files with 6867 additions and 9 deletions
@@ -5,62 +5,77 @@ data class DataClass : Delegate, Derived {
// CHECK:
// Mangled name: DataClass{}delegate
// Public signature: /DataClass.delegate|-801742451047326070[0]
// Public signature debug description: {}delegate
val delegate: Delegate
// CHECK JVM_IR:
// Mangled name: DataClass#<get-delegate>(){}Delegate
// Public signature: /DataClass.delegate.<get-delegate>|6133163829830511426[0]
// Public signature debug description: <get-delegate>(){}Delegate
// CHECK JS_IR NATIVE:
// Mangled name: DataClass#<get-delegate>(){}
// Public signature: /DataClass.delegate.<get-delegate>|448313462178410567[0]
// Public signature debug description: <get-delegate>(){}
get
// CHECK:
// Mangled name: DataClass#<init>(Delegate){}
// Public signature: /DataClass.<init>|7426992287025160657[0]
// Public signature debug description: <init>(Delegate){}
constructor(delegate: Delegate) /* primary */
// CHECK:
// Mangled name: DataClass#bar(){}
// Public signature: /DataClass.bar|496682602797471549[0]
// Public signature debug description: bar(){}
override fun bar(): Unit
// CHECK JVM_IR:
// Mangled name: DataClass#component1(){}Delegate
// Public signature: /DataClass.component1|748132671697339477[0]
// Public signature debug description: component1(){}Delegate
// CHECK JS_IR NATIVE:
// Mangled name: DataClass#component1(){}
// Public signature: /DataClass.component1|162597135895221648[0]
// Public signature debug description: component1(){}
operator fun component1(): Delegate
// CHECK JVM_IR:
// Mangled name: DataClass#copy(Delegate){}DataClass
// Public signature: /DataClass.copy|-3599253859920134304[0]
// Public signature debug description: copy(Delegate){}DataClass
// CHECK JS_IR NATIVE:
// Mangled name: DataClass#copy(Delegate){}
// Public signature: /DataClass.copy|-6641847768161473840[0]
// Public signature debug description: copy(Delegate){}
fun copy(delegate: Delegate): DataClass
// CHECK JVM_IR:
// Mangled name: DataClass#equals(kotlin.Any?){}kotlin.Boolean
// Public signature: /DataClass.equals|722809408929142791[0]
// Public signature debug description: equals(kotlin.Any?){}kotlin.Boolean
// CHECK JS_IR NATIVE:
// Mangled name: DataClass#equals(kotlin.Any?){}
// Public signature: /DataClass.equals|4638265728071529943[0]
// Public signature debug description: equals(kotlin.Any?){}
override operator fun equals(other: Any?): Boolean
// CHECK JVM_IR:
// Mangled name: DataClass#hashCode(){}kotlin.Int
// Public signature: /DataClass.hashCode|-8048879360829830756[0]
// Public signature debug description: hashCode(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: DataClass#hashCode(){}
// Public signature: /DataClass.hashCode|3409210261493131192[0]
// Public signature debug description: hashCode(){}
override fun hashCode(): Int
// CHECK JVM_IR:
// Mangled name: DataClass#toString(){}kotlin.String
// Public signature: /DataClass.toString|6958853723545266802[0]
// Public signature debug description: toString(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: DataClass#toString(){}
// Public signature: /DataClass.toString|-1522858123163872138[0]
// Public signature debug description: toString(){}
override fun toString(): String
}
@@ -80,6 +95,7 @@ interface Delegate : Base {
// CHECK:
// Mangled name: Delegate#bar(){}
// Public signature: /Delegate.bar|496682602797471549[0]
// Public signature debug description: bar(){}
abstract fun bar(): Unit
}
@@ -91,6 +107,7 @@ interface Derived : Delegate {
// CHECK:
// Mangled name: Derived#bar(){}
// Public signature: /Derived.bar|496682602797471549[0]
// Public signature debug description: bar(){}
abstract /* fake */ override fun bar(): Unit
}
@@ -102,22 +119,27 @@ object Factory {
// CHECK:
// Mangled name: Factory#<init>(){}
// Public signature: /Factory.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
private constructor() /* primary */
// CHECK JVM_IR:
// Mangled name: Factory#foo(kotlin.String){}kotlin.String
// Public signature: /Factory.foo|-5534735991146511619[0]
// Public signature debug description: foo(kotlin.String){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: Factory#foo(kotlin.String){}
// Public signature: /Factory.foo|1351044947738582195[0]
// Public signature debug description: foo(kotlin.String){}
fun foo(a: String): String
// CHECK JVM_IR:
// Mangled name: Factory#foo(kotlin.String;kotlin.Function1<kotlin.Any,kotlin.String?>){}kotlin.String
// Public signature: /Factory.foo|-1406038686123493927[0]
// Public signature debug description: foo(kotlin.String;kotlin.Function1<kotlin.Any,kotlin.String?>){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: Factory#foo(kotlin.String;kotlin.Function1<kotlin.Any,kotlin.String?>){}
// Public signature: /Factory.foo|555399751922815029[0]
// Public signature debug description: foo(kotlin.String;kotlin.Function1<kotlin.Any,kotlin.String?>){}
fun foo(a: String, f: Function1<Any, String?>): String
}