rust/src/test/run-pass/issue-506.rs

15 lines
245 B
Rust
Raw Normal View History

2011-06-20 13:00:46 -05:00
/*
A reduced test case for Issue #506, provided by Rob Arnold.
*/
use std;
import std::task;
native "cdecl" mod rustrt {
2011-07-27 07:19:39 -05:00
fn task_yield();
2011-06-20 13:00:46 -05:00
}
2011-10-23 09:21:40 -05:00
fn yield_wrap(&&_arg: ()) { rustrt::task_yield(); }
2011-06-20 13:00:46 -05:00
fn main() { task::spawn((), yield_wrap); }