cbindgen/tests/fn-ptr.rs
Ryan Hunt 0aada672cd Add a test harness
Fixes #3
2017-05-11 01:16:27 -04:00

7 lines
117 B
Rust

type Callback = fn (i32, i32) -> bool;
#[no_mangle]
extern "C" fn root(x: fn(),
y: Callback)
{ }