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
data class A(val x: String, val y: Int)
@@ -10,16 +9,16 @@ fun box() {
}
// EXPECTATIONS JVM
// test.kt:8 box:
// test.kt:3 <init>: x:java.lang.String="O":java.lang.String, y:int=123:int
// test.kt:8 box:
// test.kt:3 <init>: x:java.lang.String="K":java.lang.String, y:int=877:int
// test.kt:8 box:
// test.kt:5 foo: a:A=A, b:A=A, block:kotlin.jvm.functions.Function2=TestKt$box$1
// test.kt:8 invoke: $dstr$x$y:A=A, $dstr$z$w:A=A
// test.kt:5 foo: a:A=A, b:A=A, block:kotlin.jvm.functions.Function2=TestKt$box$1
// test.kt:8 box:
// test.kt:9 box:
// test.kt:4 <init>: x:java.lang.String="O":java.lang.String, y:int=123:int
// test.kt:9 box:
// test.kt:4 <init>: x:java.lang.String="K":java.lang.String, y:int=877:int
// test.kt:9 box:
// test.kt:6 foo: a:A=A, b:A=A, block:kotlin.jvm.functions.Function2=TestKt$box$1
// test.kt:9 invoke: $dstr$x$y:A=A, $dstr$z$w:A=A
// test.kt:6 foo: a:A=A, b:A=A, block:kotlin.jvm.functions.Function2=TestKt$box$1
// test.kt:9 box:
// test.kt:10 box:
// EXPECTATIONS JVM_IR
// test.kt:9 box:
@@ -34,23 +33,23 @@ fun box() {
// test.kt:10 box:
// EXPECTATIONS JS_IR
// test.kt:9 box:
// test.kt:4 <init>: x="O":kotlin.String, y=123:number
// test.kt:4 <init>: x="O":kotlin.String, y=123:number
// test.kt:4 <init>: x="O":kotlin.String, y=123:number
// test.kt:9 box:
// test.kt:4 <init>: x="K":kotlin.String, y=877:number
// test.kt:4 <init>: x="K":kotlin.String, y=877:number
// test.kt:4 <init>: x="K":kotlin.String, y=877:number
// test.kt:9 box:
// test.kt:6 foo: a=A, b=A, block=Function2
// test.kt:9 box$lambda:
// test.kt:8 box:
// test.kt:3 <init>: x="O":kotlin.String, y=123:number
// test.kt:3 <init>: x="O":kotlin.String, y=123:number
// test.kt:3 <init>: x="O":kotlin.String, y=123:number
// test.kt:8 box:
// test.kt:3 <init>: x="K":kotlin.String, y=877:number
// test.kt:3 <init>: x="K":kotlin.String, y=877:number
// test.kt:3 <init>: x="K":kotlin.String, y=877:number
// test.kt:8 box:
// test.kt:5 foo: a=A, b=A, block=Function2
// test.kt:8 box$lambda:
// test.kt:1 component1:
// test.kt:9 box$lambda: x="O":kotlin.String
// test.kt:8 box$lambda: x="O":kotlin.String
// test.kt:1 component2:
// test.kt:9 box$lambda: x="O":kotlin.String, y=123:number
// test.kt:8 box$lambda: x="O":kotlin.String, y=123:number
// test.kt:1 component1:
// test.kt:9 box$lambda: x="O":kotlin.String, y=123:number, z="K":kotlin.String
// test.kt:8 box$lambda: x="O":kotlin.String, y=123:number, z="K":kotlin.String
// test.kt:1 component2:
// test.kt:9 box$lambda: x="O":kotlin.String, y=123:number, z="K":kotlin.String, w=877:number
// test.kt:10 box:
// test.kt:8 box$lambda: x="O":kotlin.String, y=123:number, z="K":kotlin.String, w=877:number
// test.kt:9 box: