diff options
Diffstat (limited to 'tests/run-make/link-cfg/dep-with-staticlib.rs')
-rw-r--r-- | tests/run-make/link-cfg/dep-with-staticlib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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 000000000..5ad66475d --- /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; +} |