Added/updated tests for LexicalScope.
This commit is contained in:
@@ -8,26 +8,26 @@ tailRecursive fun test() : Int {
|
||||
}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
mark({ try { // do nothing } finally { test() } })
|
||||
1 <START>
|
||||
2 mark({ try { // do nothing } finally { test() } })
|
||||
mark(try { // do nothing } finally { test() })
|
||||
jmp?(L2 [onExceptionToFinallyBlock]) NEXT:[mark({ test() }), mark({ // do nothing })]
|
||||
mark({ // do nothing })
|
||||
3 mark({ // do nothing })
|
||||
read (Unit)
|
||||
jmp(L3 [skipFinallyToErrorBlock]) NEXT:[mark({ test() })]
|
||||
2 jmp(L3 [skipFinallyToErrorBlock]) NEXT:[mark({ test() })]
|
||||
L2 [onExceptionToFinallyBlock]:
|
||||
L4 [start finally]:
|
||||
mark({ test() }) PREV:[jmp?(L2 [onExceptionToFinallyBlock])]
|
||||
3 mark({ test() }) PREV:[jmp?(L2 [onExceptionToFinallyBlock])]
|
||||
mark(test())
|
||||
call(test, test)
|
||||
L5 [finish finally]:
|
||||
jmp(error) NEXT:[<ERROR>]
|
||||
2 jmp(error) NEXT:[<ERROR>]
|
||||
L3 [skipFinallyToErrorBlock]:
|
||||
mark({ test() }) PREV:[jmp(L3 [skipFinallyToErrorBlock])]
|
||||
3 mark({ test() }) PREV:[jmp(L3 [skipFinallyToErrorBlock])]
|
||||
mark(test())
|
||||
call(test, test)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
1 <END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[jmp(error)]
|
||||
sink:
|
||||
|
||||
Reference in New Issue
Block a user