rust/src/test/run-pass/native2.rs
2012-02-11 10:14:41 -08:00

27 lines
353 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: ctypes::size_t) -> ctypes::ssize_t;
}
#[abi = "cdecl"]
#[nolink]
native mod baz { }
fn main(args: [str]) { }