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