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

18 lines
318 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 "rust" mod bar = "c" { }
2011-02-23 13:06:37 -06:00
native "cdecl" mod zed = "c" { }
2011-02-23 13:06:37 -06:00
native "cdecl" mod libc = "c" {
fn write(int fd, rustrt::vbuf buf, uint count) -> int;
}
native "cdecl" mod baz = "c" { }
2011-02-23 13:06:37 -06:00
fn main(vec[str] args) { }