mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
433da1fc04
They pass fine.
13 lines
146 B
Rust
13 lines
146 B
Rust
#![crate_type = "rlib"]
|
|
|
|
#[link(name = "foo", kind = "static")]
|
|
extern "C" {
|
|
fn foo();
|
|
}
|
|
|
|
pub fn doit() {
|
|
unsafe {
|
|
foo();
|
|
}
|
|
}
|