about summary refs log tree commit diff
path: root/tests/run-make/multiple-emits/rmake.rs
blob: d8a008660c0633267728037ec5aa610fff60ebba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ needs-target-std
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());
}