Added/updated tests for LexicalScope.
This commit is contained in:
@@ -5,8 +5,8 @@ fun test() {
|
||||
}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
mark({ throw Exception() test() })
|
||||
1 <START>
|
||||
2 mark({ throw Exception() test() })
|
||||
mark(throw Exception())
|
||||
mark(Exception())
|
||||
call(Exception, <init>)
|
||||
@@ -14,7 +14,7 @@ L0:
|
||||
- mark(test()) PREV:[]
|
||||
- call(test, test) PREV:[]
|
||||
L1:
|
||||
<END> NEXT:[<SINK>] PREV:[]
|
||||
1 <END> NEXT:[<SINK>] PREV:[]
|
||||
error:
|
||||
<ERROR> PREV:[throw (throw Exception())]
|
||||
sink:
|
||||
|
||||
@@ -4,14 +4,14 @@ fun foo() {
|
||||
}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
mark({ return ?: null })
|
||||
1 <START>
|
||||
2 mark({ return ?: null })
|
||||
ret L1 NEXT:[<END>]
|
||||
- jt(L2) NEXT:[r(null), <END>] PREV:[]
|
||||
- r(null) PREV:[]
|
||||
L1:
|
||||
L2:
|
||||
<END> NEXT:[<SINK>] PREV:[ret L1]
|
||||
1 <END> NEXT:[<SINK>] PREV:[ret L1]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
|
||||
@@ -4,8 +4,8 @@ fun test() {
|
||||
}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
mark({ "${throw Exception()} ${1}" })
|
||||
1 <START>
|
||||
2 mark({ "${throw Exception()} ${1}" })
|
||||
mark("${throw Exception()} ${1}")
|
||||
mark(throw Exception())
|
||||
mark(Exception())
|
||||
@@ -14,7 +14,7 @@ L0:
|
||||
- r(1) PREV:[]
|
||||
- r("${throw Exception()} ${1}") PREV:[]
|
||||
L1:
|
||||
<END> NEXT:[<SINK>] PREV:[]
|
||||
1 <END> NEXT:[<SINK>] PREV:[]
|
||||
error:
|
||||
<ERROR> PREV:[throw (throw Exception())]
|
||||
sink:
|
||||
|
||||
Reference in New Issue
Block a user