summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/thread-local-src.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc/thread-local-src.rs')
-rw-r--r--src/test/rustdoc/thread-local-src.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/rustdoc/thread-local-src.rs b/src/test/rustdoc/thread-local-src.rs
new file mode 100644
index 000000000..6de35e323
--- /dev/null
+++ b/src/test/rustdoc/thread-local-src.rs
@@ -0,0 +1,6 @@
+#![crate_name = "foo"]
+
+// @has foo/index.html '//a[@href="../src/foo/thread-local-src.rs.html#1-6"]' 'source'
+
+// @has foo/constant.FOO.html '//a[@href="../src/foo/thread-local-src.rs.html#6"]' 'source'
+thread_local!(pub static FOO: bool = false);