Remove tests on -Xuse-ir compiler flag

This flag is going to be removed because old backend is not supported
anymore, therefore there's no need to test it.
This commit is contained in:
Alexander Udalov
2023-05-19 16:54:29 +02:00
committed by Space Team
parent 22096cec3c
commit bb4bb58453
61 changed files with 24 additions and 429 deletions
@@ -1,5 +1,4 @@
$TESTDATA_DIR$/simple.kt
-d
$TEMP_DIR$
-Xuse-ir
-Xabi-stability=unknown
-4
View File
@@ -1,4 +0,0 @@
$TESTDATA_DIR$/inlineCycle.kt
-d
$TEMP_DIR$
-Xuse-ir
-7
View File
@@ -1,7 +0,0 @@
compiler/testData/cli/jvm/inlineCycle.kt:2:5: error: the 'b' invocation is a part of inline cycle
b(q)
^
compiler/testData/cli/jvm/inlineCycle.kt:18:5: error: the 'a' invocation is a part of inline cycle
a(p)
^
COMPILATION_ERROR
-8
View File
@@ -1,8 +0,0 @@
$TESTDATA_DIR$/simple.kt
-d
$TEMP_DIR$
-language-version
1.4
-api-version
1.4
-Xuse-ir
-2
View File
@@ -1,2 +0,0 @@
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
OK
-13
View File
@@ -1,13 +0,0 @@
// This test checks that with -language-version 1.4 we're using the old JVM backend,
// and with -language-version 1.5 -- the new JVM IR backend.
// JVM IR doesn't produce classes for local functions, so the test checks which backend
// is used by asserting that the file for the anonymous class does or doesn't exist.
// Feel free to remove both _1_4 and _1_5 tests as soon as either the old JVM backend
// or LV 1.4 is removed, whichever happens earlier.
class C {
fun test() {
fun local() {}
}
}
-5
View File
@@ -1,5 +0,0 @@
$TESTDATA_DIR$/jvmIrByDefault.kt
-d
$TEMP_DIR$
-language-version
1.4
-2
View File
@@ -1,2 +0,0 @@
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
OK
-1
View File
@@ -1 +0,0 @@
// EXISTS: C$test$1.class
-5
View File
@@ -1,5 +0,0 @@
$TESTDATA_DIR$/jvmIrByDefault.kt
-d
$TEMP_DIR$
-language-version
1.5
-2
View File
@@ -1,2 +0,0 @@
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
OK
-1
View File
@@ -1 +0,0 @@
// ABSENT: C$test$1.class
-1
View File
@@ -1,5 +1,4 @@
-d
$TEMP_DIR$
-Xuse-ir
-Xverbose-phases=qz,qq
$TESTDATA_DIR$/simple.kt
-5
View File
@@ -1,5 +0,0 @@
$TESTDATA_DIR$/nonLocalDisabled.kt
-Xno-inline
-d
$TEMP_DIR$
-Xuse-ir
-7
View File
@@ -1,7 +0,0 @@
compiler/testData/cli/jvm/nonLocalDisabled.kt:3:9: error: non-local returns are not allowed with inlining disabled
return
^
compiler/testData/cli/jvm/nonLocalDisabled.kt:7:9: error: non-local returns are not allowed with inlining disabled
return@a
^
COMPILATION_ERROR