Remove directives that have no effect from bytecode text tests

All bytecode text tests are run with stdlib in the classpath and only
for JVM backend, therefore directives WITH_RUNTIME, TARGET_BACKEND,
IGNORE_BACKEND are not needed
This commit is contained in:
Alexander Udalov
2018-12-18 17:35:14 +01:00
parent 00caa23307
commit f5ff3d2fa9
90 changed files with 86 additions and 227 deletions
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun test(s: CharSequence): Int {
var result = 0
for (i in s.indices) {
@@ -16,4 +14,4 @@ fun test(s: CharSequence): Int {
// 0 IF_ICMPGT
// 0 IF_ICMPEQ
// 1 IF_ICMPGE
// 1 IF_ICMPGE
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun Collection<Int>.sumIndices(): Int {
var sum = 0
for (i in indices) {
@@ -16,4 +14,4 @@ fun Collection<Int>.sumIndices(): Int {
// 0 IF_ICMPGT
// 0 IF_ICMPEQ
// 1 IF_ICMPGE
// 1 IF_ICMPGE
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun test() {
var sum = 0
for (i in listOf(0, 0, 0, 0).indices) {
@@ -15,4 +13,4 @@ fun test() {
// 0 IF_ICMPGT
// 0 IF_ICMPEQ
// 1 IF_ICMPGE
// 1 IF_ICMPGE
@@ -1,5 +1,3 @@
// WITH_RUNTIME
import kotlin.test.assertEquals
fun test(coll: Collection<*>?): Int {
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun test() {
var sum = 0
for (i in arrayOf("", "", "", "").indices) {
@@ -15,4 +13,4 @@ fun test() {
// 0 IF_ICMPGT
// 0 IF_ICMPEQ
// 1 IF_ICMPGE
// 1 IF_ICMPGE
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun test() {
var sum = 0
for (i in intArrayOf(0, 0, 0, 0).indices) {
@@ -15,4 +13,4 @@ fun test() {
// 0 IF_ICMPGT
// 0 IF_ICMPEQ
// 1 IF_ICMPGE
// 1 IF_ICMPGE