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

12 lines
216 B
Rust
Raw Normal View History

native "rust" mod rustrt {
type vbuf;
2011-02-04 10:10:04 -06:00
fn vec_buf[T](vec[T] v, uint offset) -> vbuf;
}
native mod libc = "libc.dylib" {
fn write(int fd, rustrt.vbuf buf, uint count) -> int;
}
fn main(vec[str] args) {
}