Add tests for element -> pseudo-value mapping
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
== test ==
|
||||
fun test() {
|
||||
throw Exception()
|
||||
test()
|
||||
}
|
||||
---------------------
|
||||
Exception <v0> NEW()
|
||||
Exception() <v0> COPY
|
||||
test <v1> NEW()
|
||||
test() <v1> COPY
|
||||
{ throw Exception() test() } <v1> COPY
|
||||
=====================
|
||||
@@ -0,0 +1,9 @@
|
||||
== foo ==
|
||||
fun foo() {
|
||||
return ?: null
|
||||
}
|
||||
---------------------
|
||||
null <v0> NEW()
|
||||
return ?: null <v0> COPY
|
||||
{ return ?: null } <v0> COPY
|
||||
=====================
|
||||
@@ -0,0 +1,11 @@
|
||||
== test ==
|
||||
fun test() {
|
||||
"${throw Exception()} ${1}"
|
||||
}
|
||||
---------------------
|
||||
Exception <v0> NEW()
|
||||
Exception() <v0> COPY
|
||||
1 <v1> NEW()
|
||||
"${throw Exception()} ${1}" <v2> NEW(<v1>)
|
||||
{ "${throw Exception()} ${1}" } <v2> COPY
|
||||
=====================
|
||||
Reference in New Issue
Block a user