Files
kotlin-fork/compiler/testData/ir/irText/expressions/callWithReorderedArguments.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

32 lines
436 B
Kotlin
Vendored

fun foo(a: Int, b: Int) {
}
fun noReorder1(): Int {
return 1
}
fun noReorder2(): Int {
return 2
}
fun reordered1(): Int {
return 1
}
fun reordered2(): Int {
return 2
}
fun test() {
foo(a = noReorder1(), b = noReorder2())
{ // BLOCK
val tmp0_b: Int = reordered1()
val tmp1_a: Int = reordered2()
foo(a = tmp1_a, b = tmp0_b)
}
{ // BLOCK
val tmp2_a: Int = reordered2()
foo(a = tmp2_a, b = 1)
}
}