Fail on compilation errors in AbstractBytecodeTextTest

This commit is contained in:
Mikhael Bogdanov
2021-02-17 13:41:33 +01:00
parent 61fce74b76
commit 3d8e8dd3ba
11 changed files with 21 additions and 8 deletions
@@ -1,6 +1,7 @@
// !LANGUAGE: +InlineClasses
// FILE: Z.kt
@Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS")
inline class Z(val x: Int) {
val aVal: Int
get() = x
@@ -1,3 +1,4 @@
// IGNORE_DEXING
class `(X)` {
fun `(Y)`() {}
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM
fun main() {
println("FAIL")
}
@@ -1,3 +1,5 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun main()
{
l@ if (2 != 1) "fail 3"
@@ -1,7 +1,7 @@
// IGNORE_BACKEND: JVM
fun test(x: Int): String {
when {
return when {
x == 1 || x == 3 || x == 5 -> "135"
x == 2 || x == 4 || x == 6 -> "246"
else -> "other"