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

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