rust/src/test/run-pass/native2.rs
2011-07-27 15:54:33 +02:00

18 lines
320 B
Rust

native "rust" mod rustrt {
type vbuf;
fn vec_buf[T](v: vec[T], offset: uint) -> vbuf;
}
native "rust" mod bar = "" { }
native "cdecl" mod zed = "" { }
native "cdecl" mod libc = "" {
fn write(fd: int, buf: rustrt::vbuf, count: uint) -> int;
}
native "cdecl" mod baz = "" { }
fn main(args: vec[str]) { }