[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
+37
-36
@@ -1,3 +1,16 @@
|
||||
class A {
|
||||
val a: Any?
|
||||
field = a
|
||||
get
|
||||
|
||||
constructor(a: Any?) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Context {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
@@ -11,42 +24,6 @@ class Context {
|
||||
|
||||
}
|
||||
|
||||
inline fun testInline($context_receiver_0: Context): Int {
|
||||
return $context_receiver_0.c()
|
||||
}
|
||||
|
||||
inline fun testInlineWithArg($context_receiver_0: Context, i: Int): Int {
|
||||
return i.plus(other = $context_receiver_0.c())
|
||||
}
|
||||
|
||||
inline fun Int.testInlineWithExtensionAndArg($context_receiver_0: Context, i: Int): Int {
|
||||
return <this>.plus(other = i).plus(other = $context_receiver_0.c())
|
||||
}
|
||||
|
||||
inline fun Int.testInlineWithExtensionAndMultipleArgs($context_receiver_0: Context, i1: Int, i2: Int): Int {
|
||||
return <this>.plus(other = i1).plus(other = i2).plus(other = $context_receiver_0.c())
|
||||
}
|
||||
|
||||
class A {
|
||||
constructor(a: Any?) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val a: Any?
|
||||
field = a
|
||||
get
|
||||
|
||||
}
|
||||
|
||||
inline fun Int.testInlineWithExtensionAndMultipleContextsAndArgs($context_receiver_0: Context, $context_receiver_1: A, i1: Int = 1, i2: Int = 2): Int {
|
||||
return <this>.plus(other = i1).plus(other = i2).plus(other = $context_receiver_0.c()).plus(other = when {
|
||||
EQEQ(arg0 = $context_receiver_1.<get-a>(), arg1 = null) -> 0
|
||||
else -> 1
|
||||
})
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return with<Context, Nothing>(receiver = Context(), block = local fun Context.<anonymous>(): Nothing {
|
||||
var result: Int = 0
|
||||
@@ -66,3 +43,27 @@ fun box(): String {
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
inline fun testInline($context_receiver_0: Context): Int {
|
||||
return $context_receiver_0.c()
|
||||
}
|
||||
|
||||
inline fun testInlineWithArg($context_receiver_0: Context, i: Int): Int {
|
||||
return i.plus(other = $context_receiver_0.c())
|
||||
}
|
||||
|
||||
inline fun Int.testInlineWithExtensionAndArg($context_receiver_0: Context, i: Int): Int {
|
||||
return <this>.plus(other = i).plus(other = $context_receiver_0.c())
|
||||
}
|
||||
|
||||
inline fun Int.testInlineWithExtensionAndMultipleArgs($context_receiver_0: Context, i1: Int, i2: Int): Int {
|
||||
return <this>.plus(other = i1).plus(other = i2).plus(other = $context_receiver_0.c())
|
||||
}
|
||||
|
||||
inline fun Int.testInlineWithExtensionAndMultipleContextsAndArgs($context_receiver_0: Context, $context_receiver_1: A, i1: Int = 1, i2: Int = 2): Int {
|
||||
return <this>.plus(other = i1).plus(other = i2).plus(other = $context_receiver_0.c()).plus(other = when {
|
||||
EQEQ(arg0 = $context_receiver_1.<get-a>(), arg1 = null) -> 0
|
||||
else -> 1
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user