File tree 3 files changed +17
-7
lines changed
tests/run-make/extern-diff-internal-name
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
15
15
run-make/dump-ice-to-disk/Makefile
16
16
run-make/emit-to-stdout/Makefile
17
17
run-make/export-executable-symbols/Makefile
18
- run-make/extern-diff-internal-name/Makefile
19
18
run-make/extern-flag-disambiguates/Makefile
20
19
run-make/extern-fn-reachable/Makefile
21
20
run-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