[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
@@ -1,8 +1,10 @@
// CHECK JVM_IR:
// Mangled name: #box(){}kotlin.String
// Public signature: /box|-9347091776561469[0]
// Public signature debug description: box(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: #box(){}
// Public signature: /box|2173511048851971368[0]
// Public signature debug description: box(){}
fun box(): String
@@ -5,6 +5,7 @@ class CInt32VarX<T : Any?> : CPointed {
// CHECK:
// Mangled name: CInt32VarX#<init>(){}
// Public signature: /CInt32VarX.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
constructor() /* primary */
}
@@ -16,18 +17,22 @@ class IdType : CPointed {
// CHECK:
// Mangled name: IdType{}value
// Public signature: /IdType.value|1987073854177347439[0]
// Public signature debug description: {}value
val value: Int
// CHECK JVM_IR:
// Mangled name: IdType#<get-value>(){}kotlin.Int
// Public signature: /IdType.value.<get-value>|-5900028706170996[0]
// Public signature debug description: <get-value>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: IdType#<get-value>(){}
// Public signature: /IdType.value.<get-value>|3260093555963109437[0]
// Public signature debug description: <get-value>(){}
get
// CHECK:
// Mangled name: IdType#<init>(kotlin.Int){}
// Public signature: /IdType.<init>|-5182794243525578284[0]
// Public signature debug description: <init>(kotlin.Int){}
constructor(value: Int) /* primary */
}
@@ -42,30 +47,37 @@ interface CPointed {
// CHECK:
// Mangled name: #foo(IdType;CInt32VarX<kotlin.Int>){}
// Public signature: /foo|-5455779368502417749[0]
// Public signature debug description: foo(IdType;CInt32VarX<kotlin.Int>){}
fun foo(value: IdType, cv: CInt32VarX<Int>): Unit
// CHECK JVM_IR:
// Mangled name: #reinterpret@CPointed(){0§<CPointed>}0:0
// Public signature: /reinterpret|6686627751758834868[0]
// Public signature debug description: reinterpret@CPointed(){0§<CPointed>}0:0
// CHECK JS_IR NATIVE:
// Mangled name: #reinterpret@CPointed(){0§<CPointed>}
// Public signature: /reinterpret|-1583466554098866733[0]
// Public signature debug description: reinterpret@CPointed(){0§<CPointed>}
inline fun <reified T : CPointed> CPointed.reinterpret(): T
// CHECK:
// Mangled name: @CInt32VarX<0:0>{0§<kotlin.Int>}value
// Public signature: /value|-135689265793066449[0]
// Public signature debug description: @CInt32VarX<0:0>{0§<kotlin.Int>}value
var <T_INT : Int> CInt32VarX<T_INT>.value: T_INT
// CHECK JVM_IR:
// Mangled name: #<get-value>@CInt32VarX<0:0>(){0§<kotlin.Int>}0:0
// Public signature: /value.<get-value>|2596477086313818765[0]
// Public signature debug description: <get-value>@CInt32VarX<0:0>(){0§<kotlin.Int>}0:0
// CHECK JS_IR NATIVE:
// Mangled name: #<get-value>@CInt32VarX<0:0>(){0§<kotlin.Int>}
// Public signature: /value.<get-value>|7308799289468598697[0]
// Public signature debug description: <get-value>@CInt32VarX<0:0>(){0§<kotlin.Int>}
get(): T_INT
// CHECK:
// Mangled name: #<set-value>@CInt32VarX<0:0>(0:0){0§<kotlin.Int>}
// Public signature: /value.<set-value>|4371752181027190206[0]
// Public signature debug description: <set-value>@CInt32VarX<0:0>(0:0){0§<kotlin.Int>}
set(value: T_INT): Unit
// CHECK:
@@ -1,32 +1,40 @@
// CHECK JVM_IR:
// Mangled name: #one(){}kotlin.Int
// Public signature: /one|-1338778839794458943[0]
// Public signature debug description: one(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #one(){}
// Public signature: /one|-883930323179095603[0]
// Public signature debug description: one(){}
fun one(): Int
// CHECK JVM_IR:
// Mangled name: #test1(){}kotlin.Int
// Public signature: /test1|3246027394688469880[0]
// Public signature debug description: test1(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #test1(){}
// Public signature: /test1|4297044443957252634[0]
// Public signature debug description: test1(){}
fun test1(): Int
// CHECK JVM_IR:
// Mangled name: #test2(){}kotlin.Int
// Public signature: /test2|5542371834528279174[0]
// Public signature debug description: test2(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #test2(){}
// Public signature: /test2|4279114864133353152[0]
// Public signature debug description: test2(){}
fun test2(): Int
// CHECK JVM_IR:
// Mangled name: #two(){}kotlin.Int
// Public signature: /two|-3668245894055563667[0]
// Public signature debug description: two(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: #two(){}
// Public signature: /two|-8191816142589217386[0]
// Public signature debug description: two(){}
fun two(): Int
@@ -5,10 +5,12 @@ open class Child : Parent {
// CHECK:
// Mangled name: Child{}x
// Public signature: /Child.x|-8060530855978347579[0]
// Public signature debug description: {}x
val x: Parent?
// CHECK JVM_IR:
// Mangled name: Child#<get-x>(){}Parent?
// Public signature: /Child.x.<get-x>|-4268238355990068356[0]
// Public signature debug description: <get-x>(){}Parent?
get
// CHECK:
@@ -18,11 +20,13 @@ open class Child : Parent {
// CHECK:
// Mangled name: Child.QQQ#<init>(){}
// Public signature: /Child.QQQ.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
constructor() /* primary */
// CHECK:
// Mangled name: Child.QQQ#z(){}
// Public signature: /Child.QQQ.z|-6990221057904452282[0]
// Public signature debug description: z(){}
fun z(): Unit
}
@@ -30,11 +34,13 @@ open class Child : Parent {
// CHECK:
// Mangled name: Child#<init>(Parent?){}
// Public signature: /Child.<init>|690323910030303924[0]
// Public signature debug description: <init>(Parent?){}
constructor(x: Parent?) /* primary */
// CHECK JVM_IR:
// Mangled name: Child#getQqq(){}kotlin.String?
// Public signature: /Child.getQqq|2603726480275639305[0]
// Public signature debug description: getQqq(){}kotlin.String?
/* fake */ override fun getQqq(): String?
}
@@ -9,53 +9,64 @@ sealed class NetRequestStatus<out T : Any> {
// CHECK:
// Mangled name: NetRequestStatus.Error{}error
// Public signature: /NetRequestStatus.Error.error|6099401258667737098[0]
// Public signature debug description: {}error
val error: Throwable
// CHECK JVM_IR:
// Mangled name: NetRequestStatus.Error#<get-error>(){}kotlin.Throwable
// Public signature: /NetRequestStatus.Error.error.<get-error>|-5591110135270758069[0]
// Public signature debug description: <get-error>(){}kotlin.Throwable
get
// CHECK:
// Mangled name: NetRequestStatus.Error{}value
// Public signature: /NetRequestStatus.Error.value|1987073854177347439[0]
// Public signature debug description: {}value
override val value: T?
// CHECK JVM_IR:
// Mangled name: NetRequestStatus.Error#<get-value>(){}1:0?
// Public signature: /NetRequestStatus.Error.value.<get-value>|6345929521467247406[0]
// Public signature debug description: <get-value>(){}1:0?
override get
// CHECK:
// Mangled name: NetRequestStatus.Error#<init>(kotlin.Throwable;1:0?){}
// Public signature: /NetRequestStatus.Error.<init>|-1373568199086185373[0]
// Public signature debug description: <init>(kotlin.Throwable;1:0?){}
constructor(error: Throwable, value: T?) /* primary */
// CHECK JVM_IR:
// Mangled name: NetRequestStatus.Error#component1(){}kotlin.Throwable
// Public signature: /NetRequestStatus.Error.component1|2250146239720393392[0]
// Public signature debug description: component1(){}kotlin.Throwable
operator fun component1(): Throwable
// CHECK JVM_IR:
// Mangled name: NetRequestStatus.Error#component2(){}1:0?
// Public signature: /NetRequestStatus.Error.component2|8724683043803012713[0]
// Public signature debug description: component2(){}1:0?
operator fun component2(): T?
// CHECK JVM_IR:
// Mangled name: NetRequestStatus.Error#copy(kotlin.Throwable;1:0?){}NetRequestStatus.Error<1:0>
// Public signature: /NetRequestStatus.Error.copy|1925006413771870834[0]
// Public signature debug description: copy(kotlin.Throwable;1:0?){}NetRequestStatus.Error<1:0>
fun copy(error: Throwable, value: T?): Error<T>
// CHECK JVM_IR:
// Mangled name: NetRequestStatus.Error#equals(kotlin.Any?){}kotlin.Boolean
// Public signature: /NetRequestStatus.Error.equals|722809408929142791[0]
// Public signature debug description: equals(kotlin.Any?){}kotlin.Boolean
override operator fun equals(other: Any?): Boolean
// CHECK JVM_IR:
// Mangled name: NetRequestStatus.Error#hashCode(){}kotlin.Int
// Public signature: /NetRequestStatus.Error.hashCode|-8048879360829830756[0]
// Public signature debug description: hashCode(){}kotlin.Int
override fun hashCode(): Int
// CHECK JVM_IR:
// Mangled name: NetRequestStatus.Error#toString(){}kotlin.String
// Public signature: /NetRequestStatus.Error.toString|6958853723545266802[0]
// Public signature debug description: toString(){}kotlin.String
override fun toString(): String
}
@@ -63,15 +74,18 @@ sealed class NetRequestStatus<out T : Any> {
// CHECK:
// Mangled name: NetRequestStatus#<init>(){}
// Public signature: /NetRequestStatus.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
protected constructor() /* primary */
// CHECK:
// Mangled name: NetRequestStatus{}value
// Public signature: /NetRequestStatus.value|1987073854177347439[0]
// Public signature debug description: {}value
abstract val value: T?
// CHECK JVM_IR:
// Mangled name: NetRequestStatus#<get-value>(){}1:0?
// Public signature: /NetRequestStatus.value.<get-value>|6345929521467247406[0]
// Public signature debug description: <get-value>(){}1:0?
abstract get
}
@@ -79,11 +93,13 @@ sealed class NetRequestStatus<out T : Any> {
// CHECK JVM_IR:
// Mangled name: #isError@NetRequestStatus<0:0>(){0§<kotlin.Any>}kotlin.Boolean
// Public signature: /isError|6754547245432239931[0]
// Public signature debug description: isError@NetRequestStatus<0:0>(){0§<kotlin.Any>}kotlin.Boolean
@OptIn(markerClass = [ExperimentalContracts::class])
fun <T : Any> NetRequestStatus<T>.isError(): Boolean
// CHECK:
// Mangled name: #successOrThrow(){0§<kotlin.Any>}
// Public signature: /successOrThrow|8924064942759337382[0]
// Public signature debug description: successOrThrow(){0§<kotlin.Any>}
fun <T : Any> successOrThrow(): Unit
@@ -8,32 +8,40 @@ interface Inv2<A : Any?, B : Any?> {
// CHECK JVM_IR:
// Mangled name: #box(){}kotlin.String
// Public signature: /box|-9347091776561469[0]
// Public signature debug description: box(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: #box(){}
// Public signature: /box|2173511048851971368[0]
// Public signature debug description: box(){}
fun box(): String
// CHECK JVM_IR:
// Mangled name: #check(0:0;0:1;kotlin.Function1<0:0,0:1>){0§<kotlin.Any?>;1§<kotlin.Any?>}Inv2<0:0,0:1>
// Public signature: /check|5984400751488580697[0]
// Public signature debug description: check(0:0;0:1;kotlin.Function1<0:0,0:1>){0§<kotlin.Any?>;1§<kotlin.Any?>}Inv2<0:0,0:1>
// CHECK JS_IR NATIVE:
// Mangled name: #check(0:0;0:1;kotlin.Function1<0:0,0:1>){0§<kotlin.Any?>;1§<kotlin.Any?>}
// Public signature: /check|-3580207389157345567[0]
// Public signature debug description: check(0:0;0:1;kotlin.Function1<0:0,0:1>){0§<kotlin.Any?>;1§<kotlin.Any?>}
fun <T : Any?, R : Any?> check(x: T, y: R, f: Function1<T, R>): Inv2<T, R>
// CHECK JVM_IR:
// Mangled name: #foo(){0§<kotlin.Any?>;1§<kotlin.Any?>}kotlin.Function1<0:0,0:1>
// Public signature: /foo|-9122187844133412005[0]
// Public signature debug description: foo(){0§<kotlin.Any?>;1§<kotlin.Any?>}kotlin.Function1<0:0,0:1>
// CHECK JS_IR NATIVE:
// Mangled name: #foo(){0§<kotlin.Any?>;1§<kotlin.Any?>}
// Public signature: /foo|5215108069702224664[0]
// Public signature debug description: foo(){0§<kotlin.Any?>;1§<kotlin.Any?>}
fun <X : Any?, Y : Any?> foo(): Function1<X, Y>
// CHECK JVM_IR:
// Mangled name: #test(){}Inv2<kotlin.String,kotlin.Int>
// Public signature: /test|1156894151612153537[0]
// Public signature debug description: test(){}Inv2<kotlin.String,kotlin.Int>
// CHECK JS_IR NATIVE:
// Mangled name: #test(){}
// Public signature: /test|6620506149988718649[0]
// Public signature debug description: test(){}
fun test(): Inv2<String, Int>
@@ -5,18 +5,22 @@ class A<Q : Any?> {
// CHECK:
// Mangled name: A{}q
// Public signature: /A.q|3274930974999175741[0]
// Public signature debug description: {}q
val q: Q
// CHECK JVM_IR:
// Mangled name: A#<get-q>(){}1:0
// Public signature: /A.q.<get-q>|-447041854451904985[0]
// Public signature debug description: <get-q>(){}1:0
// CHECK JS_IR NATIVE:
// Mangled name: A#<get-q>(){}
// Public signature: /A.q.<get-q>|-39243554116721919[0]
// Public signature debug description: <get-q>(){}
get
// CHECK:
// Mangled name: A#<init>(1:0){}
// Public signature: /A.<init>|-8731461708390519279[0]
// Public signature debug description: <init>(1:0){}
constructor(q: Q) /* primary */
}
@@ -24,6 +28,7 @@ class A<Q : Any?> {
// CHECK:
// Mangled name: #bar(){}
// Public signature: /bar|496682602797471549[0]
// Public signature debug description: bar(){}
fun bar(): Unit
// CHECK:
@@ -1,5 +1,6 @@
// CHECK JVM_IR:
// Mangled name: #problematic(kotlin.collections.List<kotlin.collections.List<0:0>>){0§<kotlin.Any?>}kotlin.collections.List<0:0>
// Public signature: /problematic|-8622452458410513914[0]
// Public signature debug description: problematic(kotlin.collections.List<kotlin.collections.List<0:0>>){0§<kotlin.Any?>}kotlin.collections.List<0:0>
fun <T : Any?> problematic(lss: List<List<T>>): List<T>