[Tests] Use stable order for ir/kotlinLike dumps

^KT-65406
This commit is contained in:
Pavel Kunyavskiy
2024-02-05 16:23:41 +01:00
committed by Space Team
parent 0fa42a9c11
commit e6f4d6e6fa
1265 changed files with 43896 additions and 48472 deletions
@@ -9,12 +9,9 @@ class C {
}
var C?.p: Int
get(): Int {
return 42
}
set(value: Int) {
}
operator fun Int?.get(index: Int): Int {
return 42
}
operator fun Int?.inc(): Int? {
return { // BLOCK
@@ -26,42 +23,46 @@ operator fun Int?.inc(): Int? {
}
}
operator fun Int?.get(index: Int): Int {
return 42
operator fun Int?.set(index: Int, value: Int) {
}
operator fun Int?.set(index: Int, value: Int) {
fun testArrayAccess(nc: C?) {
{ // BLOCK
val tmp_1: Int? = { // BLOCK
val tmp_2: C? = nc
when {
EQEQ(arg0 = tmp_2, arg1 = null) -> null
else -> tmp_2.<get-p>()
}
}
val tmp_3: Int = 0
val tmp_4: Int = tmp_1.get(index = tmp_3)
tmp_1.set(index = tmp_3, value = tmp_4.inc())
tmp_4
} /*~> Unit */
}
fun testProperty(nc: C?) {
{ // BLOCK
val tmp_1: C? = nc
val tmp_5: C? = nc
when {
EQEQ(arg0 = tmp_1, arg1 = null) -> null
EQEQ(arg0 = tmp_5, arg1 = null) -> null
else -> { // BLOCK
val tmp_2: C? = tmp_1
val tmp_6: C? = tmp_5
{ // BLOCK
val tmp_3: Int = tmp_2.<get-p>()
tmp_2.<set-p>(value = tmp_3.inc())
tmp_3
val tmp_7: Int = tmp_6.<get-p>()
tmp_6.<set-p>(value = tmp_7.inc())
tmp_7
}
}
}
} /*~> Unit */
}
fun testArrayAccess(nc: C?) {
{ // BLOCK
val tmp_4: Int? = { // BLOCK
val tmp_5: C? = nc
when {
EQEQ(arg0 = tmp_5, arg1 = null) -> null
else -> tmp_5.<get-p>()
}
}
val tmp_6: Int = 0
val tmp_7: Int = tmp_4.get(index = tmp_6)
tmp_4.set(index = tmp_6, value = tmp_7.inc())
tmp_7
} /*~> Unit */
}
var C?.p: Int
get(): Int {
return 42
}
set(value: Int) {
}