// -*- rust -*- fn main() { let int i = 0; while (i < 100) { i = i + 1; log i; yield; } } // xfail-stage0 // -*- rust -*- fn main() { let int i = 0; while (i < 100) { i = i + 1; log i; yield; } } // xfail-stage0 // xfail-stage1 // xfail-stage2 // -*- rust -*- fn main() { let int i = 0; while (i < 100) { i = i + 1; log i; yield; } } // xfail-stage0 // -*- rust -*- use std; fn main() { let int i = 0; while (i < 100) { i = i + 1; log_err i; std::task::yield(); } } // xfail-stage0 // -*- rust -*- use std; fn main() { let int i = 0; while (i < 100) { i = i + 1; log_err i; std::task::yield(); } } // xfail-stage0 // -*- rust -*- use std; fn main() { let i: int = 0; while i < 100 { i = i + 1; log_err i; std::task::yield(); } } // -*- rust -*- use std; fn main() { let i: int = 0; while i < 100 { i = i + 1; log_err i; std::task::yield(); } } // -*- rust -*- use std; fn main() { let i: int = 0; while i < 100 { i = i + 1; log_err i; std::task::yield(); } } // -*- rust -*- use std; fn main() { let i: int = 0; while i < 100 { i = i + 1; log_err i; task::yield(); } } // -*- rust -*- use std; fn main() { let i: int = 0; while i < 100 { i = i + 1; log_full(core::error, i); task::yield(); } } // -*- rust -*- use std; fn main() { let i: int = 0; while i < 100 { i = i + 1; log(error, i); task::yield(); } } // -*- rust -*- use std; fn main() { let mut i: int = 0; while i < 100 { i = i + 1; log(error, i); task::yield(); } } // -*- rust -*- extern mod std; fn main() { let mut i: int = 0; while i < 100 { i = i + 1; log(error, i); task::yield(); } } // -*- rust -*- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. extern mod std; fn main() { let mut i: int = 0; while i < 100 { i = i + 1; log(error, i); task::yield(); } } // -*- rust -*- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. fn main() { let mut i: int = 0; while i < 100 { i = i + 1; log(error, i); task::yield(); } } // -*- rust -*- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. pub fn main() { let mut i: int = 0; while i < 100 { i = i + 1; log(error, i); task::yield(); } } // -*- rust -*- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. pub fn main() { let mut i: int = 0; while i < 100 { i = i + 1; error!(i); task::yield(); } } // -*- rust -*- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. use std::task; pub fn main() { let mut i: int = 0; while i < 100 { i = i + 1; error!(i); task::yield(); } } // -*- rust -*- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. use std::task; pub fn main() { let mut i: int = 0; while i < 100 { i = i + 1; error!(i); task::deschedule(); } } // -*- rust -*- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. use std::task; pub fn main() { let mut i: int = 0; while i < 100 { i = i + 1; error2!("{}", i); task::deschedule(); } } // -*- rust -*- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. use std::task; pub fn main() { let mut i: int = 0; while i < 100 { i = i + 1; error!("{}", i); task::deschedule(); } } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. use std::task; pub fn main() { let mut i: int = 0; while i < 100 { i = i + 1; error!("{}", i); task::deschedule(); } } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. use std::task; pub fn main() { let mut i: int = 0; while i < 100 { i = i + 1; println!("{}", i); task::deschedule(); } } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. use std::thread::Thread; pub fn main() { let mut i: int = 0; while i < 100 { i = i + 1; println!("{}", i); Thread::yield_now(); } } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. use std::thread; pub fn main() { let mut i: int = 0; while i < 100 { i = i + 1; println!("{}", i); thread::yield_now(); } } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. use std::thread; pub fn main() { let mut i: isize = 0; while i < 100 { i = i + 1; println!("{}", i); thread::yield_now(); } }