X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=tests%2Frun-make%2Flink-cfg%2Fdep-with-staticlib.rs;fp=tests%2Frun-make%2Flink-cfg%2Fdep-with-staticlib.rs;h=5ad66475d003ff3aab72a63392daf5d8e84fb81a;hb=353b0b1106c09291d3c691e2bd6290fdf14b6691;hp=0000000000000000000000000000000000000000;hpb=9ffffee422eedc489e3035cb88b0dab8dc9ea408;p=rustc.git diff --git a/tests/run-make/link-cfg/dep-with-staticlib.rs b/tests/run-make/link-cfg/dep-with-staticlib.rs new file mode 100644 index 0000000000..5ad66475d0 --- /dev/null +++ b/tests/run-make/link-cfg/dep-with-staticlib.rs @@ -0,0 +1,8 @@ +#![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; +}