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

18 lines
320 B
Rust
Raw Normal View History

native "rust" mod rustrt {
type vbuf;
2011-07-27 07:19:39 -05:00
fn vec_buf[T](v: vec[T], offset: uint) -> vbuf;
}
native "rust" mod bar = "" { }
2011-02-23 13:06:37 -06:00
native "cdecl" mod zed = "" { }
2011-02-23 13:06:37 -06:00
native "cdecl" mod libc = "" {
2011-07-27 07:19:39 -05:00
fn write(fd: int, buf: rustrt::vbuf, count: uint) -> int;
}
native "cdecl" mod baz = "" { }
2011-02-23 13:06:37 -06:00
2011-07-27 07:19:39 -05:00
fn main(args: vec[str]) { }