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

27 lines
363 B
Rust
Raw Normal View History

#[abi = "cdecl"]
native mod rustrt {
fn unsupervise();
}
#[abi = "cdecl"]
#[link_name = ""]
native mod bar { }
2011-02-23 13:06:37 -06:00
#[abi = "cdecl"]
#[link_name = ""]
native mod zed { }
2011-02-23 13:06:37 -06:00
#[abi = "cdecl"]
#[link_name = ""]
native mod libc {
2011-08-12 12:40:25 -05:00
fn write(fd: int, buf: *u8, count: uint) -> int;
}
#[abi = "cdecl"]
#[link_name = ""]
native mod baz { }
2011-02-23 13:06:37 -06:00
2011-09-02 17:34:58 -05:00
fn main(args: [str]) { }