Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c8d50ef

Browse files
committed
Windows: Test if \\.\NUL works as an input file
1 parent 9179d9b commit c8d50ef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//@ only-windows
2+
// Reason: dos devices are a Windows thing
3+
4+
use run_make_support::rustc;
5+
6+
fn main() {
7+
rustc().input(r"\\.\NUL").crate_type("staticlib").run();
8+
rustc().input(r"\\?\NUL").crate_type("staticlib").run();
9+
}

0 commit comments

Comments
 (0)