Files
kotlin-fork/compiler/testData/ir/irText/expressions/simpleOperators.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

89 lines
3.2 KiB
Kotlin
Vendored

// CHECK JVM_IR:
// Mangled name: #test1(kotlin.Int;kotlin.Int){}kotlin.Int
// Public signature: /test1|-7697640899277328116[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test1(kotlin.Int;kotlin.Int){}
// Public signature: /test1|-6134767217751638375[0]
fun test1(a: Int, b: Int): Int
// CHECK JVM_IR:
// Mangled name: #test1x(kotlin.Int;kotlin.Int){}kotlin.Int
// Public signature: /test1x|-5498284681962390624[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test1x(kotlin.Int;kotlin.Int){}
// Public signature: /test1x|-6406641760254042927[0]
fun test1x(a: Int, b: Int): Int
// CHECK JVM_IR:
// Mangled name: #test2(kotlin.Int;kotlin.Int){}kotlin.Int
// Public signature: /test2|5359184932542830643[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test2(kotlin.Int;kotlin.Int){}
// Public signature: /test2|-1200247296907510564[0]
fun test2(a: Int, b: Int): Int
// CHECK JVM_IR:
// Mangled name: #test2x(kotlin.Int;kotlin.Int){}kotlin.Int
// Public signature: /test2x|-5033054795170644611[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test2x(kotlin.Int;kotlin.Int){}
// Public signature: /test2x|-5135897409521978624[0]
fun test2x(a: Int, b: Int): Int
// CHECK JVM_IR:
// Mangled name: #test3(kotlin.Int;kotlin.Int){}kotlin.Int
// Public signature: /test3|113160628592048958[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test3(kotlin.Int;kotlin.Int){}
// Public signature: /test3|1510814219519386190[0]
fun test3(a: Int, b: Int): Int
// CHECK JVM_IR:
// Mangled name: #test3x(kotlin.Int;kotlin.Int){}kotlin.Int
// Public signature: /test3x|-1387842059076164098[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test3x(kotlin.Int;kotlin.Int){}
// Public signature: /test3x|1722805008522433651[0]
fun test3x(a: Int, b: Int): Int
// CHECK JVM_IR:
// Mangled name: #test4(kotlin.Int;kotlin.Int){}kotlin.Int
// Public signature: /test4|-3915516577528979463[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test4(kotlin.Int;kotlin.Int){}
// Public signature: /test4|-490448388534816120[0]
fun test4(a: Int, b: Int): Int
// CHECK JVM_IR:
// Mangled name: #test4x(kotlin.Int;kotlin.Int){}kotlin.Int
// Public signature: /test4x|7349060524077498643[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test4x(kotlin.Int;kotlin.Int){}
// Public signature: /test4x|4214384274819330783[0]
fun test4x(a: Int, b: Int): Int
// CHECK JVM_IR:
// Mangled name: #test5(kotlin.Int;kotlin.Int){}kotlin.Int
// Public signature: /test5|-1250205450627939858[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test5(kotlin.Int;kotlin.Int){}
// Public signature: /test5|2321095467793921266[0]
fun test5(a: Int, b: Int): Int
// CHECK JVM_IR:
// Mangled name: #test5x(kotlin.Int;kotlin.Int){}kotlin.Int
// Public signature: /test5x|6043197125676702572[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test5x(kotlin.Int;kotlin.Int){}
// Public signature: /test5x|3967859070339155556[0]
fun test5x(a: Int, b: Int): Int
// CHECK JVM_IR:
// Mangled name: #test6(kotlin.Int;kotlin.Int){}kotlin.ranges.IntRange
// Public signature: /test6|4933738173333996909[0]
// CHECK JS_IR NATIVE:
// Mangled name: #test6(kotlin.Int;kotlin.Int){}
// Public signature: /test6|-1980698528780914991[0]
fun test6(a: Int, b: Int): IntRange