summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/doctest-manual-crate-name.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/doctest-manual-crate-name.rs')
-rw-r--r--tests/rustdoc/doctest-manual-crate-name.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rustdoc/doctest-manual-crate-name.rs b/tests/rustdoc/doctest-manual-crate-name.rs
new file mode 100644
index 000000000..3a5e3734e
--- /dev/null
+++ b/tests/rustdoc/doctest-manual-crate-name.rs
@@ -0,0 +1,7 @@
+// compile-flags:--test
+
+//! ```
+//! #![crate_name="asdf"]
+//!
+//! println!("yo");
+//! ```