2011-08-23 16:51:22 -05:00
|
|
|
// Issue #825: Should recheck the loop contition after continuing
|
2011-12-22 16:42:52 -06:00
|
|
|
fn main() {
|
2012-03-22 10:39:41 -05:00
|
|
|
let mut i = 1;
|
2011-12-22 16:42:52 -06:00
|
|
|
while i > 0 {
|
|
|
|
assert (i > 0);
|
2011-12-22 19:53:53 -06:00
|
|
|
log(debug, i);
|
2011-12-22 16:42:52 -06:00
|
|
|
i -= 1;
|
|
|
|
cont;
|
|
|
|
}
|
|
|
|
}
|