about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2024-08-05 22:13:12 +0000
committerChris Denton <chris@chrisdenton.dev>2024-08-05 22:13:17 +0000
commitc8d50ef2ee71b6b586e52f0834657a7fd4b42800 (patch)
tree4291cc5ecb3e269de9cb732eab898e2e929110da /tests
parent9179d9b334e3f5e8772e1a563308dc95a1cde960 (diff)
downloadrust-c8d50ef2ee71b6b586e52f0834657a7fd4b42800.tar.gz
rust-c8d50ef2ee71b6b586e52f0834657a7fd4b42800.zip
Windows: Test if `\\.\NUL` works as an input file
Diffstat (limited to 'tests')
-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();
+}