mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 17:26:12 +00:00
15 lines
304 B
Rust
15 lines
304 B
Rust
// no-prefer-dynamic
|
|
#![crate_type = "rlib"]
|
|
|
|
#[link(name = "dummy", kind="dylib")]
|
|
extern "C" {
|
|
pub fn dylib_func2(x: i32) -> i32;
|
|
pub static dylib_global2: i32;
|
|
}
|
|
|
|
#[link(name = "dummy", kind="static")]
|
|
extern "C" {
|
|
pub fn static_func2(x: i32) -> i32;
|
|
pub static static_global2: i32;
|
|
}
|