This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed
tests/run-make/extern-flag-rename-transitive Expand file tree Collapse file tree 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
4040run-make/extern-diff-internal-name/Makefile
4141run-make/extern-flag-disambiguates/Makefile
4242run-make/extern-flag-pathless/Makefile
43- run-make/extern-flag-rename-transitive/Makefile
4443run-make/extern-fn-explicit-align/Makefile
4544run-make/extern-fn-generic/Makefile
4645run-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