Files
kotlin-fork/compiler/testData/ir/irText/expressions/conventionComparisons.sig.kt.txt
T
Sergej Jaskiewicz 6e8283a6fe [IR] Dump IdSignatures and mangled names in irText tests
The reason #1 for this feature is that we want to test IdSignatures
generated for declarations. Currently, there is no (easy) way to ensure
that a change in the signature building logic doesn't cause any breaking
changes wrt klibs.

Now, most IdSignatures include hashed mangled names in them, so even if
we catch a regression where the included hash changes, there would be no
way of knowing immediately what caused it, unless we'd also have mangled
names in the expectations.

The reason #2 is to test the manglers themselves. Currently, there are
no tests for them. They heavily duplicate each other, this is already
causing issues (see KT-57427) that would be very hard to catch without
these tests.

^KT-58238 Fixed
2023-05-15 18:20:45 +00:00

55 lines
1.6 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: IA
// Public signature: /IA|null[0]
interface IA {
}
// CHECK:
// Mangled name: IB
// Public signature: /IB|null[0]
interface IB {
// CHECK JVM_IR:
// Mangled name: IB#compareTo@IA(IA){}kotlin.Int
// Public signature: /IB.compareTo|-7259969497814497426[0]
// CHECK JS_IR NATIVE:
// Mangled name: IB#compareTo@IA(IA){}
// Public signature: /IB.compareTo|-6258326288651646740[0]
abstract operator fun IA.compareTo(other: IA): Int
}
// CHECK JVM_IR:
// Mangled name: #test1@IB(IA;IA){}kotlin.Boolean
// Public signature: /test1|-4373836657117486273[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test1@IB(IA;IA){}
// Public signature: /test1|2110430035798087324[0]
fun IB.test1(a1: IA, a2: IA): Boolean
// CHECK JVM_IR:
// Mangled name: #test2@IB(IA;IA){}kotlin.Boolean
// Public signature: /test2|5436750902587155920[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test2@IB(IA;IA){}
// Public signature: /test2|-1582753887583153969[0]
fun IB.test2(a1: IA, a2: IA): Boolean
// CHECK JVM_IR:
// Mangled name: #test3@IB(IA;IA){}kotlin.Boolean
// Public signature: /test3|-6567103906122911326[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test3@IB(IA;IA){}
// Public signature: /test3|7130450291559664455[0]
fun IB.test3(a1: IA, a2: IA): Boolean
// CHECK JVM_IR:
// Mangled name: #test4@IB(IA;IA){}kotlin.Boolean
// Public signature: /test4|-2122684825224786608[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test4@IB(IA;IA){}
// Public signature: /test4|-7050566763299108335[0]
fun IB.test4(a1: IA, a2: IA): Boolean