rust/tests/run-make/no-intermediate-extras/rmake.rs
Nicholas Nethercote 84ac80f192 Reformat use declarations.
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00

19 lines
552 B
Rust

// When using the --test flag with an rlib, this used to generate
// an unwanted .bc file, which should not exist. This test checks
// that the bug causing the generation of this file has not returned.
// See https://github.com/rust-lang/rust/issues/10973
//@ ignore-cross-compile
use std::fs;
use run_make_support::rustc;
fn main() {
rustc().crate_type("rlib").arg("--test").input("foo.rs").run();
assert!(
fs::remove_file("foo.bc").is_err(),
"An unwanted .bc file was created by run-make/no-intermediate-extras."
);
}