blob: b1feb5df68e77a7fb9a0f066e113f6688ca63c70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// xfail-test
// FIXME: This test is no longer testing what it was intended to. It should
// be testing spawning of a native function, but is actually testing
// spawning some other function, then executing a native function.
/*
A reduced test case for Issue #506, provided by Rob Arnold.
*/
use std;
import task;
#[abi = "cdecl"]
native mod rustrt {
fn task_yield();
}
fn yield_wrap(&&_arg: ()) { rustrt::task_yield(); }
fn main() { task::spawn((), yield_wrap); }
|