]> git.proxmox.com Git - rustc.git/blobdiff - tests/run-make/link-cfg/dep-with-staticlib.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / run-make / link-cfg / dep-with-staticlib.rs
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 (file)
index 0000000..5ad6647
--- /dev/null
@@ -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;
+}