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

28 lines
375 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 {
fn write(fd: int, buf: *u8,
count: core::libc::size_t) -> core::libc::ssize_t;
}
#[abi = "cdecl"]
#[nolink]
native mod baz { }
2011-02-23 13:06:37 -06:00
fn main(args: ~[str]) { }