Skip to content

Commit da692ee

Browse files
committed
rewrite extern-diff-internal-name to rmake
1 parent d53dc75 commit da692ee

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ run-make/dep-info/Makefile
1515
run-make/dump-ice-to-disk/Makefile
1616
run-make/emit-to-stdout/Makefile
1717
run-make/export-executable-symbols/Makefile
18-
run-make/extern-diff-internal-name/Makefile
1918
run-make/extern-flag-disambiguates/Makefile
2019
run-make/extern-fn-reachable/Makefile
2120
run-make/extern-multiple-copies/Makefile

tests/run-make/extern-diff-internal-name/Makefile

-6
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// In the following scenario:
2+
// 1. The crate foo, is referenced multiple times
3+
// 2. --extern foo=./path/to/libbar.rlib is specified to rustc
4+
// 3. The internal crate name of libbar.rlib is not foo
5+
// Compilation fails with the "multiple crate versions" error message.
6+
// As this was fixed in #17189, this regression test ensures this bug does not
7+
// make a resurgence.
8+
// See https://github.com/rust-lang/rust/pull/17189
9+
10+
//FIXME(Oneirical): test-various
11+
12+
use run_make_support::{rust_lib_name, rustc};
13+
14+
fn main() {
15+
rustc().input("lib.rs").run();
16+
rustc().input("test.rs").extern_("foo", rust_lib_name("bar")).run();
17+
}

0 commit comments

Comments
 (0)