mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user