rust/src/test/run-pass/while-cont.rs

3 lines
144 B
Rust
Raw Normal View History

// Issue #825: Should recheck the loop contition after continuing
2011-09-02 17:34:58 -05:00
fn main() { let i = 1; while i > 0 { assert (i > 0); log i; i -= 1; cont; } }