File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed
tests/run-make/extern-diff-internal-name Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ run-make/dep-info/Makefile
1515run-make/dump-ice-to-disk/Makefile
1616run-make/emit-to-stdout/Makefile
1717run-make/export-executable-symbols/Makefile
18- run-make/extern-diff-internal-name/Makefile
1918run-make/extern-flag-disambiguates/Makefile
2019run-make/extern-fn-reachable/Makefile
2120run-make/extern-multiple-copies/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments