Test infra: refactor IGNORE_BACKEND directive

treat it as a general one, introduce *_K1 and *_K2 variants for
more specific ignoring
This commit is contained in:
Ilya Chernikov
2022-07-21 16:39:12 +02:00
parent 8f18ab19f7
commit 5b3816cce5
234 changed files with 432 additions and 426 deletions
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: test.kt
class MyPair(val x: String, val y: String) {
operator fun component1(): String {
@@ -18,18 +17,18 @@ fun box() {
}
// EXPECTATIONS JVM
// test.kt:16 box:
// test.kt:3 <init>: x:java.lang.String="X":java.lang.String, y:java.lang.String="Y":java.lang.String
// test.kt:16 box:
// test.kt:13 foo: a:MyPair=MyPair, block:kotlin.jvm.functions.Function1=TestKt$box$1
// test.kt:16 invoke: $dstr$x$y:MyPair=MyPair
// test.kt:5 component1:
// test.kt:16 invoke: $dstr$x$y:MyPair=MyPair
// test.kt:9 component2:
// test.kt:16 invoke: $dstr$x$y:MyPair=MyPair
// test.kt:13 foo: a:MyPair=MyPair, block:kotlin.jvm.functions.Function1=TestKt$box$1
// test.kt:16 box:
// test.kt:17 box:
// test.kt:4 <init>: x:java.lang.String="X":java.lang.String, y:java.lang.String="Y":java.lang.String
// test.kt:17 box:
// test.kt:14 foo: a:MyPair=MyPair, block:kotlin.jvm.functions.Function1=TestKt$box$1
// test.kt:17 invoke: $dstr$x$y:MyPair=MyPair
// test.kt:6 component1:
// test.kt:17 invoke: $dstr$x$y:MyPair=MyPair
// test.kt:10 component2:
// test.kt:17 invoke: $dstr$x$y:MyPair=MyPair
// test.kt:14 foo: a:MyPair=MyPair, block:kotlin.jvm.functions.Function1=TestKt$box$1
// test.kt:17 box:
// test.kt:18 box:
// EXPECTATIONS JVM_IR
// test.kt:17 box:
@@ -46,15 +45,15 @@ fun box() {
// test.kt:18 box:
// EXPECTATIONS JS_IR
// test.kt:17 box:
// test.kt:4 <init>: x="X":kotlin.String, y="Y":kotlin.String
// test.kt:4 <init>: x="X":kotlin.String, y="Y":kotlin.String
// test.kt:4 <init>: x="X":kotlin.String, y="Y":kotlin.String
// test.kt:17 box:
// test.kt:14 foo: a=MyPair, block=Function1
// test.kt:17 box$lambda:
// test.kt:6 component1:
// test.kt:17 box$lambda: x="O":kotlin.String
// test.kt:10 component2:
// test.kt:17 box$lambda: x="O":kotlin.String, y="K":kotlin.String
// test.kt:18 box:
// test.kt:16 box:
// test.kt:3 <init>: x="X":kotlin.String, y="Y":kotlin.String
// test.kt:3 <init>: x="X":kotlin.String, y="Y":kotlin.String
// test.kt:3 <init>: x="X":kotlin.String, y="Y":kotlin.String
// test.kt:16 box:
// test.kt:13 foo: a=MyPair, block=Function1
// test.kt:16 box$lambda:
// test.kt:5 component1:
// test.kt:16 box$lambda: x="O":kotlin.String
// test.kt:9 component2:
// test.kt:16 box$lambda: x="O":kotlin.String, y="K":kotlin.String
// test.kt:17 box: