Test do { ... } while(); loop.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-04-17 11:01:34 +02:00
parent 102e8447a1
commit b668d0a897
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,23 @@
class Program {
private int test() {
static int $x = 9;
return $x--;
}
public void main() {
int $a;
do {
$a = $this->test();
int $z = $a;
if($z == 6) {
continue;
} else if($z == 3) {
break;
}
print("$z\n");
} while($a);
print("$a\n");
}
}

View File

@ -0,0 +1,6 @@
9
8
7
5
4
3