aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/for_cond_tests_first.zc
blob: 6df4a4f84d86eb9d359039f95a0d2077e71c6c75 (plain) (blame)
1
2
3
4
5
// expect: 0/
// spec 4.6
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { int n = 0; for (int i = 5; i < 3; i++) n++; pn(n); return 0; }