File tree Expand file tree Collapse file tree 2 files changed +30
-26
lines changed
tests/run-make/extern-flag-disambiguates Expand file tree Collapse file tree 2 files changed +30
-26
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ //@ ignore-cross-compile
2
+
3
+ use run_make_support::{cwd, run, run_in_tmpdir, rustc};
4
+
5
+ // Attempt to build this dependency tree:
6
+ //
7
+ // A.1 A.2
8
+ // |\ |
9
+ // | \ |
10
+ // B \ C
11
+ // \ | /
12
+ // \|/
13
+ // D
14
+ //
15
+ // Note that A.1 and A.2 are crates with the same name.
16
+
17
+ fn main() {
18
+ run_in_tmpdir(|| {
19
+ rustc().metadata("1").extra_filename("-1").input("a.rs").run();
20
+ rustc().metadata("2").extra_filename("-2").input("a.rs").run();
21
+ rustc().input("b.rs").extern_("a", "liba-1.rlib").run();
22
+ rustc().input("c.rs").extern_("a", "liba-2.rlib").run();
23
+ println!("before");
24
+ rustc().cfg("before").input("d.rs").extern_("a", "liba-1.rlib").run();
25
+ run("d");
26
+ println!("after");
27
+ rustc().cfg("after").input("d.rs").extern_("a", "liba-1.rlib").run();
28
+ run("d");
29
+ });
30
+ }
You can’t perform that action at this time.
0 commit comments