Add test methods and data base on raw fir builder test data

This commit is contained in:
Ivan Cilcic
2019-08-15 00:45:00 +03:00
committed by Mikhail Glukhikh
parent fd8205e317
commit 8047aa22a4
50 changed files with 1664 additions and 0 deletions
@@ -0,0 +1,23 @@
// Int Int
// │ │
val p = 0
// Int
// │
fun foo() = 1
class Wrapper(val v: IntArray)
// test.a: IntArray
// │ Int
// │ │ fun (Int).plus(Int): Int
// │ │ │ test.a: IntArray
// │ │ │ │ val p: Int
// │ │ │ │ │ fun (Int).plus(Int): Int
// │ │ │ │ │ │ test.a: IntArray
// │ │ │ │ │ │ │ fun foo(): Int
// │ │ │ │ │ │ │ │ fun (Int).plus(Int): Int
// │ │ │ │ │ │ │ │ │ test.w: Wrapper
// │ │ │ │ │ │ │ │ │ │ val (Wrapper).v: IntArray
// │ │ │ │ │ │ │ │ │ │ │ Int
// │ │ │ │ │ │ │ │ │ │ │ │
fun test(a: IntArray, w: Wrapper) = a[0] + a[p] + a[foo()] + w.v[0]