rust/src/test/run-pass/native2.rs
Graham Fawcett 7ddd353ef6 implement #[nolink]; deprecate #[link_name = ""]; note in stdlib to remove empty link_name.
Can't remove them from stdlib until the snapshotted compiler supports #[nolink].
2011-12-16 15:29:59 -08:00

27 lines
331 B
Rust

#[abi = "cdecl"]
native mod rustrt {
fn unsupervise();
}
#[abi = "cdecl"]
#[nolink]
native mod bar { }
#[abi = "cdecl"]
#[nolink]
native mod zed { }
#[abi = "cdecl"]
#[nolink]
native mod libc {
fn write(fd: int, buf: *u8, count: uint) -> int;
}
#[abi = "cdecl"]
#[nolink]
native mod baz { }
fn main(args: [str]) { }