summary refs log tree commit diff
path: root/src/test/run-pass/while-cont.rs
blob: be3ec48c8a64ee3d8ef07dfc42a4d88f89301b18 (plain)
1
2
3
4
5
6
7
8
9
10
// 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;
        again;
    }
}