summary refs log tree commit diff
path: root/src/test/run-pass/foreign-dupe.rs
blob: ab6a7320e4574b6c7646b976b480dd68533bf395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// xfail-fast - Somehow causes check-fast to livelock?? Probably because we're
// calling pin_task and that's having wierd side-effects.

#[abi = "cdecl"]
#[link_name = "rustrt"]
extern mod rustrt1 {
    fn last_os_error() -> str;
}

#[abi = "cdecl"]
#[link_name = "rustrt"]
extern mod rustrt2 {
    fn last_os_error() -> str;
}

fn main() {
    rustrt1::last_os_error();
    rustrt2::last_os_error();
}