diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2024-08-05 22:13:12 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2024-08-05 22:13:17 +0000 |
| commit | c8d50ef2ee71b6b586e52f0834657a7fd4b42800 (patch) | |
| tree | 4291cc5ecb3e269de9cb732eab898e2e929110da /tests | |
| parent | 9179d9b334e3f5e8772e1a563308dc95a1cde960 (diff) | |
| download | rust-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.rs | 9 |
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(); +} |
