summaryrefslogtreecommitdiffstats
path: root/tests/run-make/extern-multiple-copies2/bar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/extern-multiple-copies2/bar.rs')
-rw-r--r--tests/run-make/extern-multiple-copies2/bar.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run-make/extern-multiple-copies2/bar.rs b/tests/run-make/extern-multiple-copies2/bar.rs
new file mode 100644
index 000000000..b3088152d
--- /dev/null
+++ b/tests/run-make/extern-multiple-copies2/bar.rs
@@ -0,0 +1,8 @@
+#[macro_use]
+extern crate foo2; // foo2 first to exhibit the bug
+#[macro_use]
+extern crate foo1;
+
+fn main() {
+ foo2::foo2(foo1::A);
+}