Skip to content

Commit 060a13e

Browse files
committed
rewrite extern-flag-rename-transitive to rmake
1 parent dd104ef commit 060a13e

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-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
@@ -40,7 +40,6 @@ run-make/export-executable-symbols/Makefile
4040
run-make/extern-diff-internal-name/Makefile
4141
run-make/extern-flag-disambiguates/Makefile
4242
run-make/extern-flag-pathless/Makefile
43-
run-make/extern-flag-rename-transitive/Makefile
4443
run-make/extern-fn-explicit-align/Makefile
4544
run-make/extern-fn-generic/Makefile
4645
run-make/extern-fn-mangle/Makefile

tests/run-make/extern-flag-rename-transitive/Makefile

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// In this test, baz.rs is looking for an extern crate "a" which
2+
// does not exist, and can only run through the --extern rustc flag
3+
// defining that the "a" crate is in fact just "foo". This test
4+
// checks that the --extern flag takes precedence over the extern
5+
// crate statement in the code.
6+
// See https://github.com/rust-lang/rust/pull/52723
7+
8+
use run_make_support::{rust_lib_name, rustc};
9+
10+
fn main() {
11+
rustc().input("foo.rs").run();
12+
rustc().input("bar.rs").run();
13+
rustc().input("baz.rs").extern_("a", rust_lib_name("foo")).run();
14+
}

0 commit comments

Comments
 (0)