1
Fork 0

Migrate run-make/const_fn_mir to rmake.rs

This commit is contained in:
Guillaume Gomez 2024-06-11 14:05:55 +02:00
parent 9bff23005d
commit be7b587cd1
3 changed files with 8 additions and 7 deletions

View file

@ -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

View file

@ -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

View 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();
}