summaryrefslogtreecommitdiffstats
path: root/tests/run-make/link-cfg/dep.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/link-cfg/dep.rs')
-rw-r--r--tests/run-make/link-cfg/dep.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run-make/link-cfg/dep.rs b/tests/run-make/link-cfg/dep.rs
new file mode 100644
index 000000000..40de77f05
--- /dev/null
+++ b/tests/run-make/link-cfg/dep.rs
@@ -0,0 +1,8 @@
+#![feature(link_cfg)]
+#![crate_type = "rlib"]
+
+#[link(name = "return1", cfg(foo))]
+#[link(name = "return2", cfg(bar))]
+extern "C" {
+ pub fn my_function() -> i32;
+}