Skip to content

Commit 5e55f07

Browse files
committed
rewrite and rename issue-28595 to rmake
1 parent 5b1860a commit 5e55f07

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
@@ -37,7 +37,6 @@ run-make/interdependent-c-libraries/Makefile
3737
run-make/issue-107094/Makefile
3838
run-make/issue-14698/Makefile
3939
run-make/issue-15460/Makefile
40-
run-make/issue-28595/Makefile
4140
run-make/issue-33329/Makefile
4241
run-make/issue-35164/Makefile
4342
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)