Skip to content

Commit 5a02dc9

Browse files
committed
rewrite and rename issue-28595 to rmake
1 parent 9ca58b7 commit 5a02dc9

File tree

7 files changed

+16
-8
lines changed

7 files changed

+16
-8
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ run-make/issue-18943/Makefile
5252
run-make/issue-22131/Makefile
5353
run-make/issue-25581/Makefile
5454
run-make/issue-26006/Makefile
55-
run-make/issue-28595/Makefile
5655
run-make/issue-33329/Makefile
5756
run-make/issue-35164/Makefile
5857
run-make/issue-36710/Makefile

tests/run-make/issue-28595/Makefile

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// An old compiler bug from 2015 caused native libraries to be loaded in the
2+
// wrong order, causing `b` to be loaded before `a` in this test. If the compilation
3+
// is successful, the libraries were loaded in the correct order.
4+
5+
//@ ignore-cross-compile
6+
// Reason: the compiled binary is executed
7+
8+
use run_make_support::{build_native_static_lib, run, rustc};
9+
10+
fn main() {
11+
build_native_static_lib("a");
12+
build_native_static_lib("b");
13+
rustc().input("a.rs").run();
14+
rustc().input("b.rs").run();
15+
run("b");
16+
}

0 commit comments

Comments
 (0)