Enable bytecode text tests for the JVM_IR backend.

This commit is contained in:
Mads Ager
2018-12-21 13:22:56 +01:00
committed by Mikhael Bogdanov
parent d1efac617d
commit 3a11322506
347 changed files with 3651 additions and 0 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun test(s: CharSequence): Int {
var result = 0
for (i in s.indices) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun Collection<Int>.sumIndices(): Int {
var sum = 0
for (i in indices) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun test() {
var sum = 0
for (i in listOf(0, 0, 0, 0).indices) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
import kotlin.test.assertEquals
fun test(coll: Collection<*>?): Int {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun test() {
var sum = 0
for (i in arrayOf("", "", "", "").indices) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun test() {
var sum = 0
for (i in intArrayOf(0, 0, 0, 0).indices) {