blob: 565d8b65de055934c9357451d652a55ddd7a94a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//@ compile-flags: -g -Cstrip=none -Cforce-frame-pointers=yes
#![crate_type = "cdylib"]
#![crate_type = "rlib"]
#![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!());
}
|