rust/src/test/run-pass/native2.rs

27 lines
353 B
Rust
Raw Normal View History

#[abi = "cdecl"]
native mod rustrt {
fn unsupervise();
}
#[abi = "cdecl"]
#[nolink]
native mod bar { }
2011-02-23 13:06:37 -06:00
#[abi = "cdecl"]
#[nolink]
native mod zed { }
2011-02-23 13:06:37 -06:00
#[abi = "cdecl"]
#[nolink]
native mod libc {
2012-02-11 12:14:28 -06:00
fn write(fd: int, buf: *u8, count: ctypes::size_t) -> ctypes::ssize_t;
}
#[abi = "cdecl"]
#[nolink]
native mod baz { }
2011-02-23 13:06:37 -06:00
2011-09-02 17:34:58 -05:00
fn main(args: [str]) { }