13 lines
167 B
Rust
13 lines
167 B
Rust
#![crate_type = "rlib"]
|
|
|
|
extern crate lib1;
|
|
|
|
#[link(name = "bar", kind = "static")]
|
|
extern "C" {
|
|
fn foo() -> i32;
|
|
}
|
|
|
|
pub fn foo2() -> i32 {
|
|
unsafe { foo() }
|
|
}
|