aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/for_empty_parts.zc
blob: 7212ec6afcfe959a909364bea77538c62ca1327b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// expect: 3/
// spec 4.6: init, cond and step may be empty; empty cond means true
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	int i = 0;
	for (;;) { i++; if (i == 3) break; }
	pn(i);
	return 0;
}