2011-06-20 13:00:46 -05:00
|
|
|
/*
|
|
|
|
A reduced test case for Issue #506, provided by Rob Arnold.
|
|
|
|
*/
|
|
|
|
|
2011-08-13 17:20:11 -05:00
|
|
|
use std;
|
|
|
|
import std::task;
|
|
|
|
|
2011-06-20 13:00:46 -05:00
|
|
|
native "rust" mod rustrt {
|
2011-07-27 07:19:39 -05:00
|
|
|
fn task_yield();
|
2011-06-20 13:00:46 -05:00
|
|
|
}
|
|
|
|
|
2011-10-20 22:34:04 -05:00
|
|
|
fn yield_wrap(&&_i: ()) unsafe { rustrt::task_yield(); }
|
2011-06-20 13:00:46 -05:00
|
|
|
|
2011-10-13 23:23:07 -05:00
|
|
|
fn main() { task::spawn((), yield_wrap); }
|