Remove some legacy codegen tests, move some to generated
This commit is contained in:
committed by
Alexander Udalov
parent
f8dfaf4599
commit
bab127ad33
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user