rewrite extern-flag-rename-transitive to rmake
This commit is contained in:
parent
dd104ef163
commit
060a13e9fd
@ -40,7 +40,6 @@ run-make/export-executable-symbols/Makefile
|
||||
run-make/extern-diff-internal-name/Makefile
|
||||
run-make/extern-flag-disambiguates/Makefile
|
||||
run-make/extern-flag-pathless/Makefile
|
||||
run-make/extern-flag-rename-transitive/Makefile
|
||||
run-make/extern-fn-explicit-align/Makefile
|
||||
run-make/extern-fn-generic/Makefile
|
||||
run-make/extern-fn-mangle/Makefile
|
||||
|
@ -1,7 +0,0 @@
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo.rs
|
||||
$(RUSTC) bar.rs
|
||||
$(RUSTC) baz.rs --extern a=$(TMPDIR)/libfoo.rlib
|
||||
|
14
tests/run-make/extern-flag-rename-transitive/rmake.rs
Normal file
14
tests/run-make/extern-flag-rename-transitive/rmake.rs
Normal file
@ -0,0 +1,14 @@
|
||||
// In this test, baz.rs is looking for an extern crate "a" which
|
||||
// does not exist, and can only run through the --extern rustc flag
|
||||
// defining that the "a" crate is in fact just "foo". This test
|
||||
// checks that the --extern flag takes precedence over the extern
|
||||
// crate statement in the code.
|
||||
// See https://github.com/rust-lang/rust/pull/52723
|
||||
|
||||
use run_make_support::{rust_lib_name, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("foo.rs").run();
|
||||
rustc().input("bar.rs").run();
|
||||
rustc().input("baz.rs").extern_("a", rust_lib_name("foo")).run();
|
||||
}
|
Loading…
Reference in New Issue
Block a user