summaryrefslogtreecommitdiffstats
path: root/tests/codegen/auxiliary/thread_local_aux.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codegen/auxiliary/thread_local_aux.rs')
-rw-r--r--tests/codegen/auxiliary/thread_local_aux.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/codegen/auxiliary/thread_local_aux.rs b/tests/codegen/auxiliary/thread_local_aux.rs
new file mode 100644
index 000000000..bebaa7754
--- /dev/null
+++ b/tests/codegen/auxiliary/thread_local_aux.rs
@@ -0,0 +1,5 @@
+#![crate_type = "lib"]
+
+use std::cell::Cell;
+
+thread_local!(pub static A: Cell<u64> = const { Cell::new(0) });