Add ir interpreter tests

This commit is contained in:
Ivan Kylchik
2021-05-19 16:27:03 +03:00
committed by TeamCityServer
parent cc2d7340dc
commit e28ab45c51
115 changed files with 5104 additions and 0 deletions
@@ -0,0 +1,10 @@
@CompileTimeCalculation
fun infinityWhile(): Int {
while (true) {}
return 0
}
const val a = <!WAS_NOT_EVALUATED: `
Exception org.jetbrains.kotlin.ir.interpreter.exceptions.InterpreterTimeOutError: Exceeded execution limit of constexpr expression
at CommandsOutExceptionKt.infinityWhile(commandsOutException.kt:3)
at CommandsOutExceptionKt.<clinit>(commandsOutException.kt:7)`!>infinityWhile()<!>