blob: 5b43c1cc3b70a79892f2c33f018c58319031cb0c [file] [log] [blame]
#[link(name = "foo", kind = "static")]
extern {
fn test_start(f: extern fn());
fn test_end();
}
fn main() {
unsafe {
test_start(test_middle);
}
}
struct A;
impl Drop for A {
fn drop(&mut self) {
}
}
extern fn test_middle() {
let _a = A;
foo();
}
fn foo() {
let _a = A;
unsafe {
test_end();
}
}