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,15 @@
const val a = <!EVALUATED: `1`!>try {
10 / 0
0
} catch (e: RuntimeException) {
1
}<!>
const val b = <!WAS_NOT_EVALUATED: `
Exception java.lang.ArithmeticException: / by zero
at DivideByZeroKt.<clinit>(divideByZero.kt:8)`!>10 / 0<!>
// not working for now, but maybe will be supported
//fun someFunWithCompileTimeInside() {
// val exceptionExpected = 1 / 0
//}