Windows: Test if \\.\NUL works as an input file

This commit is contained in:
Chris Denton 2024-08-05 22:13:12 +00:00
parent 9179d9b334
commit c8d50ef2ee
No known key found for this signature in database
GPG key ID: 713472F2F45627DE

View file

@ -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();
}