mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
433da1fc04
They pass fine.
14 lines
176 B
Rust
14 lines
176 B
Rust
#![crate_type = "cdylib"]
|
|
|
|
extern crate bar;
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn foo() {
|
|
bar::bar();
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn bar(a: u32, b: u32) -> u32 {
|
|
a + b
|
|
}
|