rust/src/test/run-pass/native2.rs
Graydon Hoare 6f5853f5a1 Libc/os/run/rand/io reorganization. Close #1373. Close #1638.
- Move io, run and rand to core.
 - Remove incorrect ctypes module (use libc).
 - Remove os-specific modules for os and fs.
 - Split fs between core::path and core::os.
2012-03-12 20:08:29 -07:00

28 lines
374 B
Rust

#[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: core::libc::size_t) -> core::libc::ssize_t;
}
#[abi = "cdecl"]
#[nolink]
native mod baz { }
fn main(args: [str]) { }