summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/inline_local/glob-extern.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc/inline_local/glob-extern.rs')
-rw-r--r--src/test/rustdoc/inline_local/glob-extern.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/rustdoc/inline_local/glob-extern.rs b/src/test/rustdoc/inline_local/glob-extern.rs
new file mode 100644
index 000000000..686e55de3
--- /dev/null
+++ b/src/test/rustdoc/inline_local/glob-extern.rs
@@ -0,0 +1,21 @@
+#![crate_name = "foo"]
+
+mod mod1 {
+ extern "C" {
+ pub fn public_fn();
+ fn private_fn();
+ }
+}
+
+pub use mod1::*;
+
+// @has foo/index.html
+// @!has - "mod1"
+// @has - "public_fn"
+// @!has - "private_fn"
+// @has foo/fn.public_fn.html
+// @!has foo/fn.private_fn.html
+
+// @!has foo/mod1/index.html
+// @has foo/mod1/fn.public_fn.html
+// @!has foo/mod1/fn.private_fn.html