Replace all occurrences of WITH_RUNTIME with WITH_STDLIB

We are going to deprecate `WITH_RUNTIME` directive. The main reason
behind this change is that `WITH_STDLIB` directive better describes
its meaning, specifically it will add kotlin stdlib to test's classpath.
This commit is contained in:
Ivan Kylchik
2021-11-15 17:30:42 +03:00
committed by TeamCityServer
parent 960ba3ffde
commit c7435ba760
4318 changed files with 4328 additions and 4326 deletions
@@ -1,5 +1,5 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// WITH_STDLIB
// IGNORE_BACKEND: JVM, JVM_IR
// ^ TODO support new mangling rules in optimizer
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
fun box(): String {
val x: String
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -7,7 +7,7 @@
// Run Kotlin compiler benchmarks (https://github.com/Kotlin/kotlin-benchmarks)
// with compiler built from your changes if you are not sure.
// WITH_RUNTIME
// WITH_STDLIB
fun intRangeTo(a: Int, b: Int) { for (i in a .. b) {} }
fun intRangeToStep(a: Int, b: Int) { for (i in a .. b step 127) {} } // Uses IADD in non-IR
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM_IR
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM_IR
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM_IR
// WITH_RUNTIME
// WITH_STDLIB
fun box(): String {
val uintProgression = 1u..7u step 3 // `step` ensures type is UIntProgression, NOT UIntRange
for (i in uintProgression step 2) {
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM_IR
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM_IR
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM_IR
// WITH_RUNTIME
// WITH_STDLIB
// IMPORTANT!
// Please, when your changes cause failures in bytecodeText tests for 'for' loops,
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.math.sin
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
fun test(xs: List<String>) =
xs.map { it.length }
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
fun test() = run {
var tmp = 0
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
fun vectorReductionMax(vA: DoubleArray): Double {
val n = vA.size
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.math.sin
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
inline class IC(val x: Int)
class C {
@@ -1,5 +1,5 @@
// !API_VERSION: 1.3
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun test() {
val result = Result.success("yes!")
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun test() {
val result = Result.success("yes!")
@@ -1,5 +1,5 @@
// !API_VERSION: LATEST_STABLE
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun test() {
val result = Result.success("yes!")
@@ -1,7 +1,7 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun test() {
val ans1 = runCatching { 42 }
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun test() {
val result = Result.success("yes!")
@@ -1,5 +1,5 @@
// !LANGUAGE: +InlineClasses
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
inline class A(val s: String) {
fun fromResult(x: Result<String>) =
@@ -1,7 +1,7 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// SAM_CONVERSIONS: INDY
// WITH_RUNTIME
// WITH_STDLIB
// FULL_JDK
fun hello() { println("Hello, world!") }
@@ -1,7 +1,7 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// SAM_CONVERSIONS: INDY
// WITH_RUNTIME
// WITH_STDLIB
// FULL_JDK
import java.util.stream.*
+1 -1
View File
@@ -1,5 +1,5 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
// FULL_JDK
// FILE: TestMap.java
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: part1.kt
@file:JvmName("Facade")
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: part1.kt
@file:JvmName("Facade")
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
import kotlin.test.*
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
class C(var x: Int) {
val y by C::x
var ym by C::x
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
val topLevelLazyVal by lazy { 1 }
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
fun test(): Int = "123".indexOfAny(CharArray(1000) { '1' })
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: SingletonCollection.kt
package test
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// JVM_TARGET: 1.6
val ua = 1234U
@@ -1,5 +1,5 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
val ua = 1234U
val ub = 5678U
@@ -1,5 +1,5 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
val ua = 1234U
val ub = 5678U
@@ -1,5 +1,5 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
val ua = 1234U
val ub = 5678U
@@ -1,5 +1,5 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
fun both(a: Any?, b: Any?) = if (a is UInt && b is UInt) a < b else null!!
@@ -1,5 +1,5 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
fun box(): String {
val min = 0U.toString()
@@ -1,5 +1,5 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
val ua = 1234UL
val ub = 5678UL
@@ -1,5 +1,5 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
val ua = 1234UL
val ub = 5678UL
@@ -1,5 +1,5 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
val ua = 1234UL
val ub = 5678UL
@@ -1,5 +1,5 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
fun box(): String {
val min = 0UL.toString()
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
const val M1: UInt = 2147483648u