rewrite and rename issue-28595 to rmake

This commit is contained in:
Oneirical 2024-07-12 14:57:05 -04:00
parent 5b1860a24e
commit 5e55f07cc0
7 changed files with 16 additions and 8 deletions

View File

@ -37,7 +37,6 @@ run-make/interdependent-c-libraries/Makefile
run-make/issue-107094/Makefile run-make/issue-107094/Makefile
run-make/issue-14698/Makefile run-make/issue-14698/Makefile
run-make/issue-15460/Makefile run-make/issue-15460/Makefile
run-make/issue-28595/Makefile
run-make/issue-33329/Makefile run-make/issue-33329/Makefile
run-make/issue-35164/Makefile run-make/issue-35164/Makefile
run-make/issue-36710/Makefile run-make/issue-36710/Makefile

View File

@ -1,7 +0,0 @@
# ignore-cross-compile
include ../tools.mk
all: $(call NATIVE_STATICLIB,a) $(call NATIVE_STATICLIB,b)
$(RUSTC) a.rs
$(RUSTC) b.rs
$(call RUN,b)

View File

@ -0,0 +1,16 @@
// An old compiler bug from 2015 caused native libraries to be loaded in the
// wrong order, causing `b` to be loaded before `a` in this test. If the compilation
// is successful, the libraries were loaded in the correct order.
//@ ignore-cross-compile
// Reason: the compiled binary is executed
use run_make_support::{build_native_static_lib, run, rustc};
fn main() {
build_native_static_lib("a");
build_native_static_lib("b");
rustc().input("a.rs").run();
rustc().input("b.rs").run();
run("b");
}