/* A reduced test case for Issue #506, provided by Rob Arnold. */ use std; import std::task; native "cdecl" mod rustrt { fn task_yield(); } fn yield_wrap(&&_arg: ()) { rustrt::task_yield(); } fn main() { task::spawn((), yield_wrap); }