[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
@@ -12,40 +12,18 @@ open annotation class ImplicitIntegerCoercion : Annotation {
// FILE: signedToUnsignedConversions_test.kt
@ImplicitIntegerCoercion
const val IMPLICIT_INT: Int
field = 255
get
@ImplicitIntegerCoercion
const val EXPLICIT_INT: Int
field = 255
get
@ImplicitIntegerCoercion
const val LONG_CONST: Long
field = 255L
get
@ImplicitIntegerCoercion
val NON_CONST: Int
field = 255
get
@ImplicitIntegerCoercion
const val BIGGER_THAN_UBYTE: Int
field = 256
get
@ImplicitIntegerCoercion
const val UINT_CONST: UInt
field = 42
get
fun takeLong(@ImplicitIntegerCoercion l: Long) {
}
fun takeUByte(@ImplicitIntegerCoercion u: UByte) {
}
fun takeUShort(@ImplicitIntegerCoercion u: UShort) {
fun takeUBytes(@ImplicitIntegerCoercion vararg u: UByte) {
}
fun takeUInt(@ImplicitIntegerCoercion u: UInt) {
@@ -54,10 +32,7 @@ fun takeUInt(@ImplicitIntegerCoercion u: UInt) {
fun takeULong(@ImplicitIntegerCoercion u: ULong) {
}
fun takeUBytes(@ImplicitIntegerCoercion vararg u: UByte) {
}
fun takeLong(@ImplicitIntegerCoercion l: Long) {
fun takeUShort(@ImplicitIntegerCoercion u: UShort) {
}
fun test() {
@@ -69,3 +44,29 @@ fun test() {
takeULong(u = <get-IMPLICIT_INT>().toULong())
takeUBytes(u = [<get-IMPLICIT_INT>().toUByte(), <get-EXPLICIT_INT>().toUByte(), 42B])
}
@ImplicitIntegerCoercion
const val BIGGER_THAN_UBYTE: Int
field = 256
get
@ImplicitIntegerCoercion
const val EXPLICIT_INT: Int
field = 255
get
@ImplicitIntegerCoercion
const val IMPLICIT_INT: Int
field = 255
get
@ImplicitIntegerCoercion
const val LONG_CONST: Long
field = 255L
get
@ImplicitIntegerCoercion
const val UINT_CONST: UInt
field = 42
get