]>
Commit | Line | Data |
---|---|---|
17df50a5 | 1 | #![feature(cfg_target_thread_local, thread_local)] |
7453a54e | 2 | #![crate_type = "lib"] |
1a4d82fc | 3 | |
3b2f2976 XL |
4 | #[cfg(target_thread_local)] |
5 | use std::cell::Cell; | |
6 | ||
7453a54e | 7 | #[no_mangle] |
3b2f2976 XL |
8 | #[cfg(target_thread_local)] |
9 | #[thread_local] | |
10 | pub static FOO: Cell<u32> = Cell::new(3); |