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