From c8d50ef2ee71b6b586e52f0834657a7fd4b42800 Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Mon, 5 Aug 2024 22:13:12 +0000 Subject: [PATCH] Windows: Test if `\\.\NUL` works as an input file --- tests/run-make/dos-device-input/rmake.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/run-make/dos-device-input/rmake.rs diff --git a/tests/run-make/dos-device-input/rmake.rs b/tests/run-make/dos-device-input/rmake.rs new file mode 100644 index 000000000000..cc34dd551071 --- /dev/null +++ b/tests/run-make/dos-device-input/rmake.rs @@ -0,0 +1,9 @@ +//@ only-windows +// Reason: dos devices are a Windows thing + +use run_make_support::rustc; + +fn main() { + rustc().input(r"\\.\NUL").crate_type("staticlib").run(); + rustc().input(r"\\?\NUL").crate_type("staticlib").run(); +}