about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/run-make/dos-device-input/rmake.rs9
1 files changed, 9 insertions, 0 deletions
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 00000000000..cc34dd55107
--- /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();
+}