Skip to content

Commit 22692a1

Browse files
committed
rewrite and rename issue-47551 to rmake
1 parent bcf1f6d commit 22692a1

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

Diff for: src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ run-make/issue-28595/Makefile
5656
run-make/issue-33329/Makefile
5757
run-make/issue-35164/Makefile
5858
run-make/issue-36710/Makefile
59-
run-make/issue-47551/Makefile
6059
run-make/issue-69368/Makefile
6160
run-make/issue-83045/Makefile
6261
run-make/issue-84395-lto-embed-bitcode/Makefile

Diff for: tests/run-make/issue-47551/Makefile

-10
This file was deleted.

Diff for: tests/run-make/link-eh-frame-terminator/rmake.rs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// The gcc driver is supposed to add a terminator to link files, and the rustc
2+
// driver previously failed to do this, resulting in a segmentation fault
3+
// with an older version of LLVM. This test checks that the terminator is present
4+
// after the fix in #85395.
5+
// See https://github.com/rust-lang/rust/issues/47551
6+
7+
//FIXME(Oneirical): See if it works on anything other than only linux and 64 bit
8+
// maybe riscv64gc-unknown-linux-gnu
9+
10+
use run_make_support::{llvm_objdump, run, rustc};
11+
12+
fn main() {
13+
rustc().input("eh_frame-terminator.rs").run();
14+
run("eh_frame-terminator").assert_stdout_contains("1122334455667788");
15+
llvm_objdump()
16+
.arg("--dwarf=frames")
17+
.input("eh_frame-terminator")
18+
.run()
19+
.assert_stdout_contains("ZERO terminator");
20+
}

0 commit comments

Comments
 (0)