summary refs log tree commit diff
path: root/src/test/run-pass/yield2.rs
blob: a01e311daa870e53aa1d80c6692691609894bd6f (plain)
1
2
3
4
5
6
7
// -*- rust -*-
use std;

fn main() {
    let mut i: int = 0;
    while i < 100 { i = i + 1; log(error, i); task::yield(); }
}