about summary refs log tree commit diff
path: root/src/test/run-pass/while-cont.rs
blob: 6a2e9acfda316d88b489af45193843cbb2397bf2 (plain)
1
2
// Issue #825: Should recheck the loop contition after continuing
fn main() { let i = 1; while i > 0 { assert (i > 0); log i; i -= 1; cont; } }