rust/tests/run-make-fulldeps/link-cfg/dep-with-staticlib.rs
2023-01-11 09:32:08 +00:00

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;
}