rust/src/test/run-pass/native2.rs
Rafael Ávila de Espíndola ecc080ed0b Use "" in the native_name as an indication that no extra options have to
be passed to the "linker". Use that for libc.
2011-06-28 08:21:13 -04:00

18 lines
314 B
Rust

native "rust" mod rustrt {
type vbuf;
fn vec_buf[T](vec[T] v, uint offset) -> vbuf;
}
native "rust" mod bar = "" { }
native "cdecl" mod zed = "" { }
native "cdecl" mod libc = "" {
fn write(int fd, rustrt::vbuf buf, uint count) -> int;
}
native "cdecl" mod baz = "" { }
fn main(vec[str] args) { }