[FIR] Enable BytecodeText tests for FIR.

143 out of 767 tests (18.6%) are currently failing.
This commit is contained in:
Mark Punzalan
2020-09-29 00:25:09 +00:00
committed by Mikhail Glukhikh
parent 69cd729506
commit 238cc7c257
146 changed files with 5146 additions and 1 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val arr = arrayOf("a", "b", "c", "d")
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val arr = arrayOf("a", "b", "c", "d")
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val arr = intArrayOf()
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val arr = intArrayOf(10, 20, 30, 40)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val arr = arrayOf("a", "b", "c", "d")
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val cs: CharSequence = "abcd"
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
for ((index, x) in "".withIndex()) {
return "Loop over empty String should not be executed"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val s = StringBuilder()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = "abcd"
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = "abcd"
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = "abcd"
fun useAny(x: Any) {}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = listOf<Any>()
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun <T : Iterable<*>> test(iterable: T): String {
val s = StringBuilder()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = listOf("a", "b", "c", "d")
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = listOf("a", "b", "c", "d")
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = listOf("a", "b", "c", "d")
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = listOf("a", "b", "c", "d")
fun useAny(x: Any) {}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
for ((i, v) in (7 downTo 4).withIndex()) {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
for ((i, v) in listOf(4, 5, 6, 7).indices.withIndex()) {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
for ((i, v) in (4..7).withIndex()) {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
for ((i, v) in ((4..11).reversed() step 2).withIndex()) {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
for ((i, v) in (4..7).reversed().withIndex()) {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
for ((i, v) in (4..11 step 2).reversed().withIndex()) {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
for ((i, v) in (4..11 step 2).withIndex()) {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
for ((i, v) in (4 until 8).withIndex()) {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
for ((_, _) in (4..7).withIndex()) {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
for ((outer, iv) in (4..7).withIndex().withIndex()) {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = listOf<Any>().asSequence()
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun <T : Sequence<*>> test(sequence: T): String {
val s = StringBuilder()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = listOf("a", "b", "c", "d").asSequence()
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = listOf("a", "b", "c", "d").asSequence()
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = listOf("a", "b", "c", "d").asSequence()
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// FULL_JDK
val xsl = arrayListOf("a", "b", "c", "d")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
val xs = listOf("a", "b", "c", "d").asSequence()
fun useAny(x: Any) {}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
const val M = Int.MIN_VALUE
fun f(a: Int): Int {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
const val M = Long.MIN_VALUE
fun f(a: Long): Int {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
const val M = UInt.MIN_VALUE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
const val M = ULong.MIN_VALUE