rewrite and rename issue-28595 to rmake
This commit is contained in:
parent
5b1860a24e
commit
5e55f07cc0
@ -37,7 +37,6 @@ run-make/interdependent-c-libraries/Makefile
|
||||
run-make/issue-107094/Makefile
|
||||
run-make/issue-14698/Makefile
|
||||
run-make/issue-15460/Makefile
|
||||
run-make/issue-28595/Makefile
|
||||
run-make/issue-33329/Makefile
|
||||
run-make/issue-35164/Makefile
|
||||
run-make/issue-36710/Makefile
|
||||
|
@ -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)
|
16
tests/run-make/native-lib-load-order/rmake.rs
Normal file
16
tests/run-make/native-lib-load-order/rmake.rs
Normal 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");
|
||||
}
|
Loading…
Reference in New Issue
Block a user