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
+10 -11
View File
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: test.kt
interface ObjectFace
@@ -15,16 +14,16 @@ fun box() {
// IR backend has additional steps on the way _out_ of the init block.
// EXPECTATIONS JVM JVM_IR
// test.kt:11 box
// test.kt:5 makeFace
// test.kt:5 <init>
// test.kt:7 <init>
// test.kt:8 makeFace
// test.kt:11 box
// test.kt:12 box
// test.kt:6 makeFace
// test.kt:6 <init>
// test.kt:8 <init>
// test.kt:9 makeFace
// test.kt:12 box
// test.kt:13 box
// EXPECTATIONS JS_IR
// test.kt:12 box
// test.kt:9 makeFace
// test.kt:6 <init>
// test.kt:13 box
// test.kt:11 box
// test.kt:8 makeFace
// test.kt:5 <init>
// test.kt:12 box
+11 -12
View File
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: test.kt
class A {
val a = 1
@@ -16,19 +15,19 @@ fun box() {
}
// EXPECTATIONS JVM JVM_IR
// test.kt:15 box
// test.kt:14 box
// test.kt:3 <init>
// test.kt:4 <init>
// test.kt:5 <init>
// test.kt:15 box
// test.kt:8 foo
// test.kt:14 box
// test.kt:7 foo
// test.kt:9 foo
// test.kt:10 foo
// test.kt:11 foo
// test.kt:16 box
// test.kt:15 box
// EXPECTATIONS JS_IR
// test.kt:15 box
// test.kt:5 <init>
// test.kt:14 box
// test.kt:4 <init>
// test.kt:15 box
// test.kt:11 foo
// test.kt:16 box
// test.kt:3 <init>
// test.kt:14 box
// test.kt:10 foo
// test.kt:15 box
+1 -1
View File
@@ -1,4 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// FILE: test.kt
fun box(): String {