Do not generate call for elvis + move dead code tests

This commit is contained in:
Andrey Breslav
2013-12-03 19:56:29 +04:00
parent e0cf73d989
commit e8c94a9d1d
6 changed files with 46 additions and 6 deletions
@@ -0,0 +1,18 @@
== test ==
fun test() {
throw Exception()
test()
}
---------------------
L0:
<START> NEXT:[call(Exception, <init>)] PREV:[]
call(Exception, <init>) NEXT:[throw (throw Exception())] PREV:[<START>]
throw (throw Exception()) NEXT:[<ERROR>] PREV:[call(Exception, <init>)]
- call(test, test) NEXT:[<END>] PREV:[]
L1:
<END> NEXT:[<SINK>] PREV:[]
error:
<ERROR> NEXT:[<SINK>] PREV:[throw (throw Exception())]
sink:
<SINK> NEXT:[] PREV:[<ERROR>, <END>]
=====================