rust/tests/run-make/link-cfg/dep.rs

9 lines
167 B
Rust

#![feature(link_cfg)]
#![crate_type = "rlib"]
#[link(name = "return1", cfg(foo))]
#[link(name = "return2", cfg(bar))]
extern "C" {
pub fn my_function() -> i32;
}