rust/src/test/run-pass/foreign-dupe.rs

22 lines
452 B
Rust
Raw Normal View History

// 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 {
#[legacy_exports];
fn last_os_error() -> ~str;
}
#[abi = "cdecl"]
#[link_name = "rustrt"]
extern mod rustrt2 {
#[legacy_exports];
fn last_os_error() -> ~str;
}
fn main() {
rustrt1::last_os_error();
rustrt2::last_os_error();
}