mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +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();
|
|
}
|
|
}
|