aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/do_basic.zc
blob: 0194f93bd68b8da91f36b639411c9c3a0a7dde3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// expect: 13/
// spec 4.5
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	int n = 0, i = 0;
	do { i++; if (i == 2) continue; n = n + i; } while (i < 5);
	pn(n);
	return 0;
}
// zc0: skip