aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/while_tests_before.zc
blob: 069afbf8160c32db0372d62d3dc97fd84849bf63 (plain) (blame)
1
2
3
4
5
// expect: 0/
// spec 4.4: tests before each pass
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { int n = 0; while (0) n++; pn(n); return 0; }