Updated tests for control flow: call instruction stores call element
instead of callee expression
This commit is contained in:
@@ -9,10 +9,10 @@ L0:
|
||||
2 mark({ throw Exception() test() })
|
||||
mark(throw Exception())
|
||||
mark(Exception())
|
||||
call(Exception, <init>) -> <v0>
|
||||
call(Exception(), <init>) -> <v0>
|
||||
throw (throw Exception()|<v0>) NEXT:[<ERROR>]
|
||||
- mark(test()) PREV:[]
|
||||
- call(test, test) -> <v1> PREV:[]
|
||||
- call(test(), test) -> <v1> PREV:[]
|
||||
L1:
|
||||
1 <END> NEXT:[<SINK>] PREV:[]
|
||||
error:
|
||||
|
||||
@@ -4,7 +4,7 @@ fun test() {
|
||||
test()
|
||||
}
|
||||
---------------------
|
||||
Exception() <v0>: {<: Throwable} NEW: call(Exception, <init>) -> <v0>
|
||||
test() <v1>: * NEW: call(test, test) -> <v1>
|
||||
{ throw Exception() test() } <v1>: * COPY
|
||||
Exception() <v0>: {<: Throwable} NEW: call(Exception(), <init>) -> <v0>
|
||||
test() <v1>: * NEW: call(test(), test) -> <v1>
|
||||
{ throw Exception() test() } <v1>: * COPY
|
||||
=====================
|
||||
|
||||
@@ -4,6 +4,6 @@ fun foo() {
|
||||
}
|
||||
---------------------
|
||||
null <v0>: * NEW: r(null) -> <v0>
|
||||
return ?: null <v0>: * COPY
|
||||
{ return ?: null } <v0>: * COPY
|
||||
return ?: null <v0>: * COPY
|
||||
{ return ?: null } <v0>: * COPY
|
||||
=====================
|
||||
|
||||
@@ -9,7 +9,7 @@ L0:
|
||||
mark("${throw Exception()} ${1}")
|
||||
mark(throw Exception())
|
||||
mark(Exception())
|
||||
call(Exception, <init>) -> <v0>
|
||||
call(Exception(), <init>) -> <v0>
|
||||
throw (throw Exception()|<v0>) NEXT:[<ERROR>]
|
||||
- r(1) -> <v1> PREV:[]
|
||||
- magic("${throw Exception()} ${1}"|<v1>) -> <v2> PREV:[]
|
||||
|
||||
@@ -3,7 +3,7 @@ fun test() {
|
||||
"${throw Exception()} ${1}"
|
||||
}
|
||||
---------------------
|
||||
Exception() <v0>: {<: Throwable} NEW: call(Exception, <init>) -> <v0>
|
||||
Exception() <v0>: {<: Throwable} NEW: call(Exception(), <init>) -> <v0>
|
||||
1 <v1>: * NEW: r(1) -> <v1>
|
||||
"${throw Exception()} ${1}" <v2>: * NEW: magic("${throw Exception()} ${1}"|<v1>) -> <v2>
|
||||
{ "${throw Exception()} ${1}" } <v2>: * COPY
|
||||
|
||||
Reference in New Issue
Block a user