Remove some legacy codegen tests, move some to generated

This commit is contained in:
Alexander Udalov
2016-03-07 20:57:09 +03:00
committed by Alexander Udalov
parent f8dfaf4599
commit bab127ad33
58 changed files with 326 additions and 930 deletions
@@ -0,0 +1,16 @@
fun foo(i: Int): Int {
var count = i;
var result = 0;
while(count > 0) {
count = count - 1;
if (count <= 2) continue;
result = result + count;
}
return result;
}
fun box(): String {
if (foo(4) != 3) return "Fail 1"
if (foo(5) != 7) return "Fail 2"
return "OK"
}