summaryrefslogtreecommitdiffstats
path: root/tests/run-make/archive-duplicate-names/foo.rs
blob: 0bf13c406ab53c7b7c9217a4c623bd1c3a1538a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![crate_type = "rlib"]

#[link(name = "foo", kind = "static")]
extern "C" {
    fn foo();
    fn bar();
}

pub fn baz() {
    unsafe {
        foo();
        bar();
    }
}