aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/native2.rs
blob: df2540aef041d9125184a55ec0eb362aca91ad62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
native "rust" mod rustrt {
    type vbuf;
    fn vec_buf[T](vec[T] v, uint offset) -> vbuf;
}

native "rust" mod bar = "foo" {
}

native mod zed {
}

native mod libc = "libc.dylib" {
    fn write(int fd, rustrt::vbuf buf, uint count) -> int;
}

native "cdecl" mod baz {
}

fn main(vec[str] args) {
}