about summary refs log tree commit diff
path: root/tests/ui/threads-sendsync/yield2.rs
blob: 9502f0d33da511dcc71d18b48cd79327b0cf58e9 (plain)
1
2
3
4
5
6
7
8
//@ run-pass

use std::thread;

pub fn main() {
    let mut i: isize = 0;
    while i < 100 { i = i + 1; println!("{}", i); thread::yield_now(); }
}