rust/src/test/run-pass/native2.rs
Rafael Avila de Espindola 8122e0c542 Add support for
native mod foo = "bar" ...
2011-02-07 12:50:04 -05:00

12 lines
216 B
Rust

native "rust" mod rustrt {
type vbuf;
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) {
}