mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
433da1fc04
They pass fine.
13 lines
263 B
Rust
13 lines
263 B
Rust
#![crate_type="cdylib"]
|
|
|
|
extern crate an_rlib;
|
|
|
|
// This should not be exported
|
|
pub fn public_rust_function_from_cdylib() {}
|
|
|
|
// This should be exported
|
|
#[no_mangle]
|
|
pub extern "C" fn public_c_function_from_cdylib() {
|
|
an_rlib::public_c_function_from_rlib();
|
|
}
|