summaryrefslogtreecommitdiffstats
path: root/tests/rust/function_ptr.rs
blob: 59adb52b38b565689cb8cab1690edd0b21c86be2 (plain)
1
2
3
4
5
6
pub type MyCallback = Option<unsafe extern "C" fn(a: usize, b: usize)>;

pub type MyOtherCallback = Option<unsafe extern "C" fn(a: usize, lot: usize, of: usize, args: usize, and_then_some: usize)>;

#[no_mangle]
pub extern "C" fn my_function(a: MyCallback, b: MyOtherCallback) {}