rust/src/test/run-pass/while-cont.rs
2012-09-07 17:39:03 -07:00

11 lines
200 B
Rust

// Issue #825: Should recheck the loop contition after continuing
fn main() {
let mut i = 1;
while i > 0 {
assert (i > 0);
log(debug, i);
i -= 1;
loop;
}
}