Add ir interpreter tests
This commit is contained in:
committed by
TeamCityServer
parent
cc2d7340dc
commit
e28ab45c51
@@ -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()<!>
|
||||
Reference in New Issue
Block a user