2024-08-10 13:06:10 -05:00
|
|
|
use run_make_support::{path, rustc};
|
2024-06-09 04:02:19 -05:00
|
|
|
|
|
|
|
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());
|
|
|
|
}
|