summary refs log tree commit diff
path: root/src/test/run-pass/bind-native.rs
blob: 1b9e05d4fe6d05351cdd17482fe0ba7abade6c6d (plain)
1
2
3
4
5
6
7
8
9
10
/*
Can we bind native things?
*/

#[abi = "cdecl"]
native mod rustrt {
    fn rand_new() -> *libc::c_void;
}

fn main() { bind rustrt::rand_new(); }