about summary refs log tree commit diff
path: root/src/test/codegen/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/codegen/auxiliary')
-rw-r--r--src/test/codegen/auxiliary/thread_local_aux.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/codegen/auxiliary/thread_local_aux.rs b/src/test/codegen/auxiliary/thread_local_aux.rs
new file mode 100644
index 00000000000..29b5e3ca244
--- /dev/null
+++ b/src/test/codegen/auxiliary/thread_local_aux.rs
@@ -0,0 +1,6 @@
+#![crate_type = "lib"]
+#![feature(thread_local_const_init)]
+
+use std::cell::Cell;
+
+thread_local!(pub static A: Cell<u64> = const { Cell::new(0) });