mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
433da1fc04
They pass fine.
9 lines
184 B
Rust
9 lines
184 B
Rust
#![feature(link_cfg)]
|
|
#![crate_type = "rlib"]
|
|
|
|
#[link(name = "return1", cfg(foo))]
|
|
#[link(name = "return3", kind = "static", cfg(bar))]
|
|
extern "C" {
|
|
pub fn my_function() -> i32;
|
|
}
|