Add tests for element -> pseudo-value mapping

This commit is contained in:
Alexey Sedunov
2014-05-19 18:32:03 +04:00
parent d2c055e9da
commit 4a5d2e6728
78 changed files with 3105 additions and 1 deletions
@@ -0,0 +1,31 @@
== foo ==
fun foo() {
var a = 1
use(a)
a = 2
use(a)
}
---------------------
1 <v0> NEW()
use <v2> NEW(<v1>)
a <v1> NEW()
use(a) <v2> COPY
2 <v3> NEW()
use <v5> NEW(<v4>)
a <v4> NEW()
use(a) <v5> COPY
{ var a = 1 use(a) a = 2 use(a) } <v5> COPY
=====================
== bar ==
fun bar() {
val b: Int
b = 3
}
---------------------
3 <v0> NEW()
=====================
== use ==
fun use(a: Int) = a
---------------------
a <v1> NEW()
=====================