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