Tests: merge firTestWithJvmBackend into testsWithJvmBackend

This commit is contained in:
Alexander Udalov
2023-06-26 15:20:06 +02:00
committed by Space Team
parent 9935519656
commit 8fc6c03e16
8 changed files with 19 additions and 41 deletions
@@ -0,0 +1,5 @@
/exceptionFromInterpreter.kt:7:26: error: Cannot evaluate constant expression: / by zero
/exceptionFromInterpreter.kt:8:26: warning: Constant expression will throw an exception at runtime: / by zero
/exceptionFromInterpreter.kt:9:39: error: Cannot evaluate constant expression: marginPrefix must be non-blank string.
@@ -0,0 +1,15 @@
// FIR_IDENTICAL
// !RENDER_ALL_DIAGNOSTICS_FULL_TEXT
// TARGET_BACKEND: JVM_IR
// !DIAGNOSTICS: -CONST_VAL_WITH_NON_CONST_INITIALIZER, -DIVISION_BY_ZERO
// WITH_STDLIB
const val divideByZero = <!EXCEPTION_IN_CONST_VAL_INITIALIZER!>1 / 0<!>
val disivionByZeroWarn = <!EXCEPTION_IN_CONST_EXPRESSION!>1 / 0<!>
const val trimMarginException = "123".<!EXCEPTION_IN_CONST_VAL_INITIALIZER!>trimMargin(" ")<!>
// TODO must report all these exceptions directly from fir2ir
//annotation class A(val i: Int, val b: Int)
//
//@A(1 / 0, 2)
//fun foo() {}
@@ -0,0 +1,5 @@
package
public val disivionByZeroWarn: kotlin.Int
public const val divideByZero: kotlin.Int
public const val trimMarginException: kotlin.String