diff options
Diffstat (limited to 'tests/run-make-fulldeps/archive-duplicate-names/foo.rs')
-rw-r--r-- | tests/run-make-fulldeps/archive-duplicate-names/foo.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run-make-fulldeps/archive-duplicate-names/foo.rs b/tests/run-make-fulldeps/archive-duplicate-names/foo.rs new file mode 100644 index 000000000..0bf13c406 --- /dev/null +++ b/tests/run-make-fulldeps/archive-duplicate-names/foo.rs @@ -0,0 +1,14 @@ +#![crate_type = "rlib"] + +#[link(name = "foo", kind = "static")] +extern "C" { + fn foo(); + fn bar(); +} + +pub fn baz() { + unsafe { + foo(); + bar(); + } +} |