mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +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,4 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
import kotlin.test.*
|
||||
|
||||
fun intRange() = 1 .. 4
|
||||
@@ -27,4 +26,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 0 reversed
|
||||
// 0 reversed
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
import kotlin.test.*
|
||||
|
||||
fun box(): String {
|
||||
@@ -12,4 +11,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 0 reversed
|
||||
// 0 reversed
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
import kotlin.test.*
|
||||
|
||||
fun box(): String {
|
||||
@@ -12,4 +11,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 0 reversed
|
||||
// 0 reversed
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
import kotlin.test.*
|
||||
|
||||
fun box(): String {
|
||||
@@ -12,4 +11,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 0 reversed
|
||||
// 0 reversed
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
import kotlin.test.*
|
||||
|
||||
fun box(): String {
|
||||
@@ -23,4 +22,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 0 reversed
|
||||
// 0 reversed
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun box(): String {
|
||||
for (i in (4 .. 1).reversed()) {
|
||||
throw AssertionError("Loop should not be executed")
|
||||
@@ -18,4 +16,4 @@ fun box(): String {
|
||||
// 0 getEnd
|
||||
// 0 getFirst
|
||||
// 0 getLast
|
||||
// 0 getStep
|
||||
// 0 getStep
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
import kotlin.test.*
|
||||
|
||||
fun intRange() = 1 .. 4
|
||||
@@ -27,4 +26,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 0 reversed
|
||||
// 0 reversed
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
import kotlin.test.*
|
||||
|
||||
fun box(): String {
|
||||
@@ -32,4 +31,4 @@ fun box(): String {
|
||||
// 0 IFEQ
|
||||
// 0 IF_ICMPEQ
|
||||
// 2 IF_ICMPLT
|
||||
// 1 LCMP
|
||||
// 1 LCMP
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
import kotlin.test.*
|
||||
|
||||
fun intRange() = 1 .. 4
|
||||
@@ -27,4 +26,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 0 reversed
|
||||
// 0 reversed
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
import kotlin.test.*
|
||||
|
||||
fun box(): String {
|
||||
@@ -20,4 +19,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 0 reversed
|
||||
// 0 reversed
|
||||
|
||||
Reference in New Issue
Block a user