Fixed: control flow graph building for array of functions.

'get' call for array should be get from INDEXED_LVALUE_GET
This commit is contained in:
Svetlana Isakova
2013-12-06 15:57:56 +04:00
parent 3966f36b0c
commit 4c4e192914
4 changed files with 35 additions and 2 deletions
@@ -0,0 +1,24 @@
== test ==
fun test(array: Array<(Int)->Unit>) {
array[11](3)
}
---------------------
L0:
<START>
v(array: Array<(Int)->Unit>)
w(array)
mark({ array[11](3) })
mark(array[11](3))
mark(array[11])
r(array)
r(11)
call(array[11], get)
r(3)
call(array[11], <for expression array[11]>)
L1:
<END> NEXT:[<SINK>]
error:
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================