diff options
Diffstat (limited to 'tests/run-make-fulldeps/issue-24445/foo.rs')
-rw-r--r-- | tests/run-make-fulldeps/issue-24445/foo.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/run-make-fulldeps/issue-24445/foo.rs b/tests/run-make-fulldeps/issue-24445/foo.rs new file mode 100644 index 000000000..b67f3847c --- /dev/null +++ b/tests/run-make-fulldeps/issue-24445/foo.rs @@ -0,0 +1,15 @@ +#![crate_type = "staticlib"] + +struct Destroy; +impl Drop for Destroy { + fn drop(&mut self) { println!("drop"); } +} + +thread_local! { + static X: Destroy = Destroy +} + +#[no_mangle] +pub extern "C" fn foo() { + X.with(|_| ()); +} |