blob: e105204ac5b6380cfbf6392f9de88588d40ae469 (
plain) (
blame)
1
2
3
4
5
|
// expect: 3/
// spec 4.4: while (1) exits by break or return
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { int i = 0; while (1) { i++; if (i == 3) break; } pn(i); return 0; }
|