rust/tests/run-make/multiple-emits/rmake.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
354 B
Rust
Raw Normal View History

2024-08-10 13:06:10 -05:00
use run_make_support::{path, rustc};
fn main() {
rustc().input("foo.rs").emit("asm,llvm-ir").output("out").run();
assert!(path("out.ll").is_file());
assert!(path("out.s").is_file());
rustc().input("foo.rs").emit("asm,llvm-ir").output("out2.ext").run();
assert!(path("out2.ll").is_file());
assert!(path("out2.s").is_file());
}