[TEST] Set proper TARGET_BACKEND for jvm-specific irText tests

This commit is contained in:
Roman Artemev
2021-06-07 18:49:16 +03:00
committed by teamcityserver
parent b587b71b0f
commit 14c91ca0de
93 changed files with 93 additions and 0 deletions
@@ -1,4 +1,5 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// !LANGUAGE: +NewInference +SamConversionPerArgument +SamConversionForKotlinFunctions -ProhibitVarargAsArrayAfterSamArgument
// WITH_JDK
@@ -1,4 +1,5 @@
// !LANGUAGE: -NewInference
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: genericSamProjectedOut.kt
import example.SomeJavaClass
@@ -1,3 +1,4 @@
// TARGET_BACKEND: JVM
// FILE: genericSamSmartcast.kt
fun f(x: Any): String {
if (x is A<*>) {
@@ -1,4 +1,5 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM
// FILE: samByProjectedType.kt
fun test1() {
H.bar { x: Any -> x }
@@ -1,4 +1,5 @@
// WITH_JDK
// TARGET_BACKEND: JVM
fun test1() = Runnable { }
fun test2(a: () -> Unit) = Runnable(a)
@@ -1,4 +1,5 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM
// !LANGUAGE: +NewInference +SamConversionPerArgument +ProhibitVarargAsArrayAfterSamArgument
// FILE: samConversionInGenericConstructorCall.kt
fun test1(f: (String) -> String) = C(f)
@@ -1,4 +1,5 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM
// !LANGUAGE: +NewInference +SamConversionPerArgument +SamConversionForKotlinFunctions +ProhibitVarargAsArrayAfterSamArgument
// FILE: samConversionInGenericConstructorCall_NI.kt
fun test3(
@@ -1,3 +1,4 @@
// TARGET_BACKEND: JVM
// FILE: samConversionToGeneric.kt
fun test1() = J<String> { x -> x }
@@ -1,4 +1,5 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM
// WITH_JDK
// FILE: samConversions.kt
fun J.test0(a: Runnable) {
@@ -1,4 +1,5 @@
// !LANGUAGE: -NewInference
// TARGET_BACKEND: JVM
// NB new inference doesn't really work with old JVM back-end.
// WITH_JDK
@@ -1,4 +1,5 @@
// WITH_JDK
// TARGET_BACKEND: JVM
// FILE: samOperators.kt
fun f() {}