mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
14 lines
354 B
Rust
14 lines
354 B
Rust
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());
|
|
}
|