]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/issue-24445/foo.rs
Auto merge of #107618 - chriswailes:linker-arg, r=albertlarsan68
[rust.git] / tests / run-make-fulldeps / issue-24445 / foo.rs
1 #![crate_type = "staticlib"]
2
3 struct Destroy;
4 impl Drop for Destroy {
5     fn drop(&mut self) { println!("drop"); }
6 }
7
8 thread_local! {
9     static X: Destroy = Destroy
10 }
11
12 #[no_mangle]
13 pub extern "C" fn foo() {
14     X.with(|_| ());
15 }