blob: 201807797f008ec40b8e19ae590fc4b8cdcdd2ac [file] [log] [blame]
#![allow(improper_ctypes_definitions)]
type Pos = (&'static str, u32);
macro_rules! pos {
() => {
(file!(), line!())
};
}
#[no_mangle]
pub extern "C" fn foo(outer: Pos, inner: fn(Pos, Pos)) {
inner(outer, pos!());
}