From 9be35f82c1abf2ecbab489bca9eca138ea648312 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Sat, 27 Jul 2019 01:33:01 +0300 Subject: tests: Move run-pass tests without naming conflicts to ui --- .../threads-sendsync/auxiliary/thread-local-extern-static.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/test/ui/threads-sendsync/auxiliary/thread-local-extern-static.rs (limited to 'src/test/ui/threads-sendsync/auxiliary') diff --git a/src/test/ui/threads-sendsync/auxiliary/thread-local-extern-static.rs b/src/test/ui/threads-sendsync/auxiliary/thread-local-extern-static.rs new file mode 100644 index 00000000000..b237b1c480e --- /dev/null +++ b/src/test/ui/threads-sendsync/auxiliary/thread-local-extern-static.rs @@ -0,0 +1,10 @@ +#![feature(cfg_target_thread_local, const_fn, thread_local)] +#![crate_type = "lib"] + +#[cfg(target_thread_local)] +use std::cell::Cell; + +#[no_mangle] +#[cfg(target_thread_local)] +#[thread_local] +pub static FOO: Cell = Cell::new(3); -- cgit 1.4.1-3-g733a5