Files
kotlin-fork/compiler/testData/ir/irText/expressions/simpleUnaryOperators.fir.kt.txt
T
Ivan Kylchik dd264cff50 [IR] Split const folding into necessary one and for optimizations only
In this commit we have a lot of change in test data. This was caused
by the way where we evaluate constants. We split constant evaluation
into two distinct parts: only necessary evaluations for `fir2ir`
(like const val and annotations) and optimizations for lowering.
Now we don't do all constant evaluation on `fir2ir`, but IR
dump is executed after this phase, so test data changed.

#KT-58923
2023-06-14 19:02:39 +00:00

24 lines
270 B
Kotlin
Vendored

fun test1(x: Int): Int {
return x.unaryMinus()
}
fun test2(): Int {
return -42
}
fun test3(x: Int): Int {
return x.unaryPlus()
}
fun test4(): Int {
return 42
}
fun test5(x: Boolean): Boolean {
return x.not()
}
fun test6(): Boolean {
return true.not()
}