mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 17:36:20 +00:00
9 lines
94 B
Rust
9 lines
94 B
Rust
#[link(name = "test")]
|
|
extern "C" {
|
|
fn foo() -> i32;
|
|
}
|
|
|
|
fn main() {
|
|
unsafe {foo();}
|
|
}
|