summary refs log tree commit diff
path: root/src/test/run-pass/while-cont.rs
blob: 24b0d530fc3f42c261366694e5f62ee314d168d9 (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;
        cont;
    }
}