JVM IR: invoke codegen after lowering all files in the module
Inspired by discussion in #2316
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// FILE: util.kt
|
||||
|
||||
inline fun ieq(x: Int, y: Int) = x == y
|
||||
@@ -23,4 +22,4 @@ fun testge(x: Int) = ige(x, 0)
|
||||
// 0 IF_ICMPGE
|
||||
// 0 IF_ICMPGT
|
||||
// 0 IF_ICMPLE
|
||||
// 0 IF_ICMPLT
|
||||
// 0 IF_ICMPLT
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// FILE: util.kt
|
||||
const val FLAG = true
|
||||
const val OTHER_FLAG = false
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// FILE: util.kt
|
||||
const val MAGIC = 42
|
||||
|
||||
@@ -56,4 +55,4 @@ fun test() {
|
||||
// 0 IFLT
|
||||
// 0 IFLE
|
||||
// 0 IFGE
|
||||
// 0 IFGT
|
||||
// 0 IFGT
|
||||
|
||||
Reference in New Issue
Block a user