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

View File

@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun test1() {
val a = null
@@ -15,4 +13,4 @@ fun test1() {
// 0 IFNULL
// 0 IFNONNULL
// 0 X1
// 1 X2
// 1 X2

View File

@@ -1,5 +1,3 @@
// WITH_RUNTIME
// FILE: test.kt
fun test1() {
@@ -16,4 +14,4 @@ fun test1() {
// 0 X3
// FILE: inline.kt
inline fun <T : Any> T?.elvis(rhs: () -> T): T = this ?: rhs()
inline fun <T : Any> T?.elvis(rhs: () -> T): T = this ?: rhs()

View File

@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun test1() {
val a = Unit
@@ -15,4 +13,4 @@ fun test1() {
// 0 IFNULL
// 0 IFNONNULL
// 1 X1
// 0 X2
// 0 X2

View File

@@ -1,5 +1,3 @@
// WITH_RUNTIME
// FILE: test.kt
fun test1(): String {
@@ -15,4 +13,4 @@ fun test1(): String {
// FILE: inline.kt
inline fun <T : Any, R> T?.mapNullable(ifNotNull: (T) -> R, ifNull: () -> R): R =
if (this == null) ifNull() else ifNotNull(this)
if (this == null) ifNull() else ifNotNull(this)

View File

@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun test() {
val value = System.getProperty("key")
if (value != null) {
@@ -8,4 +6,4 @@ fun test() {
}
// 1 IFNULL
// 0 IFNONNULL
// 0 IFNONNULL