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:
+10
-11
@@ -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
@@ -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
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
|
||||
// FILE: test.kt
|
||||
fun box(): String {
|
||||
|
||||
Reference in New Issue
Block a user