PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/src/test/run-pass/while-loop-constraints-2.rs

http://github.com/jruderman/rust
Rust | 12 lines | 11 code | 1 blank | 0 comment | 5 complexity | fa341ec4462cf1565c9716371e752e1f MD5 | raw file
 1fn main() {
 2
 3    let mut y: int = 42;
 4    let mut z: int = 42;
 5    let mut x: int;
 6    while z < 50 {
 7        z += 1;
 8        while false { x <- y; y = z; }
 9        log(debug, y);
10    }
11    assert (y == 42 && z == 50);
12}