Files
kotlin-fork/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt
T
2016-10-18 09:09:19 +03:00

41 lines
1.9 KiB
Plaintext
Vendored

FILE /callWithReorderedArguments.kt
FUN public fun foo(a: kotlin.Int, b: kotlin.Int): kotlin.Unit
BLOCK_BODY
FUN public fun noReorder1(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='noReorder1(): Int'
CONST Int type=kotlin.Int value='1'
FUN public fun noReorder2(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='noReorder2(): Int'
CONST Int type=kotlin.Int value='2'
FUN public fun reordered1(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='reordered1(): Int'
CONST Int type=kotlin.Int value='1'
FUN public fun reordered2(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='reordered2(): Int'
CONST Int type=kotlin.Int value='2'
FUN public fun test(): kotlin.Unit
BLOCK_BODY
CALL 'foo(Int, Int): Unit' type=kotlin.Unit operator=null
a: CALL 'noReorder1(): Int' type=kotlin.Int operator=null
b: CALL 'noReorder2(): Int' type=kotlin.Int operator=null
BLOCK type=kotlin.Unit operator=ARGUMENTS_REORDERING_FOR_CALL
VAR IR_TEMPORARY_VARIABLE val tmp0_b: kotlin.Int
CALL 'reordered1(): Int' type=kotlin.Int operator=null
VAR IR_TEMPORARY_VARIABLE val tmp1_a: kotlin.Int
CALL 'reordered2(): Int' type=kotlin.Int operator=null
CALL 'foo(Int, Int): Unit' type=kotlin.Unit operator=null
a: GET_VAR 'tmp1_a: Int' type=kotlin.Int operator=null
b: GET_VAR 'tmp0_b: Int' type=kotlin.Int operator=null
BLOCK type=kotlin.Unit operator=ARGUMENTS_REORDERING_FOR_CALL
VAR IR_TEMPORARY_VARIABLE val tmp2_b: kotlin.Int
CONST Int type=kotlin.Int value='1'
VAR IR_TEMPORARY_VARIABLE val tmp3_a: kotlin.Int
CALL 'reordered2(): Int' type=kotlin.Int operator=null
CALL 'foo(Int, Int): Unit' type=kotlin.Unit operator=null
a: GET_VAR 'tmp3_a: Int' type=kotlin.Int operator=null
b: GET_VAR 'tmp2_b: Int' type=kotlin.Int operator=null