mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
433da1fc04
They pass fine.
15 lines
165 B
Rust
15 lines
165 B
Rust
#![crate_type = "rlib"]
|
|
|
|
extern crate foo;
|
|
|
|
#[link(name = "bar", kind = "static")]
|
|
extern "C" {
|
|
fn bar();
|
|
}
|
|
|
|
pub fn doit() {
|
|
unsafe {
|
|
bar();
|
|
}
|
|
}
|