mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
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() }
|
|
}
|