summary refs log tree commit diff
path: root/src/test/run-pass/while-cont.rs
blob: 9054d765e04739cccfa3af11359f2a2efff184fb (plain)
1
2
3
4
5
6
7
8
9
10
// Issue #825: Should recheck the loop contition after continuing
fn main() {
    let i = 1;
    while i > 0 {
        assert (i > 0);
        log(debug, i);
        i -= 1;
        cont;
    }
}