summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/thread-local-src.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/thread-local-src.rs')
-rw-r--r--tests/rustdoc/thread-local-src.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rustdoc/thread-local-src.rs b/tests/rustdoc/thread-local-src.rs
new file mode 100644
index 000000000..6de35e323
--- /dev/null
+++ b/tests/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);