Add ir interpreter tests
This commit is contained in:
committed by
TeamCityServer
parent
cc2d7340dc
commit
e28ab45c51
+9
@@ -0,0 +1,9 @@
|
||||
@CompileTimeCalculation
|
||||
fun fib(n: Int) : Int {
|
||||
if (n <= 1) return n
|
||||
return fib(n - 1) + fib(n - 2)
|
||||
}
|
||||
|
||||
const val n2 = <!EVALUATED: `1`!>fib(2)<!>
|
||||
const val n10 = <!EVALUATED: `55`!>fib(10)<!>
|
||||
const val n18 = <!EVALUATED: `2584`!>fib(18)<!>
|
||||
Reference in New Issue
Block a user