mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
433da1fc04
They pass fine.
15 lines
275 B
Rust
15 lines
275 B
Rust
#![crate_type = "dylib"]
|
|
#![allow(dead_code)]
|
|
|
|
#[no_mangle] pub extern "C" fn fun1() {}
|
|
#[no_mangle] extern "C" fn fun2() {}
|
|
|
|
mod foo {
|
|
#[no_mangle] pub extern "C" fn fun3() {}
|
|
}
|
|
pub mod bar {
|
|
#[no_mangle] pub extern "C" fn fun4() {}
|
|
}
|
|
|
|
#[no_mangle] pub fn fun5() {}
|