Black box: drop WITH_RUNTIME or replace with WITH_STDLIB

This commit is contained in:
Mikhail Glukhikh
2021-12-08 15:38:33 +03:00
committed by TeamCityServer
parent 0f4647d95e
commit 8c7f659a32
22 changed files with 20 additions and 23 deletions
@@ -3,7 +3,7 @@
// Please specify value for 'A.kClass' explicitly
// TARGET_BACKEND: JVM_IR
// IGNORE_DEXING
// WITH_RUNTIME
// WITH_STDLIB
// !LANGUAGE: +InstantiationOfAnnotationClasses
// MODULE: lib
@@ -1,6 +1,6 @@
// !LANGUAGE: +KotlinFunInterfaceConstructorReference
// WITH_RUNTIME
// WITH_STDLIB
// TARGET_BACKEND: JVM
// DONT_TARGET_EXACT_BACKEND: JVM
@@ -1,7 +1,6 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: result.getMethod OK in FE1.0, unresolved in FIR
// WITH_RUNTIME
// FULL_JDK
val defaultStringConverter = fun(s: String): Any {
+1 -1
View File
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
fun builder(c: suspend () -> Unit): Int = 42
+1 -1
View File
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
@JvmInline
value class IC(val s: String)
@@ -1,5 +1,3 @@
// WITH_RUNTIME
fun box(): String {
val a = IntArray(5)
var sum = 0
@@ -2,7 +2,7 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_RUNTIME
// WITH_STDLIB
class A(val ok: String)
@@ -2,7 +2,7 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_RUNTIME
// WITH_STDLIB
context(Collection<P>) class A<P> {
val result = if (!isEmpty()) "OK" else "fail"
@@ -2,7 +2,7 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_RUNTIME
// WITH_STDLIB
fun List<Int>.decimateEveryEvenThird() = sequence {
var counter = 1
@@ -2,7 +2,7 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_RUNTIME
// WITH_STDLIB
class View {
val coefficient = 42
@@ -2,7 +2,7 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_RUNTIME
// WITH_STDLIB
interface Semigroup<T> {
infix fun T.combine(other: T): T
@@ -2,7 +2,7 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -2,7 +2,7 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_RUNTIME
// WITH_STDLIB
@file:Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS")
@@ -2,7 +2,7 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_RUNTIME
// WITH_STDLIB
interface NumberOperations {
operator fun Number.plus(other: Number): Number
@@ -2,7 +2,7 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
// MODULE: lib
@@ -1,7 +1,7 @@
// !JVM_DEFAULT_MODE: all
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
// CHECK_BYTECODE_LISTING
@JvmDefaultWithCompatibility
@@ -1,7 +1,7 @@
// !JVM_DEFAULT_MODE: all
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
// CHECK_BYTECODE_LISTING
@JvmDefaultWithCompatibility
@@ -1,7 +1,7 @@
// !JVM_DEFAULT_MODE: all
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
// CHECK_BYTECODE_LISTING
// FILE: KBase.kt
@@ -1,7 +1,7 @@
// !JVM_DEFAULT_MODE: all
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
// CHECK_BYTECODE_LISTING
annotation class MyAnn
@@ -1,7 +1,7 @@
// !JVM_DEFAULT_MODE: all
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_RUNTIME
// WITH_STDLIB
// FILE: Simple.java
public interface Simple extends KInterface {
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
abstract class Base {
protected abstract fun getChart(context: CharSequence): String
+1 -1
View File
@@ -1,5 +1,5 @@
// !LANGUAGE: +EliminateAmbiguitiesWithExternalTypeParameters
// WITH_RUNTIME
// WITH_STDLIB
class AllCollection<T> {
fun addAll1(vararg values: T) = "NOK"