summaryrefslogtreecommitdiffstats
path: root/src/test/ui/thread-local/thread-local-issue-37508.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/thread-local/thread-local-issue-37508.rs')
-rw-r--r--src/test/ui/thread-local/thread-local-issue-37508.rs36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/test/ui/thread-local/thread-local-issue-37508.rs b/src/test/ui/thread-local/thread-local-issue-37508.rs
deleted file mode 100644
index 219108c77..000000000
--- a/src/test/ui/thread-local/thread-local-issue-37508.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-// only-x86_64
-// compile-flags: -Ccode-model=large --crate-type lib
-// build-pass
-//
-// Regression test for issue #37508
-
-#![no_main]
-#![no_std]
-#![feature(thread_local, lang_items)]
-
-#[lang = "eh_personality"]
-extern "C" fn eh_personality() {}
-
-use core::panic::PanicInfo;
-
-#[panic_handler]
-fn panic(_panic: &PanicInfo<'_>) -> ! {
- loop {}
-}
-
-pub struct BB;
-
-#[thread_local]
-static mut KEY: Key = Key { inner: BB, dtor_running: false };
-
-pub unsafe fn set() -> Option<&'static BB> {
- if KEY.dtor_running {
- return None;
- }
- Some(&KEY.inner)
-}
-
-pub struct Key {
- inner: BB,
- dtor_running: bool,
-}