Files
rust/tests/run-make/static-unwinding/lib.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
250 B
Rust
Raw Normal View History

#![crate_type = "rlib"]
2015-02-17 19:00:20 -08:00
pub static mut statik: isize = 0;
struct A;
impl Drop for A {
fn drop(&mut self) {
unsafe {
statik = 1;
}
}
}
pub fn callback<F>(f: F)
where
F: FnOnce(),
{
let _a = A;
f();
}