433da1fc04
They pass fine.
11 lines
147 B
Rust
11 lines
147 B
Rust
#![crate_type = "rlib"]
|
|
|
|
#[link(name = "foo", kind = "static")]
|
|
extern "C" {
|
|
fn foo() -> i32;
|
|
}
|
|
|
|
pub fn foo1() -> i32 {
|
|
unsafe { foo() }
|
|
}
|