File tree 3 files changed +14
-8
lines changed
tests/run-make/extern-flag-rename-transitive
3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ run-make/export-executable-symbols/Makefile
40
40
run-make/extern-diff-internal-name/Makefile
41
41
run-make/extern-flag-disambiguates/Makefile
42
42
run-make/extern-flag-pathless/Makefile
43
- run-make/extern-flag-rename-transitive/Makefile
44
43
run-make/extern-fn-explicit-align/Makefile
45
44
run-make/extern-fn-generic/Makefile
46
45
run-make/extern-fn-mangle/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments