[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
@@ -1,45 +1,91 @@
package foo
interface Base {
abstract fun foo(x: String): String
}
var global: String
field = ""
get
set
class BaseImpl : Base {
val s: String
field = s
get
constructor(s: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
val s: String
field = s
get
override fun foo(x: String): String {
return "Base: " + <this>.<get-s>() + ":" + x
}
}
var global: String
field = ""
get
set
class Derived : DerivedBase, Base {
private /* final field */ val $$delegate_0: Base = newBase()
init {
{ // BLOCK
<set-global>(<set-?> = <get-global>().plus(other = ":Derived"))
}
}
open class DerivedBase {
constructor() /* primary */ {
super/*Any*/()
super/*DerivedBase*/()
/* <init>() */
}
override fun foo(x: String): String {
return <this>.#$$delegate_0.foo(x = x)
}
}
class Derived1 : DerivedBase, Base {
private /* final field */ val $$delegate_0: Base = newBase()
init {
{ // BLOCK
<set-global>(<set-?> = <get-global>().plus(other = ":Derived"))
}
}
constructor() /* primary */ {
super/*DerivedBase*/()
/* <init>() */
}
override fun foo(x: String): String {
return <this>.#$$delegate_0.foo(x = x)
}
}
open class DerivedBase {
init {
{ // BLOCK
<set-global>(<set-?> = <get-global>().plus(other = ":DerivedBase"))
}
}
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
interface Base {
abstract fun foo(x: String): String
}
fun box(): String {
var d: Derived = Derived()
var d1: Derived1 = Derived1()
return "OK"
}
fun newBase(): Base {
@@ -49,48 +95,3 @@ fun newBase(): Base {
return BaseImpl(s = "test")
}
class Derived : DerivedBase, Base {
constructor() /* primary */ {
super/*DerivedBase*/()
/* <init>() */
}
private /* final field */ val $$delegate_0: Base = newBase()
override fun foo(x: String): String {
return <this>.#$$delegate_0.foo(x = x)
}
init {
{ // BLOCK
<set-global>(<set-?> = <get-global>().plus(other = ":Derived"))
}
}
}
class Derived1 : Base, DerivedBase {
constructor() /* primary */ {
super/*DerivedBase*/()
/* <init>() */
}
private /* final field */ val $$delegate_0: Base = newBase()
override fun foo(x: String): String {
return <this>.#$$delegate_0.foo(x = x)
}
init {
{ // BLOCK
<set-global>(<set-?> = <get-global>().plus(other = ":Derived"))
}
}
}
fun box(): String {
var d: Derived = Derived()
var d1: Derived1 = Derived1()
return "OK"
}