Erythro/tests/breakcontinue.er

21 lines
281 B
Plaintext
Raw Normal View History

2022-03-05 23:42:01 +00:00
import "tests/import/defs.eh"
int :: main() {
int x;
x = 5;
while (x < 15) {
printf("%d\n", x);
if (x =? 12)
2022-03-05 23:42:01 +00:00
break;
if (x =? 10) {
2022-03-06 01:15:07 +00:00
x = x + 2;
2022-03-05 23:42:01 +00:00
continue;
}
x = x + 1;
}
return (0);
}