Migrate run-make/const_fn_mir
to rmake.rs
This commit is contained in:
parent
9bff23005d
commit
be7b587cd1
3 changed files with 8 additions and 7 deletions
|
@ -18,7 +18,6 @@ run-make/compiler-lookup-paths-2/Makefile
|
|||
run-make/compiler-lookup-paths/Makefile
|
||||
run-make/compiler-rt-works-on-mingw/Makefile
|
||||
run-make/compressed-debuginfo/Makefile
|
||||
run-make/const_fn_mir/Makefile
|
||||
run-make/crate-hash-rustc-version/Makefile
|
||||
run-make/crate-name-priority/Makefile
|
||||
run-make/cross-lang-lto-clang/Makefile
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
# needs-unwind -Cpanic=abort gives different MIR output
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) main.rs --emit=mir -o "$(TMPDIR)"/dump.mir
|
||||
$(RUSTC_TEST_OP) "$(TMPDIR)"/dump.mir dump.mir
|
8
tests/run-make/const_fn_mir/rmake.rs
Normal file
8
tests/run-make/const_fn_mir/rmake.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
// The `needs-unwind -Cpanic=abort` gives a different MIR output.
|
||||
|
||||
use run_make_support::{cwd, diff, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("main.rs").emit("mir").output("dump-actual.mir").run();
|
||||
diff().expected_file("dump.mir").actual_file("dump-actual.mir").run();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue