[FIR] Enable BytecodeText tests for FIR.
143 out of 767 tests (18.6%) are currently failing.
This commit is contained in:
committed by
Mikhail Glukhikh
parent
69cd729506
commit
238cc7c257
Generated
+4982
File diff suppressed because it is too large
Load Diff
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// TODO KT-36646 Don't box primitive values in equality comparison with nullable primitive values in JVM_IR
|
// TODO KT-36646 Don't box primitive values in equality comparison with nullable primitive values in JVM_IR
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
// IGNORE_BACKEND: JVM, JVM_IR
|
||||||
// ^ TODO support new mangling rules in optimizer
|
// ^ TODO support new mangling rules in optimizer
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
interface A {
|
interface A {
|
||||||
fun foo(): Any
|
fun foo(): Any
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
abstract class A1<Q> : MutableCollection<Q> {
|
abstract class A1<Q> : MutableCollection<Q> {
|
||||||
override fun contains(o: Q): Boolean {
|
override fun contains(o: Q): Boolean {
|
||||||
throw UnsupportedOperationException()
|
throw UnsupportedOperationException()
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
abstract class A3<W> : java.util.AbstractList<W>()
|
abstract class A3<W> : java.util.AbstractList<W>()
|
||||||
abstract class A4<W> : java.util.AbstractList<W>() {
|
abstract class A4<W> : java.util.AbstractList<W>() {
|
||||||
override fun contains(o: W): Boolean {
|
override fun contains(o: W): Boolean {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
abstract class A1 : Collection<String> {
|
abstract class A1 : Collection<String> {
|
||||||
override val size: Int get() = 1
|
override val size: Int get() = 1
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// FILE: JClass.java
|
// FILE: JClass.java
|
||||||
|
|
||||||
public class JClass {
|
public class JClass {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// FILE: JClass.java
|
// FILE: JClass.java
|
||||||
|
|
||||||
public class JClass {
|
public class JClass {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// TODO KT-36637 Trivial closure optimizatin in JVM_IR
|
// TODO KT-36637 Trivial closure optimizatin in JVM_IR
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: -InlineConstVals
|
// !LANGUAGE: -InlineConstVals
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
|
||||||
const val z = 0
|
const val z = 0
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
package inlineInIfFalseDex
|
package inlineInIfFalseDex
|
||||||
|
|
||||||
fun inlineIfFalse() {
|
fun inlineIfFalse() {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
|
||||||
// FILE: uint.kt
|
// FILE: uint.kt
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
import kotlin.sequences.*
|
import kotlin.sequences.*
|
||||||
import kotlin.experimental.*
|
import kotlin.experimental.*
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|
||||||
inline class ICInt(val x: Int) // unbox-impl in generated 'equals'
|
inline class ICInt(val x: Int) // unbox-impl in generated 'equals'
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|
||||||
inline class ICAny(val x: Any)
|
inline class ICAny(val x: Any)
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|
||||||
inline class IC0(val x: Any) // IC0.unbox-impl in generated 'equals'
|
inline class IC0(val x: Any) // IC0.unbox-impl in generated 'equals'
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|
||||||
interface I
|
interface I
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|
||||||
inline class ICString(val x: String)
|
inline class ICString(val x: String)
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// This test checks, that different variables occupy the same slot
|
// This test checks, that different variables occupy the same slot
|
||||||
// In JVM_IR, however, loop variable's lifetime goes beyond the loop itself, thus the test has no sense in JVM_IR
|
// In JVM_IR, however, loop variable's lifetime goes beyond the loop itself, thus the test has no sense in JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun test() {
|
fun test() {
|
||||||
1.(fun Int.() = 2)()
|
1.(fun Int.() = 2)()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
open class SuperFoo {
|
open class SuperFoo {
|
||||||
public fun bar() {
|
public fun bar() {
|
||||||
if (this is Foo) {
|
if (this is Foo) {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val arr = arrayOf("a", "b", "c", "d")
|
val arr = arrayOf("a", "b", "c", "d")
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val arr = arrayOf("a", "b", "c", "d")
|
val arr = arrayOf("a", "b", "c", "d")
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val arr = intArrayOf()
|
val arr = intArrayOf()
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val arr = intArrayOf(10, 20, 30, 40)
|
val arr = intArrayOf(10, 20, 30, 40)
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val arr = arrayOf("a", "b", "c", "d")
|
val arr = arrayOf("a", "b", "c", "d")
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val cs: CharSequence = "abcd"
|
val cs: CharSequence = "abcd"
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
for ((index, x) in "".withIndex()) {
|
for ((index, x) in "".withIndex()) {
|
||||||
return "Loop over empty String should not be executed"
|
return "Loop over empty String should not be executed"
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
val s = StringBuilder()
|
val s = StringBuilder()
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = "abcd"
|
val xs = "abcd"
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = "abcd"
|
val xs = "abcd"
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = "abcd"
|
val xs = "abcd"
|
||||||
|
|
||||||
fun useAny(x: Any) {}
|
fun useAny(x: Any) {}
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = listOf<Any>()
|
val xs = listOf<Any>()
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun <T : Iterable<*>> test(iterable: T): String {
|
fun <T : Iterable<*>> test(iterable: T): String {
|
||||||
val s = StringBuilder()
|
val s = StringBuilder()
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = listOf("a", "b", "c", "d")
|
val xs = listOf("a", "b", "c", "d")
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = listOf("a", "b", "c", "d")
|
val xs = listOf("a", "b", "c", "d")
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = listOf("a", "b", "c", "d")
|
val xs = listOf("a", "b", "c", "d")
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = listOf("a", "b", "c", "d")
|
val xs = listOf("a", "b", "c", "d")
|
||||||
|
|
||||||
fun useAny(x: Any) {}
|
fun useAny(x: Any) {}
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
for ((i, v) in (7 downTo 4).withIndex()) {
|
for ((i, v) in (7 downTo 4).withIndex()) {
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
for ((i, v) in listOf(4, 5, 6, 7).indices.withIndex()) {
|
for ((i, v) in listOf(4, 5, 6, 7).indices.withIndex()) {
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
for ((i, v) in (4..7).withIndex()) {
|
for ((i, v) in (4..7).withIndex()) {
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
for ((i, v) in ((4..11).reversed() step 2).withIndex()) {
|
for ((i, v) in ((4..11).reversed() step 2).withIndex()) {
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
for ((i, v) in (4..7).reversed().withIndex()) {
|
for ((i, v) in (4..7).reversed().withIndex()) {
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
for ((i, v) in (4..11 step 2).reversed().withIndex()) {
|
for ((i, v) in (4..11 step 2).reversed().withIndex()) {
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
for ((i, v) in (4..11 step 2).withIndex()) {
|
for ((i, v) in (4..11 step 2).withIndex()) {
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
for ((i, v) in (4 until 8).withIndex()) {
|
for ((i, v) in (4 until 8).withIndex()) {
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
for ((_, _) in (4..7).withIndex()) {
|
for ((_, _) in (4..7).withIndex()) {
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
for ((outer, iv) in (4..7).withIndex().withIndex()) {
|
for ((outer, iv) in (4..7).withIndex().withIndex()) {
|
||||||
}
|
}
|
||||||
|
|||||||
compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInEmptySequenceWithIndex.kt
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = listOf<Any>().asSequence()
|
val xs = listOf<Any>().asSequence()
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun <T : Sequence<*>> test(sequence: T): String {
|
fun <T : Sequence<*>> test(sequence: T): String {
|
||||||
val s = StringBuilder()
|
val s = StringBuilder()
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = listOf("a", "b", "c", "d").asSequence()
|
val xs = listOf("a", "b", "c", "d").asSequence()
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = listOf("a", "b", "c", "d").asSequence()
|
val xs = listOf("a", "b", "c", "d").asSequence()
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = listOf("a", "b", "c", "d").asSequence()
|
val xs = listOf("a", "b", "c", "d").asSequence()
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// FULL_JDK
|
// FULL_JDK
|
||||||
|
|
||||||
val xsl = arrayListOf("a", "b", "c", "d")
|
val xsl = arrayListOf("a", "b", "c", "d")
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val xs = listOf("a", "b", "c", "d").asSequence()
|
val xs = listOf("a", "b", "c", "d").asSequence()
|
||||||
|
|
||||||
fun useAny(x: Any) {}
|
fun useAny(x: Any) {}
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
const val M = Int.MIN_VALUE
|
const val M = Int.MIN_VALUE
|
||||||
|
|
||||||
fun f(a: Int): Int {
|
fun f(a: Int): Int {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
const val M = Long.MIN_VALUE
|
const val M = Long.MIN_VALUE
|
||||||
|
|
||||||
fun f(a: Long): Int {
|
fun f(a: Long): Int {
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
const val M = UInt.MIN_VALUE
|
const val M = UInt.MIN_VALUE
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
const val M = ULong.MIN_VALUE
|
const val M = ULong.MIN_VALUE
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
val x: () -> Unit = {}
|
val x: () -> Unit = {}
|
||||||
val y = x.hashCode()
|
val y = x.hashCode()
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +ProperIeee754Comparisons
|
// !LANGUAGE: +ProperIeee754Comparisons
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun equals5(a: Any?, b: Any?) = if (a is Double && b is Double?) a == b else null!!
|
fun equals5(a: Any?, b: Any?) = if (a is Double && b is Double?) a == b else null!!
|
||||||
|
|
||||||
fun equals6(a: Any?, b: Any?) = if (a is Double? && b is Double) a == b else null!!
|
fun equals6(a: Any?, b: Any?) = if (a is Double? && b is Double) a == b else null!!
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +ProperIeee754Comparisons
|
// !LANGUAGE: +ProperIeee754Comparisons
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun equals5(a: Any?, b: Any?) = if (a is Float && b is Float?) a == b else null!!
|
fun equals5(a: Any?, b: Any?) = if (a is Float && b is Float?) a == b else null!!
|
||||||
|
|
||||||
fun equals6(a: Any?, b: Any?) = if (a is Float? && b is Float) a == b else null!!
|
fun equals6(a: Any?, b: Any?) = if (a is Float? && b is Float) a == b else null!!
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
var i = 10
|
var i = 10
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
fun test() {
|
fun test() {
|
||||||
{
|
{
|
||||||
|
|||||||
Vendored
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// TODO KT-36783 Consider generating GETFIELD instructions instead of unbox-impl calls in special methods of inline classes in JVM_IR
|
// TODO KT-36783 Consider generating GETFIELD instructions instead of unbox-impl calls in special methods of inline classes in JVM_IR
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|
||||||
// FILE: utils.kt
|
// FILE: utils.kt
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// TODO KT-36783 Consider generating GETFIELD instructions instead of unbox-impl calls in special methods of inline classes in JVM_IR
|
// TODO KT-36783 Consider generating GETFIELD instructions instead of unbox-impl calls in special methods of inline classes in JVM_IR
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// LANGUAGE: +InlineClasses
|
// LANGUAGE: +InlineClasses
|
||||||
import kotlin.reflect.KProperty
|
import kotlin.reflect.KProperty
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
|
||||||
// FILE: Z.kt
|
// FILE: Z.kt
|
||||||
inline class Z(val x: Int)
|
inline class Z(val x: Int)
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
|
||||||
// FILE: Z.kt
|
// FILE: Z.kt
|
||||||
inline class Z(val x: Int)
|
inline class Z(val x: Int)
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
|
||||||
// FILE: Z.kt
|
// FILE: Z.kt
|
||||||
inline class Z(val value: Int)
|
inline class Z(val value: Int)
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
|
||||||
// FILE: Z.kt
|
// FILE: Z.kt
|
||||||
inline class Z(val value: Int)
|
inline class Z(val value: Int)
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// FILE: test.kt
|
// FILE: test.kt
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// The JVM backend does not generate the g-impl method, but ends up calling it from box.
|
// The JVM backend does not generate the g-impl method, but ends up calling it from box.
|
||||||
|
|||||||
Vendored
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
|
||||||
interface A<T> {
|
interface A<T> {
|
||||||
fun foo(a: T): String
|
fun foo(a: T): String
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
|
||||||
// FILE: Z.kt
|
// FILE: Z.kt
|
||||||
inline class Z(val x: Int)
|
inline class Z(val x: Int)
|
||||||
|
|||||||
Vendored
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// Completely incorrect bytecode - see `box/inlineClasses/toStringOfUnboxedNullable.kt`
|
// Completely incorrect bytecode - see `box/inlineClasses/toStringOfUnboxedNullable.kt`
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// TODO KT-36783 Consider generating GETFIELD instructions instead of unbox-impl calls in special methods of inline classes in JVM_IR
|
// TODO KT-36783 Consider generating GETFIELD instructions instead of unbox-impl calls in special methods of inline classes in JVM_IR
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// FILE: first/JavaSuperclass.java
|
// FILE: first/JavaSuperclass.java
|
||||||
|
|
||||||
package first;
|
package first;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// FILE: JClass.java
|
// FILE: JClass.java
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// FILE: first/Foo.java
|
// FILE: first/Foo.java
|
||||||
|
|
||||||
package first;
|
package first;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
interface A<T> {
|
interface A<T> {
|
||||||
fun f(x: T): T
|
fun f(x: T): T
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
interface A {
|
interface A {
|
||||||
fun foo() = 42
|
fun foo() = 42
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +ProperIeee754Comparisons
|
// !LANGUAGE: +ProperIeee754Comparisons
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun equals3(a: Byte?, b: Byte?) = a != null && b != null && a == b
|
fun equals3(a: Byte?, b: Byte?) = a != null && b != null && a == b
|
||||||
|
|
||||||
fun equals4(a: Byte?, b: Byte?) = if (a is Byte && b is Byte) a == b else null!!
|
fun equals4(a: Byte?, b: Byte?) = if (a is Byte && b is Byte) a == b else null!!
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: -ProperIeee754Comparisons
|
// !LANGUAGE: -ProperIeee754Comparisons
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
|
||||||
fun equals3(a: Byte?, b: Byte?) = a != null && b != null && a == b
|
fun equals3(a: Byte?, b: Byte?) = a != null && b != null && a == b
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun equals3(a: Char?, b: Char?) = a != null && b != null && a == b
|
fun equals3(a: Char?, b: Char?) = a != null && b != null && a == b
|
||||||
|
|
||||||
fun equals4(a: Char?, b: Char?) = if (a is Char && b is Char) a == b else null!!
|
fun equals4(a: Char?, b: Char?) = if (a is Char && b is Char) a == b else null!!
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +ProperIeee754Comparisons
|
// !LANGUAGE: +ProperIeee754Comparisons
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun equals3(a: Int?, b: Int?) = a != null && b != null && a == b
|
fun equals3(a: Int?, b: Int?) = a != null && b != null && a == b
|
||||||
|
|
||||||
fun equals4(a: Int?, b: Int?) = if (a is Int && b is Int) a == b else null!!
|
fun equals4(a: Int?, b: Int?) = if (a is Int && b is Int) a == b else null!!
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: -ProperIeee754Comparisons
|
// !LANGUAGE: -ProperIeee754Comparisons
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun equals3(a: Int?, b: Int?) = a != null && b != null && a == b
|
fun equals3(a: Int?, b: Int?) = a != null && b != null && a == b
|
||||||
|
|
||||||
fun equals4(a: Int?, b: Int?) = if (a is Int && b is Int) a == b else null!!
|
fun equals4(a: Int?, b: Int?) = if (a is Int && b is Int) a == b else null!!
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun equals3(a: Long?, b: Long?) = a != null && b != null && a == b
|
fun equals3(a: Long?, b: Long?) = a != null && b != null && a == b
|
||||||
|
|
||||||
fun equals4(a: Long?, b: Long?) = if (a is Long && b is Long) a == b else null!!
|
fun equals4(a: Long?, b: Long?) = if (a is Long && b is Long) a == b else null!!
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +ProperIeee754Comparisons
|
// !LANGUAGE: +ProperIeee754Comparisons
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|
||||||
fun equals3(a: Short?, b: Short?) = a != null && b != null && a == b
|
fun equals3(a: Short?, b: Short?) = a != null && b != null && a == b
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: -ProperIeee754Comparisons
|
// !LANGUAGE: -ProperIeee754Comparisons
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|
||||||
fun equals3(a: Short?, b: Short?) = a != null && b != null && a == b
|
fun equals3(a: Short?, b: Short?) = a != null && b != null && a == b
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// FILE: Child.java
|
// FILE: Child.java
|
||||||
|
|
||||||
class Child extends Parent {
|
class Child extends Parent {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun cond() = false
|
fun cond() = false
|
||||||
|
|
||||||
fun bar() {}
|
fun bar() {}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun foo() {
|
fun foo() {
|
||||||
if (0 < 1) {
|
if (0 < 1) {
|
||||||
System.out?.println()
|
System.out?.println()
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun foo(): Int {
|
fun foo(): Int {
|
||||||
if (false) {
|
if (false) {
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun foo(): Int {
|
fun foo(): Int {
|
||||||
if (false) {
|
if (false) {
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
fun foo(): Int {
|
fun foo(): Int {
|
||||||
if (true) {
|
if (true) {
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user