Skip to content

Commit ee529b7

Browse files
committed
rewrite and rename issue-20626 to rmake
1 parent fe2406b commit ee529b7

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ run-make/issue-109934-lto-debuginfo/Makefile
6060
run-make/issue-14698/Makefile
6161
run-make/issue-15460/Makefile
6262
run-make/issue-18943/Makefile
63-
run-make/issue-20626/Makefile
6463
run-make/issue-22131/Makefile
6564
run-make/issue-25581/Makefile
6665
run-make/issue-26006/Makefile

tests/run-make/issue-20626/Makefile

-9
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Despite the absence of any unsafe Rust code, foo.rs in this test would,
2+
// because of the raw function pointer,
3+
// cause undefined behavior and fail to print the expected result, "4" -
4+
// only when activating optimizations (opt-level 2). This test checks
5+
// that this bug does not make a resurgence.
6+
// Note that the bug cannot be observed in an assert_eq!, only in the stdout.
7+
// See https://github.com/rust-lang/rust/issues/20626
8+
9+
//@ ignore-cross-compile
10+
11+
use run_make_support::{run, rustc};
12+
13+
fn main() {
14+
rustc().input("foo.rs").opt().run();
15+
run("foo").assert_stdout_equals("4");
16+
}

0 commit comments

Comments
 (0)