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

28 lines
374 B
Rust
Raw Normal View History

#[abi = "cdecl"]
native mod rustrt {
fn unsupervise();
}
#[abi = "cdecl"]
#[nolink]
native mod bar { }
2011-02-23 14:06:37 -05:00
#[abi = "cdecl"]
#[nolink]
native mod zed { }
2011-02-23 14:06:37 -05: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 14:06:37 -05:00
2011-09-02 15:34:58 -07:00
fn main(args: [str]) { }