[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
+90
-89
@@ -1,99 +1,15 @@
|
||||
object X1 {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
var x1: Int
|
||||
field = 0
|
||||
class B {
|
||||
var s: Int
|
||||
field = s
|
||||
get
|
||||
set
|
||||
|
||||
object X2 {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
var x2: Int
|
||||
field = 0
|
||||
get
|
||||
set
|
||||
|
||||
object X3 {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
var x3: Int
|
||||
field = 0
|
||||
get
|
||||
set
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun test1(a: IntArray) {
|
||||
var i: Int = 0
|
||||
{ // BLOCK
|
||||
val tmp_0: IntArray = a
|
||||
val tmp_1: Int = { // BLOCK
|
||||
val tmp_2: Int = i
|
||||
i = tmp_2.inc()
|
||||
tmp_2
|
||||
}
|
||||
val tmp_3: Int = tmp_0.get(index = tmp_1)
|
||||
tmp_0.set(index = tmp_1, value = tmp_3.inc())
|
||||
tmp_3
|
||||
} /*~> Unit */
|
||||
}
|
||||
|
||||
fun test2() {
|
||||
{ // BLOCK
|
||||
val tmp_4: X1 = X1
|
||||
{ // BLOCK
|
||||
val tmp_5: Int = tmp_4.<get-x1>()
|
||||
tmp_4.<set-x1>(<set-?> = tmp_5.inc())
|
||||
tmp_5
|
||||
}
|
||||
} /*~> Unit */
|
||||
{ // BLOCK
|
||||
val tmp_6: X2 = X2
|
||||
{ // BLOCK
|
||||
val tmp_7: Int = tmp_6.<get-x2>()
|
||||
tmp_6.<set-x2>(<set-?> = tmp_7.inc())
|
||||
tmp_7
|
||||
}
|
||||
} /*~> Unit */
|
||||
{ // BLOCK
|
||||
val tmp_8: X3 = X3
|
||||
{ // BLOCK
|
||||
val tmp_9: Int = tmp_8.<get-x3>()
|
||||
tmp_8.<set-x3>(<set-?> = tmp_9.inc())
|
||||
tmp_9
|
||||
}
|
||||
} /*~> Unit */
|
||||
}
|
||||
|
||||
class B {
|
||||
constructor(s: Int = 0) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
var s: Int
|
||||
field = s
|
||||
get
|
||||
set
|
||||
|
||||
}
|
||||
|
||||
object Host {
|
||||
@@ -105,13 +21,98 @@ object Host {
|
||||
|
||||
operator fun B.plusAssign(b: B) {
|
||||
{ // BLOCK
|
||||
val tmp_10: B = <this>
|
||||
tmp_10.<set-s>(<set-?> = tmp_10.<get-s>().plus(other = b.<get-s>()))
|
||||
val tmp_0: B = <this>
|
||||
tmp_0.<set-s>(<set-?> = tmp_0.<get-s>().plus(other = b.<get-s>()))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
object X1 {
|
||||
var x1: Int
|
||||
field = 0
|
||||
get
|
||||
set
|
||||
|
||||
object X2 {
|
||||
var x2: Int
|
||||
field = 0
|
||||
get
|
||||
set
|
||||
|
||||
object X3 {
|
||||
var x3: Int
|
||||
field = 0
|
||||
get
|
||||
set
|
||||
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun test1(a: IntArray) {
|
||||
var i: Int = 0
|
||||
{ // BLOCK
|
||||
val tmp_1: IntArray = a
|
||||
val tmp_2: Int = { // BLOCK
|
||||
val tmp_3: Int = i
|
||||
i = tmp_3.inc()
|
||||
tmp_3
|
||||
}
|
||||
val tmp_4: Int = tmp_1.get(index = tmp_2)
|
||||
tmp_1.set(index = tmp_2, value = tmp_4.inc())
|
||||
tmp_4
|
||||
} /*~> Unit */
|
||||
}
|
||||
|
||||
fun test2() {
|
||||
{ // BLOCK
|
||||
val tmp_5: X1 = X1
|
||||
{ // BLOCK
|
||||
val tmp_6: Int = tmp_5.<get-x1>()
|
||||
tmp_5.<set-x1>(<set-?> = tmp_6.inc())
|
||||
tmp_6
|
||||
}
|
||||
} /*~> Unit */
|
||||
{ // BLOCK
|
||||
val tmp_7: X2 = X2
|
||||
{ // BLOCK
|
||||
val tmp_8: Int = tmp_7.<get-x2>()
|
||||
tmp_7.<set-x2>(<set-?> = tmp_8.inc())
|
||||
tmp_8
|
||||
}
|
||||
} /*~> Unit */
|
||||
{ // BLOCK
|
||||
val tmp_9: X3 = X3
|
||||
{ // BLOCK
|
||||
val tmp_10: Int = tmp_9.<get-x3>()
|
||||
tmp_9.<set-x3>(<set-?> = tmp_10.inc())
|
||||
tmp_10
|
||||
}
|
||||
} /*~> Unit */
|
||||
}
|
||||
|
||||
fun Host.test3(v: B) {
|
||||
(<this>, v).plusAssign(b = B(s = 1000))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user