Erythro/tests/breakcontinue.er

21 lines
281 B
Plaintext

import "tests/import/defs.eh"
int :: main() {
int x;
x = 5;
while (x < 15) {
printf("%d\n", x);
if (x =? 12)
break;
if (x =? 10) {
x = x + 2;
continue;
}
x = x + 1;
}
return (0);
}