Fix tests not to duplicate array constructor definitions as they are available now in builtins.

This commit is contained in:
Ilya Gorbunov
2015-12-11 18:18:23 +03:00
parent f509937037
commit 4dde59368c
22 changed files with 31 additions and 67 deletions
+7 -9
View File
@@ -1,6 +1,5 @@
== foo ==
fun foo() {
val a = Array<Int>
fun foo(a: Array<Int>) {
3
a[10] = 4
2
@@ -11,11 +10,10 @@ fun foo() {
---------------------
L0:
1 <START>
2 mark({ val a = Array<Int> 3 a[10] = 4 2 a[10] 100 a[10] += 1 })
v(val a = Array<Int>)
mark(Array<Int>)
call(Array<Int>, <init>) -> <v0>
v(a: Array<Int>)
magic[FAKE_INITIALIZER](a: Array<Int>) -> <v0>
w(a|<v0>)
2 mark({ 3 a[10] = 4 2 a[10] 100 a[10] += 1 })
r(3) -> <v1>
mark(a[10])
r(a) -> <v2>
@@ -41,9 +39,9 @@ L0:
r(10) -> <v17>
call(a[10] += 1, set|<v16>, <v17>, <v15>) -> <v18>
L1:
1 <END> NEXT:[<SINK>]
1 <END> NEXT:[<SINK>]
error:
<ERROR> PREV:[]
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
<SINK> PREV:[<ERROR>, <END>]
=====================