diff --git a/tests/run-make/rustdoc-test-args/Makefile b/tests/run-make/rustdoc-test-args/Makefile new file mode 100644 index 0000000000000..e56349ae0812c --- /dev/null +++ b/tests/run-make/rustdoc-test-args/Makefile @@ -0,0 +1,10 @@ +include ../tools.mk + +# Test that rustdoc will properly load in a theme file and display it in the theme selector. + +OUTPUT_DIR := "$(TMPDIR)/rustdoc-test-args" + +all: + yes -- --cfg=A | head -n 100000 > cfgs + $(RUSTDOC) --test @cfgs foo.rs + rm cfgs diff --git a/tests/run-make/rustdoc-test-args/foo.rs b/tests/run-make/rustdoc-test-args/foo.rs new file mode 100644 index 0000000000000..51d17849fd718 --- /dev/null +++ b/tests/run-make/rustdoc-test-args/foo.rs @@ -0,0 +1,3 @@ +//! ``` +//! let x = 12; +//! ```