Tests: unmute light analysis tests passing with JVM_IR

This commit is contained in:
Alexander Udalov
2023-06-12 16:47:50 +02:00
parent cab53361f3
commit 1588b07472
61 changed files with 27 additions and 88 deletions
@@ -1,5 +1,4 @@
// WITH_STDLIB
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: JVM
// LANGUAGE: +InlineClassImplementationByDelegation
@@ -16,4 +15,4 @@ fun box(): String {
val ic: I = IC(i)
res = ic.ok()
return res
}
}
@@ -1,5 +1,4 @@
// WITH_STDLIB
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: JVM
// LANGUAGE: +InlineClassImplementationByDelegation
@@ -24,4 +23,4 @@ fun box(): String {
if (res != "OKK") return "FAIL 4: $res"
return "OK"
}
}
@@ -1,5 +1,4 @@
// WITH_STDLIB
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: JVM
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
@@ -24,4 +23,4 @@ fun box(): String {
if (res != "OKK") return "FAIL 4: $res"
return "OK"
}
}
@@ -1,5 +1,4 @@
// WITH_STDLIB
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: JVM
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
@@ -16,4 +15,4 @@ fun box(): String {
val ic: I = IC(i)
res = ic.ok()
return res
}
}
@@ -1,5 +1,4 @@
// WITH_STDLIB
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: JVM
// LANGUAGE: +InlineClassImplementationByDelegation
@@ -18,4 +17,4 @@ fun box(): String {
val ic: I = IC(i)
res = ic.ok()
return res
}
}
@@ -1,5 +1,4 @@
// WITH_STDLIB
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: JVM
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
@@ -18,4 +17,4 @@ fun box(): String {
val ic: I = IC(i)
res = ic.ok()
return res
}
}
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
fun box(): String =
testBug(null)
+1 -2
View File
@@ -1,6 +1,5 @@
// WITH_STDLIB
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
@@ -54,4 +53,4 @@ fun box(): String {
ex2(Result.success(2))
ex3(Result.success(3))
return if (result == "Ex 1\nEx 2\nEx 3\n") "OK" else "FAIL $result"
}
}
@@ -1,6 +1,5 @@
// WITH_STDLIB
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
@@ -1,6 +1,5 @@
// WITH_STDLIB
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
@@ -1,6 +1,5 @@
// WITH_STDLIB
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
fun <T> foo(a: Result<T>?): T? = bar(a, object : IFace<Result<T>, T> {
override fun call(ic: Result<T>?): T? = ic?.getOrThrow()
@@ -20,4 +19,4 @@ fun box(): String {
res = foo<Int>(null)
if (res != null) return "FAIL $res"
return "OK"
}
}