[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,6 +1,7 @@
// CHECK:
// Mangled name: {}anonymous
// Public signature: /anonymous|-1633601112294415930[0]
// Public signature debug description: {}anonymous
val anonymous: Function0<Unit>
field
// CHECK JVM_IR:
@@ -14,8 +15,10 @@ val anonymous: Function0<Unit>
// CHECK JVM_IR:
// Mangled name: #<get-anonymous>(){}kotlin.Function0<kotlin.Unit>
// Public signature: /anonymous.<get-anonymous>|4047260013555274752[0]
// Public signature debug description: <get-anonymous>(){}kotlin.Function0<kotlin.Unit>
// CHECK JS_IR NATIVE:
// Mangled name: #<get-anonymous>(){}
// Public signature: /anonymous.<get-anonymous>|-7938030596525369571[0]
// Public signature debug description: <get-anonymous>(){}
get
@@ -1,17 +1,21 @@
// CHECK:
// Mangled name: {}fn
// Public signature: /fn|-1096960354582375131[0]
// Public signature debug description: {}fn
var fn: Function1<A, Int>
// CHECK JVM_IR:
// Mangled name: #<get-fn>(){}kotlin.Function1<A,kotlin.Int>
// Public signature: /fn.<get-fn>|-1538543637358155392[0]
// Public signature debug description: <get-fn>(){}kotlin.Function1<A,kotlin.Int>
// CHECK JS_IR NATIVE:
// Mangled name: #<get-fn>(){}
// Public signature: /fn.<get-fn>|7436020190901948688[0]
// Public signature debug description: <get-fn>(){}
get
// CHECK:
// Mangled name: #<set-fn>(kotlin.Function1<A,kotlin.Int>){}
// Public signature: /fn.<set-fn>|5076231225819362553[0]
// Public signature debug description: <set-fn>(kotlin.Function1<A,kotlin.Int>){}
set
// CHECK:
@@ -21,77 +25,96 @@ data class A {
// CHECK:
// Mangled name: A{}x
// Public signature: /A.x|-8060530855978347579[0]
// Public signature debug description: {}x
val x: Int
// CHECK JVM_IR:
// Mangled name: A#<get-x>(){}kotlin.Int
// Public signature: /A.x.<get-x>|4966956098150895696[0]
// Public signature debug description: <get-x>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: A#<get-x>(){}
// Public signature: /A.x.<get-x>|1482705010654679335[0]
// Public signature debug description: <get-x>(){}
get
// CHECK:
// Mangled name: A{}y
// Public signature: /A.y|3625903257357557171[0]
// Public signature debug description: {}y
val y: Int
// CHECK JVM_IR:
// Mangled name: A#<get-y>(){}kotlin.Int
// Public signature: /A.y.<get-y>|-6745575372101973707[0]
// Public signature debug description: <get-y>(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: A#<get-y>(){}
// Public signature: /A.y.<get-y>|-7902422373892128922[0]
// Public signature debug description: <get-y>(){}
get
// CHECK:
// Mangled name: A#<init>(kotlin.Int;kotlin.Int){}
// Public signature: /A.<init>|-7691762014320324121[0]
// Public signature debug description: <init>(kotlin.Int;kotlin.Int){}
constructor(x: Int, y: Int) /* primary */
// CHECK JVM_IR:
// Mangled name: A#component1(){}kotlin.Int
// Public signature: /A.component1|-8217597213800111288[0]
// Public signature debug description: component1(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: A#component1(){}
// Public signature: /A.component1|162597135895221648[0]
// Public signature debug description: component1(){}
operator fun component1(): Int
// CHECK JVM_IR:
// Mangled name: A#component2(){}kotlin.Int
// Public signature: /A.component2|-7444333055342785242[0]
// Public signature debug description: component2(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: A#component2(){}
// Public signature: /A.component2|3796717572321500973[0]
// Public signature debug description: component2(){}
operator fun component2(): Int
// CHECK JVM_IR:
// Mangled name: A#copy(kotlin.Int;kotlin.Int){}A
// Public signature: /A.copy|1926272323689019234[0]
// Public signature debug description: copy(kotlin.Int;kotlin.Int){}A
// CHECK JS_IR NATIVE:
// Mangled name: A#copy(kotlin.Int;kotlin.Int){}
// Public signature: /A.copy|4382504155595030584[0]
// Public signature debug description: copy(kotlin.Int;kotlin.Int){}
fun copy(x: Int, y: Int): A
// CHECK JVM_IR:
// Mangled name: A#equals(kotlin.Any?){}kotlin.Boolean
// Public signature: /A.equals|722809408929142791[0]
// Public signature debug description: equals(kotlin.Any?){}kotlin.Boolean
// CHECK JS_IR NATIVE:
// Mangled name: A#equals(kotlin.Any?){}
// Public signature: /A.equals|4638265728071529943[0]
// Public signature debug description: equals(kotlin.Any?){}
override operator fun equals(other: Any?): Boolean
// CHECK JVM_IR:
// Mangled name: A#hashCode(){}kotlin.Int
// Public signature: /A.hashCode|-8048879360829830756[0]
// Public signature debug description: hashCode(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: A#hashCode(){}
// Public signature: /A.hashCode|3409210261493131192[0]
// Public signature debug description: hashCode(){}
override fun hashCode(): Int
// CHECK JVM_IR:
// Mangled name: A#toString(){}kotlin.String
// Public signature: /A.toString|6958853723545266802[0]
// Public signature debug description: toString(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: A#toString(){}
// Public signature: /A.toString|-1522858123163872138[0]
// Public signature debug description: toString(){}
override fun toString(): String
}
@@ -1,8 +1,10 @@
// 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
@@ -1,24 +1,30 @@
// CHECK:
// Mangled name: {}test1
// Public signature: /test1|6005685442305498193[0]
// Public signature debug description: {}test1
val test1: Function0<Int>
// CHECK JVM_IR:
// Mangled name: #<get-test1>(){}kotlin.Function0<kotlin.Int>
// Public signature: /test1.<get-test1>|3140014614812373095[0]
// Public signature debug description: <get-test1>(){}kotlin.Function0<kotlin.Int>
// CHECK JS_IR NATIVE:
// Mangled name: #<get-test1>(){}
// Public signature: /test1.<get-test1>|-5735092642142423279[0]
// Public signature debug description: <get-test1>(){}
get
// CHECK:
// Mangled name: {}test2
// Public signature: /test2|2517758057000911509[0]
// Public signature debug description: {}test2
val test2: Function0<Unit>
// CHECK JVM_IR:
// Mangled name: #<get-test2>(){}kotlin.Function0<kotlin.Unit>
// Public signature: /test2.<get-test2>|-6581063117552766488[0]
// Public signature debug description: <get-test2>(){}kotlin.Function0<kotlin.Unit>
// CHECK JS_IR NATIVE:
// Mangled name: #<get-test2>(){}
// Public signature: /test2.<get-test2>|-5218942532816206869[0]
// Public signature debug description: <get-test2>(){}
get
@@ -1,10 +1,12 @@
// CHECK:
// Mangled name: #box(){}
// Public signature: /box|2173511048851971368[0]
// Public signature debug description: box(){}
suspend fun box(): Unit
// CHECK:
// Mangled name: #flaf(kotlin.Function0<kotlin.Any?>){}
// Public signature: /flaf|8689906342143583664[0]
// Public signature debug description: flaf(kotlin.Function0<kotlin.Any?>){}
inline fun flaf(block: Function0<Any?>): Unit
@@ -1,5 +1,6 @@
// CHECK:
// Mangled name: #outer(){}
// Public signature: /outer|1607449560170809066[0]
// Public signature debug description: outer(){}
fun outer(): Unit
@@ -6,13 +6,16 @@ interface IFoo {
// CHECK:
// Mangled name: IFoo@A{}foo
// Public signature: /IFoo.foo|1214000299789500455[0]
// Public signature debug description: @A{}foo
val A.foo: B
// CHECK JVM_IR:
// Mangled name: IFoo#<get-foo>@A(){}B
// Public signature: /IFoo.foo.<get-foo>|8070848468738985847[0]
// Public signature debug description: <get-foo>@A(){}B
// CHECK JS_IR NATIVE:
// Mangled name: IFoo#<get-foo>@A(){}
// Public signature: /IFoo.foo.<get-foo>|-1820743651074494698[0]
// Public signature debug description: <get-foo>@A(){}
get(): B
}
@@ -25,9 +28,11 @@ interface IInvoke {
// CHECK JVM_IR:
// Mangled name: IInvoke#invoke@B(){}kotlin.Int
// Public signature: /IInvoke.invoke|7560171197904259096[0]
// Public signature debug description: invoke@B(){}kotlin.Int
// CHECK JS_IR NATIVE:
// Mangled name: IInvoke#invoke@B(){}
// Public signature: /IInvoke.invoke|-8763880178141053779[0]
// Public signature debug description: invoke@B(){}
operator fun B.invoke(): Int
}
@@ -39,6 +44,7 @@ object A {
// CHECK:
// Mangled name: A#<init>(){}
// Public signature: /A.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
private constructor() /* primary */
}
@@ -50,6 +56,7 @@ object B {
// CHECK:
// Mangled name: B#<init>(){}
// Public signature: /B.<init>|-5645683436151566731[0]
// Public signature debug description: <init>(){}
private constructor() /* primary */
}
@@ -57,5 +64,6 @@ object B {
// CHECK:
// Mangled name: #test(IFoo;IInvoke){}
// Public signature: /test|8554265419982095815[0]
// Public signature debug description: test(IFoo;IInvoke){}
fun test(fooImpl: IFoo, invokeImpl: IInvoke): Unit
@@ -1,30 +1,36 @@
// CHECK:
// Mangled name: #test0(){}
// Public signature: /test0|-2819007353171228053[0]
// Public signature debug description: test0(){}
fun test0(): Unit
// CHECK:
// Mangled name: #test1(){}
// Public signature: /test1|4297044443957252634[0]
// Public signature debug description: test1(){}
fun test1(): Unit
// CHECK:
// Mangled name: #test2(){}
// Public signature: /test2|4279114864133353152[0]
// Public signature debug description: test2(){}
fun test2(): Unit
// CHECK:
// Mangled name: #test3(){}
// Public signature: /test3|-3759735065270951803[0]
// Public signature debug description: test3(){}
fun test3(): Unit
// CHECK:
// Mangled name: #testLrmFoo1(kotlin.collections.List<kotlin.Int>){}
// Public signature: /testLrmFoo1|3318128046819540804[0]
// Public signature debug description: testLrmFoo1(kotlin.collections.List<kotlin.Int>){}
fun testLrmFoo1(ints: List<Int>): Unit
// CHECK:
// Mangled name: #testLrmFoo2(kotlin.collections.List<kotlin.Int>){}
// Public signature: /testLrmFoo2|-5288542979552034590[0]
// Public signature debug description: testLrmFoo2(kotlin.collections.List<kotlin.Int>){}
fun testLrmFoo2(ints: List<Int>): Unit
@@ -1,5 +1,6 @@
// CHECK:
// Mangled name: #test1(){}
// Public signature: /test1|4297044443957252634[0]
// Public signature debug description: test1(){}
fun test1(): Unit