aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/native2.rs
blob: 4d2f0ad94a8e6e7b363c49023db2b1b7ae81edfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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) {
}