about summary refs log tree commit diff
path: root/src/test/run-pass/native2.rs
blob: 359ce18090f392fe7c5b5ec4291cd4f7b3677042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#[abi = "cdecl"]
native mod rustrt {
    fn unsupervise();
}

#[abi = "cdecl"]
#[nolink]
native mod bar { }

#[abi = "cdecl"]
#[nolink]
native mod zed { }

#[abi = "cdecl"]
#[nolink]
native mod libc {
    fn write(fd: int, buf: *u8, count: uint) -> int;
}

#[abi = "cdecl"]
#[nolink]
native mod baz { }

fn main(args: [str]) { }