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